Evolving Many Worlds
Petri Dish NCA are learning ecosystems that rarely stay interesting: they freeze, dissolve into noise, or are taken over by a single species. Evolve thirty of them at once under a target that keeps moving, be unlike the past and unlike each other, and new forms of artificial life keep appearing for 500 generations.
- Petri Dish NCA (PD-NCA) put several neural cellular automata on one grid, where they compete for cells and keep learning by gradient descent while they do. The dynamics can be rich, but large regions of their hyperparameter space end in frozen equilibria, structureless noise or a monoculture.
- PBT-NCA evolves a population of 30 such worlds with population-based training under a non-stationary objective. A world scores by how different its rollout is from an archive of past behaviors and, through a frozen DINOv2 encoder, from the other worlds of the current population.
- Every five meta-iterations the lowest-scoring quarter is replaced by Lamarckian copies of elite worlds, which inherit weights, optimizer state and the grid itself before their hyperparameters are crossed over and mutated and their weights perturbed.
- Over 500 meta-iterations the population keeps producing new regimes: shooters, gliders, spiral waves, amoebas, colonies that eject spores, ant-like trails and circuit-like spaceships. Two metrics place it at the edge of chaos: ecological persistence near 1.0 and effective complexity of 0.21 ± 0.05.
A Petri dish that learns
Cellular automata are the classic model of complexity from local rules: each cell updates from its neighborhood, and gliders, guns and self-replicators appear in systems as simple as the Game of Life. Neural cellular automata learn the update rule instead of writing it down, training a small network to grow, maintain and regenerate a target pattern. Petri Dish NCA turn this into an ecology. Several NCAs, the agents, share one grid, which we call a world. They compete for its cells, and they never stop learning.
Each cell of a world holds a feature vector of attack channels, defense channels and hidden channels, together with an aliveness value per agent that records which agents occupy it. At every step, each agent alive near a cell looks at the cell's 3×3 neighborhood, and its network proposes an update . A background environment, entity , proposes a random, static update of its own: a harsh climate that every agent has to keep defending against just to survive.
Who gets the cell is decided by cosine similarities between the proposals. Agent gains on agent when its attack points along 's defense, and loses when 's attack points along its own:
where the sum runs over every other agent present and the environment. The strengths become shares , so the competition is not winner-takes-all: the cell moves to a share-weighted blend of every proposal,
The shares also decide survival. Agent stays alive in the cell while ; below that it dies there, and its influence is redistributed. Three shares cannot all exceed 0.4, so at most two agents coexist in a cell, which keeps territorial borders fluid.
This figure is interactive and needs JavaScript.
The second level is learning. Every rollout steps, each agent takes a gradient step that maximizes its log-aliveness over the whole grid,
That is the entire objective: grow. Nothing asks for structure, cooperation or movement.
Left alone, most dishes stall
This simple drive is also the problem. In a single world, once one interaction pattern dominates, gradient descent tends to reinforce it. The high-dimensional space of PD-NCA settings is full of regions where the dynamics freeze into static equilibria, dissolve into high-entropy noise, or collapse into a monoculture in which one agent occupies every cell. Two baselines from the paper show what this looks like with three agents.
PD-NCA · iter 100
iter 50,000
iter 100,000
Random search · meta-iter 145
meta-iter 485
meta-iter 495Evolving many worlds
PBT-NCA wraps PD-NCA in population-based training (PBT), but makes selection explicitly non-stationary. The goal is not to converge to one optimum. It is to keep a population of worlds that stay behaviorally novel, visually distinct and dynamically alive. Earlier work such as ASAL used foundation models to search over frozen world configurations; here the selection pressure acts on worlds whose agents interact with each other and keep adapting their update rules.
A world is the full state of an ongoing ecosystem: the parameters of all its agents, their optimizer states, the grid with its counters, and the hyperparameters of its learning, namely the learning rate, the batch size and the number of steps per update. One meta-iteration does the following.
- ROLL OUT Every world runs for inner steps with cell updates and gradient steps interleaved, so its agents keep adapting while it is evaluated. The whole trajectory is scored, not only its last frame: worlds that end alike can differ in how long their agents coexisted, competed or collapsed.
- SCORE Each world gets , the sum of its novelty with respect to the past and its visual diversity with respect to the present population, both defined below.
- ARCHIVE The behavior descriptors of the two top-scoring worlds are appended to a first-in, first-out archive; once it is full, the oldest entries are dropped.
- EXPLOIT AND EXPLORE Every meta-iterations, the lowest-scoring quarter of the population is replaced by mutated copies of elite worlds.
Novelty against the past
Comparing raw grids would be brittle, so each rollout is summarized with statistics borrowed from ecology. At every inner step we compute the fraction of the total alive mass held by each entity, the agents and the environment. From these time series we take each entity's mean occupancy , its variability over time and its frame-to-frame turnover , plus two scalars: the entropy of the winner map, which measures how mixed or monopolized the world is, and the mean change of the alive mass . Concatenated and -normalized, they form a descriptor that keeps collapse, oscillation, dominance, and stable or volatile coexistence apart. A world's novelty is its mean distance to the nearest descriptors in the archive,
Diversity against the present
The descriptor knows nothing about shape, texture or color. To capture those, every frame of every rollout is embedded with a frozen DINOv2 encoder, and each world is compared with the other worlds of the population at the same time step. To be robust to outliers, a world's diversity at a frame is its median cosine distance to the others, and the score averages this over the rollout:
A world scores high on when it shows structures the rest of the population is not producing right now, even if its ecological statistics look ordinary.
The two terms pull in different directions on purpose. rewards a world for being unlike everything the run has archived, for being unlike its contemporaries. Both references move with every meta-iteration, so a world cannot settle into a trick that scored well once.
Exploit, then explore
Every five meta-iterations the population is ranked by , and the bottom , eight of the 30 worlds, are discarded. Each is replaced by a child of a parent drawn uniformly from the elite, made in four stages, the first three adapted from PBT:
- Copy. The parent world is deep-copied into the child: weights, optimizer state, grid and hyperparameters. Inheritance is Lamarckian, so descendants do not restart from a random initialization but continue a partly developed ecology.
- Crossover. Each hyperparameter keeps the parent's value with probability 0.5 and otherwise reverts to the child's previous value.
- Mutation. With probability 0.1, each hyperparameter is multiplied by 1.2 or 0.8 and clipped to its range.
- Weight perturbation. Gaussian noise is added to all network weights, a local variation that leaves the inherited world intact.
The method therefore runs on two time scales. Within a rollout, gradient descent shapes what each world's agents do. Across meta-iterations, selection decides which ecological regimes survive, diversify and keep developing. All experiments use worlds, 500 meta-iterations, , and , with Adam for the agents' weights and three agents per world unless stated otherwise.
What evolved
None of what follows was asked for. There is no objective for movement, cooperation or structure; everything below is a by-product of competing for territory under a pressure to be new. Every clip is a real rollout from the paper's runs. Colors are agents, and black is the environment.
The resemblances to natural and artificial life are hard to miss. Guns and gliders are the canonical mobile structures of discrete and continuous cellular automata, from the Game of Life to Lenia. The traveling spiral waves resemble the rotating spirals of cyclic competition in mobile populations, and their nested territories echo the hypercycles of prebiotic chemistry. The split into stable macro-structures and volatile frontiers mirrors the genetic drift at the expanding edges of microbial populations, the ejected clusters that colonize new ground mirror the spatial migration of microbes, and the amoebas are reminiscent of motility-induced phase separation. Stable regular domains with complex, interacting boundaries are, as Crutchfield and Mitchell argued, a prerequisite for emergent computation. That PBT-NCA finds them without the pattern-specific losses earlier work needed is a promising sign that it could also discover computational primitives.
A wider search space, a different kind of life
Two more hyperparameters change the character of what evolves: the temperature of the competition's softmax, and the fraction of hidden channels each agent may update. Given this extended search space, PBT-NCA abandons the fluid, organic morphologies in favor of rigid, circuit-like geometric expansions, with spaceships, gliders and signals that propagate as in discrete and continuous cellular automata. Selection scales along the hyperparameter dimensions too, and opens up a new class of behavior.
Novelty that does not run out
If the pressure works, new behaviors should keep appearing for as long as the run lasts. The mean composite score , the average of over the 30 worlds of the population, makes this measurable: in every configuration it first declines, then climbs steadily and stays up. The hero at the top of this post steps through one run with seven agents per world; here it is as in the paper, with frames of the highest-scoring world along the way.
The picture is the same with three, five and seven agents per world, over three runs each. Worlds with more agents keep more novelty late in training. Selection also has a clear preference about how worlds should learn: the best world drifts toward higher learning rates and smaller batches, noisier and faster updates that keep it from collapsing into a stagnant equilibrium.
At the edge of chaos
Complex behavior is expected in the narrow regime between frozen order and structureless randomness, the edge of chaos. Two metrics test whether PBT-NCA operates there, tracked over the 500 meta-iterations of the seven-agent runs. Ecological persistence is the fraction of frames in which several species coexist,
where is the per-pixel entropy of the agents' aliveness at time . It is low under extinction and under monoculture alike. Effective complexity, after Gell-Mann and Lloyd, multiplies the normalized spatial entropy of a frame by its compressibility,
so it vanishes for pure order () and for pure noise (), and peaks only when a pattern is varied and structured at once.
frames with coexisting species
82% of the maximum
complexity
meta-iterations
Ecological persistence stays at 1.0 for most of training, with brief dips: in most rollouts, several species stay above threshold in every frame. The mean species entropy is about 2.3 bits, 82% of the maximum . Effective complexity averages 0.21 ± 0.05, well above the zero of both the ordered and the chaotic regime, and within individual rollouts the later runs hold it flat and elevated. The competitive pressure keeps the population at the edge of chaos instead of letting it drift to either side.
Why it keeps going
We think the sustained diversity comes from Red Queen dynamics. No agent can settle, because the agents around it keep adapting, and no world can settle, because the score rewards lineages that break away from both the archived past and the present population. Because inheritance is Lamarckian, descendants start from partly developed ecologies rather than from scratch, so survival strategies can compound over generations instead of being rediscovered every time.
The natural next steps are scale and co-evolution. Hardware-accelerated frameworks such as CAX and evolution strategies at hyperscale should allow much larger grids and many more agents, and with them a study of how emergent dynamics in PD-NCA scale. Beyond hyperparameters, the same loop could co-evolve architectures, environments and the update rules themselves.
Citation
@misc{berdica2026pbtnca,
title = {Evolving Many Worlds: Towards Open-Ended Discovery in Petri Dish NCA
via Population-Based Training},
author = {Uljad Berdica and Jakob Foerster and Frank Hutter and Arber Zela},
year = {2026},
eprint = {2604.11248},
archivePrefix = {arXiv},
primaryClass = {cs.NE},
url = {https://arxiv.org/abs/2604.11248}
}
The design of this post was inspired by Morpho from Paradigms of Intelligence.