Dalarna University Shows Small Transformers Can Evolve Like Living Organisms
A researcher shows small transformers can emit code that trains their own offspring, mutate across generations, and adapt under selection, meeting Darwinian criteria for life.
Takeaways
- Hintze demonstrates small transformers can self-replicate via genome code, weight mutation, or teaching offspring from samples (paper).
- Five flagship LLMs and open-weight Qwen3.6 27B and Gemma 4 31B wrote genomes that produced reproducing grandchildren.
- Evolved lineage reached 0.96 on a block-catching perception task from 0.475 ancestor baseline in 72 steps.
- Weights-as-genome run of 100 populations over 5,000 generations hit 77% best accuracy at 1e-5 mutation rate.
- Selection drives mutation rates down; a language model can in principle reach zero mutation, capping evolution.
- Flagship LLMs teaching their own offspring remains technically and economically infeasible; no code or weights released.
A preprint by Arend Hintze at Dalarna University reports that small transformer language models can produce descendants that inherit code or weights, acquire heritable variations, and improve under selection. Several frontier models generated the Python programs that drive these reproductive loops. The replicating networks contain roughly 1.2 million parameters and run with scripts and compute supplied by researchers. The manuscript is under review at Artificial Life, with peer review still pending.
Hintze uses self-replication in a narrow technical sense: one model’s output becomes inherited material for another model, which can then produce another generation. Every experiment runs inside a researcher-controlled environment. The paper uses three conditions as its operational test of Darwinian evolution, leaving broader definitions of life outside the experiment:
- Inheritance: descendants receive information from their parents.
- Heritable variation: copying introduces differences that descendants can pass on.
- Selection: variants differ in reproductive success under a defined fitness measure.
Python serves as the genome
In the program-genome experiment, a self-contained Python file builds a small transformer, trains it on its own source text, and saves the resulting weights. Sampling the trained network produces another copy of the file. That emitted file can execute the same process to train a grandchild, creating a multigenerational loop.
The generated network uses familiar GPT-style components: three decoder blocks with causal self-attention and 1,185,409 parameters in total. Causal attention restricts each token to information from earlier tokens, allowing the model to generate the genome one token at a time.
Hintze tested whether larger language models could write this genome from a prompt. The reported results cover three groups:
- Flagship models: Five of nine systems from providers including OpenAI, Google, xAI, DeepSeek, and NVIDIA produced a working genome.
- Large open-weight models: Two of seven models with 14 billion to 32 billion parameters succeeded: Qwen3.6 27B and Gemma 4 31B.
- Local models: None of 18 models with up to 30 billion parameters succeeded when run with 4-bit quantization, a memory-saving format that stores each weight at reduced precision.
Success required more than emitting plausible code. The generated genome had to train an offspring that reproduced the genome again. Because model family, parameter count, and quantization varied together, the local runs do not isolate which factor caused their failures.
Selection rewards reliable copies
To test selection, Hintze ran populations of 100 digital organisms under a fixed compute budget. Imperfect text generation introduced mutations into copied genomes. Variants that produced more exact copies left more descendants, so copying accuracy became the fitness measure. In the headline run, reported fitness rose from roughly one exact copy to 20 over 16 generations.
Three additional lineages carried information or behavior alongside the replication machinery:
- Alive: a story and a word list accompanied the genome.
- Knowledge: the lineage carried 100 question-and-answer facts.
- Block-catch: the lineage controlled an agent that catches two-cell blocks and avoids four-cell blocks in a wrap-around environment, where crossing one edge returns the agent on the opposite side.
The block-catch lineage improved from an ancestral score of 0.475 to 0.8 at step 8, 0.9 at step 41, and 0.96 at step 72. That score measures performance on the specific controller task. Content without direct selection pressure drifted across generations, including stories, facts, and portions of the replication program.
Parameters become inherited material
In the second replication mode, the parent’s parameter file serves as the genome. The model emits a compact bootstrap program that reconstructs the network, loads the parent weights, mutates them according to a per-weight probability, and saves the resulting child. This design transfers inheritance through numerical parameters instead of source text.
For each of four mutation-rate conditions, the study ran populations of 100 organisms for 5,000 generations. Mean block-catch accuracy reached 57 to 60 percent from an ancestral baseline of 50 percent. The best population reached 77 percent with a per-weight mutation probability of 10−5. At 10−4, 75 of 100 populations became extinct.
The mutation sweep exposes a trade-off between faithful inheritance and useful variation. High rates damage working parameters faster than selection can preserve them, while lower rates maintain viable descendants. The paper argues that selection therefore favors increasingly accurate copying. A software-encoded mutation rate can reach exactly zero, eliminating heritable variation and halting further Darwinian adaptation unless another source of change remains available.
Frontier-scale replication remains expensive
The frontier systems’ demonstrated contribution was genome authorship. Their full parameter sets remained outside the reproductive loop. In the teaching experiment, Qwen3 supplied samples to a smaller transformer, a process related to knowledge distillation. The 0.6-billion-parameter Qwen3 variant could not author the genome from the original prompt, so it was fine-tuned to emit one. After days of compute, the fine-tuned child reached roughly one-third of the parent’s reported capability.
At flagship scale, copying weights would require substantial storage and data movement, while training a successor would require extensive inference and accelerator time. The paper argues that these resource demands would make covert proliferation of a current large model detectable. Improvements in hardware, training efficiency, and model compression could weaken that constraint.
The evidence is inspectable, with gaps
No repository or model weights accompany the preprint. The appendices print the genomes themselves, exposing the core programs, but independent reproduction still requires reconstructing the orchestration code, configurations, environments, and trained artifacts used for the reported runs.
The work joins a broader safety literature on model self-replication, including the SOCK benchmark and evaluations of autonomous task completion. Those studies examine practical behavior in agent settings; Hintze isolates inheritance, variation, and selection in controlled digital populations.
Because every evolved lineage was small, sandboxed, and supplied with an execution loop, the results support a bounded claim: small transformers can undergo Darwinian evolution under designed conditions, and frontier models can author the compact Python machinery that enables it. Autonomous GPT-class replication remains outside the experiment’s evidence, leaving resource acquisition, independent execution, and scaling behavior as open research questions.