Software doesn't have to be written. Life has been proving it can be grown.
In December 2023, a team at Google DeepMind announced that their system had found the largest improvement in twenty years to a stubborn problem in extremal combinatorics called the cap set problem. The mathematician Terence Tao had once called it one of his favourite open questions. The tool that cracked it was not a theorem prover, not a brute force search engine, and not a neural network in the usual sense. It was a breeding program for code.
The system, called FunSearch, works by taking a large language model and wrapping it in the logic of Darwinian evolution. A population of short Python functions is maintained in a kind of digital ecosystem. The language model proposes new candidate functions. An automated evaluator scores each one ruthlessly, discarding the vast majority and keeping only those that perform well. The survivors are fed back to the model as examples, and the process repeats. After millions of iterations, what emerges from this loop is not a hallucination or a guess. It is a working program that solves a real mathematical problem, verified line by line, sometimes better than anything a human has ever written.
"To be very honest with you, we have hypotheses, but we don't know exactly why this works," Alhussein Fawzi, one of the research scientists leading the project, told MIT Technology Review. About ninety per cent of what the language model produces is garbage. But the remaining ten per cent is enough for evolution to get a grip on.
What makes FunSearch remarkable is not just its results. It is the deeper pattern it reveals: that the most powerful new approach in artificial intelligence is also one of the oldest ideas in biology.
The idea of evolving software has been around for decades. In 1992, the Stanford computer scientist John Koza published Genetic Programming: On the Programming of Computers by Means of Natural Selection, a sprawling argument that you could breed programs the way farmers breed cattle. Koza represented programs as tree structures in the Lisp programming language, applied the Darwinian operators of crossover and mutation, scored each candidate against a fitness function, and let natural selection do the rest.
His results were startling for the era. By the late 1990s, Koza's group was evolving electronic circuit designs that independently reinvented patented technologies. One evolved filter circuit turned out to be functionally identical to a design for which George Campbell of American Telephone and Telegraph had received a patent in 1917. Another matched an amplifier topology patented decades earlier. If those patents had not already expired, the machine's output would have constituted infringement. Koza called this "human competitive" genetic programming, and he wasn't wrong. The computer, with no knowledge of electrical engineering, had reinvented engineering solutions that took human inventors years to conceive.
But genetic programming had a problem. It worked on small programs, on circuits, on constrained toy problems. Scaling it to real software was another matter entirely. The mutations were random, syntactically destructive, and almost always produced gibberish. Crossing over two tree-structured programs at random was like cutting two novels in half and stapling the mismatched pieces together. You occasionally got something interesting, but overwhelmingly you got nonsense.
Then, around 2012, the deep learning revolution hit. Backpropagation through dense neural networks turned out to scale beautifully on graphics cards. Gradient descent was elegant, mathematically tractable, and increasingly powerful. Genetic programming, by contrast, looked messy and unprincipled. It did not disappear, exactly, but it was pushed to the margins of the field, kept alive by a small community publishing in specialist journals. For nearly a decade, nobody in mainstream AI was talking about evolving programs.
What brought evolutionary program synthesis back to the centre of the conversation was a single conceptual insight, published in a 2022 paper by Joel Lehman, Kenneth Stanley, and colleagues, most of them then at OpenAI. The paper was called "Evolution through Large Models," and its argument was straightforward: a large language model trained on millions of lines of human code already knows what plausible code changes look like. It has absorbed every commit message, every diff, every refactoring decision that programmers have pushed to GitHub over the years. Use such a model as the mutation operator in an evolutionary loop, and you no longer have to rely on random syntactic perturbations. You have a mutation operator that speaks fluent Python.
The paper described this bluntly. An LLM, they wrote, can serve as "a highly sophisticated mutation operator" for genetic programming. Trained on sequential code changes, it can approximate the sort of edits a competent human programmer would make. And because it can also recombine ideas from multiple parent programs, it doubles as a crossover operator too.
This was the missing piece. Old-school genetic programming failed because random mutations in code are almost always catastrophic. The language model solves that problem by making mutations that are syntactically valid, semantically coherent, and roughly in the direction a human would go. It does not guarantee correctness, far from it, but it shifts the odds dramatically. Where random mutation might produce one useful variant in ten thousand, an LLM-guided mutation might produce one in ten.
Lehman and Stanley, along with their collaborator group at the CarperAI lab, released an open-source library called OpenELM for building evolutionary systems powered by language models. Other groups followed quickly. Angelica Chen and colleagues at Google Brain showed in a system called EvoPrompting that an LLM could design graph neural network architectures through evolutionary search, producing designs that outperformed human experts on the majority of benchmarks they tested. NVIDIA's Eureka system put GPT-4 inside an evolutionary loop to evolve reward functions for reinforcement learning and taught a simulated robotic hand to spin a pen with near-human dexterity. Then came FunSearch.
The DeepMind team behind FunSearch made three design choices that turned out to be crucial. First, they froze the language model. Unlike systems that fine-tune the model during the search, FunSearch treats the LLM as a fixed creativity engine. It generates candidates, but it never learns from its mistakes in the traditional machine-learning sense. All the learning happens at the level of the population.
Second, they connected the language model to a strict automated evaluator. Every candidate function is actually run, and its output is scored against a known standard. This is the mechanism that prevents hallucination. A language model left to its own devices will confidently produce plausible-looking nonsense. But in FunSearch, nonsense scores zero and gets discarded. Only programs that demonstrably work survive to the next generation.
Third, they organised the population into "islands," a technique borrowed directly from classical evolutionary computation. Different subpopulations evolve in partial isolation, exploring different regions of the solution space. Periodically, the worst-performing islands are wiped and reseeded with migrants from the best ones. This maintains diversity and prevents the search from getting trapped in a single local optimum.
The cap set problem was FunSearch's breakout result. Imagine trying to place as many points as possible in a high-dimensional grid such that no three of them form a straight line. In eight dimensions, the search space contains roughly 3 to the power of 1,600 possible configurations. No brute-force method can touch this. What FunSearch evolved was not a cap set itself but a priority function, a piece of code that tells a greedy algorithm which points to add to the set and in what order. The priority function it converged on was genuinely novel. When Jordan Ellenberg, the University of Wisconsin mathematician collaborating on the project, examined it, he noticed a hidden symmetry that no one had previously identified.
"The solutions generated by FunSearch are far conceptually richer than a mere list of numbers," Ellenberg said. "When I study them, I learn something."
In May 2025, DeepMind published AlphaEvolve, a system that extended FunSearch's principles dramatically. Where FunSearch evolved single functions, AlphaEvolve could evolve entire codebases, making coordinated changes across multiple files and components. It was powered by Gemini, Google's most capable language model family, and it attacked problems across mathematics, computer science, and engineering simultaneously.
The headline result was almost theatrical in its precision. In 1969, the German mathematician Volker Strassen had shown that two 4×4 matrices could be multiplied using 49 scalar multiplications instead of the obvious 64. This was a landmark in computational mathematics, and for fifty-six years, no one had improved on it for the complex-valued case. PhD dissertations had been written in the attempt. AlphaEvolve found a method that does it in 48.
The trick was counterintuitive. AlphaEvolve used complex numbers in a way that created unexpected cancellations, a strategy most human mathematicians had assumed would make the problem harder, not easier. In a world where matrix multiplication underlies virtually all of modern computing, from neural network training to 3D graphics to cryptography, even small constant-factor improvements ripple outward across billions of daily computations.
AlphaEvolve's impact was not limited to pure mathematics. The same system evolved a scheduling heuristic for Google's Borg cluster manager that reclaimed, on average, 0.7 per cent of the company's global computing resources. It sped up a critical training kernel in Gemini by 23 per cent. Then, in November 2025, Tao himself co-authored a paper with DeepMind researchers attacking 67 different mathematical problems spanning analysis, combinatorics, and geometry. It rediscovered the best known answer in most cases and beat it in several, including finding a new lower bound for the kissing number problem in eleven dimensions.
Javier Gómez-Serrano of Brown University, who collaborated with Tao on the project, said the experience had changed his view of how mathematics will be done in the future. "I believe the way we do mathematics is going to change, at least for part of the community. These kinds of models or assistants will become more widespread and will help us reach results that now take one or two years in just a few days."
There is a temptation, when describing these systems, to treat the evolutionary metaphor as merely decorative, a convenient way of naming the parts. But the parallels run deeper than vocabulary. Biology has been doing program synthesis for roughly four billion years. It uses DNA instead of Python, proteins instead of priority functions, and generations measured in minutes or millennia instead of milliseconds on a TPU pod. But the underlying logic is the same: generate variation, evaluate fitness, select and propagate the winners.
Consider the gene regulatory network inside a living cell. In 1969, the same year Strassen published his matrix multiplication result, Stuart Kauffman proposed that such networks could be modelled as Boolean circuits. Each gene is a node that can be on or off. The state of each node at the next time step is determined by a logical function of its neighbours' current states. The entire network is, in Kauffman's framing, a running computation. When a cell decides whether to divide, differentiate, or die, it is executing a program that evolution wrote.
The immune system's response to a new pathogen is a particularly striking example of this. When a B cell encounters an unfamiliar antigen, the gene encoding its antibody undergoes somatic hypermutation, a targeted burst of genetic changes at a rate roughly a million times higher than the genome's background rate. The mutated B cells then compete inside the germinal centres of lymph nodes. Only those whose altered antibodies bind the antigen most tightly survive to mutate further. Immunologists call this process affinity maturation. Computer scientists would call it an evolutionary search with an adaptive mutation rate and strong selection pressure.
The analogy between affinity maturation and FunSearch is not just poetic. In both systems, a generator produces a flood of mostly useless variants. An evaluator ruthlessly culls them. And the surviving variants are fed back into the next round of generation. The key difference is the quality of the mutation operator. An LLM trained on billions of lines of human code is, in evolutionary terms, a vastly more informed mutagen.
If the parallel between biological evolution and program synthesis holds at the level of mechanism, it holds even more strongly at the level of architecture. The most important thing evolution has learned, across every domain it has touched, is how to build systems that can keep evolving. Biologists call this property evolvability, and its central structural prerequisite appears to be modularity.
Modular systems are organised into semi-independent functional units whose internal workings can change without disrupting the rest of the organism. The human brain, for instance, is built from billions of neurons, but those neurons are not wired at random. They are organised into cortical columns, repeated processing units roughly 0.5 millimetres across, each containing around a hundred cells. Vernon Mountcastle first described these columns in the somatosensory cortex in the 1950s. Jeff Hawkins, the neuroscientist and entrepreneur, has argued that cortical columns are the fundamental computational unit of the neocortex, each one capable of building a complete model of an object or concept, and that intelligence arises from the consensus of thousands of such columns operating in parallel.
This architecture has a profound consequence for evolvability. Because changes to one column do not necessarily propagate to all the others, the brain can be modified locally. A mutation that improves the processing of one type of sensory information does not have to break everything else. Günter Wagner and others have formalised this insight in evolutionary theory: modularity allows selection to act on one trait without creating unintended side effects on others.
Software engineers, perhaps without realising it, rediscover these biological principles regularly. The microservices architecture, in which large applications are decomposed into small, independently deployable services, is an engineering implementation of biological modularity. The principle of loose coupling and high cohesion, a staple of software design since at least the 1970s, is a restatement of Wagner's argument about the relationship between modularity and evolvability.
The biologist Michael Levin, at Tufts University, has pushed this line of thinking further than almost anyone. His laboratory studies morphogenesis, the process by which a fertilised egg develops into a fully formed body, and he treats it explicitly as a computational process. In Levin's framework, cells are not passive recipients of genetic instructions. They are agents that communicate with their neighbours via bioelectric signals, voltage gradients across cell membranes that encode information about what the body is supposed to look like.
When a planarian flatworm is cut in half, each piece reliably regrows the missing parts. This is not because each cell contains a blueprint. It is because the cells collectively navigate what Levin calls an "anatomical option space," negotiating their way to the correct body plan through distributed bioelectric computation. His group has done extraordinary things with this framework. By manipulating the bioelectric patterns in frog embryos, they have produced tadpoles with eyes on their tails that can still see. They have created "xenobots," living robots assembled from frog skin cells that can move, self-organise, and even replicate in ways their genome never specifically encoded. "With a normal frog genome, you could make a xenobot as well as a frog embryo," Levin has said.
The relevance to software engineering is direct. A system that recovers from damage without a central controller, that rebuilds missing parts using only local communication between its components, is a profoundly different kind of architecture from anything in conventional computing. The robustness of biological morphogenesis is, in a very concrete sense, an existence proof for a kind of software that the tech industry has not yet figured out how to write.
AlphaEvolve's evolutionary loop in operation: the system proposes changes across multiple files of a codebase simultaneously, scores them against automated evaluators, and propagates the best-performing variants into the next generation of candidates. Google DeepMind, 2025.
The convergence of evolutionary program synthesis with neurosymbolic AI is, in retrospect, inevitable. Neurosymbolic AI has long sought to marry the pattern recognition of neural networks with the structured reasoning of symbolic systems. The challenge has always been the interface: how do you get a neural network to produce something that a symbolic engine can verify?
FunSearch solves this problem with brutal simplicity. The neural component is the language model. The symbolic component is the Python interpreter and the evaluator. The LLM generates candidate programs — neural, fuzzy, creative — and the evaluator runs them — symbolic, exact, merciless. What survives is code that actually works.
An earlier system called DreamCoder, built by Kevin Ellis, Joshua Tenenbaum, and Armando Solar-Lezama at MIT, pioneered a related idea. DreamCoder used a neural "recogniser" to propose programs and a symbolic engine to verify them, with a wake-sleep cycle that gradually built up a library of reusable abstractions. Over time, it learned to solve increasingly complex problems by composing previously learned building blocks. This is a deeply biological pattern. Evolution does not start from scratch with every new challenge. It reuses and recombines existing modules: the same Hox genes that pattern a fly's body segments also pattern a human's vertebrae.
FunSearch and AlphaEvolve do not yet build persistent libraries in the DreamCoder sense. But the direction is clear. Future systems will likely maintain growing repertoires of evolved subroutines, testing new combinations against an expanding set of challenges, accumulating computational capability over time much as biological lineages accumulate genetic innovations over evolutionary history.
It would be irresponsible to describe these systems without acknowledging their limitations. The computer scientist Ernest Davis, in a detailed analysis of the original FunSearch paper, pointed out that the system shows "remarkable shallowness" in its mathematical understanding. FunSearch does not know why its solutions work. It does not prove theorems. It does not reason about structure. The most conceptually interesting moment in the cap set work came when Ellenberg, the human mathematician, examined the evolved priority function, spotted a hidden symmetry, and used that insight to push the search further. The AI generated the artifact. The human understood it.
The dependence on automated evaluators is another significant constraint. FunSearch and AlphaEvolve work brilliantly when there is a fast, automated way to score a candidate: the size of a cap set, the number of multiplications in a matrix algorithm, the runtime of a scheduling heuristic. They struggle when no such scoring function exists, which is the case for most problems in the natural sciences, the social sciences, and indeed most of real life. As Pushmeet Kohli, who leads AI for Science at DeepMind, put it, the whole approach depends on "how much do you trust the evaluator."
There are also cost concerns. A single FunSearch run can require millions of calls to a large language model. The computational and environmental cost at scale is not trivial. And in safety-critical domains like medicine, finance, or infrastructure, an evolved heuristic that scores well on a test suite is not the same thing as one that is safe in deployment. A program that was bred rather than designed may be harder to audit, harder to explain, and harder to trust.
Despite these caveats, the trajectory is hard to mistake. Software is becoming something that can be grown, not just written. The core mechanisms — variation, evaluation, selection — are the same ones that have been producing biological complexity for four billion years. The new ingredient is a mutation operator of unprecedented quality: a language model that has internalised the collective programming intuition of millions of developers.
Kenneth Stanley, who now works on "open-endedness" at Lila Sciences, has spent two decades arguing that the most important property of biological evolution is not optimisation but novelty generation. Evolution does not just find good solutions. It finds solutions nobody was looking for. His book with Lehman, Why Greatness Cannot Be Planned, argues that rigid objective functions are the enemy of truly creative search. FunSearch's island model, with its periodic mass extinctions to maintain diversity, is a nod toward this philosophy.
The best practice emerging from this work, as multiple DeepMind researchers have noted, looks less like prompt engineering and more like something a biologist would recognise: evaluator engineering. The art is not in telling the model what to do. The art is in designing the selection pressure.
Behind all of it sits a quiet shift in how we think about software. For most of the history of computer science, programs were treated as designed objects, crystalline products of human reasoning. Biology has always known better. A program, in the natural world, is something noisy, redundant, modular, hierarchical, and above all evolvable. It is embedded in an environment that relentlessly tests it. It carries the marks of its ancestry. It contains dead code and repurposed components and accidental symmetries that turn out, on closer inspection, to be load-bearing.
The return of evolutionary program synthesis, powered by the enormous capabilities of modern language models, is not just a new technique. It is a recognition that the best engineer on the planet has always been biology, and that we are only now building tools sophisticated enough to learn from its methods. The code is finally being asked to live the way the rest of nature does. If recent results are any guide, that may turn out to be the most productive thing it has ever been asked to do.
Key references: Romera-Paredes et al., "Mathematical discoveries from program search with large language models" (Nature, 2023); Novikov et al., "AlphaEvolve: A coding agent for scientific and algorithmic discovery" (Google DeepMind, 2025); Lehman, Stanley et al., "Evolution through Large Models" (Handbook of Evolutionary Machine Learning, 2023); Georgiev, Gómez-Serrano, Tao, Wagner, "Mathematical exploration and discovery at scale" (arXiv, 2025); Chen et al., "EvoPrompting: Language Models for Code-Level Neural Architecture Search" (arXiv, 2023); Ellis et al., "DreamCoder: bootstrapping inductive program synthesis with wake-sleep library learning" (PLDI, 2021); Kauffman, The Origins of Order (Oxford University Press, 1993); Wagner and Altenberg, "Perspective: complex adaptations and the evolution of evolvability" (Evolution, 1996); Levin, "The Computational Boundary of a Self" (Frontiers in Psychology, 2019).
Daice Labs Inc.
Brookline, MA, USA
Roll the "daice"–exploration & programmable adaptation.