Skip to content
简体中文

切换主题

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

在最新榜 #12 2026-W48 第 9 名 本站收录于 2026-11-27

一句话要点

循环 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 毫秒相当。代码已开源。

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通过重复使用共享层提升表达能力,但效率低下,核心问题在于如何在相邻循环间有效传递信息。
  • MoLT引入Mixture-of-Loops Attention机制,采用键值记忆实现深度与循环间的选择性重用,在循环残差模式下保留残差流以增强表达力。
  • MoLT-KV通过重启嵌入并利用前序循环的键值记忆实现高效推理,消除同位置跨循环依赖,并结合循环强制训练实现单遍解码,突破训练循环限制。
  • U-MoLT结构分离记忆构建与预测读取,在400B-token预训练中显著提升700M/1.5B密集模型和3B MoE模型的性能,同时在推理中保持与非循环模型相当的延迟。
English overview

The Mixture-of-Loops Transformer (MoLT) proposes a novel loop attention mechanism using keys and values as memory for selective reuse across loops. It introduces two modes—loop residual and loop KV—to balance expressivity and efficiency. U-MoLT separates memory construction from prediction, enabling efficient single-traversal decoding. Evaluated on 400B-token pretraining, it outperforms OLMo3 in cross-entropy and perplexity. Inference latency with MoL-Hybrid-2 matches non-looped OLMo3 at 996.6 ms on S-size models.

只根据 arXiv 官方摘要,由开源模型整理,经数字/专名自动核对(必须在摘要中出现),以论文原文为准。

86HF 点赞
131GitHub stars
0引用(Semantic Scholar)
62.5热度分

阅读 arXiv 原文 PDF Hugging Face 讨论 代码仓库 项目页

相关论文

数据说明

元数据来自 arXiv API(已核实);点赞来自 Hugging Face 每日论文;引用来自 Semantic Scholar。最近刷新 2026-11-30。

要点由本站根据摘要自写,不转载摘要原文,请阅读原文。

数据更新于:最新 AI 论文(北京时间)