← Blog

Reasoning with Neural Cellular Automata:

A visual walk through the paper, from the Game of Life to Sudoku

Joris Viaud

· Updated

TL;DR: A neural cellular automaton is a grid of identical cells that only ever talk to their eight neighbours. Etcheverry et al. show that such a grid, with 10K to 3.5M parameters, can solve mazes 500× larger than any it trained on, very hard Sudokus and about half of ARC-AGI-1. Almost every ingredient of the paper answers one difficulty: a replay pool to train long rollouts, noise and damage to generalise, fixed attention and wrap-around borders for global constraints, and extra steps, cells or parallel trials at test time. Below, a small NCA trained for this post shows each mechanism at work, and a replication on a single 8 GB GPU tests the maze, Maze-Hard and Sudoku-OOD results, runs the authors' published weights through its own code, and measures the recipe written in the paper against the one in their public code.

This post walks through Reasoning with Neural Cellular Automata (Etcheverry, Miotti, Sirbu, Schürholt, Drozdova, Ghosh, Agüera y Arcas, Manyika, Richards and Niklasson, Google Paradigms of Intelligence, 2026). The figures are not drawings: they are rendered from a small NCA that I trained on CPU for this post, with the same architecture as the paper's maze model. The scripts that train it and draw every figure live next to the site's source. The full replication of the paper, scaled to an 8 GB GPU, is a separate repository; its results are in the section Replicating it on an 8 GB GPU. Notes along the way mark where the replication optimised the computation, raised an open question, or suggested an extension of the paper.

The question: can you reason without a global view?

Modern reasoning models are globally connected. A transformer lets every token attend to every other token at every layer, and recent recursive models such as HRM, TRM and LoopViT apply such a block many times in a loop. That works, but it has a physical cost: all-to-all communication means moving a lot of data, and the energy bill of AI hardware is largely a data-movement bill. Biology computes differently. Cells, ants and slime moulds only interact locally, and global behaviour (a body plan, a foraging trail, the shortest path through a maze) emerges from those local interactions.

The paper asks: how far can you get when every unit is only allowed to see its immediate neighbours and there is no global clock? The test bed is a set of classic reasoning benchmarks: path-finding in mazes, Sudoku, the ARC-AGI-1 abstraction puzzles, and Sudoku rendered as raw MNIST pixels.

From the Game of Life to neural cellular automata

A cellular automaton is the simplest machine with that constraint. Space is a grid, each cell has a state, and at every tick every cell applies the same rule to its own state and its neighbours' states. Conway's Game of Life is the famous example. Its rule fits in a sentence, yet it produces gliders, oscillators and even universal computation, none of which any individual cell "knows" about.

Conway's Game of Life: a Gosper glider gun on a gridConway's Game of Life: a Gosper glider gun on a grid
Figure 1. Conway's Game of Life. Each cell is alive or dead and looks only at its 8 neighbours: a dead cell with exactly 3 live neighbours is born, a live cell with 2 or 3 survives. From that rule, the Gosper gun on the left emits a glider every 30 generations.

A neural cellular automaton (NCA), introduced by Mordvintsev et al. in Growing Neural Cellular Automata (Distill, 2020), keeps that structure but makes two changes. The state of a cell becomes a continuous vector of CC channels instead of a bit, and the rule becomes a small neural network that is learned by gradient descent instead of written by hand. Their original demo grew a lizard emoji from a single seed cell and regrew its tail after damage. The reasoning paper starts from exactly that recipe.

One step of an NCA has three parts. Write xi,j∈RCx_{i,j} \in \mathbb{R}^C for the state of cell (i,j)(i,j):

1. Perception. The cell looks at its 3×3 neighbourhood N(i,j)\mathcal{N}(i,j) (itself plus 8 neighbours) through KK small kernels. For the maze model, each kernel is a learned 3×3 weight pattern shared by all channels:

zi,j(k)=∑n∈N(i,j)Wn(k) xn,zi,j=[zi,j(1),…,zi,j(K)]∈RKC.z^{(k)}_{i,j} = \sum_{n \in \mathcal{N}(i,j)} W^{(k)}_{n}\, x_n, \qquad z_{i,j} = \big[z^{(1)}_{i,j}, \dots, z^{(K)}_{i,j}\big] \in \mathbb{R}^{K C}.

2. Update. A two-layer MLP, the same for every cell, turns what the cell perceives into a proposed change of its state:

Δxi,j=W2 ReLU(W1zi,j+b1)+b2.\Delta x_{i,j} = W_2\, \mathrm{ReLU}(W_1 z_{i,j} + b_1) + b_2.

3. Asynchronous residual write. The cell only applies the change if a coin flip says it fires this step:

xi,j(t+1)=xi,j(t)+mi,j Δxi,j,mi,j∼Bernoulli(pfire=0.8).x^{(t+1)}_{i,j} = x^{(t)}_{i,j} + m_{i,j}\, \Delta x_{i,j}, \qquad m_{i,j} \sim \mathrm{Bernoulli}(p_{\text{fire}} = 0.8).

Parameters are shared across space (every cell runs the same network) and across time (the same network runs at every step), which is why the maze NCA has about 10K parameters. The figure below opens one cell of the trained toy model in the middle of a rollout and shows each of these quantities.

One cell of the trained maze NCA opened upOne cell of the trained maze NCA opened up
Figure 2. One step of the trained toy NCA, seen from one cell (black square) of a 9×9 maze at step 12. The cell reads its 3×3 neighbourhood (dashed) through 4 learned kernels (bottom), which turns its 16 channels into 64 perception features; the shared MLP maps them to 128 hidden units and then to a 16-channel update. Blue is negative, red positive.

The random firing mask has a reason. There is no global clock in a real distributed substrate, so cells should not need one. Making updates stochastic during training forces the rule to work whatever the order in which cells happen to update. The paper finds that this choice also matters for accuracy (Difficulty 2 below).

Turning a growing lizard into a maze solver

To reason about mazes or Sudokus, the grid has to carry a problem and an answer. The paper gives the state vector of each cell a fixed layout:

  • an input slice CinC_{\text{in}}, written at t=0t=0 and then frozen: walls and endpoints in a maze, given digits in a Sudoku. Tokens are mapped to fixed orthonormal embedding vectors rather than colours;
  • an output slice CoutC_{\text{out}}, which is read out as the cell's answer at any step;
  • a hidden slice ChidC_{\text{hid}}, free scratch space for the cells' "latent reasoning";
  • for ARC only, a task slice CtaskC_{\text{task}} that holds a learned embedding of which puzzle is being solved.

