The Tiny Recursive Model and the Hierarchical Reasoning Model both solve an ARC-AGI test grid many times, each time under a different augmentation of the puzzle, and answer with the most common result. The augmentations include the eight symmetries of a square (rotations by multiples of 90 degrees, with or without a mirror flip) and permutations of the colours. A prediction made on an augmented grid has to be mapped back before the votes are counted. ARC-AGI allows two attempts per test input, so the two most common predictions are kept.
An augmentation is a tuple (k, flip, perm). A grid is a 2-D integer array of colours 0 .. C-1, and perm is a permutation of 0 .. C-1.
augment(grid, k, flip, perm)
k quarter turns (as np.rot90(grid, k) does), then, if flip is true, mirror it left to right, then replace every colour c by perm[c]. Return a new integer array.undo(grid, k, flip, perm)
undo(augment(g, k, flip, perm), k, flip, perm) equals g for every grid.vote(solver, grid, augs, attempts=2)
augs, compute undo(solver(augment(grid, ...)), ...), where solver takes and returns a 2-D integer array.attempts most common ones as nested lists, most common first. Ties keep the order in which the predictions first appeared. If there are fewer distinct predictions than attempts, return them all.