Part of the ARC Prize 2026 series. The argument this engineering supports is in Neither a prover nor a guesser. Project page: ARC Prize 2026.
ARC-AGI-2 gives each task two or three demonstration pairs of coloured grids up to thirty by thirty, and one or more test inputs. You submit two candidate outputs per test input. A task counts when one of the two matches exactly. There is no partial credit for a grid that is one cell off, and the evaluation tasks are chosen to be unlike the training tasks. The whole entry has to run inside a fixed compute budget on a Kaggle notebook with no internet, so every design choice is also a scheduling choice.
I built the entry in two halves and measured each half to its limit before deciding how they should meet.
The probabilistic half: a model that adapts to each task
The generator is the public NVARC pipeline, which I rebased onto my own fork and extended. The backbone is a four-billion-parameter Qwen model fine-tuned on a grid-token representation, so a puzzle is a short sequence over twelve tokens rather than an image. For every task it is adapted again at test time: one hundred and twenty-eight gradient steps of a low-rank adapter, trained on that task’s demonstrations under dihedral and colour-permutation augmentation. Then it decodes candidate outputs under sixteen symmetric views of the test input, keeping every continuation whose probability stays above a floor rather than sampling, and each candidate is rescored under the views it was not decoded from. The ranker prefers candidates that many views agree on and that no view finds implausible.
Three things about this design are worth saying plainly, because they shaped everything after.
Test-time training is a symmetry prior in disguise. The adapter does not learn the task’s rule from the demonstrations; it learns to be consistent across the eight dihedral transforms and the colour relabellings of those demonstrations. That is a deterministic invariance, injected through gradient descent. It is powerful precisely because ARC’s rules are almost all invariant to it.
The ranker is a vote, not a check. Agreement across sixteen views says a candidate is stable, not that it is correct. A wrong candidate that is wrong in a symmetric way is unanimous.
The time budget is part of the model. With four GPUs and a hard wall clock, the pipeline estimates each task’s cost from grid size and demonstration count, orders the queue, and spends leftover time on a second seeded pass over the least certain tasks. I extracted the scheduler into a standalone simulator with a fake clock so I could test ordering, per-task caps, and a third pass on a two-hundred-and-forty-task hidden-set stand-in without burning GPU hours. The simulator showed that the queue never starved and that caps never bound, which is the kind of negative that saves a day.
Measuring the generator, not just scoring it
The number I cared about was not the proxy score but its decomposition. I wrote an analyser that takes the full candidate pool from a run over the one-hundred-and-twenty public evaluation tasks and sorts every test output into four bins: selected correctly; correct grid present in the pool but ranked outside the two attempts; candidates present but none correct; no candidate at all. (The public evaluation set is a leaked proxy for this model family, since the authors’ synthetic training data described those puzzles, so I used it only for relative structure, never as a forecast.)
The structure was unambiguous. Correct grids existed in the pool for well over a third of outputs. The ranker captured most of them but left about a sixth of the available correct answers outside the two attempts, which is a selection loss worth several whole tasks. And nearly two thirds of outputs never had the correct grid generated at all. Of those, the ones with no candidate whatsoever were the largest grids, where the probability floor pruned everything.
I then ran a pre-registered selector bake-off on that pool: a dozen rankers including symmetry-aware product-of-experts variants, robust aggregations, duplicate-view removal, and a fitted linear combination, each chosen on one random half of the tasks and scored on the other half, in both directions. None beat the baseline ranker on held-out halves. That closed selection as a lever and said something more useful: the remaining headroom in ranking is not recoverable from more agreement statistics. It needs a different kind of evidence.
The deterministic half: programs that must replay
The second half is a program leg. It has three pieces.
A grid language. A small numpy library of the operations ARC rules are made of: objects and their bounding boxes, crop and paste, symmetry and tiling period detection, flood fill and enclosed-region fill, gravity on cells and on objects, rays and segments, colour maps, counts and masks, neighbourhood windows, template matching, splitting a grid along its separator lines. The library ships with a documentation sheet written to be pasted into a prompt, because its intended author is a model.
Here is one program in that language, written from a public evaluation task’s three demonstrations alone. The task shows a small multi-coloured pattern and a larger single-colour shape, and the answer stamps the pattern onto every filled cell of the shape.
def solve(grid):
bg = bg_color(grid)
objs = components(grid, by_color=False, diag=True, bg=bg)
pat = max(objs, key=lambda o: len(o.colors)).sub
shape = min(objs, key=lambda o: len(o.colors)).shape
h, w = pat.shape
out = np.full((shape.shape[0] * h, shape.shape[1] * w), bg)
for r in range(shape.shape[0]):
for c in range(shape.shape[1]):
if shape[r, c]:
out[r*h:(r+1)*h, c*w:(c+1)*w] = pat
return out
The verifier replays it on the three demonstrations in six milliseconds and returns verified: true, n_pass: 3, n_train: 3. That return value is the credential the selection layer trusts, and it is something no amount of agreement among sampled grids can produce.
A sandboxed verifier. A program is accepted only if it reproduces every demonstration exactly. The verifier parses the program into a syntax tree and rejects anything outside a whitelist: no imports beyond numpy and scipy, no class definitions, no dunder access, no file I/O. It runs in a forked child with an address-space limit, a zero file-size limit, and a wall-clock kill. The output is checked for shape and for colours outside the palette. It returns the pass count, the first failing demonstration, and the mismatch message, which is exactly the text a repair prompt needs.
A typed grammar solver on the CPU. Independently of the model, a solver parses grids into objects, instantiates templates from a typed grammar, solves their parameters against the demonstrations, rejects any template that misses a demonstration, and emits two diverse grids. It was developed on a split of the training set with a frozen hold-out that was opened exactly once per wave, with the file hash recorded before scoring. Its wrong-answer count on that hold-out was zero across every wave; its coverage was small and bounded by the parse, as the lead post describes.
The verifier also taught me the sharpest lesson of the competition. Of four hand-written programs for evaluation tasks, three first drafts passed every demonstration, and only the one above was also right on the test grid. Demonstration-verified is not the same as correct, because two or three pairs underdetermine the rule. So the deterministic layer cannot be the whole selector either. It can only promise that a program is consistent, and the probabilistic layer has to supply the prior that picks the simplest consistent one.
Where the handoff sits
Putting the halves together, the architecture for the static track is:
- deterministic canonicalisation and object parsing shared by both halves;
- the adapted model proposes grids under sixteen views, and proposes programs in the grid language;
- the sandbox replays every proposed program on every demonstration and returns the first mismatch;
- a repair prompt rewrites failed programs from the mismatch message, for a bounded number of rounds;
- selection fills the two attempts in a fixed order: the simplest verified program first, then the most view-consistent grid, never overwriting a verified answer with a vote;
- the scheduler, validated in simulation, keeps the program leg inside the time left after the generator’s first pass.
The reason to put verification between proposal and selection rather than after is the measurement above. Selection is already near its ceiling on agreement statistics. The only way to lift it is to hand it candidates that carry a different kind of credential, and a replayed program is that credential.
Tooling that outlived the competition
Several pieces are reusable outside ARC, and are the parts I would carry into any similar problem:
- the pool analyser, which turns a score into a generation/selection/no-candidate decomposition and tells you which lever to pull;
- the selector bake-off harness with task-seeded held-out halves, so a ranker is never tuned and scored on the same tasks;
- the scheduler simulator with a fake clock and an online cost-model estimator, for testing budget policies without GPU time;
- the sandboxed verifier, which is a general tool for letting a model write code you intend to execute.
The next step on this track is the object-correspondence proposer described in the lead post, so that the parse the grammar solver abstains on becomes a thing the model can propose and the verifier can check.