In mazes, wall cells hold their embedding on all channels, not just the input slice. A wall is then physically inert, it never changes, and since every neighbour sees the same constant vector through it, the only way information can travel is along corridors.

The readout is equally simple. A cell's prediction is the token whose embedding is closest to its output slice, ℓi,j(v)=1/(1+∥xi,j,out−ev∥2)\ell_{i,j}(v) = 1 / (1 + \lVert x_{i,j,\text{out}} - e_v \rVert_2) for mazes, and its confidence is the best of those scores. Training minimises the squared distance between the output slice and the target embedding.

Here is the result: a model trained only on 9×9 mazes, solving a 17×17 maze it has never seen. Each cell is coloured by how strongly its output channels vote for "on the shortest path".

The toy NCA solving a 17×17 mazeThe toy NCA solving a 17×17 maze
Figure 3. The toy NCA solving an unseen 17×17 maze from random initial states. Walls are dark, the two endpoints orange; a free cell turns blue as its answer moves towards 'path'. All 159 free cells are correct at step 43, and the solution then stays put.

Watch the order in which things happen. Blue spreads from the endpoints into every corridor, like a flood fill or a breadth-first search. When a branch hits a dead end, the colour recedes from the tip back to the junction: a "no exit here" message travelling backwards, one cell per step. The authors compare this to the slime mould Physarum, which solves mazes by spreading everywhere and retracting from dead ends.

Reasoning has a shape

Because a cell only hears its neighbours, information moves at most one cell per step. That gives the computation a geometry, which is easiest to see if time is turned into a third dimension. The figure below stacks the rollout as it happens: each voxel is a cell voting "path" at a given step.

Space-time cube of a maze rolloutSpace-time cube of a maze rollout
Figure 4. The rollout of a 17×17 maze as a space-time cube, sampled every 2 steps over the first 80 steps: the maze is the floor and time goes up, one layer added per frame while the camera turns slowly. Translucent blue voxels are cells on the true path voting 'path'; green voxels are cells off the path that vote 'path' for a while, mostly a dead-end branch that is pruned between steps 20 and 55. The orange pillars are the endpoints. The board is fully correct at step 61.

The paper calls this an observable spatial chain of thought, and contrasts it with TRM, a globally connected recursive model. On the 679 Maze-Hard puzzles that both models solve, TRM's prediction is correct after 3.3 ± 2.3 update steps on average, while the NCA needs 42.3 ± 21.1 (Table 7). TRM reaches the answer in a few steps through global attention; the NCA has to propagate it cell by cell, but every intermediate state is a readable partial solution.

The same story can be told inside the cells. The 16 channels of a cell hold more than its answer. Projecting every cell's state trajectory onto its three principal axes shows the states leave a shared cloud of noise and settle into one of two stable regions (attractors), one per answer:

Cell state trajectories in a 3D PCA projectionCell state trajectories in a 3D PCA projection
Figure 5. The 16-channel states of the 95 free cells of a 13×13 maze over 120 steps, projected on their top three principal components (67% of the variance). The animation follows the rollout step by step: each cell's trajectory is drawn up to the current step, its last 30 steps darker, and the dot is its current state. Blue: cells on the solution path; grey: the others.

Difficulty 1: training a system that runs for thousands of steps

On 201×201 mazes the paper runs the NCA for 13,000 steps (Table 1). Back-propagating through 13,000 applications of a network is out of the question in memory, and even through a few hundred it is fragile.

The answer is the sample replay pool inherited from the Growing NCA paper. The trainer keeps a pool of grids, M=4BM = 4B of them for mazes. At every iteration it:

  1. draws a batch of BB grids from the pool and replaces a fraction (rseed=25%r_{\text{seed}} = 25\% for mazes) with freshly initialised problems;
  2. applies perturbations (see the next section);
  3. rolls the batch out for NN steps (100 for mazes), computes the loss on those steps and back-propagates through them only;
  4. writes the final states back into the pool.

Step 4 is what makes long rollouts trainable. A grid that comes back from the pool has already been run for NN, 2N2N, 3N3N steps by earlier versions of the model. Training on it teaches the rule to behave well at step 5N5N or 50N50N without ever back-propagating that far, and in particular to stay at the solution once it is found. The paper relates this to the progressive loss of DeepThink and the deep supervision of TRM, which serve the same purpose.

I trained the toy model twice, with and without the pool (all other settings equal, three seeds each), and measured the fraction of exactly solved test mazes as rollouts run far past the training horizon:

Replay pool ablation on the toy NCAReplay pool ablation on the toy NCA
Figure 6. Toy NCA trained with and without the sample replay pool, 3 seeds each (thin lines: individual seeds, thick lines: mean). Left: fraction of 16 unseen 65×65 mazes solved exactly as the rollout runs to 4000 steps, 60 times the training horizon. Right: fraction solved at the end of the rollout for each maze size (256, 128, 64 and 16 test mazes).

At this small scale the effect is real but noisier than in the paper. Two seeds of each variant solve every test maze up to 65×65, and stay solved for thousands of steps. The difference comes from the third seed: with the pool it still solves 69% of the 65×65 mazes, without it only 19% (and 47% of the 33×33). On average, replay goes from 73% to 90% on 65×65. With only 64 training steps and 9×9 mazes, the toy task is easy enough that a model can do without the pool if its seed is lucky; the pool makes the outcome reliable.

In the paper's version of this ablation (its Figure 7A), the maze model trained without sample replay fails to generalise to larger mazes, while the full model stays at 100% up to 201×201.

The loss also has a design knob: which steps of the rollout are supervised. Mazes and Sudoku-OOD supervise every step, which gives a strong signal but penalises wandering. ARC supervises only the last 16 of 64 steps. Sudoku-Extreme supervises only the very last step, so the trajectory is free to explore, make mistakes and backtrack in between, which the hardest Sudokus require (Figure 2D of the paper shows the number of violated constraints going up before the board converges).

Difficulty 2: generalising beyond the training distribution

Fitting the training set is not the goal. The benchmarks are chosen to be out of distribution on purpose: mazes up to 201×201 when training saw 9×9, Sudokus with as few as 17 clues when training saw at least 31. A model that memorised trajectories would fail.

The paper's training recipe adds three perturbations to the batch before each rollout:

  • state noise: Gaussian noise (σ=0.15\sigma = 0.15) injected into random cells at random steps (pt=0.1p_t = 0.1, ps=0.2p_s = 0.2);
  • damage: with probability 0.1, one or more discs (10–40% of the grid size) of cells are reset to zero;
  • target swap: with probability 0.1, a grid's problem is swapped for another one while its cells keep their evolved state, so the cells must keep sensing the input instead of following a pre-committed plan.

