Unlocking the Power of Loops in Pretrained LLMs with Loop Residuals

Hugging Face Daily Papers Papers

Summary

LoopRes enables pretrained LLMs to benefit from looped computation by letting layers attend to recent earlier loops with trainable loop-aware keys, delivering consistent gains and improved test-time scaling over SFT across 6 models and 9 benchmarks.

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 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.
Original Article
View Cached Full Text

Cached at: 11/24/26, 08:02 PM

Paper page - Unlocking the Power of Loops in Pretrained LLMs with Loop Residuals

Source: https://huggingface.co/papers/2611.31094 Authors:

,

,

,

,

,

,

,

,

,

Abstract

LoopRes enables pretrained large language models to benefit from looped computation by letting layers attend to recent earlier loops with trainable loop-aware keys, yielding consistent gains and improved test-time scaling.

Looped Transformersiterate ashared block of layersto increase computation without adding parameters, offering stronger performance andtest-time scaling. However, this power has so far requiredtraining from scratchand yielded only modest gains forLLMs.Finetuningexisting models into loops is far cheaper, yet also brings only marginal gains overSFT. We proposeLoopRes, an effective, scalable, and simple approach that turns loops into significant and consistent gains for pretrainedLLMs. Building onAttention Residuals,LoopReslets eachlooped layerattend directly to the outputs ofearlier loops. Since these outputs are iterates of the same layers and become harder to tell apart, we give each atrainable loop-aware keythat encodes itsstructural identity. Attending to allearlier loopsalso lets layers skip intermediate ones, so we restrict each layer to aresidual windowof thelatest W loops, forcing every loop to build incrementally on recent ones. Across 6 pretrainedLLMsfrom 3 model families and 9 benchmarks,LoopResdelivers significant and consistent gains: at 2x compute, it improves Qwen3-1.7B-Base by 29.1% overSFT, 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,LoopResscales more steeply thanSFTas compute grows, reaching a higher ceiling while needing less compute on long outputs. These results establishLoopResas an effective looping approach, delivering both better performance and bettertest-time scaling.

View arXiv pageView PDFProject pageGitHub34Add to collection

Get this paper in your agent:

hf papers read 2611\.31094

Don’t have the latest CLI?curl \-LsSf https://hf\.co/cli/install\.sh \| bash

Models citing this paper0

No model linking this paper

Cite arxiv.org/abs/2611.31094 in a model README.md to link it from this page.

Datasets citing this paper0

No dataset linking this paper

Cite arxiv.org/abs/2611.31094 in a dataset README.md to link it from this page.

Spaces citing this paper0

No Space linking this paper

Cite arxiv.org/abs/2611.31094 in a Space README.md to link it from this page.

Collections including this paper1

Similar Articles

LoopUS: Recasting Pretrained LLMs into Looped Latent Refinement Models

Hugging Face Daily Papers

LoopUS is a post-training framework that converts pretrained LLMs into looped architectures for improved reasoning performance via latent-refinement and adaptive early exiting. It addresses computational costs and capability preservation issues found in existing looped computation methods.

DeepLoop: Depth Scaling for Looped Transformers

arXiv cs.LG

DeepLoop introduces a residual scaling method for looped Transformers that adjusts for parameter visits, improving stability and performance when physical blocks are reused across multiple rounds.