Papers
Unlocking the Power of Loops in Pretrained LLMs with Loop Residuals
LoopRes offers a practical way to add iterative compute to pretrained LLMs, using loop-aware residual access instead of requiring training a looped model from scratch.

- arXiv
- 2611.31094 · Preprint · not peer-reviewed
- Published
- 2026-11-23
- Authors
- Xuanlei Zhao, Hailun Xu, Kai Wang, Yang Luo, Yingxuan Ren, Zirui Zhu, Yuxuan Lou, Kun Xu, Yan Wang, Kanchan Sarkar, Yang You
In plain words
A looped model reuses the same layers repeatedly, increasing computation without adding a new set of parameters. Earlier methods for turning pretrained models into looped models often gave each new loop a limited way to use earlier results, so the extra computation brought only modest gains.
AI summary
Overview
- Research area: Natural language processing, specifically methods for making pretrained language models use additional computation more effectively.
- Technical level: Intermediate.
- Scope: The paper introduces Loop Residuals (LoopRes), a way to fine-tune pretrained language models into looped models and improve their math and code performance and test-time scaling.
What This Paper Is About
A looped model reuses the same layers repeatedly, increasing computation without adding a new set of parameters. Earlier methods for turning pretrained models into looped models often gave each new loop a limited way to use earlier results, so the extra computation brought only modest gains.
LoopRes aims to make those repeated passes more useful. It lets layers select among outputs from recent loops, while also giving the model a way to distinguish outputs by their place in the loop structure.
Key Contributions
- Loop-aware residual connections: LoopRes lets each layer build its input by attending directly to outputs from earlier loops, rather than relying on a narrow pathway that compresses loop history.
- Trainable structural keys: It gives each source a trainable loop-aware key alongside a content-based key. The former identifies where the source comes from; the latter helps select sources based on their content.
- A bounded window of recent loops: LoopRes restricts the available sources to a window of recent loops, encouraging loops to build on recent computation and keeping the number of sources bounded as loop depth increases.
- Evaluation across models and tasks: The paper tests LoopRes on six pretrained LLMs from three model families, compares it with supervised fine-tuning (SFT) and eight looped baselines, and evaluates on math and code benchmarks.
Main Findings
- Large gains on Qwen3-1.7B-Base: Across the seven math and code benchmarks in the main comparison, LoopRes improves the average score over SFT by 29.1% at 2× compute and 33.7% at 4× compute. It scores best on every benchmark in that comparison at both compute budgets.
- Stronger than the tested baselines: At 2× compute on Qwen3-1.7B-Base, the strongest baseline improves the average score over SFT by 13.9%; LoopRes’s improvement is more than double that gain.
- Gains on larger backbones: At 2× compute, LoopRes raises the average score over SFT by 9.2 points on Qwen3-4B-Base, 8.6 points on Qwen3-8B-Base, and 5.5 points on Qwen3-30B-A3B-Base. LoopRes on Qwen3-4B-Base also exceeds SFT on Qwen3-8B-Base in average score.
- Results across model families: At 2× compute, the average score rises from 14.3 to 19.6 on Llama-3.2-1B and from 52.1 to 64.1 on Qwen3.5-2B-Base.
- Loop depth and test-time scaling: On Qwen3-1.7B-Base, scores improve as loops deepen and gradually saturate beyond L = 5; L = 3 gives the best reported trade-off between score and compute. In test-time scaling experiments, LoopRes’s score rises more steeply than SFT’s as decode compute grows, and the paper reports that it can reach the same score at lower compute on long outputs.
- Low overhead with the fused implementation: On Qwen3-1.7B-Base, LoopRes takes 1976.6 ms per training step and uses 8.62 GiB of peak activation memory, compared with 1886.3 ms and 8.56 GiB for the plain-residual variant. The paper reports that without its fused kernel, the naive implementation has much higher step time and peak memory.
Methodology in Plain English
The researchers start with a pretrained model and divide its layers into three parts: a prelude that runs once, a core that runs repeatedly, and a coda that runs once to make the next-token prediction. They fine-tune the resulting model using the cross-entropy training objective.
Within the core, LoopRes makes outputs from recent loops available as separate sources. Each layer learns how much to use each source through two signals: a content-based signal and a trainable signal that identifies the source’s loop and layer position. A residual window limits access to recent loops; the main experiments use W = 1. The researchers also use a fused Triton kernel to reduce the cost of combining these sources.
The models are fine-tuned on math and code questions and compared with SFT and eight looped baselines. The smaller backbones are evaluated on seven math and code benchmarks; the 4B and larger backbones are evaluated on five harder benchmarks.
Why This Matters
- Impact on research: The paper presents loop depth as a way to scale computation in pretrained models. Its results suggest that repeated computation can be more effective when later passes have structured access to earlier outputs.
- Potential applications:
- Math question answering, where additional computation may help with difficult problems.
- Code generation and coding benchmarks.
- Long-output reasoning, where the paper reports that LoopRes can match SFT at lower compute on long outputs.
- Generating model responses for post-training rollouts, a possible use the authors identify for future work.
- Industry relevance: LoopRes adapts pretrained models through fine-tuning rather than requiring a new, larger model to be pretrained from scratch. The authors identify this as a potentially lower-cost route to stronger capabilities, while also noting that looping increases computation per token and may raise energy use at scale.
- Evidence boundaries: The experiments cover math and code benchmarks and supervised fine-tuning. The paper says that results on broader tasks, including general instruction following and open-ended generation, remain to be validated; it also does not explore LoopRes’s interaction with reinforcement learning.
Future Directions
- Evaluate LoopRes on broader tasks, including general instruction following and open-ended generation.
- Test how LoopRes interacts with reinforcement learning and whether its reported long-output compute efficiency can reduce rollout costs.
- Explore adaptive loop depth, so the model can decide how many loops a token or sequence needs.
- Investigate larger backbones and whether a simpler, fixed pattern of connections can capture most of LoopRes’s gains.
Target Audience
This paper is most relevant to researchers and practitioners working on language-model architectures, efficient fine-tuning, math and code reasoning, or test-time compute scaling. It may also interest teams exploring ways to improve pretrained models without pretraining a larger model from scratch.
Authors’ abstract
Looped Transformers iterate a shared block of layers to increase computation without adding parameters, offering stronger performance and test-time scaling. However, this power has so far required training from scratch and yielded only modest gains for LLMs. Finetuning existing models into loops is far cheaper, yet also brings only marginal gains over SFT. We propose LoopRes, an effective, scalable, and simple approach that turns loops into significant and consistent gains…
The full abstract on arXivRelated papers
- DiffuSpeech: Silent Thought, Spoken Answer via Unified Speech-Text Diffusion 2026-01-30 · cs.CL · Also by Yang You, Yingxuan Ren +1
- MoST: Mixing Speech and Text with Modality-Aware Mixture of Experts 2026-01-15 · cs.CL · Also by Yang You, Yuxuan Lou
- LLMs Don't Know What They Know: Benchmarking Temporal Self-Knowledge for Financial Backtesting 2026-11-04 · cs.CL · Also by Yan Wang
- Vela: User Behavior as Supervision Sparks LLM Intelligence 2026-10-10 · cs.CL · Also by Yang Luo
- SAS: Simple Attention Sparsification via End-to-End Optimization of Context Ranking 2026-09-11 · cs.CL · Also by Yan Wang