mvakde/mdlARC
Goal is to solve sample efficiency by using ARC-AGI as a benchmark
What it solves
mdlARC tackles the ARC-AGI benchmark, a set of abstract reasoning puzzles that require inferring rules from a few input-output examples. The project shows that small transformers can solve these puzzles when trained entirely from scratch on the puzzles themselves – no language-model pretraining, no external knowledge. It achieves notable scores: 71.88% top-2 on ARC-AGI-1 with an 18.9M-parameter model, and 37.08% on ARC-AGI-2 with the largest 99.8M model.
How it works
Every puzzle is turned into a token sequence: demonstration pairs, then the test input, then the expected output. A small decoder-only transformer is trained from scratch on those sequences. The architecture uses looped blocks – 8 parameter blocks but 28 layers of computation because some blocks run repeatedly. Other techniques include injecting the input at each loop step, deep supervision (extra training signals inside the loop), multi-token prediction, and attention that only lets each demonstration pair attend to itself. During decoding, the model sees many augmented views of the puzzle and votes: each candidate is mapped back to the original frame and the two most-voted grids become the answer. Several optional features – scale augmentation, symbolic guards, likelihood ranking, and generated training tasks – can be switched on per spec.
Who it's for
Researchers and hobbyists interested in reasoning benchmarks, transformer training from scratch, or the ARC challenge. It is also useful for anyone who wants a reproducible, single-command pipeline (dataset download, training, decoding, scoring) that runs on one or more NVIDIA GPUs.
Highlights
- Achieves 71.88 / 81.50 top-2 / oracle on ARC-AGI-1 with a 18.9M-parameter model, and 37.08 public score on ARC-AGI-2 with a 99.8M model – all without any pretrained language model.
- Each paper result has a JSON spec; the repository includes training data generators, Kaggle submission notebooks, and a visualiser.
- The architecture loops 8 blocks to get 28 layers of computation, with deep supervision and multi-token prediction to help training.
- Everything is open: code under MIT-0, model weights under MIT-0, generated puzzles under CC0, and the whole pipeline is reproducible with one command.
Related
- Project
- Project
- Project
- Project