Skip to content
English

Switch theme

arXiv 2611.34923 · cs.LG · 2026-11-25

Mixture-of-Loops Transformer

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

ByteDance Seed

In latest · #12 2026-W48 #9 Added on 2026-11-27

One-line takeaway

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? This paper introduces 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, the authors further 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, the 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.

循环 Transformer 通过在多次循环中复用共享层来提升表达能力,但效率随之下降。要推进其表达能力与效率的边界,需要重新思考相邻循环之间传递的核心机制:当 Transformer 循环时,应当传递什么?本文提出 Mixture-of-Loops Transformer(MoLT),其 Mixture-of-Loops Attention(MoLA)将键值(KV)作为记忆,在深度与循环间选择性复用。在循环残差设定下,MoLT-R 保留残差流,并跨循环读取局部 KV,以提升表达能力;在循环 KV 设定下,MoLT-KV 则从嵌入重新开始,读取当前循环的局部 KV,并在更早位置读取先前循环的记忆 KV,以提升效率。MoLT-KV 消除了同一位置上的跨循环依赖,再配合用于并行训练的 loop forcing,可实现超出训练循环范围的单次遍历 Mixture-of-Loops(MoL)解码。为权衡效率与质量,作者进一步提出 U 形 MoLT(U-MoLT),将记忆构建与预测读出分离,并在不改变预测的前提下跳过未使用的解码器遍历。在 4000 亿 token 的预训练中,U-MoLT 在 7 亿/15 亿稠密模型以及 30 亿混合专家模型上均优于 OLMo3:7 亿参数规模下验证交叉熵的 token 效率达到 1.7 倍,同时将 30 亿 MoE 模型在 10 个领域的困惑度改善 0.75、在 10 项任务上的准确率提高 2.1 个百分点。在对 Qwen3.5-0.8B-Base 进行 1000 亿 token 的持续预训练时,U-MoLT 适配在全部 11 个领域上降低了交叉熵,平均 token 效率为 1.4 倍。推理时,采用 MoL-Hybrid-2 的 U-MoLT 在 S 规模(约 1.13 亿参数)模型上的时延为 996.6 毫秒,与非循环 OLMo3 的 1,000.6 毫秒相当。代码已开源。

86HF upvotes
131GitHub stars
0Citations (Semantic Scholar)
62.5Buzz score

Read on arXiv PDF Hugging Face discussion Code Project page

Related papers

About this data

Metadata from the arXiv API (verified); upvotes from Hugging Face Daily Papers; citations from Semantic Scholar. Last refreshed 2026-11-30.

The takeaway is written by AIMap from the abstract; the abstract itself is not reproduced — read the original.

Data updated: Latest AI papers(UTC+8)