Richland Technology
Richland Technology
← Back to Blog
llmopen-sourceresearchinferencearchitecture

Mixture-of-Loops Transformer (MoLT) lets looped models decode in a single pass

Passing KV instead of residuals between loops decouples training-time looping from inference-time looping — but the headline "token efficiency" is not compute efficiency, and the reproducing code isn't out yet.

Richland AI Desk·27 November 2026·4 min read
Mixture-of-Loops Transformer (MoLT) lets looped models decode in a single pass

A team from HUST, ByteDance Seed, and the University of Toronto has released the Mixture-of-Loops Transformer (MoLT), a looped-transformer architecture that passes keys and values (KV) — not the residual stream — between loops. It trains with parallel loops but decodes with a single traversal. In 400B-token pretraining the authors report beating OLMo3 across 700M/1.5B dense and 3B MoE models, and matching non-looped OLMo3 latency at inference.

What shipped

Looped transformers reuse shared layers across multiple passes to gain expressivity, but the standard design pays for it at decode time: each loop re-reads the residual stream, so a two-loop model costs roughly 2× the layers per generated token. MoLT's core change is Mixture-of-Loops Attention (MoLA), which uses keys and values as memory that can be selectively reused across both depths and loops. In each layer, one attention distribution reads the sequence KV plus selected same-token layer KV spanning different depths and loops.

The paper defines two variants. MoLT-R keeps the residual stream and reads local KV across loops for expressivity — it adds no parameters but keeps the sequential N-loop decode cost. MoLT-KV instead restarts from embeddings each loop and reads current-loop local KV together with preceding-loop memory KV at earlier positions only. That strict-prefix restriction (j < t) eliminates same-position cross-loop dependence, which unlocks the efficiency win.

The headline architecture is U-MoLT, which separates memory construction from prediction readout. A looped MoLT encoder restarts from embeddings each loop and builds memory; a separate causal, cross-only MoLT decoder reads the normalized encoder output through independent per-layer KV projections and makes predictions. Because the decoder sits outside the encoder's feedback path, intermediate-loop and non-final prompt decoder traversals can be skipped at inference without changing predictions.

U-MoLT architecture: a looped MoLT encoder builds memory across loops while a separate cross-only decoder reads it out for prediction.

Two training/decoding mechanisms make this practical. Loop forcing gives each loop next-token supervision and computes feedback passes in parallel over token positions from the preceding loop's strict-prefix memory, rather than generating prefixes sequentially. MoL decoding starts from empty caches and processes the prompt token by token; the MoL-Hybrid schedule keeps parallel fixed-loop prompt prefill, then switches to single-traversal decode for continuation tokens. MoL-Hybrid-2 uses two encoder passes for prefill and one persistent KV for decode.

Why it matters

The interesting result is the decoupling of training-time looping from inference-time looping. Because MoLT-KV reads preceding-loop memory only at earlier positions, it can train with parallel loops but decode with a single traversal — so the expressivity of a looped model doesn't have to be paid for at every generated token.

The pretraining numbers are strong, though all author-reported. In 400B-token pretraining, the authors report U-MoLT-700M reaches OLMo3's final mean validation cross-entropy at 232.8B input tokens — 41.8% fewer tokens, i.e. a 1.7× token-efficiency win — with only +1.50% additional parameters. At 3B MoE (660M active), U-MoLT improves mean 10-domain validation perplexity from 13.99 to 13.24 (a 0.75 reduction) and mean 10-task accuracy from 60.1% to 62.2% (+2.1 points), with gains reported on every one of the 10 domains and 10 tasks.

U-MoLT-700M reaches OLMo3's final validation loss at roughly 41.8% fewer input tokens.

The most practically useful result is the retrofit. In 100B-token continued pretraining of Qwen3.5-0.8B-Base (0.8B params, Apache 2.0), the U-MoLT adaptation lowers cross-entropy on all 11 domains over the matched baseline with a 1.4× mean token efficiency. That's a path to upgrading an existing small model rather than training from scratch.

At inference, on S-size (~113M) models with a 4,096-token prompt plus 64 decode steps, the authors report U-MoLT with MoL-Hybrid-2 at 996.6 ms versus 1,000.6 ms for non-looped OLMo3 — latency parity, where a fixed two-loop baseline runs at ~1.97 s. The setup is an H20 GPU, BF16, batch size 1.

Caveats

All headline numbers are author-reported, and the code needed to reproduce them is not yet released. The GitHub repo ships a minimal self-contained U-MoLT implementation ported onto BlaGPT, a config, and a fused MoLA Triton kernel with unit tests — but MoLT-R, MoLT-KV, MoL-Hybrid decoding, the large-scale pretraining recipes, and the Qwen3.5 continued-pretraining code are all still on the TODO list. There is no LICENSE file and no model weights are released.

Three caveats matter for anyone tempted to adopt this:

  • "Token efficiency" is not compute efficiency. Two-loop training costs about 2.01× theoretical FLOPs and 1.99× wall-clock runtime. The 1.7× figure is per input token seen, not per FLOP or per dollar.
  • Scale is untested. The largest pretrained model is 3B MoE; whether the advantage holds at 7B+ is open.
  • Prefill still pays for loops. Hybrid schedules keep decode flat, but prefill runs extra encoder passes; the pure single-traversal MoL schedule is far slower at prefill (~47 s at a 4,096-token prompt). The schedule-quality check is also narrow — a teacher-forced continuation test, not free-form generation.

Sources

Start a Conversation

Ready to build something like this?

Tell us about your project and we'll respond with a clear plan within one business day.

Tell Us About Your Project

Takes 3 minutes. We read every submission personally.