Papers
Topics
Authors
Recent
Search
2000 character limit reached

Petri Dish Neural Cellular Automata

Updated 4 July 2026
  • PD-NCA is a differentiable, competitive multi-agent cellular automata system that uses shared local neural update rules to simulate open-ended ecological dynamics on a 2D medium.
  • It divides cell states into attack, defense, and hidden channels, enabling multiple agents to interact, compete, and coexist through localized, soft competitive interactions.
  • The framework incorporates population-based training with evolutionary strategies to overcome fragility, fostering sustained novelty, diversity, and emergent spatio-temporal patterns.

Petri Dish Neural Cellular Automata (PD-NCA) denotes a differentiable, competitive, multi-agent cellular substrate in which multiple learned local rules interact on a shared 2D medium. In the formulation studied most directly, each “world” is a spatial field whose cell state is partitioned into attack, defense, and hidden components, while several NCA agents compete for occupancy under soft local interaction and persistent environmental disturbance. Within the broader NCA lineage, this places PD-NCA inside the family of weight-tied, locally interacting recurrent systems whose global behavior emerges from repeated application of a shared local operator, but with a decisive shift from single-pattern morphogenesis toward coexistence, territorial conflict, and open-ended ecological dynamics (Berdica et al., 13 Apr 2026, Jia, 7 Jan 2025).

1. Conceptual lineage and defining characteristics

Standard Neural Cellular Automata are commonly described as cellular automata in which each cell carries an embedding-style latent state and the transition rule is parameterized by a neural network trained end-to-end by backpropagation. The key architectural traits are local update rules, parameter sharing across space, neighborhood interaction, convolution-like structure, and iterative rollout through time (Jia, 7 Jan 2025). In related work on spatio-temporal pattern learning, NCA are also treated as learnable local-rule models of spatial media, including reaction-diffusion systems and biological pattern formation, with hidden channels acting as latent internal variables (Richardson et al., 2023).

PD-NCA retains the local, recurrent, shared-rule logic of NCA, but it is not merely a single-rule morphogenetic model. In the PD-NCA substrate extended by PBT-NCA, multiple learned species coexist in the same world, compete for territory, and interact through explicitly structured attack and defense channels rather than through a single globally shared update rule alone. Relative to prior PD-NCA work, the contribution of PBT-NCA is explicitly algorithmic and objective-based: it extends the PD-NCA substrate of Zhang, Risi, and Darlow (2025) with population-based training over worlds and a composite score based on historical novelty and contemporary diversity (Berdica et al., 13 Apr 2026).

This distinction is central. A conventional NCA is often trained against a fixed morphology, regeneration objective, or trajectory. PD-NCA instead treats the substrate as an ecology: local rules do not merely build one target, but continuously negotiate coexistence, exclusion, and survival in a shared medium.

2. World state, local competition, and cellular dynamics

A PD-NCA world is a shared 2D substrate with state tensor

XtRH×W×C,X^t \in \mathbb{R}^{H \times W \times C},

where each location stores

xu,vt=[au,vt;du,vt;hu,vt].x_{u,v}^t = [\mathbf{a}_{u,v}^t; \mathbf{d}_{u,v}^t; \mathbf{h}_{u,v}^t].

Here au,vtRCa\mathbf{a}_{u,v}^t \in \mathbb{R}^{C_a} are attack channels, du,vtRCd\mathbf{d}_{u,v}^t \in \mathbb{R}^{C_d} are defense channels, and hu,vtRCh\mathbf{h}_{u,v}^t \in \mathbb{R}^{C_h} is hidden state. The world also maintains an aliveness mask

AtRN×H×W,A^t \in \mathbb{R}^{N \times H \times W},

tracking which of the NN agents occupy which cells (Berdica et al., 13 Apr 2026).

Each agent kk is a local neural update rule fθkf_{\theta_k}. At every step, each living agent observes the local Moore neighborhood Nu,v(Xt)\mathcal{N}_{u,v}(X^t) and proposes an update

xu,vt=[au,vt;du,vt;hu,vt].x_{u,v}^t = [\mathbf{a}_{u,v}^t; \mathbf{d}_{u,v}^t; \mathbf{h}_{u,v}^t].0

The world also contains a background environment, indexed by xu,vt=[au,vt;du,vt;hu,vt].x_{u,v}^t = [\mathbf{a}_{u,v}^t; \mathbf{d}_{u,v}^t; \mathbf{h}_{u,v}^t].1, whose update is

xu,vt=[au,vt;du,vt;hu,vt].x_{u,v}^t = [\mathbf{a}_{u,v}^t; \mathbf{d}_{u,v}^t; \mathbf{h}_{u,v}^t].2