Together with the pool, these expose the rule to states that are not on any clean solution path, which is exactly what it will meet on a bigger or harder problem. The paper's ablation (its Figure 7A) shows each of them matters. On the hardest Sudoku-OOD boards, removing asynchronous updates, perturbations or sample replay each lowers accuracy.

Asynchrony matters more than one would expect. For Sudoku the authors find it critical, and their explanation is symmetry breaking: updating cells at different times helps the grid escape local minima while it resolves constraints. One way to picture it: if two cells in a row both hesitate between the same two digits and always update together, they can switch back and forth in lockstep forever; when only a random 80% of cells update per step, one of them eventually moves first and the other adapts. The flip side is that a rule trained asynchronously is never asked to cope with the synchronous regime, so turning asynchrony off at test time is not a free ablation.

Adding noise at test time does not hurt and slightly helps, on every benchmark (the paper's Figure 7B). On Sudoku-OOD, the best noise level raises accuracy from 97% to 98.5%; on Sudoku-Extreme from 91.9% to 92.7%. The noise can push a rollout out of a wrong solution it would otherwise stay in.

Difficulty 3: global constraints with local cells

Mazes are local by nature. Sudoku is not: a digit in the top-left corner constrains a cell eight columns away. Three choices make it tractable.

Wrap-around borders. For Sudoku the grid is a torus ("wrap" padding in Table 3): the last column neighbours the first. Information along a row then never needs more than four hops.

Fixed attention instead of convolution. Sudoku and ARC use a richer perception. The authors first tried real self-attention within the 3×3 neighbourhood (queries and keys computed from cell states). When they inspected the learned attention weights, they found they had converged to static spatial patterns that depended on position but not on the cells' states or on the time step (the paper's Figure 14). So they removed the queries and keys and learned those patterns directly as position-dependent weights, zi,j(k)=∑nAi,j,n(k) V(k)xnz^{(k)}_{i,j} = \sum_n A^{(k)}_{i,j,n}\, V^{(k)} x_n, which they call fixed attention. It trains faster and reaches a lower loss and a higher accuracy on both Sudoku benchmarks (Figure 13). The replication below did not rerun this comparison.

Oscillator normalisation. After each update, the channels of a Sudoku or ARC cell are split into groups and each group is renormalised to unit length, following AKOrN (Miyato et al., 2024), whose neurons are modelled as coupled oscillators. Each cell is then a handful of unit vectors rotating on spheres, which keeps the state bounded no matter how long the rollout runs.

With these, a 160K-parameter NCA reaches 66.1% on Sudoku-OOD with a single rollout, against 51.7% for AKOrN with 3M parameters, and a 603K-parameter NCA solves 75.6% of Sudoku-Extreme with one rollout (PTRM, 5M parameters, reaches 87.3%).

Difficulty 4: spending more compute at test time

Since an NCA is a dynamical system rather than a fixed-depth network, test-time compute can be scaled along three independent axes, and the paper uses all three.

Time (depth DD). Run the rule for more steps than in training. Local propagation is slow, so larger problems simply need more steps.

Space (substrate SS). A cell's rule does not depend on its position or on the grid size, so a trained maze NCA can be dropped onto a larger grid with no change at all. Trained in about three minutes on a TPU on 9×9 mazes, the paper's 10K-parameter model solves 100% of the 59×59 mazes (D = 2000) and 100% of the 201×201 mazes (D = 13,000), about 500 times the area seen in training. DeepThink, a 784K-parameter recurrent network built for exactly this kind of extrapolation, falls to 74.0% on 201×201 while using 44 times more FLOPs. The toy model shows the same behaviour at a smaller scale: trained on 9×9 mazes with 64-step rollouts, it solves a 65×65 maze (52 times the area) in 440 steps.

The toy NCA solving a 65×65 mazeThe toy NCA solving a 65×65 maze
Figure 7. Spatial and temporal generalisation of the toy NCA: trained on 9×9 mazes for 64 steps, here run on an unseen 65×65 maze (one frame every 8 steps). The path is found by local propagation alone and the board is fully correct at step 440.

Parallel trials (KK). Because initial states are random noise and updates are stochastic, two rollouts of the same puzzle are different trajectories. Run KK of them and keep the one whose cells are most confident on average (conf@K for mazes and Sudoku) or the most voted answer (ARC). The replication below also reports pass@K, which counts a puzzle as solved if any of the KK trials is right: it is the ceiling that a perfect selection would reach. On Sudoku-OOD this takes the NCA from 66.1% (K = 1) to 98.5% (K = 2048), solving 17-clue puzzles though trained on boards with at least 31 clues.

Parallel trials are expensive, so the authors add Niche-Capped Diversity Pruning. At mm evenly spaced checkpoints, trials are grouped by their current decoded board; each group (niche) keeps at most 3 members, those with the highest confidence; and the ensemble is halved, favouring diverse niches. Total compute becomes

FLOPs(m)=∑i=0m−1K2i⋅Dm=2−2−(m−1)m KD,\mathrm{FLOPs}(m) = \sum_{i=0}^{m-1} \frac{K}{2^i}\cdot\frac{D}{m} = \frac{2-2^{-(m-1)}}{m}\, K D,

a saving of 25.0%, 53.1% and 75.1% for m=2,4,8m = 2, 4, 8. On Sudoku-Extreme this shifts the compute-accuracy frontier to the left: up to 4× less compute for the same accuracy in the low and mid budget regimes, and at a fixed budget it pays to trade breadth for depth (at a base depth of 64, running 4× deeper with m=8m = 8 raises accuracy from 25.6% to 81.7%). Measured wall-clock speedups on H100s track the theoretical ratios to within 1%. The replication below does not test pruning, since it is measured on Sudoku-Extreme, which was not run.

Difficulty 5: not wasting compute on cells that are done

Once a stretch of corridor is solved, there is nothing left to do there, yet a uniform NCA keeps updating it. Since cells already carry a confidence, the paper lets each cell decide its own update rate: pfire=0.4p_{\text{fire}} = 0.4 when ci,j>0.95c_{i,j} > 0.95, otherwise the default 0.8. No retraining is involved.

On 201×201 mazes, this adaptive firing needs 1.29× more global steps to converge but only 0.71× the cell updates. The effect is larger under damage: when discs of cells are wiped at step 6000, the adaptive model concentrates its activity on the wounds and on the unsolved front, and repairs the maze with about half the total cell updates (0.52×). The same rule, applied to the toy model without retraining, gives a similar picture:

