I trained a small transformer in 1.5hrs and it beats many LLMs
TL;DR Highlight
A small transformer trained from scratch in 1.5 hours on one 5090 scored 44% on ARC-AGI-1
Who Should Read
A backend or ML-adjacent developer who mostly uses LLM APIs and wants to weigh training a small model from scratch against them on cost and accuracy
Core Mechanics
- It's a small transformer, not an LLM
- It was trained from scratch in 1.5 hours on a single 5090.
- It scored 44% on the ARC-AGI-1 public eval at a cost of 67 cents.
- The author says it matches TRM/HRM.
- Each input-output pair becomes a token sequence
- Each puzzle gets its own learned additive embedding.
- Because each sequence has two 2D grids, positions use learned 3D RoPE.
- Color and dihedral augmentations are applied, then inverted at inference, and the 2 most common outputs are submitted.
- Representation mattered most
- Switching 3D RoPE to 1D dropped the score to about 24%.
- Removing the per-task embedding also dropped it to about 24%.
- Dropping input-token loss raised 40% to 44%
- The loss now covers output tokens only, which makes it supervised.
- The author says they don't understand why it helps.
- Test loss got worse while the score improved.
- Modern architecture and a new optimizer changed score and cost
- Score gains came from SwiGLU, RMSnorm, more data diversity and 8 layers instead of 4.
- Cost cuts came from fewer augmentations, NorMuon instead of AdamW, and flash attention.
- Vanilla Muon failed to converge at the end, and NorMuon fixed that.
- Non-overlapping ARC-2 tasks were added as training data
- ARC-2 holds 773 ARC-1 puzzles and 347 new ones.
- The 773 repeated puzzles were filtered out to avoid leakage.
- Without the extra data it still scores about 40% but needs roughly double the compute.
Community Reactions
- Agreement that LLM gains come from post-training
- One commenter said this applies to every benchmark.
- Another said even private tests require trusting providers not to log and train on them.
- Pushback that 67 cents is misleading
- One commenter said spending $100 would hit a ceiling fast, not give much better results.
- They also asked what comes next after a custom model does decently on one task set.
- Debate over training on eval inputs
- One commenter called it teaching to the test, a grey area.
- Another said that if questions were seen one at a time, 44% wouldn't be reached.
- Eval puzzles share a generating process
- One commenter said the model uncovers that shared process.
- They suspected unrelated or garbage questions would reduce performance.
- Author clarifications and title complaints
- The author stressed it is an autoregressive transformer, not an LLM.
- Another commenter called the title clickbaity.
- It doesn't compete with LLMs outside ARC-AGI-1.
How to Apply
- Reframe one of your tasks as input-output pairs
- Pick a repeated classification or transformation task and collect 20 example pairs within 30 minutes.
- That list is the starting point for judging whether a small model can learn it.
- Clone mdlARC and measure the run cost
- Download the public code and run it on one GPU, logging time and cost.
- The article puts about 2 hours on a 5090 at 67 cents.
- Apply loss to output tokens only and compare
- If you have a sequence model, run it twice with and without input loss under identical settings.
- Record both test loss and actual score.
- Match compute scope when comparing benchmarks
- Note in your table whether pretraining cost is included.
- Comparing total lifetime compute, as this article does, is the fair way.
Try It
# Paste into Claude or ChatGPT (simplified version of the article's method: checking whether a small model can learn input-to-output pairs)
I run a service that handles {{task description}}. Input-to-output examples: {{20 examples}}.
Using this article's approach, tell me:
1. How to turn these examples into token sequences
2. Augmentations that multiply the data without changing meaning
3. An experiment comparing loss on output tokens only vs. input plus output
4. Criteria for choosing between training a small transformer from scratch and using an LLM API
Next step: ask for a training-script skeleton based on that experiment design.Terminology
Related Papers
Gemini 4 Neon is the new #1 on the Models Engineering Index
Gemini 4 Neon ranks first on the Models Engineering Index with 68.0, combining multiple benchmarks.
LLMs can read and write executables byte by byte from a hex dump
Given only a hex dump and no tools, an LLM analyzed, patched and wrote working executables.
Claude was trained on protein sequences at scale
Next-amino-acid tests on obscure proteins show only the latest Claude models predict them
Remembered as Brief: Stored Preferences SilentlyRemove Decision-Critical Information
A stored 'keep it short' preference silently drops warnings; listing must-know points first restores content.
All AI-generated code should be Open Source
A blog argues AI-generated code should be open source; most HN commenters disagreed.
What thousands of conversations look like inside a language model
Mapping Qwen3-1.7B states showed Chinese sitting apart from English, while German and Croatian overlapped it.
AI, activity, and outcomes in software engineering
AI sped up writing code, but shipping speed did not rise as much, says a talk
LLMs Play Zachtronics' TIS-100
16 LLMs played TIS-100 and set 133 new Pareto frontier points across 18 puzzles