described as xu,vt=[au,vt;du,vt;hu,vt].x_{u,v}^t = [\mathbf{a}_{u,v}^t; \mathbf{d}_{u,v}^t; \mathbf{h}_{u,v}^t].3-normalized uniform noise (Berdica et al., 13 Apr 2026).

Competition is differentiable and local. For agents xu,vt=[au,vt;du,vt;hu,vt].x_{u,v}^t = [\mathbf{a}_{u,v}^t; \mathbf{d}_{u,v}^t; \mathbf{h}_{u,v}^t].4 and xu,vt=[au,vt;du,vt;hu,vt].x_{u,v}^t = [\mathbf{a}_{u,v}^t; \mathbf{d}_{u,v}^t; \mathbf{h}_{u,v}^t].5, pairwise interaction is defined by

xu,vt=[au,vt;du,vt;hu,vt].x_{u,v}^t = [\mathbf{a}_{u,v}^t; \mathbf{d}_{u,v}^t; \mathbf{h}_{u,v}^t].6

The total competitive strength of agent xu,vt=[au,vt;du,vt;hu,vt].x_{u,v}^t = [\mathbf{a}_{u,v}^t; \mathbf{d}_{u,v}^t; \mathbf{h}_{u,v}^t].7 is

xu,vt=[au,vt;du,vt;hu,vt].x_{u,v}^t = [\mathbf{a}_{u,v}^t; \mathbf{d}_{u,v}^t; \mathbf{h}_{u,v}^t].8

followed by soft normalization

xu,vt=[au,vt;du,vt;hu,vt].x_{u,v}^t = [\mathbf{a}_{u,v}^t; \mathbf{d}_{u,v}^t; \mathbf{h}_{u,v}^t].9

The next cell state is then

au,vtRCa\mathbf{a}_{u,v}^t \in \mathbb{R}^{C_a}0

and occupancy evolves as

au,vtRCa\mathbf{a}_{u,v}^t \in \mathbb{R}^{C_a}1

with au,vtRCa\mathbf{a}_{u,v}^t \in \mathbb{R}^{C_a}2 (Berdica et al., 13 Apr 2026).

The threshold has a specific ecological effect: at most two agents can coexist in one cell, which keeps boundaries fluid instead of collapsing immediately into single-owner partitions. This differentiates PD-NCA both from winner-take-all occupancy rules and from standard NCA formulations oriented toward a single emergent organism.

3. Brittleness of single-world PD-NCA and the PBT-NCA outer loop

The motivating diagnosis behind PBT-NCA is that standard PD-NCA is highly expressive but extremely fragile. With fixed hyperparameters, single-world training often collapses into one of three regimes: frozen equilibrium, monoculture, or noisy disorder. The paper treats this as a central obstacle to open-ended discovery, because neither collapse to stasis nor collapse to noise yields sustained emergence of new forms (Berdica et al., 13 Apr 2026).

PBT-NCA addresses this by evolving whole adaptive ecosystems rather than single parameter vectors. Each world au,vtRCa\mathbf{a}_{u,v}^t \in \mathbb{R}^{C_a}3 contains resident NCA weights, optimizer states, mutable world state, rollout counters, and learning hyperparameters such as learning rate, batch size, and steps per update. The outer loop is:

  1. Initialize a population au,vtRCa\mathbf{a}_{u,v}^t \in \mathbb{R}^{C_a}4 and an empty archive au,vtRCa\mathbf{a}_{u,v}^t \in \mathbb{R}^{C_a}5.
  2. For each meta-iteration:
    • train or roll out each world for au,vtRCa\mathbf{a}_{u,v}^t \in \mathbb{R}^{C_a}6 inner steps,
    • compute its score au,vtRCa\mathbf{a}_{u,v}^t \in \mathbb{R}^{C_a}7,
    • add the top-au,vtRCa\mathbf{a}_{u,v}^t \in \mathbb{R}^{C_a}8 descriptors to the archive.
  3. Every au,vtRCa\mathbf{a}_{u,v}^t \in \mathbb{R}^{C_a}9 meta-iterations, replace the bottom du,vtRCd\mathbf{d}_{u,v}^t \in \mathbb{R}^{C_d}0 fraction of worlds with offspring from the top du,vtRCd\mathbf{d}_{u,v}^t \in \mathbb{R}^{C_d}1 fraction using copy, crossover, mutation, and weight perturbation (Berdica et al., 13 Apr 2026).

