Mixture-of-Loops Transformer

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

Huazhong University of Science & Technology · ByteDance Seed · University of Toronto

Published November 25, 2026 · on the feed November 26, 2026 · ▲ 86 · arXiv 2611.34923

Model architectureLLM training & RLEfficiency & inference Full code arXiv ↗Hugging Face ↗

The abstract

Looped Transformers boost expressivity by reusing shared layers across loops, yet at the cost of efficiency. Pushing their expressivity-efficiency frontier requires rethinking the core mechanism connecting adjacent loops: What should be passed as a Transformer loops? We introduce Mixture-of-Loops Transformer (MoLT), whose Mixture-of-Loops Attention (MoLA) uses keys and values (KV) as memory for selective reuse across depths and loops. Under loop residual, MoLT-R retains the residual stream and reads local KV across loops for expressivity. Under loop KV, MoLT-KV instead restarts from embeddings and reads current-loop local KV with preceding-loop memory KV at earlier positions for efficiency. MoLT-KV eliminates same-position cross-loop dependence and, paired with loop forcing for parallel training, unlocks single-traversal Mixture-of-Loops (MoL) decoding beyond the training loop horizon. To balance efficiency and quality, we introduce U-shaped MoLT (U-MoLT), which separates memory construction from prediction readout and skips unused decoder traversals without changing predictions. In 400B-token pretraining, U-MoLT outperforms OLMo3 across 700M/1.5B dense and 3B MoE models, achieving 1.7x validation cross-entropy (CE) token efficiency at 700M while improving 3B MoE 10-domain perplexity by 0.75 and 10-task accuracy by 2.1 percentage points. In 100B-token continued pretraining of Qwen3.5-0.8B-Base, our U-MoLT adaptation lowers CE on all 11 domains over the matched baseline with 1.4x mean token efficiency. At inference, U-MoLT with MoL-Hybrid-2 matches non-looped OLMo3 latency at 996.6 vs. 1,000.6 ms on S-size (~113M) models. Code is available at https://github.com/hustvl/MoLT

The Brief

2:47

A short podcast summary of the paper. Written and voiced by AI.

Transcript

Mixture-of-Loops Transformer. By Lianghui Zhu and five others, from Huazhong University of Science and Technology, ByteDance Seed, and one other institution. Published on the twenty-fifth of November.

A looped Transformer runs the same shared layers several times over. Reusing layers across loops buys expressivity, but it costs efficiency. The authors argue that moving that trade-off forward means rethinking what connects one loop to the next. Their question is simple to state: when a Transformer loops, what should be passed along?

Their answer is the Mixture-of-Loops Transformer, or MoLT. Its attention mechanism, Mixture-of-Loops Attention, treats keys and values as memory, available for selective reuse across depths and across loops. What gets handed from loop to loop is a store of KV, not only a hidden state.

That idea comes in two variants. Under loop residual, MoLT-R keeps the residual stream and reads local KV across loops, which favours expressivity. Under loop KV, MoLT-KV instead restarts from the embeddings on each loop. It reads local KV from the current loop together with memory KV from the preceding loop, at earlier positions, which favours efficiency. MoLT-KV removes any dependence across loops at the same position. Paired with loop forcing for parallel training, this unlocks Mixture-of-Loops decoding in a single traversal, reaching beyond the loop horizon used in training.

To balance efficiency against quality, the authors add U-shaped MoLT, or U-MoLT. It separates building the memory from reading out the prediction, and it skips decoder traversals that go unused, without changing any prediction.

In pretraining on four hundred billion tokens, U-MoLT outperforms OLMo3 across three model sizes. There is a dense model with seven hundred million parameters. There is a dense model with one point five billion parameters. And there is a three billion parameter MoE. At seven hundred million, it reaches one point seven times the token efficiency on validation cross-entropy. For the MoE model, perplexity across ten domains improves by zero point seven five.

Accuracy across ten tasks also rises by two point one percentage points. The authors then adapt U-MoLT to Qwen3.5-0.8B-Base through continued pretraining on one hundred billion tokens. Cross-entropy drops on all eleven domains relative to a matched baseline, with a mean token efficiency of one point four times.

At inference, U-MoLT with MoL-Hybrid-2 matches the latency of a non-looped OLMo3. On S-size models of about one hundred and thirteen million parameters, that is nine hundred ninety-six point six milliseconds, against one thousand point six for the baseline.

The design lever here is the thing a loop passes on. Treat keys and values as a memory that later loops and later positions can draw on, and a looped model can be trained in parallel, decoded in one pass, and, in its U-shaped form, match the latency of a model that does not loop at all.

Paper Quest · 7 chapters · about 39 min

Play this paper

Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.

Chapter 1 🧩 · The problem

Every quest starts with a wall. Here it is a model that thinks deeper by repeating itself, and pays for it in speed.

Your model runs the same shared layers several times over. Reusing them buys expressivity, but it costs efficiency.

The road ahead

  1. 1 · The problem ~6 min Running the same shared layers several times adds expressivity, but the usual one-stream handoff between passes dilutes information and forces every pass to run in sequence.
  2. 2 · What came before ~3 min
  3. 3 · The key idea ~8 min Pass the keys and values already computed as memory that attention can read across depths and loops, not only the output stream.
  4. 4 · Choose your own research ~3 min
  5. 5 · Build the method ~8 min MoLT-KV restarts each loop from embeddings, reads earlier positions' memory, trains each loop in parallel across tokens with loop forcing, and decodes each token in one traversal.
  6. 6 · The experiment ~6 min You’ll guess: In 400B-token pretraining at the 700M size, how much validation cross-entropy token efficiency did U-MoLT reach relative to OLMo3?
  7. 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Join free to play the whole quest ›

Free, with Google or an email address. Your stars and progress are kept.

KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.