Recirculation
Organizations: Google DeepMind · University of Texas, Austin
Abstract
We describe an inference-time architectural enhancement for off-the-shelf foundation models that systematically reduces perplexity and boosts accuracy across generation and reasoning tasks. Our approach incurs essentially no additional latency during generation, though it requires serial processing in the prefill phase. Motivated by the fundamental limitation that state updates in feedforward transformers are bounded by model depth, our technique, recirculation, introduces a specific form of recurrence that allows the model to act as a dynamical system and track belief states. We distinguish this technique from chain-of-thought computation---which is better reserved for complex inferences rather than basic state tracking---as well as from popular depth-recurrence techniques (looping) and the costly training of recurrent transformers. We also propose and evaluate an adaptive variant of recirculation which requires only light tuning of hyperparameters while freezing the original model weights. Relative to the off-the-shelf baseline, adaptive recirculation achieves surprising gains on the Gemma3 family, including a consistent reduction in perplexity on a suite of datasets, a 21% increase in relative accuracy on GSM8k, and reliable improvements in accuracy on other downstream tasks. Our training-free approach succeeds by leveraging the model itself to inform architectural modifications, suggesting a route to architectural evolution guided by a trained network's properties rather than forced, arbitrary design choices.
Figures & tables
| Pretrained (PT) | Instruc. tuned (IT) | PT, missing BOS | |||||||
| sou=15, dest=8, =.09 | sou=33, dest=28, =.15 | sou=18, dest=9, =.15 | |||||||
| Dataset | # Tokens | baseline perplexity | % reduction | baseline LongPPL † | % reduction | baseline perplexity | % reduction | baseline perplexity | % reduction |
| arxiv | 54.9M | 7.86 | 0.25% | 2.09 | 0.72% | 14.37 | 9.22% | 14.76 | 11.26% |
| pubmed | 26.5M | 7.78 | 0.15% | 1.91 | 0.58% | 14.24 | 12.27% | 11.65 | 9.21% |
| pg19 | 10.9M | 9.44 | 0.20% | 2.48 | 1.18% | 19.97 | 10.76% | 19.49 | 15.72% |
| booksum/chapter | 6.9M | 13.42 | 0.19% | 2.61 | 1.40% | 26.63 | 11.22% | ∗ 29.09 | 15.95% |
| Dataset | Baseline % Correct | Recirculation % Correct | Adaptive Recirculation % Correct | |||
|---|---|---|---|---|---|---|
| MMLU | MMLU | ARC | ARC | |||
| (test) | (train) | Easy | Challenge | |||
| MMLU | 57.90 | 58.28 | 59.83 * | 58.63 | 56.05 | 55.02 |
| ARC Easy | 81.78 | 82.07 | 82.79 | 82.20 | 82.87 | 81.73 |
| ARC Challenge | 54.44 | 54.86 | 54.95 | 52.39 | 53.50 | 53.58 |
| PiQA | 79.98 | 80.52 | 80.20 | 80.30 | 80.52 | 80.09 |
Appendix figures & tables20 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Documents | Total Tokens |
|---|---|---|
| arxiv | 100 | 923,769 |
| C4 | 2000 | 817,377 |
| PG19 | 10 | 1,137,576 |
| Model | Condition | Source | Destination | Ramp Steps | ||
|---|---|---|---|---|---|---|
| Gemma3 1B | PT | 10 | 4 | 0.07 | 1.00 | 10 |
| PT, BOS absent | 11 | 4 | 0.07 | 0.93 | ||
| Gemma3 4B | PT | 15 | 8 | 0.09 | 1.00 | 0 |
| PT, BOS absent | 18 | 9 | 0.10 | 0 | ||
| IT | 33 | 28 | 0.15 | |||
| PT, MMLU devel. set | 16 | 5 | 0.09 |
| Dataset | # tokens | Gemma3 1B PT | Gemma3 4B PT | Gemma3 12B PT | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| baseline ppl | recirc. ppl | % reduction | baseline ppl | recirc. ppl | % reduction | baseline ppl | recirc. ppl | % reduction | ||
| arxiv | 51M | 19.10 | 16.54 | 13.99% | 14.76 | 13.10 | 11.26% | 33.93 | 25.38 | 25.20% |
| big_patent | 55M | 10.89 | 9.90 | 9.13% | 8.74 | 8.12 | 7.08% | 17.55 | 13.20 | 24.76% |
| billsum | 5.8M | 4.71 | 4.65 | 1.25% | 3.57 | 3.41 | 4.46% | 4.50 | 4.09 | 10.96% |
| booksum/book | 7.7M | 32.48 | 27.30 | 15.95% | 29.09 | 24.45 | 15.95% | 77.02 | 51.67 | 32.91% |
| c4/webtextlike | 4M | 17.10 | 16.43 | 3.93% | 14.26 | 13.64 | 4.37% | 19.21 | 16.71 | 13.01% |
| Description | Formula |
|---|---|
| no normalization | |
| convex combination, magnitude ratio | |
| nonconvex combination, magnitude ratio | |
| convex combination, magnitude ratio reweighting, destination renormalized | |
| nonconvex combination, recirculate only component of source orthogonal to destination | |
| convex combination (when aligned) or nonconvex (when orthogonal), magnitude ratio reweighting |
| Dataset / | Baseline | Recirculation | Relative |
| # Distractor Sent. | Error (%) | Error (%) | Reduction (%) |
| Factual | |||
| 0 | 0.00 | 0.00 | N/A |
| 1 | 0.60 | 0.47 | 22.22% |
| 2 | 0.63 | 0.49 | 21.43% |
| 3 | 0.54 | 0.30 | 43.75% |
| Dataset | sou 16 dest 5 .09 | sou 15 dest 8 .09 | sou 18 dest 6 .06 | sou 16 dest 8 .05 | sou 15 dest 8 .05 | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| Baseline | Recirculation | Baseline | Recirculation | Baseline | Recirculation | Baseline | Recirculation | Baseline | Recirculation | |
| MMLU (0-shot) | 57.90% | 58.28% | 57.93% | 58.12% | 57.92% | 58.05% | 57.92% | 58.06% | 57.93% | 58.25% |
| HellaSwag (0-shot) | 75.89% | 75.86% | 75.94% | 76.17% | 76.51% | 76.57% | 76.51% | 76.64% | 76.51% | 76.68% |
| WinoGrande (0-shot) | 69.46% | 69.38% | 69.61% | 69.85% | 69.53% | 69.93% | 69.53% | 69.77% | 69.61% | 70.48% |
| ARC Easy (0-shot) | 81.78% | 82.07% | 81.52% | 82.11% | 82.37% | 82.45% | 82.37% | 82.28% | 82.32% | 82.62% |
| ARC Challenge (0-shot) | 54.44% | 54.86% | 54.35% | 54.44% | 54.61% | 54.86% | 54.61% | 54.52% | 54.61% | 54.95% |
LLM Inference
Large language model inference studies how models generate outputs efficiently, reliably, and securely across hardware and workloads.
See all 280 papers