A replacement child is produced in four stages. First, the parent world is deep-copied, including weights, optimizer state, world state, and hyperparameters. Second, each hyperparameter is independently retained from the copied parent with probability du,vtRCd\mathbf{d}_{u,v}^t \in \mathbb{R}^{C_d}2. Third, each hyperparameter is perturbed with probability du,vtRCd\mathbf{d}_{u,v}^t \in \mathbb{R}^{C_d}3 by multiplying by either du,vtRCd\mathbf{d}_{u,v}^t \in \mathbb{R}^{C_d}4 or du,vtRCd\mathbf{d}_{u,v}^t \in \mathbb{R}^{C_d}5, clipping to its allowed range, and rounding if integer-valued. Fourth, independent Gaussian noise is added to all trainable network parameters (Berdica et al., 13 Apr 2026).

Setting Value Role
Population size du,vtRCd\mathbf{d}_{u,v}^t \in \mathbb{R}^{C_d}6 30 Number of worlds
Meta-iterations du,vtRCd\mathbf{d}_{u,v}^t \in \mathbb{R}^{C_d}7 500 Outer-loop horizon
Inner rollout du,vtRCd\mathbf{d}_{u,v}^t \in \mathbb{R}^{C_d}8 12 Per-world rollout length
Exploit-explore period du,vtRCd\mathbf{d}_{u,v}^t \in \mathbb{R}^{C_d}9 5 Replacement interval
Replacement fraction hu,vtRCh\mathbf{h}_{u,v}^t \in \mathbb{R}^{C_h}0 0.25 Bottom/top fraction used
Archive insertion hu,vtRCh\mathbf{h}_{u,v}^t \in \mathbb{R}^{C_h}1 2 Descriptors added each round
Novelty neighbors hu,vtRCh\mathbf{h}_{u,v}^t \in \mathbb{R}^{C_h}2 8 kNN novelty score
Default agents per world 3 Unless otherwise stated

Within-world optimization uses Adam. Unless otherwise stated, each world contains 3 NCA agents, though 5-agent and 7-agent settings are also studied. The baseline compute budget matches random search by giving each world a total of hu,vtRCh\mathbf{h}_{u,v}^t \in \mathbb{R}^{C_h}3 rollout or training iterations (Berdica et al., 13 Apr 2026).

4. Novelty, diversity, and edge-of-chaos evaluation

The PBT-NCA score is explicitly composite:

hu,vtRCh\mathbf{h}_{u,v}^t \in \mathbb{R}^{C_h}4

The first term, historical behavioral novelty, is based on a handcrafted trajectory descriptor. For each world, species-level alive-mass fractions over time are summarized by mean occupancy hu,vtRCh\mathbf{h}_{u,v}^t \in \mathbb{R}^{C_h}5, temporal standard deviation hu,vtRCh\mathbf{h}_{u,v}^t \in \mathbb{R}^{C_h}6, mean frame-to-frame occupancy change hu,vtRCh\mathbf{h}_{u,v}^t \in \mathbb{R}^{C_h}7, winner-map entropy hu,vtRCh\mathbf{h}_{u,v}^t \in \mathbb{R}^{C_h}8, and mean absolute alive-mass change hu,vtRCh\mathbf{h}_{u,v}^t \in \mathbb{R}^{C_h}9. These are concatenated into

AtRN×H×W,A^t \in \mathbb{R}^{N \times H \times W},0

then AtRN×H×W,A^t \in \mathbb{R}^{N \times H \times W},1-normalized. Novelty is the average Euclidean distance to the AtRN×H×W,A^t \in \mathbb{R}^{N \times H \times W},2 nearest archived descriptors:

AtRN×H×W,A^t \in \mathbb{R}^{N \times H \times W},3

with AtRN×H×W,A^t \in \mathbb{R}^{N \times H \times W},4 (Berdica et al., 13 Apr 2026).

The second term, contemporary visual diversity, uses a frozen DINOv2 encoder. For sampled frame AtRN×H×W,A^t \in \mathbb{R}^{N \times H \times W},5 of world AtRN×H×W,A^t \in \mathbb{R}^{N \times H \times W},6, the embedding is

AtRN×H×W,A^t \in \mathbb{R}^{N \times H \times W},7

and pairwise distance is

AtRN×H×W,A^t \in \mathbb{R}^{N \times H \times W},8

The diversity score is the median distance to the rest of the current population, averaged over sampled frames:

AtRN×H×W,A^t \in \mathbb{R}^{N \times H \times W},9

The paper notes that monocultures and dead states are selected against primarily through this novelty/diversity design rather than by a separate explicit penalty term (Berdica et al., 13 Apr 2026).

The same work also introduces two quantitative proxies for the claimed edge-of-chaos regime. Ecological Persistence is

NN0

where NN1 is per-pixel entropy of the agent aliveness distribution. Effective Complexity is defined as

NN2

combining normalized spatial entropy with an LZ77 compressibility ratio. The intended interpretation is that pure order and pure noise both yield low complexity, while structured intermediate variability yields larger values (Berdica et al., 13 Apr 2026).

