Skip to content

By PromptFission2 min read

MoLT loops a transformer over its prompt, then generates at the speed of a model that does not loop

A paper from HUST and ByteDance Seed passes attention memory between loops. The authors report matching a baseline with 41.8 percent fewer training tokens. The fast decoder is not in the code yet.


A looped transformer runs the same stack of layers more than once, which buys extra computation without extra parameters. The catch is the bill: two loops cost roughly two passes for every token. Mixture-of-Loops Transformer, or MoLT, published on GitHub on November 25 by Lianghui Zhu, Shijie Wang, Xinggang Wang, Jinze Bai, Bo Wang and Xiang Bai of HUST, ByteDance Seed and the University of Toronto, is an attempt to keep the first part and skip the second.

How it works

The README frames the design as a question about what one loop should hand to the next. MoLT’s answer is attention memory. Each layer’s keys and values, the things later tokens look up when they attend to earlier ones, are kept from the previous loop, and the next loop attends over both its own and the earlier set in a single attention operation.

The variant the authors push hardest, U-MoLT, splits the network in two. An encoder restarts from the token embeddings on every loop and builds that memory. A decoder that only does cross-attention reads the encoder’s output to predict the next token. Because of the split, the extra loops can be spent on the prompt alone. With the schedule the README calls MoL-Hybrid, reading the prompt costs one or two encoder passes, and every generated token costs a single trip through the layers, the same as a model that does not loop.

The numbers

All figures are the authors’, from the README. Models were trained on 400B tokens against OLMo3 baselines; the average is accuracy over ten tasks, including HellaSwag, ARC and MMLU.

Size OLMo3 U-MoLT
700M 56.6 59.1
1.5B 61.2 62.6
3B MoE, 660M active 60.1 62.2

At 700M, U-MoLT adds 1.5 percent more parameters and, the authors report, reaches the baseline’s final loss after 232.8B tokens, 41.8 percent fewer. On speed, a 113M test model with a 4,096-token prompt and 64 generated tokens takes 0.9966 seconds against 1.0006 for the plain baseline. An ordinary two-loop version of that baseline takes 1.9743.

The tables have soft spots. At 700M, U-MoLT’s leads on WinoGrande and ARC-Challenge are 0.2 and 0.1 points, and at 1.5B it ties on ARC-Easy. Retrofitting an existing Qwen3.5 0.8B model moves average loss from 2.496 to 2.480.

The README does not say what hardware the timings were taken on, or how the baselines were trained.

Try it yourself

The repo holds the paper PDF, a small U-MoLT implementation with a training config for the 113M size, and a fused attention kernel with tests.

Still on the to-do list: the other two variants, the large training recipes, and the MoL-Hybrid decoding code, which is the part the speed claim depends on. The README mentions no weights and states no license.

We have not trained or run anything. This is based on the README and the commit log. For another take on looping, see LoopRes.