Loo-P beyond Language: Scaling Looped Transformers with Structured Residuals

Yiran Xu, Yawen Luo, Hanwen Jiang, Chongjian Ge, Zefan CaiarXiv 2026

TL;DR

What if instead of stacking dozens of distinct layers in a Transformer, you looped data through the same compact set of layers multiple times? This paper introduces Loo-P, a parameter-free training and scaling recipe that makes Looped Transformers easy to scale without retuning hyperparameters. More surprisingly, testing Loo-P across modalities reveals a fundamental divide: while language models still pay a slight performance penalty for sharing weights, vision models (like 3D reconstruction and text-to-image generation) actually thrive on it—sometimes outperforming full-sized models with nearly half the parameters.

What Problem Does This Paper Address?

Standard Transformers gain intelligence by stacking unique layers—trading memory (parameters) for depth. Looped Transformers flip this script: they pass representations repeatedly through a single shared block of layers, trading unique parameters for repeated computation.

This sounds like a free lunch for memory efficiency, but it hits two major walls:

  1. Training & Scaling Instability: When you loop the same weights $R$ times, gradients accumulate differently than in standard networks. If you find a great learning rate on a small toy model and try to scale up the loop count or layer depth, your training often diverges or underperforms—forcing expensive hyperparameter searches at scale.
  2. The Compute-Matched Gap: Does doing 20 steps of math with shared weights actually equal doing 20 steps of math with unique weights? Historically, looped language models lag behind standard models when given the exact same compute budget (FLOPs). It remained an open question whether this penalty was a training flaw, an intrinsic limitation of weight sharing, or specific to text.

Methods

The authors use a standard "sandwich" topology: a few unique initial layers (Prelude), a shared stack of $L$ layers applied $R$ times (Core), and a few unique final layers (Coda). On top of this, they introduce Loo-P, which adds zero learned parameters and combines three new ideas in the looped Core:

  • Module-wise Residuals: Attention (cross-token routing) and Feed-Forward Networks (token-wise processing) do very different jobs. Loo-P introduces a scalar ratio $\rho$ to balance their residual contributions while keeping the overall variance budget constant.
  • Visit-wise Residuals: Early loops process raw, unaligned features, while later loops polish refined representations. Using a cosine schedule controlled by $\beta$, Loo-P gently modulates step sizes across visits (e.g., smaller nudges early on, larger refinements later) without changing the average update scale.
  • Coordinated Hyperparameter Transfer: Building on $\mu$P-style scaling rules, Loo-P scales Core residuals inversely with both loop count ($R^{-1}$) and unique depth ($L^{-1}$), paired with matching AdamW optimizer adjustments. Unlike prior looped scaling (Loop-$\mu$P), which used $L^{-1/2}$ depth scaling, Loo-P’s $L^{-1}$ rule preserves nonlinear parameter interactions inside blocks as depth grows.
Hyperparameter transfer across unique depth L comparing Loo-P and Loop-uP

Datasets

No new datasets are introduced; the authors evaluate across four distinct tasks using established benchmarks:

  • Language Modeling: Climb Mix (trained on 15.27B tokens).
  • 3D Reconstruction: DL3DV (training split and 140-scene held-out benchmark).
  • Class-to-Image Generation: ImageNet-1K ($256\times256$) evaluated via the ADM suite.
  • Text-to-Image Generation: Pretrained on ~10.95M CC12M images (with LLaVA-NeXT recaptions); fine-tuned on BLIP3o-60K, OpenDatasets DALL-E 3 pairs, and ShareGPT-4o-Image; evaluated on GenEval, DPG-Bench, and COCO (30K samples).

Key Insights and Ideas

  • Weight sharing is deeply task-dependent: Vision tasks love loops; standard language pretraining resists them. Why? In 3D reconstruction and conditional image generation, the model iteratively refines rich geometric or spatial structure toward dense pixel outputs—a natural fit for applying the same "refinement operator" repeatedly. In causal next-token prediction, every single token position must simultaneously handle multi-scale routing and discrete classification over a 32,000-word vocabulary, placing much heavier demands on distinct layer capacity.
  • Zero-shot hyperparameter transfer works across both axes: Because Loo-P normalizes its module- and visit-wise scalars, you can tune your learning rate, $\rho$, and $\beta$ on a cheap proxy model, then scale up unique depth $L$, loop count $R$, or both simultaneously, and the optimal learning rate stays locked in place.
Training-loss change vs. non-looped baselines across vision and language tasks

Key Results

Under strict compute-matching (same FLOPs as non-looped baselines):

  • 3D Reconstruction (E-RayZer): Loo-P beats the non-looped baseline on camera pose accuracy (77.70% vs. 74.60% RPA@5) and novel-view rendering quality (20.525 dB vs. 20.407 dB PSNR) while using 34.6% fewer parameters. Cranking loops from $R=4$ to $R=8$ pushes RPA@5 to 79.16% without adding a single weight.
  • Text-to-Image (MiniT2I): With 45.0% fewer denoiser parameters, Loo-P surpasses the compute-matched dense model after fine-tuning on compositional prompt following: 85.83% vs. 85.29% on GenEval, and 84.67 vs. 83.86 on DPG-Bench (though the dense model retains a slightly lower COCO FID of 26.32 vs. 27.62).
  • Class-to-Image (PixelDiT): At matched compute ($R=4$), Loo-P saves 36.0% parameters with nearly identical training loss (+0.21%), slight gFID degradation (2.75 vs. 2.26), and matched recall. Giving it more compute ($R=8$) beats the dense baseline on gFID (2.24).
  • Language Pretraining: Loo-P consistently beats Loop-$\mu$P in validation loss and cuts naive looping's loss gap by more than half, but still trails an independent-layer Transformer by 1.53% in training cross-entropy (saving 44.5% parameters).

Limitations and Future Work

  • Sub-billion scale: Due to compute constraints, all models tested are under 1 billion parameters (ranging from ~105M to ~800M). Validating this scaling ladder at multi-billion-parameter scales remains future work.
  • Cross-task confounders: Because each modality uses its native state-of-the-art backbone, architectural differences and training objectives vary across tasks. Testing Loo-P inside a single unified multimodal backbone will help isolate exactly why vision favors weight sharing.
  • Language reasoning: While standard next-token pretraining favors unique layers, the authors hypothesize that language tasks requiring latent iteration—like multi-step reasoning or post-training test-time compute scaling—might flip the trade-off in favor of loops.

Summary updated

BibTeX
@misc{xu2026loo,
  author = {Yiran Xu and Yawen Luo and Hanwen Jiang and Chongjian Ge and Zefan Cai},
  title = {{Loo-P beyond Language: Scaling Looped Transformers with Structured Residuals}},
  year = {2026},
  eprint = {2611.36567},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.36567},
}
Figure