NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Mixture-of-Loops Transformer

Lianghui Zhu, Shijie Wang, Xinggang Wang, Jinze Bai, Bo Wang, Xiang BaiarXiv 2026

TL;DR

Looped Transformers get more mileage out of their parameters by running inputs through the same layers multiple times—essentially giving the model extra time to "think"—but usually pay a steep price in inference latency. Mixture-of-Loops Transformer (MoLT) changes what gets passed from one loop to the next: instead of passing a single compressed vector, it passes Key-Value (KV) caches as rich, queryable memory. By cleverly breaking the dependency where a token has to wait for its own previous loop to finish, MoLT achieves the intelligence boost of a multi-loop model while generating text just as fast as a standard, single-pass Transformer.

What Problem Does This Paper Address?

Imagine reading a dense paragraph twice to understand it better. That is the core intuition behind Looped Transformers: instead of stacking 24 unique layers, you might stack 12 layers and run data through them twice, boosting expressivity without increasing model size.

Traditionally, when loop 1 finishes, its final hidden state (the "residual stream") is fed directly into the bottom of loop 2. This creates two painful bottlenecks:

  1. Information dilution: Squeezing an entire pass of multi-layer computation into a single vector per token muddies intermediate details.
  2. Sequential gridlock: At inference time, token $t$ in loop 2 cannot start until token $t$ in loop 1 finishes. If you loop $N$ times, generating every new word takes $N\times$ longer.

The authors ask a fundamental question: What should actually be passed forward when a Transformer loops?

Methods

Instead of relying solely on a compressed residual vector, the authors introduce Mixture-of-Loops Attention (MoLA), which treats intermediate Keys and Values (KV) from different layers and loops as a unified memory bank that attention heads can selectively read in a single softmax operation.

Overview of the MoLT architecture family

Built on MoLA, the paper introduces three architectural variants:

  • MoLT-R (Loop Residual): Keeps the traditional residual connection between loops for maximum expressivity, while allowing layers to directly attend to KV pairs from earlier layers in the current loop and all layers from the previous loop at the same token position.
  • MoLT-KV (Loop KV): Ditches the cross-loop residual stream entirely. Every loop restarts fresh from the raw token embeddings! Context from the previous loop comes strictly from attending to memory KV projected from earlier tokens ($j < t$), alongside local KV from earlier layers at the current token ($t$).
  • U-MoLT (U-shaped MoLT): Splits the network in half. The first half is a looped MoLT Encoder that builds high-quality KV memory; the second half is a non-looped, cross-attention MoLT Decoder that reads that memory to predict the next word. Because the decoder never feeds back into the encoder, you can completely skip running the decoder during intermediate loops and on earlier prompt tokens without changing the final output.

To train and run Loop KV models efficiently, they pair two novel techniques:

  • Loop Forcing (Training): Like teacher forcing, every loop is supervised to predict the next token in parallel using the previous loop's prefix memory, avoiding sequential bottlenecks during training.
  • MoL & MoL-Hybrid Decoding (Inference): Because token $t$ in MoLT-KV/U-MoLT doesn't depend on its own previous loop—only on earlier tokens' previous loops, which are already cached!—each generated token only needs one pass through the network. MoL-Hybrid runs parallel fixed loops on the initial prompt, then drops into fast single-pass decoding for generation.

Datasets

No new benchmarks are introduced; the authors use established open suites:

  • Training: FineWeb (3B tokens for small ~113M ablations) and OLMo-mix-0625-official (400B tokens for scaling runs, and 100B tokens for Qwen3.5 continued pretraining).
  • Evaluation: Language modeling perplexity/cross-entropy across 10–11 domains (C4, ICE, M2D2-S2ORC, Pile, WikiText-103, and Dolma subsets: Books, Common Crawl, peS2o, Reddit, Stack, Wiki), plus 10 downstream reasoning benchmarks (PIQA, HellaSwag, WinoGrande, OpenBookQA, BoolQ, SciQ, ARC-E, ARC-C, COPA, MMLU).

Key Insights and Ideas

  • Decoupling memory from prediction: Why does U-MoLT beat MoLT-KV even though it only loops half its layers? Deep layers in standard LLMs face an identity crisis: they must collapse representations toward predicting the next word while simultaneously preserving rich semantic history in their KV cache for future words. U-MoLT resolves this conflict—the encoder's output sits safely in the middle of the network as clean historical memory, leaving the decoder free to specialize purely in next-token prediction.
  • Single-pass decoding without losing multi-loop depth: Restarting from embeddings with a strict-prefix mask ($j < t$) turns cross-loop feedback into a clean recurrence across token positions. During generation, even though each new token only traverses the stack once, it attends to prefix memories built recursively by earlier tokens—preserving multi-loop reasoning depth at 1-loop cost.

Key Results

  • Scaling (400B tokens): U-MoLT consistently beats non-looped OLMo3 baselines across 700M dense, 1.5B dense, and 3B MoE (660M active) scales. At 700M, U-MoLT reaches OLMo3's final validation loss using 1.7× fewer tokens, while both MoLT-R and U-MoLT boost 10-task accuracy by +2.6 and +2.5 percentage points. At 3B MoE, U-MoLT lowers 10-domain perplexity by 0.75 (13.99 $\to$ 13.24) and lifts downstream accuracy by +2.1 points (60.1% $\to$ 62.2%).
  • Adapting Pretrained Models: Taking an off-the-shelf Qwen3.5-0.8B-Base (a hybrid Gated DeltaNet + Attention model) and adapting it into U-MoLT over 100B tokens of continued pretraining adds just 0.42% parameters, improves cross-entropy on all 11 domains, and achieves a 1.4× average token speedup.
  • Zero-Penalty Inference: On ~113M models (4,096-token prompt + 64 decoded tokens), fixed 2-loop decoding nearly doubles latency (~1,974 ms vs. OLMo3's 1,000.6 ms). Switching U-MoLT to MoL-Hybrid-2 slashes latency right back down to 996.6 ms—matching the non-looped baseline while keeping the 2-loop quality gains.

Limitations and Future Work

  • Compute Scale: Due to hardware budgets, from-scratch scaling stopped at 1.5B dense / 3B MoE parameters and 400B tokens; how loop KV trades off against raw parameter count at frontier scales remains open.
  • Hybrid Sequence Mixers: In the Qwen3.5 adaptation, non-attention Gated DeltaNet layers carry recurrent state and short convolutions across tokens, preventing the exact single-position prefill skipping that pure-attention U-MoLT enjoys.
  • "Giraffe" Networks: Looking ahead, the authors propose extending U-MoLT's two stages into a three-stage Encoder–Neck–Decoder layout—using a non-looped encoder for initial features, an elongated, multi-loop middle "neck" for iterative refinement, and a cross-only decoder for readout.

Summary updated

BibTeX
@misc{zhu2026mixture,
  author = {Lianghui Zhu and Shijie Wang and Xinggang Wang and Jinze Bai and Bo Wang and Xiang Bai},
  title = {{Mixture-of-Loops Transformer}},
  year = {2026},
  eprint = {2611.34923},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.34923},
}
Figure