Papers
Topics
Authors
Recent
Search
2000 character limit reached

Visualising the Attractor Landscape of Neural Cellular Automata

Published 12 Apr 2026 in cs.NE and cs.ET | (2604.10639v1)

Abstract: As Neural Cellular Automata (NCAs) are increasingly applied outside of the toy models in Artificial Life, there is a pressing need to understand how they behave and to build appropriate routes to interpret what they have learnt. By their very nature, the benefits of training NCAs are balanced with a lack of interpretability: we can engineer emergent behaviour, but have limited ability to understand what has been learnt. In this paper, we apply a variety of techniques to pry open the NCA black box and glean some understanding of what it has learnt to do. We apply techniques from manifold learning (principal components analysis and both dense and sparse autoencoders) along with techniques from topological data analysis (persistent homology) to capture the NCA's underlying behavioural manifold, with varying success. Results show that when analysis is performed at a macroscopic level (i.e. taking the entire NCA state as a single data point), the underlying manifold is often quite simple and can be captured and analysed quite well. When analysis is performed at a microscopic level (i.e. taking the state of individual cells as a single data point), the manifold is highly complex and more complicated techniques are required in order to make sense of it.

Summary

  • The paper introduces a novel methodology using manifold learning and persistent homology to visualize and analyze attractor landscapes in Neural Cellular Automata.
  • It demonstrates how both macroscopic dynamics and intricate microscopic cell behaviours contribute to the emergence of stable attractor cycles.
  • The study bridges gaps in interpretability for differentiable CA models, paving the way for reliable deployment in adaptive computational systems.

Visualising the Attractor Landscape of Neural Cellular Automata

Introduction

The investigation of interpretability in Neural Cellular Automata (NCAs) is increasingly critical, as these systems transition from abstract models of morphogenesis to practical frameworks in computational biology, adaptive computation, and artificial life. The opacity intrinsic to black-box neural NCA update rules complicates mechanistic understanding and prevents rigorous confidence in their operational behaviours. This paper introduces a technical methodology for visualising and analysing the attractor landscape of NCAs, employing state-of-the-art manifold learning and topological data analysis to interrogate both global (macroscopic) and cell-level (microscopic) system dynamics (2604.10639). Figure 1

Figure 1: Schematic of the NCA update step, depicting the composition of the neural update operation and network structure.

Neural Cellular Automata Formalism and Motivation

The NCA generalizes classical cellular automata by replacing discrete update rules with differentiable, parameterized neural networks. Each cell maintains a real-valued state vector, and update dynamics are spatially local through convolutions and parametric reaction terms. The CA morphogenesis task can thus be formulated as partial differential equation parameter learning, where the NCA is trained to produce target macroscale patterns (e.g., the canonical gecko example) or self-organising textured outputs from seed states. Differentiability enables backpropagation-based optimization of behaviour, but forfeits interpretability present in rule-based automata. Figure 2

Figure 2

Figure 2

Figure 2: Examples of classic and texture target patterns used in NCA training, spanning static shape morphologies and dynamic, structured textures.

Manifold Learning and Persistent Homology as Analytical Tools

Macroscopic and Microscopic State Representations

The NCA state space, both at the grid and cell level, is nominally very high-dimensional; however, typical system dynamics are believed to evolve on low-dimensional, structured manifolds. Macroscopic analysis vectorizes the full grid at each timestep, while microscopic analysis instead considers the time evolution of individual cell state vectors.

Dimensionality Reduction Techniques

Principal Component Analysis (PCA), dense and sparse autoencoders (AEs and SAEs), and parametric UMAP are leveraged for manifold learning. While PCA efficiently identifies linear structure, autoencoders (especially non-linear, convolutional, and sparse variants) are essential for reconstructing non-linear attractor geometry and identifying underlying compositional features learned by the system.

Topological Data Analysis via Persistent Homology

Persistent homology (PH) is used to robustly characterize the topology (such as the number of connected components H0H_0, cycles H1H_1, and voids H2H_2) of embedded attractor manifolds, immune to linear projection artifacts and noise perturbations. PH diagrams provide topological ground truth, distinguishing between genuine cycles and artifacts of projection or sampling. Figure 3

