Frontier Foundry

Mixture-of-Loops Transformer

Paper, explained · Hugging Face ·

A close reading of the source at huggingface.co: what it says, what it means for someone who builds with AI, and which claims are the publisher’s own.

Looped TransformersPretrainingMixture of Experts

The idea

A looped transformer reuses the same layers several times per token. That adds expressivity but costs speed. The authors ask what should be passed from one loop to the next. Their answer, Mixture-of-Loops Transformer (MoLT), passes keys and values (KV) as selective memory across depths and loops, through a mechanism they call Mixture-of-Loops Attention (paper). There are two variants:

  • MoLT-R keeps the residual stream and also reads local KV from earlier loops. It aims at expressivity.
  • MoLT-KV restarts each loop from the embeddings and reads current-loop KV plus earlier-loop memory KV at earlier positions. That removes same-position dependence between loops, so loops can be trained in parallel ("loop forcing") and decoded in a single traversal, even beyond the number of loops used in training.
  • U-MoLT separates building memory from reading out predictions, and skips decoder passes that are not needed without changing the predictions.

Why it matters

Looping is no longer only a research idea. This week two looped models shipped: Thinking Machines' Inkling 2 Mini, which runs its middle layers three times (Hugging Face), and Z.ai's GLM-5.4, its first loop transformer (Simon Willison). The open problem is the serving bill: sequential loops raise latency. Results reported by the authors:

  • In 400B-token pretraining, U-MoLT beats OLMo3 at 700M and 1.5B dense and 3B MoE. At 700M it reaches 1.7x validation cross-entropy token efficiency. For the 3B MoE it improves 10-domain perplexity by 0.75 and 10-task accuracy by 2.1 points.
  • In 100B-token continued pretraining of Qwen3.5-0.8B-Base, U-MoLT lowers cross-entropy on all 11 domains over a matched baseline, with 1.4x mean token efficiency.
  • At inference, U-MoLT with MoL-Hybrid-2 matches non-looped OLMo3 latency: 996.6 ms vs 1,000.6 ms on ~113M models.

Related context, not tested here: the abstract does not compare against GLM-5.4 or Inkling 2 Mini. GLM-5.4 is described as a pretrained model converted to a looped one (HN), which is the same situation as MoLT's Qwen3.5 continued-pretraining result. Both shipped models pass state between loops with gated messages (Hugging Face), closer to the residual design of MoLT-R than to KV memory. See the looped transformers concept page.

In plain words

Instead of handing the whole hidden state from one loop to the next, hand over the notes (the KV cache) and let each loop look up what it needs. Because a loop no longer waits on the same token's previous loop, training can run loops in parallel and decoding needs one pass instead of several. The reported result is lower loss per training token and, at small scale, no extra latency over a normal model. Caveats: the tests are small (700M to 3B, 113M for latency), the numbers are the authors' own, and I only read the abstract.

Where this leads

the concepts it is about

Related briefs

every brief

Cite this page

the version of 2026-11-26
APA
Han, R. (2026, November 26). Mixture-of-Loops Transformer. Frontier Foundry. https://www.ryanhan.ai/briefs/2026-11-26-hf-papers-mixture-of-loops-transformer
BibTeX
@misc{han2026-briefs-2026-11-26-hf-papers-mixture-of-loops-transformer,
  author       = {Han, Ryan},
  title        = {{Mixture-of-Loops Transformer}},
  howpublished = {Frontier Foundry},
  year         = {2026},
  month        = nov,
  url          = {https://www.ryanhan.ai/briefs/2026-11-26-hf-papers-mixture-of-loops-transformer}
}