- Open Access
Fitness and Overfitness: Implicit Regularization in Evolutionary Dynamics
PRX Life 4, 023028 – Published 17 June, 2026
DOI: https://doi.org/10.1103/zrqb-cj47
Abstract
A common underlying assumption in evolutionary thought is that adaptation generally drives an increase in biological complexity. However, the rules governing the evolution of complexity appear more nuanced, and the forces that drive the increase or decrease in organismal complexity are not fully understood. Evolution is deeply connected to learning, where complexity, as well as its origins and consequences, are much better understood, with established results on the optimal complexity appropriate for a given learning task in various settings. In this work, we suggest a mathematical framework for studying the relationship between organismal complexity and the complexity of the environment in which the organisms evolve by leveraging an existing mathematical isomorphism between evolutionary dynamics and learning theory, specifically an isomorphism between the replicator equation and sequential Bayesian learning, with evolving types corresponding to competing hypotheses, and fitness in a given environment corresponding to the likelihood of observed evidence. In Bayesian learning, implicit regularization prevents overfitting and drives the inference of hypotheses whose complexity matches the learning challenge. We show how these results naturally carry over to the evolutionary setting, where they are interpreted as organism complexity evolving to match the complexity of the environment, with organisms that are too complex or too simple for their environment suffering from effects we term overfitness and underfitness, respectively. Other aspects, peculiar to evolution and not to learning, reveal additional trends. One such trend is that frequently changing environments decrease selected complexity, a result with potential implications in both evolution and learning. Together, our results suggest that the balance between complex organisms that may overadapt to transient environmental features, and simple organisms that may be insufficiently flexible in responding to environmental challenges, drives the emergence of optimal complexity that reflects environmental structure. This mathematical framework offers new ways to think about biological complexity, and it suggests new potential causes for an increase or decrease in complexity in different selective environments.
Physics Subject Headings (PhySH)
Collections
This article appears in the following collection:

