TL;DR
Modern AI models can write poetry, yet they often stumble over simple 2D spatial puzzles like mazes or Sudoku because they struggle to ground geometric relationships. By giving Neural Cellular Automata the ability to dynamically "look around" a grid rather than just staring at their immediate neighbors, the authors create tiny, interpretable models (~165k–256k parameters) that crush massive, 100M+ parameter baselines at spatial reasoning.
What Problem Does This Paper Address?
Despite the linguistic brilliance of Multimodal Large Language Models and the visual fidelity of Diffusion models, modern AI suffers from a persistent "semantic-to-geometric gap." Models struggle to mentally manipulate 2D objects, maintain spatial working memory, or respect global geometric constraints over an entire image.
Cellular Automata (CA)—think Conway’s Game of Life—compute globally complex behaviors using purely local rules on a grid. Neural Cellular Automata (NCAs) replace hardcoded rules with small, learnable neural networks. Intuitively, NCAs seem tailor-made for 2D grid reasoning, yet nobody had successfully applied them here. Why? Because standard NCAs are trapped in a static, hyper-local bubble: every cell updates using the exact same rule, looking only at its immediate $3 \times 3$ neighbors. When solving a Sudoku or navigating a winding maze, waiting for information to trickle cell-by-cell across a grid is a massive bottleneck.
Methods
The authors introduce Adaptive Neural Cellular Automata (aNCA). Standard NCAs split their recurrent update step into two parts: a perception module (gathering info from neighbors via standard convolutions) and an update module (a tiny $1 \times 1$ conv net deciding how to change the cell's state).
Instead of fixed convolutions, aNCA equips the perception module with three parallel heads of modulated deformable convolutions (DCNv2). At every timestep and every cell, the model dynamically predicts two things based on the current grid state:
- Spatial offsets: Where on the grid should this cell look right now?
- Modulation scalars: How much should it amplify or suppress what it sees there?
This shifts the NCA from a rigid, space- and time-invariant rule to an input-dependent, dynamic routing system.
Two other clever methodological choices stand out:
- Constraint-based losses: Many spatial puzzles have multiple right answers (e.g., an underconstrained Sudoku). Instead of forcing the model to match one specific ground-truth grid, the loss functions directly reward rule satisfaction (e.g., ensuring digits sum to 1 per row, column, and box).
- Decoupled visual perception: For handwritten image Sudoku, training end-to-end caused digit strokes to drift into illegible blobs. So, the authors wrap the aNCA in a frozen, pre-trained encoder-decoder "codec" (~1.1M parameters), letting the tiny aNCA reason purely in a clean $9 \times 9$ latent board space before rendering back to MNIST-style pixels.
Datasets
The authors release no new datasets, evaluating instead on four established public benchmarks:
- Array Sudoku & MNIST Sudoku: A 1-million-puzzle dataset (from prior Spatial Reasoning Model [SRM] benchmarks) with puzzles grouped into Easy, Medium, and Hard based on missing clues, rendered either as numerical arrays or $252 \times 252$ grids of handwritten MNIST digits.
- Maze Solving: A dataset of $30 \times 30$ mazes (1K train, 1K test) requiring shortest-path masks, plus unseen procedurally generated Prim-style mazes to test generalization.
- Global Color Balance: An unconditioned global-constraint task adapted to binary grids, where the model must flip pixels from a biased random initialization to achieve an exact 50/50 black-to-white ratio across the whole image.
Key Insights and Ideas
- Emergent, interpretable discovery of game rules: Because deformable offsets are explicit coordinates, you can plot where each cell is looking! On Sudoku, without ever being told the rules of the game in its architecture, aNCA's three perception heads spontaneously specialized: one learned to scan the cell's row, another its column, and the third its $3 \times 3$ box.
- Brute-force receptive fields fail: You might think, "Why not just use a bigger $9 \times 9$ standard convolution?" The authors tried it—and it flopped (dropping to 39.8% accuracy on Hard Sudoku with wild seed instability). Knowing what to ignore via DCNv2's modulation scalar is what makes long-range communication work; offset-only DCNv1 also lagged far behind.
- True generative diversity: Because NCA updates are stochastic and trained on validity rather than a single target, running an aNCA 1,000 times on an ambiguous Sudoku yielded valid completions 997 times, discovering 303 distinct valid board solutions.
Key Results
Across the board, tiny aNCAs outperform massive end-to-end architectures:
- Array Sudoku: aNCA hits 87.78% Average Solve Rate (ASR) on Hard puzzles with just 165k parameters, beating standard $3 \times 3$ NCAs (78.23%) and even NCAs with manually hardcoded row/column/box kernels (78.18%).
- MNIST Image Sudoku: Using the 1.1M codec + 165k aNCA, the pipeline achieves 82.10% ASR on Hard puzzles—crushing a 118M-parameter Diffusion model (0.8%) and a 118M-parameter SRM (51.6%).
- Maze Solving ($30 \times 30$): Purely local $3 \times 3$ NCAs completely fail to connect start to goal (0.08% optimal). aNCA (256k parameters) finds valid paths 98.56% of the time and optimal shortest paths 94.18% of the time, surpassing 27M-parameter Hierarchical Reasoning Models (74.5%) and 7M-parameter TRM-Att models (85.3%).
- Global Color Balance: aNCA (152k parameters) hits the exact 50/50 pixel ratio 96.8% of the time, compared to 25.0% for Diffusion and 51.8% for SRM (both 19.7M parameters).
Limitations and Future Work
There is no free lunch in compute: calculating dynamic offsets and bilinear interpolations at every cell and every recurrent step makes aNCA computationally heavier per step than standard fixed-kernel convolutions. Furthermore, the current setup lives strictly on regular, fixed-resolution 2D grids. Extending this adaptive local-to-global perception mechanism to irregular graphs, variable-resolution inputs, and 3D scenes is the natural next frontier.
Summary updated