Arber Zela
GitHub

META-ITERATION 20 · NOISE

Early in the run the best of the 30 worlds is high-entropy noise: seven agents mixed cell by cell, with nothing that lasts. The mean score is at its lowest.

Paper ➜
Paper · artificial life · open-endedness

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.

TL;DR
  1. 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.
  2. 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.
  3. 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.
  4. 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.

One contested cell. The competition rule above, evaluated live for three agents and the environment. Each entity proposes an attack direction (solid arrow) and a defense direction (hollow arrow); two attack and two defense channels make them directions in the plane, as in the released configuration. Drag an arrowhead, or focus it and use the arrow keys, to watch the strengths and the shares respond; an entity survives in the cell only while its share stays above .

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 with fixed hyperparameters at iteration 100: high-entropy noisePD-NCA · iter 100
PD-NCA with fixed hyperparameters at iteration 50,000: high-entropy noiseiter 50,000
PD-NCA with fixed hyperparameters at iteration 100,000: high-entropy noiseiter 100,000
Random search at meta-iteration 145: blobs of three agentsRandom search · meta-iter 145
Random search at meta-iteration 485: nested square spiralsmeta-iter 485
Random search at meta-iteration 495: a maze of nested spiralsmeta-iter 495
Two baselines, three agents each. Top: PD-NCA with the original fixed hyperparameters at iterations 100, 50,000 and 100,000, high-entropy noise throughout. Bottom: random search, which samples hyperparameters uniformly from the PBT-NCA search space with the same population size and compute, finds some regular, cyclic patterns. Colors are agents; black is the environment.

Evolving 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.

  1. 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.
  2. 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.
  3. 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.
  4. EXPLOIT AND EXPLORE   Every meta-iterations, the lowest-scoring quarter of the population is replaced by mutated copies of elite worlds.
Diagram of one PBT-NCA meta-iteration: rollout and score, archive update, exploit-explore with copy, crossover, mutate and perturb
One meta-iteration. Each square is a PD-NCA world: weights, optimizer, grid and hyperparameters. All worlds are rolled out and scored (1), the descriptors of the top worlds enter the FIFO archive (2), and the lowest-scoring worlds are replaced by mutated copies of elite parents (3).

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,

Diagram of the behavior descriptor: species fractions over time, mean, standard deviation and turnover per entity, winner entropy and alive-mass change, and kNN novelty against the archive
The behavior descriptor. The alive mass of each entity, summed over space and normalized per step, gives species-fraction time series. Their statistics form the descriptor, which is scored by its mean distance to its nearest neighbors 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.

Diagram of the visual diversity score: DINOv2 embeddings of frames at the same time step, pairwise cosine distances and row medians
Visual diversity. At each time step the frames of all worlds are embedded with DINOv2; a world's score is its median cosine distance to the other worlds, averaged over the rollout.

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.

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.

Shooters · meta-iter 20
Archipelago · meta-iter 125
Ant locomotion · meta-iter 370
Self-replication
Worlds with three agents. Shooters: stable territorial clusters emit projectile-like structures, like the glider guns of classical cellular automata. Archipelago: small, persistent islands hold their territory in open water. Ant locomotion: a trail of red cells works its way along the border of a blue territory, coordinated without any central control. Self-replication: a large red entity ejects small clusters of cells that colonize distant parts of the substrate.
Noise · meta-iter 20
Spiral waves · meta-iter 145
Amoeba · meta-iter 230
Pirate world · meta-iter 310
Alien · meta-iter 395
Glider · meta-iter 460
One run with seven agents, from noise to gliders. The highest-scoring world of the population at six meta-iterations. Early on it is high-entropy noise. Then come traveling spiral waves and amoebas, fluid, shape-shifting macro-structures that migrate across the dish with coordinated, differentiated cell behavior. Later, a "pirate world" combines an archipelago with shooters; in the "alien" world the environment reclaims almost everything except a thin violet outline near the edge; and a small red glider crosses the dish diagonally.

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.

Sharp borders · meta-iter 20
Circuits
The extended search space, three agents. Left: territories with sharp, straight borders and a striped, circuit-like structure growing in one corner. Right: a later world in which striped, wire-like structures spread through a red territory like the traces of a circuit board.

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.

Mean composite score over 500 meta-iterations for one run with seven agents per world, with frames of the highest-scoring world at thirteen meta-iterations
One run, 30 worlds of seven agents. The population's mean composite score over 500 meta-iterations (rolling mean over 10), with frames of the highest-scoring world at thirteen of them. Eight of these rollouts play in the hero above.

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.

Mean composite score and mean novelty over meta-iterations for PBT-NCA with 3, 5 and 7 agents and for random search with 3 agents
Composite score and novelty, with 3, 5 and 7 agents. Mean composite score (solid, left axis) and mean novelty (dashed, right axis) of the population over meta-iterations, mean ± std over three runs each, together with the random-search baseline.
Learning rate, batch size and steps per update of the best world over 500 meta-iterations, seven agents
How the best world learns (seven agents). Learning rate, batch size and steps per update of the population's best member at each meta-iteration; dots are the sampled values.

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.

≈ 1.0
ecological persistence
frames with coexisting species
2.3 bits
mean species entropy
82% of the maximum
0.21 ± 0.05
mean effective
complexity
30 × 500
worlds ×
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.

Species entropy and effective complexity over rollout frames colored by meta-iteration, and ecological persistence and effective complexity over meta-iterations
Edge-of-chaos metrics, seven agents. Top: species entropy and effective complexity over the frames of individual rollouts, colored by meta-iteration. Bottom: ecological persistence (blue) and effective complexity (green) per meta-iteration, with the mean composite score (dashed).

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}
}

Arber Zela

Postdoctoral Researcher, Ecole Polytechnique Fédérale de Lausanne (EPFL)

The design of this post was inspired by Morpho from Paradigms of Intelligence.