How to Loop MoE: Flatten the Experts, Untie the Attention
Shouren Wang, Chuang Ma, Mohsen Hariri, Debargha Ganguly, Wang Yang, Xiaoqing Tong, Qianying Liu, Xiaotian Han and 1 others
Case Western Reserve University · Kyoto University · NII LLMC
Published September 28, 2026 · on the feed October 6, 2026 · ▲ 13 · arXiv 2609.35751
The abstract
Looped Transformers reuse one block of layers several times: by spending extra computation they push a model of fixed size further, and so use its parameters more fully; while sparse mixture-of-experts (MoE) models activate only a few of many experts for each token. Looped MoE bridges these two design philosophies and gives MoE models new potential for better expert usage, but it raises a question: how to loop a MoE? We answer it with Foil. With the expert parameters and the expert compute per token held fixed, Foil (1) flattens the experts, halving the expert layers, doubling the experts per layer and doubling the passes, so that every routing decision chooses from a larger pool, and (2) unties the attention, giving each pass its own attention parameters while the experts and routers stay shared. Experiments show that Foil clearly outperforms the unflattened looped baseline: at 20B tokens every Foil model has lower pretraining loss than the baseline; at 100B tokens the loss improves monotonically with the degree of flattening, the most flattened Foil ending 0.012 nat below the baseline at equal parameters and compute, with downstream accuracy on par or better; untying the attention also yields more balanced and more confident routing at equal shape. Our ablations analyse why Foil works and turn the findings into design guidance for looped MoE: the returns of looping and of widening the expert layers amplify each other, routing confidence tracks healthy expert use better than load balance, and a sparse looped MoE should therefore use more experts per layer and more passes. Code and configurations are available at https://github.com/SR-A-W/how-to-loop-moe.
The Brief
2:53A short podcast summary of the paper. Written and voiced by AI.
Transcript
How to Loop MoE. Flatten the Experts, Untie the Attention. By Shouren Wang and eight others, from Case Western Reserve University, Kyoto University, and one other institution. Published on the twenty-eighth of September. Its code repository is worked out: about ninety-five source files, with a readme and a licence.
Two design philosophies meet here. Looped Transformers reuse one block of layers several times. By spending extra computation, they push a model of fixed size further, and so use its parameters more fully. Sparse mixture-of-experts models, or MoE models, take a different route: they activate only a few of many experts for each token. A looped MoE bridges the two, and it gives MoE models new potential for making better use of their experts. But it raises a practical question, which the title states directly. How should a MoE be looped? Which parts should repeat, which should be shared, and how should the experts be laid out across the loop?
The answer offered is Foil, built from two changes. Both are made with the expert parameters, and the expert compute per token, held fixed, so the comparison isolates structure rather than size. The first change flattens the experts. The second unties the attention.
Flattening halves the number of expert layers, doubles the number of experts in each layer, and doubles the number of passes. The expert budget stays the same, but every routing decision now chooses from a larger pool. Untying gives each pass its own attention parameters, while the experts and the routers remain shared across passes. Put together: shared experts, picked from a wider pool on each pass, with attention that is free to differ from one pass to the next.
Foil clearly outperforms the unflattened looped baseline. At twenty billion tokens, every Foil model has lower pretraining loss than that baseline. At one hundred billion tokens, the loss improves monotonically with the degree of flattening, and the most flattened Foil ends zero point zero one two nat below the baseline, at equal parameters and equal compute. Downstream accuracy is on par or better. Untying the attention, separately, yields routing that is more balanced and more confident at an equal shape.
Ablations analyse why Foil works, and turn the findings into design guidance for looped MoE. Three points come out of them. The returns from looping and the returns from widening the expert layers amplify each other, rather than competing. Routing confidence tracks healthy expert use better than load balance does. And so a sparse looped MoE should use more experts per layer, and more passes.
The title compresses the recipe into two instructions, and the results stand behind each of them. Flatten, so that a fixed budget of experts is spread wider and visited more often. Untie, so that each pass attends in its own way while the experts stay common to all of them. Beyond the recipe, the ablations leave one more practical pointer: when judging whether experts are being used well, routing confidence is a better signal than load balance.
More with an account
Listen to every day’s papers
Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.
Join free