Figure 3: Illustration of persistent homology: constructing a persistence diagram by growing neighborhoods around data points and monitoring cycle and void births/deaths as radius increases.

Figure 4

Figure 4: Example persistence diagram, highlighting a robust cycle feature amidst noisy, short-lived topological transients.

Empirical Results

Macroscopic Attractor Landscapes

Analysis of the blue/green gecko NCA, trained to alternate morphologies in response to external cues, reveals critical changes in system dynamics after a transition epoch (∼4000). Loss dynamics, latent space trajectories, and persistence diagrams jointly confirm the emergence of a stable cycle linking two distinct attractors—corresponding to the green and blue gecko states. Figure 5

Figure 5

Figure 5

Figure 5: Evolution of training: (top) loss curve with critical transition, (middle) autoencoder latent space at different training stages, and (bottom) persistent homology revealing emergence of a cycle post-transition.

Robustness and Perturbation

Perturbation experiments assess the system’s resilience: following a destructive reset (cell zeroing), the global attractor landscape reliably reforms, and the state returns to an attractor. However, the possibility of attractor switching (returning to green from blue) is observed, validated by vector field analysis in latent space, which delineates the stable basins of attraction and system response directionality. Figure 6

Figure 6: System response to perturbation—manifold trajectories and PH analysis reveal return to attractor structure.

Figure 7

Figure 7: Latent space vector field, showing dynamical flows and regions of attraction for the NCA system.

Microscopic Complexity

At the per-cell level, the attractor landscape is conspicuously more intricate. Autoencoder mapping of individual cell states exhibits a fragmented, multi-cluster structure, indicative of many localized attractors imposed by spatial heterogeneity and neighborhood effects. Figure 8

Figure 8: Autoencoder-decomposed microscopic latent space for cell states in the gecko NCA, showing multiple localized attractor clusters.

Sparse feature decomposition via SAE constitutes a critical methodological contribution, demonstrating that aggregation (mean feature vector across cells per frame) re-capitulates global behavioural cycles observed at the macroscopic level, reconciling the one-to-many relationship between local cell dynamics and macro patterns. Figure 9

Figure 9: SAE per-frame manifold: mean aggregated cell features projected via PCA, recovering the global attractor topology.

Texture NCAs and Topological Detection

For NCAs trained on structured textures, PH analysis on appropriately, spatially-consistent subsamples reveals toroidal topology (two cycles, one void), aligning with the periodic structure of the generated pattern. Full data PH analysis is undermined by sampling sparsity and noise, highlighting limitations and constraints of computational topology in ultra-high dimensional settings. Figure 10

Figure 10: Comparison of persistence and PCA projection for full substrate vs. subsampled data in texture NCA; toroidal topology emerges only in well-sampled subsamples.

Implications and Theoretical Significance

This work rigorously demonstrates that top-down manifold learning, coupled with persistent homology, provides a robust framework for analysing attractor landscapes in black-box, differentiable CA models. The macroscopic state space of NCAs trained for regular tasks is demonstrably low-dimensional, with clear attractor geometry, whereas local dynamics are much richer and can exhibit compositional structure highly dependent on task complexity, training regime, and representational capacity. The introduction of SAEs as cell-state feature decomposers enables an overview of global and local perspectives, providing new avenues for mechanistic interpretability.

These findings suggest a path towards formal verification and reliable deployment of NCA-based systems in settings requiring stringent behavioural guarantees. Additionally, the pipeline outlined offers concrete tools for future work in explainable self-organising systems and developmental artificial intelligence.

Conclusion

Dimensionality reduction and persistent homology facilitate a nuanced, quantitative, and visual exploration of NCA attractor landscapes at multiple levels. Through these analyses, conventional interpretability limitations of neural-based morphogenetic models are substantially alleviated, offering principled insights into learned dynamics, robustness, and emergent organisation. This approach is instrumental for the responsible engineering of NCAs and, by extension, other high-dimensional, self-organising dynamical systems. Future directions will encompass extensions to more complex tasks, richer environmental interactions, and integration with formal verification methods.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

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

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.