5. Emergent regimes and relation to broader NCA research

Empirically, PBT-NCA produces a continuing sequence of qualitatively distinct regimes over hundreds of meta-iterations. Reported behaviors include highly regular periodic waves, traveling spiral waves, coordinated oscillatory domains, spore-like scattering and colonization, migrating macro-structures with coherent outer boundaries and active interiors, trail-following locomotion, shooters, archipelago-like territorial patterns, and, in larger-agent or extended-hyperparameter settings, glider-like or spaceship-like rigid structures (Berdica et al., 13 Apr 2026).

Across 3-agent, 5-agent, and 7-agent settings, mean population score and mean novelty show an initial decline followed by a steady increase, interpreted as continual discovery. Larger numbers of NCAs retain higher novelty later in training. Successful runs tend to favor higher learning rates and smaller batch sizes, which the authors interpret as injecting gradient noise and faster updates that help prevent collapse into stagnant equilibria. In 7-agent worlds, the reported edge-of-chaos statistics are NN3, mean species entropy NN4 bits, and effective complexity NN5 (Berdica et al., 13 Apr 2026).

These ecological dynamics sit within a wider NCA research program. Work on spatio-temporal pattern learning treats NCA as local-rule models of reaction-diffusion and Turing-like systems, with explicit use of identity, Laplacian, and gradient kernels and strong relevance to biological pattern formation (Richardson et al., 2023). Work on dynamic texture NCA isolates an architectural heuristic for sustaining visible motion: to preserve emergent dynamics, the hidden width NN6 of the per-cell update MLP should exceed the state-channel count NN7, and in practice NN8 is recommended (Xu et al., 2024). Research on physical NCA shows that shared local update rules, persistent hidden state, and iterative consensus can survive transfer into hardware modules with cardinal-neighbor communication, quantized messages, asynchronous timing, and microcontroller memory limits (Walker et al., 2022). A distinct line of work on universal or programmable NCA reframes the substrate as a medium for in-state computation, separating mutable state from immutable local “hardware,” which suggests a close affinity between PD-NCA and programmable spatial computation (Béna et al., 19 May 2025).

Taken together, these surrounding results suggest that PD-NCA is best understood not as an isolated architecture but as one specialization of a broader class of learned local dynamical systems spanning morphogenesis, PDE surrogates, embodied modules, and spatial computation.

6. Interpretive status, limitations, and research directions

PD-NCA is often associated with open-endedness, but the strongest claims remain conditional. In PBT-NCA, the open-endedness argument depends on a specific meta-evolutionary regime, a handcrafted behavioral descriptor, a DINOv2-based visual diversity term, and proxy metrics such as Ecological Persistence and Effective Complexity. The same paper states clear limitations: compute cost is substantial; reproducibility may be challenging because the system is sensitive to initialization, hyperparameters, and stochastic replacement; the novelty metric depends on a hand-designed descriptor; DINOv2 may introduce anthropocentric or natural-image biases; and the edge-of-chaos evidence is suggestive rather than definitive, since the analysis does not use stronger dynamical-systems diagnostics such as Lyapunov spectra (Berdica et al., 13 Apr 2026).

A second limitation is conceptual. Standard NCA can often be analyzed as a local, convolution-like recurrent operator, and work connecting NCA with Deep Equilibrium Models argues that such systems can be viewed through their limiting states, fixed points, and stability properties. That perspective suggests possible tools for long-horizon PD-NCA training—especially implicit differentiation and stability theory—but these are proposals rather than established PD-NCA methods (Jia, 7 Jan 2025).

Physical and continuous-space extensions indicate plausible directions but also define current boundaries. Battery-powered modular robotic platforms already realize persistent local state, orientation-aware local communication, and reconfiguration without reset, but they remain discrete, rigid, and UART-mediated rather than biochemical or continuous (Woiwode et al., 8 Oct 2025). Neural Particle Automata generalize NCA from static lattices to moving particles with dynamic neighborhoods and SPH-based local perception, which is a close abstraction for sparse, mobile cell populations, but that framework keeps particle count fixed during a rollout and cannot merge or split particles (Kim et al., 22 Jan 2026).

The most explicit future directions proposed for PBT-NCA are scaling to larger grids and more agents using accelerated frameworks such as CAX and large-scale evolution strategies, and co-evolving not only NCA weights and scalar hyperparameters but also architectures, environments, and update strategies themselves (Berdica et al., 13 Apr 2026). A plausible implication is that PD-NCA research is moving toward a view of the “dish” not as a single trained automaton, but as an evolving ecosystem of local rules, mutable worlds, and adaptive search procedures whose interesting behavior depends as much on outer-loop selection as on inner-loop cellular dynamics.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Petri Dish Neural Cellular Automata (PD-NCA).