Unlocking the Power of Loops in Pretrained LLMs with Loop Residuals

Xuanlei Zhao, Hailun Xu, Kai Wang, Yang Luo, Yingxuan Ren +6 more
11/23/2026
cs.CLcs.LG

No confident code implementation found for this paper.

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.

Show full abstract

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 for pretrained LLMs. Building on Attention Residuals, LoopRes lets each looped layer attend directly to the outputs of earlier loops. Since these outputs are iterates of the same layers and become harder to tell apart, we give each a trainable loop-aware key that encodes its structural identity. Attending to all earlier loops also lets layers skip intermediate ones, so we restrict each layer to a residual window of the latest W loops, forcing every loop to build incrementally on recent ones. Across 6 pretrained LLMs from 3 model families and 9 benchmarks, LoopRes delivers significant and consistent gains: at 2x compute, it improves Qwen3-1.7B-Base by 29.1% over SFT, more than doubling the gain of the state-of-the-art baseline. The gains hold on larger models up to 30B and across all three families. More importantly, from 1.7B to 8B, LoopRes scales more steeply than SFT as compute grows, reaching a higher ceiling while needing less compute on long outputs. These results establish LoopRes as an effective looping approach, delivering both better performance and better test-time scaling.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhao2026unlocking,
  title  = {Unlocking the Power of Loops in Pretrained LLMs with Loop Residuals},
  author = {Xuanlei Zhao and Hailun Xu and Kai Wang and Yang Luo and Yingxuan Ren and Zirui Zhu and Yuxuan Lou and Kun Xu and Yan Wang and Kanchan Sarkar and Yang You},
  year   = {2026},
  eprint = {2611.31094},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.31094v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.31094.svg)](https://codeofpaper.com/paper/2611.31094)

Discussion