IN THIS BREAKDOWN · 10 SECTIONS
You can read 18% of this breakdown.
The paper in one minute
Today's reasoning models buy accuracy with tokens: they write a long chain of thought before answering. This paper buys accuracy with depth instead. Its model, released as Huginn, has a transformer block in the middle that it can run as many times as you like before producing each token. More iterations mean more computation per token, with no extra parameters and no extra tokens.
The architecture has three parts. A two-layer prelude turns tokens into an embedding e. A four-layer core block starts from a random state and updates it r times; at every iteration the core sees the current state concatenated with e, which keeps the loop anchored to the input. A two-layer coda turns the final state into next-token probabilities. During training the number of iterations is drawn at random for each step from a heavy-tailed distribution with a mean of 33, and gradients flow only through the last eight iterations to bound memory. The authors trained one 3.5B-parameter model for 800B tokens on up to 4,096 AMD GPUs of the Frontier supercomputer, after two failed attempts.
At test time, accuracy rose with iterations and saturated at different points per task: HellaSwag near 8 iterations, while GSM8K and HumanEval kept using more. At 32 iterations the model scored 38.2% on ARC-Challenge, 34.8/42.1 on GSM8K with chain of thought, and 23.2% on HumanEval, competitive with open models trained on public data except the newest OLMo-2. The same looping structure also gives per-token early exits, KV-cache sharing and speculative decoding without any additional training.
Research notes: the problem, approach and results
materialized parameters at 32 iterations of the 3.5B model (Figure 1)
ARC-Challenge accuracy from 1 to 32 iterations at test time (Tables 1 and 4)
pretraining tokens, on up to 4,096 AMD MI250X GPUs of the Frontier supercomputer (Section 4)
Reasoning models spend test-time compute by writing long chains of thought. That needs long-reasoning training data, long context windows, and squeezes every intermediate thought through one chosen token at a time.
Build a transformer whose middle block is looped: a prelude embeds the input, a shared core block is applied a variable number of times starting from a random state with the input injected every iteration, and a coda decodes. Train with a random number of loops per step so the model works at any depth, then choose the depth at test time.
A 3.5B model trained on 800B tokens improved steadily with more iterations: GSM8K CoT reached 34.8/42.1 at 32 iterations, above most open models of its data class, and ARC-C 38.2. It also supports per-token early exits, KV-cache sharing and self-speculative decoding without extra training, though it trails OLMo-2-7B.
Why it matters to an FDE
Huginn is a research model, not one to deploy, but it changes how to think about where inference compute goes.
Compute per token can be a dial. With chain of thought, harder requests cost more output tokens. Here, harder requests cost more iterations per token, and the model can decide per token when to stop. If architectures like this reach production, cost and latency per request will vary with difficulty even at a fixed output length, which changes capacity planning and pricing.
Small memory footprint, large compute. At 32 iterations the model reads 3.5B parameters but does the arithmetic of a 52.6B model. Deployments limited by GPU memory and less by compute could fit such a model where a larger dense one would not.
Parameter-matched is not compute-matched. The paper's fixed-depth twin has the same parameters but runs the core once; at 32 iterations the recurrent model spends about 15 times its FLOPs per token. When a vendor says a small model matches a large one, ask what each spends per token.
Understand the mechanism. Try it on a real problem.
Unlock this breakdown and 290 more papers.
Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.
6 months · One payment · No auto-renewal
- ◇1 architecture diagram
- </>1 runnable code experiment
- ▦2 results tables
- ?5 interview questions with answers
- 03Key takeaways
The architecture, the training recipe, what transfers at test time, and two misreadings
Free account - 04How it works
Equations, the layer layout, the sampling distribution, initialization, and the inference features
Premium - 05The numbers that matter
Benchmarks by iteration, math and code, the fixed-depth twin and adaptive compute
Premium - 06Try it yourself
Rebuild the parameter counts, compare compute per token, and test input injection on a toy
Premium - 07Where it breaks
One undertrained run, no compute-matched baseline, latency, fragile training and slips
Premium - 08Using it on a deployment
Evaluating depth-recurrent claims, planning for variable compute, and serving implications
Premium - 09Interview angles
Five questions this paper prepares you for, with answer hints
Premium - 10Read next
Where to go from here on this site
Premium
