Summary (Overview)
- ARLOOP is a looped transformer architecture that adapts attention residuals (Kimi Team, 2026) to recurrent depth, replacing PreNorm's fixed unit-coefficient residual aggregation with attention-weighted aggregation over residual sources across depth.
- A key finding distinguishing looped from standard transformers: full residual history is unnecessary. Sliding-window depth attention matches or outperforms full-history attention at larger recurrent depths, because parameter sharing across recurrences produces highly redundant representations.
- Across controlled experiments (140M and 370M parameters; to ), ARLOOP consistently achieves the lowest validation perplexity versus PreNorm and prior residual designs (Sandwich-Norm, DeepLoop, Parcae).
- At realistic LLM pretraining scale, ARLOOP-0.6B beats a matched PRENORMLOOP-0.6B on 7 of 8 benchmarks, with large gains on math/coding (+5.2 GSM8K, +3.1 MBPP).
- ARLOOP-1.2B (0.5T tokens, ) outperforms Huginn-3.5B on all evaluated tasks and is competitive with Qwen3.5-2B despite far less training data. Models and code are released as fully-open artifacts.
Introduction and Theoretical Foundation
Motivation. Looped transformers repeatedly apply a shared set of transformer layers, increasing effective depth without adding distinct parameters (Dehghani et al., 2019; Yang et al., 2024; Saunshi et al., 2025). The number of recurrences provides an explicit axis for scaling training and inference compute.
Problem. Standard PreNorm residual connections accumulate all residual updates into a single stream with fixed unit coefficients:
Unrolling gives , meaning every earlier residual update contributes with a fixed coefficient. As recurrence increases, later computations have no explicit mechanism to select which earlier-depth representations are useful.
Theoretical basis. Attention residuals (Kimi Team, 2026) replace fixed aggregation with attention-weighted aggregation over depth. The paper asks how this selective access should be adapted to recurrent depth, where the same parameters are applied repeatedly and may produce redundant representations (Zeitoun et al., 2026; Wang et al., 2026a).
Methodology
Looped transformer formulation. An -layer stack is reused for recurrences:
with effective depth sublayers but only distinct sublayers.
Attention residuals. With :
where is a learned query vector for the -th sublayer and is the attention-based coefficient assigned to residual update .
Block attention residuals. To prevent the number of sources from growing linearly with effective depth, consecutive sublayers are grouped into blocks of size :
Attention is performed over the embedding, preceding completed blocks, and the partial sum within the current block.
Sliding-window depth attention. Let denote available sources ( = embedding, = most recent block). With window size , the source set is restricted to:
The embedding remains directly accessible at every depth, while attention covers only the most recent blocks. ARLOOP uses full-history attention for and sliding-window attention for .
Experimental setup.
- Controlled experiments: 140M (6 layers) and 370M (12 layers) decoder-only models trained on 11.2B / 29.6B FineWeb-Edu tokens, context 2048, residual block size of 6/12 sublayers (two blocks per recurrence).
- Scale-up: grouped-query attention + SwiGLU, context 4096, multi-stage data mixture (FineWeb-Edu, FineMath, Stack-Edu), SmolLM-style recipe.
- Baselines: PRENORMLOOP, Sandwich-Norm (Geiping et al., 2025), DeepLoop (Li et al., 2026), Parcae (Prairie et al., 2026), with/without input injection.
Empirical Validation / Results
Table 1: Validation perplexity (↓) at 140M and 370M scales (ARLOOP achieves the lowest PPL in every setting):
| Model | 140M R=1 | 140M R=3 | 140M R=5 | 370M R=1 | 370M R=3 |
|---|---|---|---|---|---|
| Sandwich-Norm | 18.98 | 17.19 | 16.59 | 13.92 | 12.97 |
| DeepLoop | 18.72 | 17.05 | 16.52 | 13.69 | 12.78 |
| Parcae w/o input injection | 18.37 | 16.60 | 16.01 | 13.55 | 12.31 |
| Parcae w. input injection | 18.37 | 16.55 | 15.96 | 13.55 | 12.30 |
| PRENORMLOOP | 18.37 | 16.91 | 16.34 | 13.55 | 12.48 |
| ARLOOP | 18.26 | 16.38 | 15.84 | 13.32 | 12.17 |
Gains over PreNorm grow with recurrence: PPL at versus PPL at .
Table 2: Full-history vs. sliding-window depth attention (bold = best per row):
| Scale | PPL PreNorm | PPL Full | PPL SW | Down. PreNorm | Down. Full | Down. SW | |
|---|---|---|---|---|---|---|---|
| 140M | 2 | 17.48 | 17.27 | 17.30 | 42.22 | 41.96 | 42.27 |
| 140M | 3 | 16.91 | 16.46 | 16.38 | 42.72 | 43.69 | 43.09 |
| 140M | 4 | 16.59 | 16.07 | 16.03 | 43.27 | 44.09 | 43.73 |
| 370M | 2 | 12.83 | 12.68 | 12.55 | 48.98 | 48.70 | 49.25 |
| 370M | 3 | 12.48 | 12.27 | 12.17 | 49.29 | 50.23 | 50.67 |
| 370M | 4 | 12.27 | 12.01 | 11.99 | 50.19 | 50.93 | 50.76 |
Why sliding-window works. At sublayer 47 (, 140M), the three most recent residual blocks plus the embedding receive 96% of total attention weight. Pairwise cosine similarities between residual blocks across recurrences are high, indicating redundancy. This differs from standard transformers with matched effective depth, where cross-depth similarity is lower and sliding-window restriction degrades performance.
Table 3: Large-scale comparison (FLOPs in units of ; Data in trillions of tokens):
| Model | Looped | FLOPs | Data (T) | ARC-C | Hella. | Wino. | OBQA | GSM8K | MATH | MBPP | HumanEval |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Qwen3.5-2B | None | 432 | 36 | 54.3 | 67.5 | 66.4 | 37.8 | 60.6 | 35.8 | 49.5 | 32.9 |
| Gemma 3-4B | None | 96 | 4.0 | 58.4 | 77.7 | 72.3 | 43.0 | 38.1 | 25.4 | 60.1 | 34.2 |
| Ouro-1.4B | 4 | 259 | 7.7 | 59.9 | 74.4 | 70.5 | 41.4 | 78.2 | 70.5 | 68.3 | 52.4 |
| OLMo 2-7B | None | 180 | 4.1 | 64.6 | 82.0 | 76.8 | 45.6 | 68.1 | 20.9 | 32.0 | 12.2 |
| OLMo 3-7B | None | 252 | 5.9 | 61.0 | 76.4 | 73.8 | 42.4 | 73.8 | 43.6 | 66.1 | 14.0 |
| Huginn-3.5B | 32 | 28 | 0.18 | 33.6 | 50.6 | 52.7 | 33.4 | 5.1 | 3.7 | 14.8 | 10.3 |
| Huginn-3.5B | 32 | 127 | 0.8 | 44.2 | 68.0 | 62.4 | 40.0 | 26.1 | 14.1 | 33.3 | 20.7 |
| PRENORMLOOP-0.6B (Ours) | 3 | 2 | 0.18 | 46.3 | 60.6 | 61.2 | 39.8 | 35.7 | 20.9 | 33.1 | 17.6 |
| ARLOOP-0.6B (Ours) | 3 | 2 | 0.18 | 45.5 | 62.5 | 61.8 | 40.8 | 40.9 | 26.3 | 36.2 | 20.1 |
| ARLOOP-1.2B (Ours) | 3 | 10 | 0.5 | 56.3 | 71.5 | 66.8 | 45.5 | 63.1 | 37.8 | 52.1 | 33.1 |
Key observations: ARLOOP-0.6B > PRENORMLOOP-0.6B on 7/8 tasks (+5.2 GSM8K, +3.1 MBPP); ARLOOP-1.2B beats Huginn-3.5B on all tasks and matches/exceeds Qwen3.5-2B on all benchmarks despite 72× less training data.
Layer-effect analysis (Figure 4). Using the metric of Csordás et al. (2025) on 50 MATH examples, layers in the 2nd and 3rd recurrences of ARLOOP contribute substantially more to subsequent layers than corresponding deeper layers in PRENORMLOOP—evidence that ARLOOP exploits later recurrent computation.
Table 4: Training memory and throughput at (single NVIDIA H100):
| Model | 140M | 370M | 0.6B | 1.2B |
|---|---|---|---|---|
| Memory (GiB) ↓ | ||||
| PreNorm | 32.8 | 80.0 | 66.5 | 65.4 |
| ARLOOP_full | 33.0 | 80.1 | 66.6 | 65.4 |
| ARLOOP_sw | 32.9 | 80.1 | 66.6 | 65.4 |
| Throughput (tokens/s) ↑ | ||||
| PreNorm | 131.1k | 45.8k | 28.9k | 15.0k |
| ARLOOP_full | 107.5k | 39.1k | 24.8k | 13.0k |
| ARLOOP_sw | 114.5k | 40.9k | 25.9k | 13.6k |
Memory overhead is negligible; ARLOOP_full is ~15% slower and ARLOOP_sw ~10% slower than PreNorm, attributable to high-bandwidth memory traffic rather than arithmetic.
Additional findings:
- Fixed vs. dynamic recurrence: fixed recurrence gives better PPL and downstream performance at both 140M and 370M scales.
- Inference-time scaling: performance improves up to the maximum training recurrence but does not extrapolate beyond it, consistent with prior looped LLM observations (Prairie et al., 2026; Zhu et al., 2025).
Theoretical and Practical Implications
- Design principle for looped transformers: selective residual access via depth attention is an effective mechanism for exploiting recurrent computation; the optimal design differs from standard transformers because parameter sharing induces representational redundancy, making local (sliding-window) attention sufficient and cheaper.
- Evaluation insight: PPL gains in controlled settings are modest, but gains on complex generative tasks (math, code) are much larger—highlighting that residual designs must be evaluated beyond perplexity and multiple-choice benchmarks, a gap in prior work (Parcae, DeepLoop, Zeitoun et al.).
- Compute efficiency: looped transformers with attention residuals offer a parameter- and data-efficient route to strong math/coding performance (ARLOOP-1.2B uses 0.5T tokens vs. Qwen3.5-2B's 36T).
- Open science: ARLOOP is fully open (code + checkpoints), addressing the scarcity of fully-open looped LLMs (only Huginn previously released all training artifacts).
Conclusion
ARLOOP adapts attention residuals to recurrent depth, consistently outperforming PreNorm and prior residual designs across parameter scales (140M–1.2B) and recurrence depths (–5). The central architectural insight is that looped transformers need only local residual access: sliding-window depth attention matches or beats full-history attention at larger , justified by high cross-recurrence representation similarity and attention concentration on recent sources. At scale, ARLOOP-0.6B substantially improves over matched PreNorm (especially on math/coding), and ARLOOP-1.2B outperforms Huginn-3.5B on all benchmarks and is competitive with Qwen3.5-2B under a far smaller data budget.
Future directions implied: kernel optimization to close the ~10% throughput gap; understanding why selective residual access does not enable recurrence extrapolation (composing information within trained depth vs. generalizing beyond it appear to be distinct problems); and further scaling of looped LLMs with attention residuals.
Related papers
- Impossible Code, Barely Changed Score: A Replay Study of Judge-Based Evaluation
A high judge-based coding score can hide severe syntax damage, with invalid Python rising from under 1% to 63-67% while Pass@32 drops only 3 points.
- Scaling Laws for Tool-Use Agents via Controllable Environment Synthesis
SynthAPI's composition-aware scaling law predicts tool-use agent performance 6x more accurately than data-quantity-only laws, showing tool and database diversity matter more than task count as compute grows.
- There Is No Free Loop: When Does Looping a Trained Model Pay for Its Inference Compute?
Looping transformer layers only improves accuracy in small 0.8B models, not at 4B or 9B, and is only worthwhile under a fixed parameter budget.