Repair after damage with uniform and adaptive firingRepair after damage with uniform and adaptive firing
Figure 8. The toy NCA on a 25×25 maze, solved, then hit by two discs of damage (cell states reset to zero) across the path. Pink dots are the cells that fire at each step. Left, uniform firing; right, the paper's adaptive rule (p = 0.4 once a cell is confident). Both repair the path, the adaptive one in 17 steps instead of 19 and with 2,748 cell updates instead of 5,111 (0.54×, the paper reports 0.52×), because confident cells far from the wounds mostly stay idle.

Difficulty 6: one NCA for many tasks (ARC-AGI-1)

ARC puzzles each have their own rule, to be inferred from two to five input-output examples. The paper's ARC model is much larger (3.5M parameters, 512 channels, a 32×32 canvas) and reuses the training pipeline of two recent ARC models, VARC and LoopViT, with three additions:

  • Task embeddings. A learned 128-dimensional vector per task is written into the task slice of every cell at t=0t=0. Given the same input and different task embeddings, the same network applies different transformations (the paper's Figure 3).
  • Local clocks. ARC solutions seem to need phases (find the reference object, propagate its colour, stop), so a learned step embedding is added to the hidden state. At inference each cell uses its own counter, which only advances when the cell fires, so no global clock is needed.
  • Test-time training and voting. Each evaluation task is augmented 51 times (rotations, reflections, colour permutations); each version gets its own task embedding, fine-tuned on the demonstration pairs, and 64 rollouts per version (K = 3264) vote.

The NCA reaches 48.8% pass@2 on the public evaluation set, against 44.6% for TRM, and 60.3% with 64 attempts: the right answer is often produced by some rollout but not selected. LoopViT, which mixes global and local attention, stays ahead at 60.1–65.8% pass@2 with far fewer rollouts.

Difficulty 7: reasoning directly in pixels

Visual Sudoku removes the clean tokens: the input is a 256×256 image of a Sudoku written with random MNIST digits, and the output must be the image of the solved grid. Each digit covers 28×28 cells, so the cells must recognise handwriting, solve the puzzle and draw the answer while only talking to their neighbours. The authors use a standard NCA (fixed Sobel and identity perception, 256 channels, 2.1M parameters) trained by back-propagating through full 1024-step rollouts, which costs about three days on 64 TPU v5p. It solves 87.8% of the easy test puzzles and 18.9% of the hard, out-of-distribution ones with 3072 steps. In the intermediate images (the paper's Figure 9), clues are first redrawn close to the average digit of their class, empty squares fill with a blur of all digits, partial guesses appear as superimposed digits, and the board finally settles on clean answers.

What the paper does not solve

The authors list three limitations:

  1. Training is not local. Inference is fully decentralised, but training still back-propagates a global loss through time.
  2. Test-time exploration is random search. Parallel trials are independent noisy restarts; a search that seeks diversity could need fewer of them.
  3. Locality has a price. Information needs many steps to cross a large grid; a few sparse long-range connections might keep the benefits without the delay.

Two more things are worth keeping in mind when reading the numbers. The paper's goal is not state of the art, and it is not: PTRM and LoopViT beat the NCA on Sudoku-Extreme and ARC. The point is that a strictly local model is competitive at all, often with far fewer parameters and FLOPs (Table 1 below). And FLOPs are counted for a dense implementation that computes every cell then masks, which overstates the NCA's arithmetic by 1.25× at pfire=0.8p_{\text{fire}} = 0.8.

Benchmark (test setting)ModelParamsFLOPsAccuracy
Maze-OOD 59×59 (K = 1)DeepThink (D = 1000)784K24.1T97.3%
NCA (D = 2000)10K163.4B100.0%
Maze-OOD 201×201 (K = 1)DeepThink (D = 2000)784K521.7T74.0%
NCA (D = 13,000)10K11.8T100.0%
Maze-Hard 30×30, A* targetsPTRM (D = 16, mode@100)7M382.2T86.7%
NCA (D = 200, conf@128)41K2.0T89.2%
Sudoku-OODAKOrN (D = 128, conf@4096)3M97.3T89.5%
NCA (D = 256, conf@2048)160K23.9T98.5%
Sudoku-ExtremePTRM (D = 64, conf@100)5M164.0T98.8%
NCA (D = 2048, conf@512)603K190.1T92.7%
ARC-AGI-1, pass@2TRM (D = 16, K = 1000)7M3.8P44.6%
NCA (D = 64, K = 3264)3.5M2.4P48.8%
LoopViT-L (D = 8, K = 510)17.6M220.5T65.8%
Visual Sudoku 256×256NCA, easy (D = 1024)2.1M283.2T87.8%
NCA, hard OOD (D = 3072)2.1M849.5T18.9%

Selected rows of Table 1 of the paper, figures from the paper, not re-measured. FLOPs are for one puzzle including all steps and parallel trials.

Replicating it on an 8 GB GPU

The replication has its own project page, which tracks its status, and its own repository, written in Python and organised so that each experiment can be rerun from one command. The paper's compute is out of reach (Sudoku-Extreme trained for 22 hours on a TPU7x, Visual Sudoku for three days on 64 TPU v5p), so every experiment is scaled to a single 8 GB consumer GPU, and every number below is the mean over three seeds unless stated otherwise. The goal is to recover the paper's results approximately and, above all, its qualitative claims: generalisation through space and time, the role of replay, perturbations and asynchrony, and the gains from parallel trials.

The first phase, Maze-OOD and Sudoku-OOD, ran on a laptop RTX 4060 (8 GB). The mazes fit as they are: the paper's Maze-OOD training settings (5,000 steps, batch 64, 100-step rollouts, the official maze data) and its architecture, in which each of the 4 perception kernels is a single 3×3 pattern shared by all 16 channels and the MLP's hidden layer has 128 units, twice the 64 perception features, for 10,420 parameters as in the paper. One training run takes 14 minutes, and all three seeds solve 100% of the validation mazes after 2,000 to 2,500 steps. Sudoku-OOD does not fit: training three seeds for the paper's 150K steps would take about 74 hours of GPU time, so each seed trains for 50K steps (8 hours each, in half precision, batch 256, 159,760 parameters, the official SAT-Net training grids). A first run of the mazes used a perception and an MLP that differed from the paper's (11,824 parameters); an external review of the code caught it, and every maze number below comes from the rerun. Every deviation is logged in the repository's docs/DEVIATIONS.md. The authors later published their code and weights; the last part of this section compares their recipe with the paper's and runs their weights through our code. The table below is the paper's recipe, with the authors' setup and weights added where the search measured them.

BenchmarkPaperOur budgetOurs (mean ± std, 3 seeds unless stated)Status
Maze-OOD 13×13, 300 steps100%paper settings, 100 test mazes100.0 ± 0.0%Reproduced
Maze-OOD 59×59, 2,000 steps100%paper settings, 100 test mazes98.3 ± 1.7%Reproduced
Maze-OOD 201×201, 13,000 steps100%paper settings, 100 test mazes85.7 ± 10.8% (seeds: 100, 83, 74%); the authors' setup: 97.5 ± 0.5% (2 seeds, fresh mazes)Reproduced with the authors' setup (2 seeds)
Training ablations, 13×13replay needed to generalise (its Figure 7A)500 test mazes, 300 steps; evaluated on 13×13 only, the paper's failure without replay is on larger mazes, not tested hereone trial: no replay 96.1%, no perturbations 99.3%; best of 8: 99.5% and 98.3%; full recipe 100%Trend partly reproduced
Adaptive firing, 201×2010.71× cell updates, 1.29× steps20 test mazes, 2 seeds of 3 reach 95%0.72× updates, 1.41× steps, once given cells count as confidentReproduced under an interpretation
Adaptive firing after damage0.52× cell updates, 0.94× steps1 seed of 3 recovers0.66× updates, 1.30× stepsNot reproduced
Test-time noisesmall gain everywhereσ from 0 to 1Sudoku: +0.8 to +1 point at the paper's noise level (+0.8 at K = 1, +1.0 at conf@128), +2 to 4 at K = 1 on a sweep of levels; no effect on mazesTrend reproduced
Sudoku-OOD, 256 steps66.1% (K = 1), 98.5% (conf@2048)50K training steps instead of 150K, 1,000 test grids26.0 ± 6.8% (K = 1), 67.0 ± 8.4% (conf@128); the public-code recipe at 20K steps: 34.8 ± 2.0% and 64.6 ± 0.2% (2 seeds)Trend reproduced
Sudoku-OOD ablations, fixed vs self-attentioneach of the three matters, fixed attention beats self-attention (its Table 2, Figure 13)5K training steps per variantstopped: every variant still at 0%Not run
Maze-Hard 30×30, A* targets, 200 steps86.6% (K = 1), 89.2% (conf@128)10K training steps instead of 20K, 1,000 test mazes65.4 ± 4.1% (K = 1), 70.3 ± 2.9% (conf@64)Trend reproduced
Maze-Hard 30×30, BFS targets, 200 steps94.7% (K = 1), 96.2% (conf@128)10K training steps instead of 20K, 1,000 test mazes77.0 ± 3.9% (K = 1), 80.4 ± 4.3% (conf@64)Trend reproduced
The authors' weights in our codethe paper's numberstheir published checkpoints, our evaluationmazes 100% at every size; Sudoku 62.4% (K = 1, validation grids); Maze-Hard 79.1% (K = 1, paper 86.6%)Close to the paper
Sudoku-Extreme, and the pruning measured on it75.6% (K = 1), 92.7% (conf@512)over the 25-hour limit set per experimentNot run
ARC-AGI-1, Visual Sudoku48.8% pass@2, 87.8% / 18.9%Left out

The project page lists the same statuses with the reason for each, including the baselines of the table above, which are quoted from the paper and not re-measured.

Generalisation in space and time holds, but at 201×201 it depends on the seed. A model that only saw 9×9 mazes and 100-step rollouts solves every 13×13 test maze, and 97.5 to 100% of the mazes at every size up to 59×59. At 201×201, 22 times the training width, one seed matches the paper and solves all 100 mazes; the other two solve 83 and 74. Their failures are not near misses: 2.5 and 1.3% of the cells are wrong, hundreds of cells per maze. The first version of the model, with the wrong perception, was more uniform (92 to 97% per seed) but trained more slowly; the paper's architecture learns faster on the training sizes and extrapolates less evenly from seed to seed. With three seeds and 100 mazes, we cannot tell whether 100% is the typical outcome or the lucky one. Each seed reaches its plateau around step 10,000 of 13,000 (right panel), so a longer rollout would not close the gap. The recipe search below added evidence: three new seeds of the same recipe on fresh mazes give 50, 100 and 100%, while the authors' exact setup, with a ring of walls around each maze, gives 98 and 97%.

Maze-OOD size and depth scaling in the replicationMaze-OOD size and depth scaling in the replication
Figure 9. Replication, Maze-OOD. Left: fraction of test mazes solved exactly by maze size, with the rollout length growing with size (200 mazes per size up to 59×59, 100 mazes at 201×201 with 13,000 steps); note the vertical axis starts at 70%. Right: on 201×201 mazes, the fraction solved along the rollout. Thin lines are the three training seeds, the thick line their mean.

With one trial, replay matters most; with eight, perturbations matter more. On 13×13 mazes run for 300 steps, three times the training rollout, the full recipe solves every maze with every seed. With a single trial, the replay pool is the ingredient that matters most: without it, one seed in three stalls at 90% and the mean falls to 96.1 ± 4.3%. Training without perturbations costs 0.7 points, and synchronous updates cost nothing measurable. Running eight trials and keeping the most confident one changes the order. The models trained without replay recover to 99.5%: their failures depend on the trial, and the confidence picks a good one. The models trained without perturbations get worse, from 99.3 to 98.3%, with one seed dropping from 98.4 to 95.0%: some of their wrong trials are confidently wrong, so the confidence picks them. This matches the role the paper gives to perturbations, keeping the confidence honest on states the model has not seen. These ablations are evaluated on 13×13 mazes only: the paper's failure without replay is on larger mazes, which we did not test, and the Sudoku version did not fit our budget (see below). Test-time noise changes nothing on mazes, which are already at the ceiling.

Training ablations in the replicationTraining ablations in the replication
Figure 10. Replication, training ablations on Maze-OOD, 500 unseen 13×13 mazes. Left: fraction solved exactly by one rollout, run to three times the training length, mean of three seeds per variant. Right: at step 300, one trial against the most confident of 8 trials; thin lines are the seeds, thick lines their mean. Without replay the best of 8 recovers; without perturbations it gets worse.

Adaptive firing: the paper's saving is reproduced once the given cells count as done; its faster repair is not. The paper's rule lowers a cell's firing probability from 0.8 to 0.4 once its confidence exceeds 0.95. Applied as written, it saves nothing on our 201×201 mazes: 1.07× the cell updates of uniform firing to reach 95% solved. The reason is the given cells. A wall or an open cell of the input is pinned to its input value, so its confidence score stays at 0.5 and never crosses the threshold, and 64% of a maze keeps firing at 0.8. Counting the given cells as confident from the start gives 0.72× the updates and 1.41× the steps, against the paper's 0.71× and 1.29×. Two caveats apply. The ratios are over two seeds, because the third stops at 90% solved under every rule, uniform firing included. And 0.72× counts cell activations; it is not a measured GPU saving. A pinned cell gives the same state whether it fires or not, so both adaptive rules make exactly the same predictions, and the saving would only become wall-clock time in an engine that skips those cells.

With damage at step 6,000, the paper reports that adaptive firing repairs and solves the maze faster than uniform firing, in 0.94× the steps and 0.52× the updates counted from step 0 (its Figure 8C). The toy model of Figure 8 did repair a 25×25 maze faster (17 steps instead of 19). At 201×201 we do not reproduce it: only one seed of three gets back to 95% solved, and there the given-cells rule needs 1.30× the steps and 0.66× the updates of uniform firing counted from step 0 (1.54× and 0.77× counted from the damage). It is cheaper, but slower.

Adaptive firing in the replicationAdaptive firing in the replication
Figure 11. Replication, adaptive firing on 201×201 mazes: fraction of 20 test mazes solved against the cell updates spent per maze, over 20,000 steps, for each training seed. Time runs from left to right along a curve; a curve further left reaches the same accuracy with less compute. The dashed line is the 95% level the ratios are measured at.

Sudoku-OOD: the same trends, at a lower accuracy. With the paper's recipe, trained on the SAT-Net grids and tested on 1,000 harder grids from the RRN set, our models solve 26.0 ± 6.8% of the grids with one trial, against the paper's 66.1%. Parallel trials behave as in the paper: each doubling of KK adds 4 to 8 points and the curve has not flattened at K=128K = 128, where 67.0 ± 8.4% of the grids are solved (the paper reaches 98.5% with 2,048 trials). Selection by confidence loses almost nothing here: conf@K stays within one point of pass@K at every KK on average (at most 2.8 points for one seed, at K=128K = 128), so when one trial is right, the confidence nearly always picks it. Depth helps up to about 200 steps, then accuracy plateaus. By difficulty, with 128 trials, 96 to 99% of the grids with 47 to 51 empty cells are solved, about 80% at 55 or 56, 42% at 60, and 10 to 32% at 61 to 64. The easy half of the test set is solved; the gap to the paper is on the hardest grids.

Sudoku-OOD in the replicationSudoku-OOD in the replication
Figure 12. Replication, Sudoku-OOD on 1,000 test grids, 256 steps per trial. Left: fraction of grids solved when the most confident of K parallel trials is kept; thin lines are the three seeds, the thick line their mean. Right: by difficulty, one trial against the best of 128, mean of three seeds.

Training explains the gap, partly through the recipe. The first exact solutions only appear after 10 to 15K training steps, the three seeds differ a lot (34, 16 and 22% on the validation grids at 50K steps), and all of them are still improving slowly when training stops at 50K steps, a third of the paper's 150K. The recipe of the authors' public code, trained for only 20K steps, solves 34.8% of the test grids with one trial (below), against 8.0% for the paper's recipe at 20K; the remaining 31 points are most likely the length. The architecture and the data were checked against the paper during the code review. One implementation detail was also tested: our Sudoku models renormalised every cell at every step, while in the paper a cell that does not fire stays frozen. Retraining seed 0 with the paper's behaviour changes nothing measurable (one trial 33.6 → 32.7%, best of 128 76.8 → 78.6%), far less than the spread between seeds. The same budget stopped the Sudoku ablations, the paper's main evidence for asynchrony and perturbations: after 5K training steps per variant every model, the full recipe included, is still at 0%, and a meaningful comparison would need at least 20K steps per variant. The training ablations are therefore reproduced on mazes only.

Maze-Hard: two thirds of the hard mazes with half the training. Maze-Hard asks for the shortest path through 30×30 mazes, with the A* path as the target, and is evaluated on the 1,000 official test mazes with 200 steps per trial. Our three seeds trained for 10K steps instead of the paper's 20K, about two hours each on the laptop. With one trial they solve 65.4 ± 4.1% of the test mazes (64.9, 60.7 and 70.7% per seed), against the paper's 86.6%. Parallel trials help less than on Sudoku: the most confident of 64 solves 70.3 ± 2.9%, while 77.6% of the mazes have at least one correct trial among the 64, so unlike Sudoku the confidence sometimes passes over the right answer. With one trial, 86.5% of the predicted paths connect the start to the goal and 72.7% are as short as the A* path, more than the 65.4% that match the target exactly: some predictions are a different shortest path from the one A* picked. Test-time noise changes nothing (64.5% with one trial, 70.2% with 64). The authors' weights solve 79.1% of the same mazes with one trial in our code, so most of the gap is in training, most likely the halved budget, which is untested, since no run at the paper's 20K steps was made.

BFS targets do better, as in the paper. The paper also trains on breadth-first-search targets and scores higher with them. With the same recipe and the corrected targets (see below), our three seeds solve 77.0 ± 3.9% of the test mazes with one trial (79.1, 71.5 and 80.3% per seed) and 80.4 ± 4.3% with the most confident of 64, against the paper's 94.7% and 96.2% with 128. BFS beats A* by 11.6 points with one trial and 10.1 with 64, where the paper finds 8.1 and 7.0. With 64 trials, 84.4% of the mazes have at least one correct trial, 87.8% of the single-trial paths connect the start to the goal and 81.7% are shortest paths; test-time noise again changes nothing. Both target types stay 16 to 21 points under the paper, with half its training.

Maze-Hard in the replicationMaze-Hard in the replication
Figure 13. Replication, Maze-Hard, 1,000 test mazes, 200 steps per trial, A* targets in blue and BFS targets in orange. Left: fraction solved when the most confident of K parallel trials is kept; thin lines are the three seeds, the thick line their mean, diamonds the paper's values and squares the optimised engine's A* seeds (next section); the vertical axis starts at 35%. Right: fraction solved by one trial along the rollout, per seed and mean.

Paper, public code, our choice

After the runs above, the authors published their JAX code and trained weights. The code does not train exactly as the paper says, so every difference became a switch in our code, and a recipe search, from 21 to 24 October, measured them on held-out grids and mazes, then, for mazes, confirmed the winners on new seeds and on 100 fresh test mazes per size. The project page has the full list of differences and the code of the key one.

Our code is sound. Their published weights, loaded into our model, come close to their numbers with our evaluation: 100% of the 13×13, 59×59 and 201×201 test mazes, 62.4% of the Sudoku validation grids with one trial and 91.2% with 128, and 79.1% of the Maze-Hard test mazes (paper: 100%, 66.1% on the test grids, 86.6%). So the gaps between our trainings and the paper come mostly from training; the 7.5 points still missing on Maze-Hard with their own weights are not explained, and that smaller part may sit in our model or our evaluation.

BenchmarkPaperTheir weights in our codePaper recipe herePublic recipe here
Mazes 201×201, 100 fresh mazes100%100% (Table 1 mazes)83.3 ± 23.6% (seeds 3, 4, 5: 50, 100, 100)97.5 ± 0.5% (seeds 1, 2: 98, 97)
Sudoku, K = 166.1%62.4% (validation grids)26.0 ± 6.8% (50K steps), 8.0 ± 6.0% (20K, 2 seeds)34.8 ± 2.0% (20K, 2 seeds)
Sudoku, conf@12898.5% (K = 2048)91.2% (validation grids)67.0 ± 8.4% (50K), 24.5 ± 19.6% (20K)64.6 ± 0.2% (20K)
Maze-Hard, A* targets, K = 186.6%79.1%65.4 ± 4.1% (10K steps)not trained at this budget
The recipe searchThe recipe search
Figure 14. Replication, recipe search. Left: 201×201 mazes, the share of 100 fresh test mazes solved by each training seed, for the paper's recipe, the public recipe with a wall border, and the authors' exact setup with its ring of walls; the bar is the mean. Right: Sudoku, 1,000 test grids, conf@K for the paper's recipe at 20K and 50K steps and the public recipe at 20K; thin lines are the seeds, the dotted line the authors' weights on validation grids, diamonds the paper.

Sudoku: the public recipe wins. At the same 20K steps it solves 34.8% of the test grids with one trial against 8.0% for the paper's recipe, and with one trial it beats in 20K steps what the paper's recipe reached in 50K. Three ingredients that the paper does not mention decide whether the model learns at all: the update keeps only its component tangent to each normalised group of channels, the learning rate starts at ten times its peak and comes down to it, and the weights start from the authors' initialisation. Without any one of them, the model is still at 0% after 10K steps. One of our own settings, the optimiser's memory of past gradients (AdamW's second beta at 0.999 instead of their 0.95), only speeds up the start and ends 6 to 9 points lower at conf@128 on validation grids, so it was withdrawn. The rest of the gap with one trial, 34.8% against 66.1%, is most likely the paper's 150K training steps; at conf@K, the paper also keeps the best of 2,048 trials instead of 128.

Mazes: no recipe is reliable at 201×201 without the authors' data format. Their code turns each 9×9 maze into an 11×11 grid with a ring of walls around it, and wraps the borders around (Difficulty 3). Without the ring, the wrap joins corridors on opposite edges. With a wall border instead of the wrap, the public recipe does worse than the paper's on new seeds (69, 4 and 68% at 201×201, mean 47.0%, against 50, 100 and 100%, mean 83.3%): without the ring, no recipe is reliable, and the spread between seeds is as large as the difference between recipes. With the ring, both seeds solve 97 and 98%. That setup is now the default, with the caveat that it rests on two seeds; the table at the top of this section keeps the paper's recipe.

Maze-Hard is not settled: our runs have half the paper's 20K steps, and the public recipe was not trained at our budget.

Three false leads, and one lesson. The first comparison of the public recipe collapsed to 20% at 201×201 and pointed at the wrap-around border; the cause was the missing ring of walls, and the authors' weights confirm it, with 100% at every size with the ring and 0% without. A constant weight average then seemed to lift 201×201 from 71 to 96.5%; but two trainings of the same recipe already diverge on a GPU, and keeping both averages and the raw weights of the same runs showed no rule (on one seed the average with a warm-up solved 42%, the constant average 19%, the raw weights 2%; on the two others both averages solved 100%). And betas of 0.999 looked like a clear gain at 10K steps, and were worse at 20K. Running the authors' weights through our code first would have caught each of them on the first day.

Making the training cheaper

At the speed of the code used above, the rest of the paper does not fit on one laptop GPU: Sudoku with the paper's recipe at its 150K steps is about 24 hours per seed, Sudoku-Extreme at its full budget days. So the training loop was rewritten as a second engine with one rule: the same model, data, losses, optimiser and checkpoint files; only the way a step is executed changes. Every number above comes from the original code.

The changes, in the order they were added:

  • No round trip to the CPU inside a rollout. Before adding noise, the original loop asked the GPU whether any grid was due for noise at this step, which makes the CPU wait for the GPU at every step (48 times per Sudoku training step). The engine draws the firing masks and the noise on the GPU from one seed per step and never asks. The distribution is unchanged, the random stream is not, so a run is not bit-for-bit identical to the original.
  • Fused operations with hand-written gradients. Fixed attention (see Difficulty 3) and the cell update (residual write, noise, group normalisation, clamp) each run as one operation with an explicit backward pass, instead of a chain of small operations that each store their output. On Sudoku, custom kernels for the attention and the normalisation add 1.11× on top of compilation. A further kernel for the two-layer update network gains another 1.14× in a paired test on the L4, and 7% on the laptop (142 against 152 ms per Sudoku step). The laptop benchmark also caught a bug: with the paper's normalisation and the fused normalisation's backward pass, the final cell states written back to the replay buffer were wrong while the loss and gradients were right, because the compiled backward pass reused the memory of the saved states. It is now fixed by copying the final state before the backward pass; the Sudoku runs below were trained with that option off, which gives the same numbers 3% more slowly.
  • Compiled blocks of steps. torch.compile turns a block of four steps into one GPU program. This is the largest gain on Sudoku in bf16, about 3× on its own: a 9×9 grid gives the GPU very little work per operation, so launching operations costs more than computing them. On the small Maze-OOD grids the compiled blocks are also recorded once as CUDA Graphs and replayed without the CPU; this task gains the most on the L4, 5.8× over the reference path.
  • Segmented recomputation. When a rollout does not fit in memory, the engine keeps the cell states only every qq steps and recomputes the others during the backward pass, regenerating the same random draws. qq is chosen automatically as the fastest value that fits the memory budget. This trades time for memory; it is what lets the large ARC and Visual Sudoku models fit under 8 GiB.

Every setting can be switched off on its own, and every configuration was compared to the original at the same precision before being timed, on the real batch sizes: cell states within 10−410^{-4} in fp32 and 0.02 in bf16, and the loss and gradients within fixed relative tolerances, which were never loosened. Several ideas failed that test or were slower, and were dropped: TF32 matrix products on Maze-Hard; a rewrite of the maze perception that changes the order of the sums, because the unnormalised maze states reach 10510^5 and the rounding differences grow past tolerance over 256 steps; compiled bf16 on Maze-Hard, for the same reason; CUDA Graphs combined with recomputation, correct on the first update and wrong on later ones; and capturing a whole training iteration as one graph, which was slower.

On the laptop, against the original code of the published runs:

One step on the laptop RTX 4060Original codeOptimisedSpeed-upPaper's budget
Maze-OOD, fp32 → bf16165 ms64 ms2.6×14 → 5.4 min
Maze-Hard A*, fp32705 ms629 ms1.12×3.9 → 3.5 h
Sudoku-OOD, bf16587 ms137 ms4.3×24 → 5.7 h
Sudoku-Extreme, bf161.22 s (engine's reference path)383 ms3.2×2.8 days → 21 h

Both columns are the average time of a training step over three complete training runs on the same laptop with the GPU otherwise idle: the published runs for the original code, and three runs per task with the optimised engine (5K steps for Maze-OOD, 10K for Maze-Hard, 50K for Sudoku-OOD). The precision is the same in both columns except on Maze-OOD, where the published runs trained in fp32 and the optimised engine in bf16, so part of that gain comes from the precision. Sudoku-Extreme was only benchmarked, not trained, and its baseline is the engine's own reference path, which the original code matched (1.22 s per step) in an earlier, shorter benchmark. Batches and rollout lengths are those of the table below, except Sudoku-Extreme, which uses a batch of 128 instead of the paper's 800 to fit in 8 GB; in fp32 it does not fit at all without recomputation. In a benchmark against the engine's own reference path on the laptop, without the update-network kernel, the gains are 3.5× on Maze-OOD, 1.12× on Maze-Hard, 3.6× on Sudoku-OOD and 3.2× on Sudoku-Extreme.

The engine was developed on a rented NVIDIA L4 with its memory capped at 8 GiB, against its own reference path, which already shares the GPU-side random draws:

One training step on a cloud L4Reference pathOptimisedSpeed-upPeak memory
Maze-OOD, batch 64, 100 steps, bf16273 ms47 ms5.8×0.4 GiB
Maze-Hard A*, batch 32, 256 steps, fp32687 ms420 ms1.6×6.5 GiB
Sudoku-OOD, batch 256, 48 steps, bf16434 ms125 ms3.5×2.8 GiB
Sudoku-Extreme, batch 800, 96 steps, bf166.40 s1.86 s3.4×6.3 GiB

A step includes replay sampling, perturbations, the rollout, the backward pass, the optimiser and the weight average. Both columns were measured in the same session on the same L4. The baseline is the reference path of the new engine, which already shares the GPU-side random draws; it is not the training loop behind the published runs, and it is not the laptop. On Sudoku-OOD that original loop is a little slower on the L4 (452 ms, earlier session); on Maze-OOD the original loop on the laptop (165 ms) is already faster than this baseline, which is why the laptop gain there is 2.6×, not 6×.

Maze-Hard gains least because it must stay in fp32, where compilation helps much less; its gain comes from compiled blocks, from running the update network as matrix products and from custom gradients for the perception.

Speed-ups of the optimised engineSpeed-ups of the optimised engine
Figure 15. Left: one training run at the paper's budget on the laptop RTX 4060, original code against the optimised engine, projected from the average step time of complete training runs (Sudoku-Extreme: from a benchmark). Right: one test-time rollout of one grid on a cloud L4 GPU, the engine's reference path against its optimised settings, already compiled. Log scale.

These are speed measurements. Accuracy was checked separately, by training three seeds per task with the optimised engine at the budgets of the published runs. On Maze-OOD each run took 5.4 minutes instead of 14, and the results land within the spread between seeds, with one weaker seed (90% at 59×59): every seed solves all its validation mazes and 100% of the 13×13 test mazes; at 59×59 the seeds solve 100, 90 and 100%, against 100, 99 and 96% for the published seeds, and at 201×201 100, 36 and 99%, against 100, 83 and 74%. At that size the spread between seeds is larger than any difference between the two engines; across all six runs, half solve at least 99% of the mazes. On Maze-Hard, the runs reached the same validation accuracy as the published ones (62.5% against 63.5%, on 128 mazes). On Sudoku-OOD, after 50K steps like the published runs, they solve 28.5 ± 3.4% of the 1,000 test grids with one trial and 71.0 ± 5.8% with the most confident of 128, against 26.0 ± 6.8% and 67.0 ± 8.4% for the published runs: a little better, but well within the spread between seeds (24 to 33% with one trial here, 17 to 34% there). Within the spread between seeds, the optimised engine trains as well as the original, and three seeds of Sudoku at the paper's 150K steps take 17 hours of the laptop instead of three days.

On the 1,000 Maze-Hard test mazes, the optimised engine's runs solve 62.7 ± 3.0% with one trial, 68.0 ± 2.0% with the most confident of 64 and 75.6% if any of the 64 counts, against 65.4 ± 4.1%, 70.3 ± 2.9% and 77.6% for the original code's runs (Figure 13): the difference is within the spread between seeds. Compilation adds up to about a minute at the start of a run, negligible over hours of training.

Sudoku-Extreme, the pruning measured on it and Sudoku-OOD at the paper's 150K steps are not run: Sudoku-Extreme goes over the 25-hour limit set per experiment (about 45 hours with the original code, evaluations included, even at a reduced 30K-step budget, and 21 hours per seed at the paper's budget even with the optimised engine), and the full Sudoku-OOD run was dropped after the recipe search. ARC-AGI-1 and Visual Sudoku are left out of this replication: even optimised, one ARC model at the paper's budget projects to 52 days on an L4, and Visual Sudoku to 31 days with an assumed batch of one.

About the toy model in this post

The figures above come from a model trained for this page, not the paper's checkpoints. It follows the Maze-OOD column of the paper's Table 3: 16 channels, 4 learned 3×3 perception kernels, an MLP with expansion factor 2 (10,420 parameters), wall padding, pfire=0.8p_{\text{fire}} = 0.8, σinit=0.15\sigma_{\text{init}} = 0.15, replay pool of 4B4B with 25% fresh seeds, noise, damage and target swap with the paper's probabilities, 8-way dihedral augmentation, AdamW with gradient clipping and an EMA of the weights. To fit a CPU budget it uses batch 32 and 64-step rollouts instead of 64 and 100, 20K procedurally generated perfect mazes instead of the 50K of the original dataset, a short learning-rate warmup, and an overflow penalty that keeps cell states within ±2 and a hard clip at ±10 (three stabilisers that are not in the paper). The training, evaluation and figure scripts are in scripts/nca_toy of this site's repository (code to be published); figures.py regenerates every image and animation of this post, in its light and dark versions.