PRX Life Collection on adaptation and learning
PRX Life presents a special collection on ‘Biological systems that learn’, curated by the organizers of the National Institute for Theory and Mathematics in Biology (NITMB) workshop together with early-career researchers. The papers in this collection illustrate how living systems acquire functions, showing it is useful to describe them as tunable matter with many individually adjustable degrees of freedom characterizing microscopic properties. Drawing inspiration from AI and non-biological systems that can acquire desired functions, the featured research highlights the timeliness of the topic and its potential to drive unifying frameworks for emergent collective function in living tunable matter.
Every article in this collection is subject to a rigorous peer review process, upholding the high standards applied to all papers in the journal. The PRX Life editorial team manages peer review and makes all editorial decisions.
Article Text
References (58)
- S. A. Kauffman, The Origins of Order: Self-Organization and Selection in Evolution (Oxford University Press, New York, 2011), nachdr. edition.
- D. W. McShea, Complexity and evolution: What everybody knows, Biol. Philos. 6, 303 (1991).
- Y. I. Wolf, M. I. Katsnelson, and E. V. Koonin, Physical foundations of biological complexity, Proc. Natl. Acad. Sci. USA 115, E8678 (2018).
- E. Szathmáry and J. M. Smith, The major evolutionary transitions, Nature (London) 374, 227 (1995).
- C. Adami, C. Ofria, and T. C. Collier, Evolution of biological complexity, Proc. Natl. Acad. Sci. USA 97, 4463 (2000).
- C. Darwin, On the Origin of Species by Means of Natural Selection (Murray, London, 1859), or the Preservation of Favored Races in the Struggle for Life.
- H. Spencer, The Principles of Biology (Outlook Verlag, Frankfurt am Main, 2020), Vol. 1.
- R. E. Lenski, C. Ofria, R. T. Pennock, and C. Adami, The evolutionary origin of complex features, Nature (London) 423, 139 (2003).
- S. B. Carroll, Chance and necessity: The evolution of morphological complexity and diversity, Nature (London) 409, 1102 (2001).
- P. J. Keeling and C. H. Slamovits, Simplicity and complexity of microsporidian genomes, Eukaryotic Cell 3, 1363 (2004).
- W. Veit, S. J. L. Gascoigne, and R. Salguero-Gómez, Evolution, complexity, and life history theory, Biol. Theory 20, 212 (2025).
- A. Wagner, Energy constraints on the evolution of gene expression, Mol. Biol. Evol. 22, 1365 (2005).
- M. Lynch, The bioenergetic cost of building a metazoan, Proc. Natl. Acad. Sci. USA 121, e2414742121 (2024).
- H. J. Muller, Some genetic aspects of sex, Am. Nat. 66, 118 (1932).
- N. A. Moran, Accelerated evolution and Muller's rachet in endosymbiotic bacteria, Proc. Natl. Acad. Sci. USA 93, 2873 (1996).
- H. Maughan, J. Masel, C. W. Birky Jr, and W. L. Nicholson, The roles of mutation accumulation and selection in loss of sporulation in experimental populations of Bacillus subtilis, Genetics 177, 937 (2007).
- F. Heylighen, The growth of structural and functional complexity during evolution, Evol. Complex. 8, 17 (1999).
- H. A. Orr, Adaptation and the cost of complexity, Evolution 54, 13 (2000).
- G. P. Wagner, J. P. Kenney-Hunt, M. Pavlicev, J. R. Peck, D. Waxman, and J. M. Cheverud, Pleiotropic scaling of gene effects and the cost of complexity, Nature (London) 452, 470 (2008).
- C. Adami, What is complexity? BioEssays 24, 1085 (2002).
- R. Hinegardner and J. Engelberg, Biological complexity, J. Theor. Biol. 104, 7 (1983).
- P. D. Grünwald, The Minimum Description Length Principle, Adaptive Computation and Machine Learning (MIT Press, Cambridge, MA, 2007).
- H. A Simon, The architecture of complexity, Proc. Am Philos. Soc. 106, 467 (1962).
- K. Dingle, C. Q. Camargo, and A. A. Louis, Input–output maps are strongly biased towards simple outputs, Nat. Commun. 9, 761 (2018).
- P. Godfrey-Smith, Complexity and the Function of Mind in Nature (Cambridge University Press, Cambridge, 1998).
- A. P Bird, Gene number, noise reduction and biological complexity, Trends Genet. 11, 94 (1995).
- R. B. Brem and L. Kruglyak, The landscape of genetic complexity across 5,700 gene expression traits in yeast, Proc. Natl. Acad. Sci. USA 102, 1572 (2005).
- M. H. V. Van Regenmortel, Biological complexity emerges from the ashes of genetic reductionism, in HIV/AIDS: Immunochemistry, Reductionism and Vaccine Design: A Review of 20 Years of Research (Springer, Cham, 2019), pp. 79–86.
- D. W. McShea, Perspective metazoan complexity and evolution: Is there a trend? Evolution 50, 477 (1996).
- J. W. Valentine, A. G. Collins, and C. P. Meyer, Morphological complexity increase in metazoans, Paleobiology 20, 131 (1994).
- M. A. Nowak, Evolutionary Dynamics: Exploring the Equations of Life (The Belknap Press of Harvard University Press, Cambridge, MA, 2006).
- M. Harper, The replicator equation as an inference dynamic, arXiv:0911.1763.
- R. A. Watson and E. Szathmáry, How can evolution learn, Trends Ecol. Evol. 31, 147 (2016).
- K. Kouvaris, J. Clune, L. Kounios, M. Brede, and R. A. Watson, How evolution learns to generalise: Using the principles of learning theory to understand the evolution of developmental organisation, PLoS Comput. Biol. 13, e1005358 (2017).
- D. Czégel, H. Giaffar, J. B. Tenenbaum, and E. Szathmáry, Bayes and Darwin: How replicator populations implement Bayesian computations, BioEssays 44, 2100255 (2022).
- J. O. Campbell, Universal Darwinism as a process of Bayesian inference, Front. Syst. Neurosci. 10, 49 (2016).
- R. A. Watson, G. P. Wagner, M. Pavlicev, D. M. Weinreich, and R. Mills, The evolution of phenotypic correlations and developmental memory, Evolution 68, 1124 (2014).
- H. Akaike, A new look at the statistical model identification, IEEE Trans. Autom. Control 19, 716 (1974).
- Model Selection and Multimodel Inference, edited by K. P. Burnham and D. R. Anderson (Springer, New York, 2004).
- V. N. Vapnik, Nature of Statistical Learning Theory (Springer, New York, New York, 1995).
- C. M. Bishop and N. M. Nasrabadi, Pattern Recognition and Machine Learning (Springer, New York, 2006), Vol. 4.
- D. J. C. MacKay, Information Theory, Inference and Learning Algorithms (Cambridge University Press, Cambridge, 2003).
- D. H. Wolpert, A rigorous investigation of evidence and Occam factors in Bayesian reasoning, Technical Report No. 92-03-013, Sante Fe Institute, Santa Fe, NM, 1992.
- B. Malnic, J. Hirono, T. Sato, and L. B Buck, Combinatorial receptor codes for odors, Cell 96, 713 (1999).
- B. Xue, P. Sartori, and S. Leibler, Environment-to-phenotype mapping and adaptation strategies in varying environments, Proc. Natl. Acad. Sci. USA 116, 13847 (2019).
- R. A. Fisher, The Genetical Theory of Natural Selection: A Complete Variorum Edition (Oxford University Press, Oxford, 1999).
- R. Bürger and M. Lynch, Evolution and extinction in a changing environment: A quantitative-genetic analysis, Evolution 49, 151 (1995).
- L.-M. Chevin, R. Lande, and G. M. Mace, Adaptation, plasticity, and extinction in a changing environment: Towards a predictive theory, PLoS Biol. 8, e1000357 (2010).
- V. Mustonen and M. Lässig, From fitness landscapes to seascapes: Non-equilibrium dynamics of selection and adaptation, Trends Genet. 25, 111 (2009).
- S. Dridi and L. Lehmann, Environmental complexity favors the evolution of learning, Behav. Ecol. 27, 842 (2016).
- P. Godfrey-Smith, Environmental complexity and the evolution of cognition, in The Evolution of Intelligence (Psychology Press, London, 2013), pp. 223–249.
- N. Kashtan and U. Alon, Spontaneous evolution of modularity and network motifs, Proc. Natl. Acad. Sci. USA 102, 13773 (2005).
- R. Dawkins and J. R. Krebs, Arms races between and within species, Proc. R. Soc. London, Ser. B 205, 489 (1979).
- A. Bergman and M. W Feldman, On the evolution of learning: Representation of a stochastic environment, Theor. Pop. Biol 48, 251 (1995).
- A. O. Bergland, E. L. Behrman, K. R. O'Brien, P. S. Schmidt, and D. A. Petrov, Genomic evidence of rapid and stable adaptive oscillations over seasonal time scales in Drosophila, PLoS Genet. 10, e1004775 (2014).
- H. Rappeport, Code and data for “Fitness and overfitness: Implicit regularization in evolutionary dynamics,” https://github.com/nitzanlab/Overfitness (2026).
- T. Hastie, R. Tibshirani, J. H Friedman, and J. H Friedman, The Elements of Statistical Learning: Data Mining, Inference, and Prediction, 2nd ed. (Springer, New York, 2009), Vol. 2.
- G. Cybenko, Approximation by superpositions of a sigmoidal function, Math. Contr. Sign. Syst. 2, 303 (1989).