← All papers  /  Oct 29, 2026
Efficiency

How to Loop Your Transformer: Loop Scaling, Specialization, and Parallel Inference

First page
How to Loop Your Transformer: Loop Scaling, Specialization, and Parallel Inference
The curator’s take

Chanakya Ekbote, Artidoro Pagnoni, Sujan Kumar Gonugondla and colleagues (FAIR at Meta) run a joint study of looped transformers across model size, training compute and decoding speed, with dense decoder-only models up to 1B parameters trained on up to 155B tokens and up to 32 loops.

Ask this paper

Key points
01

Design by constraint. Looping the full transformer generally gives the strongest quality at a fixed parameter budget. Looping a middle block of layers gives a better return when training FLOPs are constrained.

02

Limits of more loops. Gains saturate, reverse or become unstable as loops increase, and the point depends on the looping strategy and tokens per parameter.

03

Loop adapters. Small loop-specific low-rank adapters give modest gains at few loops and become more useful as the same weights are reused across more loops.

04

Parallel decoding. The original Parallel Loop Transformer does not consistently retain quality. Preserving the current-token embedding and normalizing it separately from the previous-token hidden state recovers strong performance across scales.

Abstract

Looping in transformer models reuses weights by repeatedly applying the same transformer, or parts of it, making the model deeper without increasing its parameter count. Whether looping is useful depends on which constraint dominates: model size, training compute, or autoregressive inference efficiency. We study these trade-offs jointly in dense decoder-only transformers trained from scratch, varying which parts of the model are looped, how many loops are applied, and how information is passed between loops. Our experiments span models with up to 1B parameters, trained on up to 155B tokens with up to $1.07\times10^{21}$ FLOPs and 32 loops. We find that looping the full transformer generally gives the strongest quality at a fixed parameter budget, whereas looping a middle block of layers gives a better return when training FLOPs are constrained. Adding loops is not uniformly beneficial: gains eventually saturate, reverse, or become unstable. This motivates asking whether forcing every loop to use the same weights limits the benefit of deeper looping. We address this by adding small loop-specific low-rank adapters that improve quality, with larger gains as more loops are added. Looped transformers also suffer a decoding slowdown proportional to the number of loops. Parallel Loop Transformers address this by passing hidden states between loops across adjacent token positions, allowing loop stages to run concurrently. However, in our experiments the original formulation does not consistently retain the quality gains of ordinary looping. We find that preserving the current-token embedding and separately normalizing it and the previous-token hidden state before combining them recovers strong performance across model scales and training budgets. Together, these results show that effective looping requires matching the design to the resource constraint and inference setting.

Every Monday
Get next week’s papers.
Subscribe on Substack