arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2611.06133cs.CLcs.PF
收藏

无需重新训练的大规模混合大型语言模型中加速长上下文解码

Accelerating Long-Context Decoding in Large-Scale Hybrid LLMs Without Retraining

RIKEN Center for Computational Science(理化学研究所计算科学中心)

João Eduardo Batista, Emil Vatai, Mohamed Wahib

AI总结:

该研究针对混合LLM长上下文解码速度慢的问题,提出无需重训的结合稀疏注意力方法,经多目标搜索确定各层配置,在6个不同规模混合模型上实现解码速度提升且保持准确率。

摘要:

大型语言模型(LLM)的全注意力层使得每个生成token的计算成本高于前一个,导致模型在长上下文任务上速度变慢。混合模型通过将大部分全注意力层替换为线性注意力层来降低成本,但在长上下文场景下,剩余的全注意力层仍主导解码过程。本文提出一种结合稀疏注意力的方法,无需任何训练或权重修改即可加速这些剩余层:每层关注最近token的滑动窗口、固定前缀以及上下文中最相关的固定预算token。窗口大小和预算通过多目标搜索算法按层确定。在来自三个系列的6个混合模型(参数规模从4B到397B)上,所选配置在21个长上下文数据集上保持了基线模型的准确率。在Qwen3.5-4B上,解码64k/256k token的速度分别提升至1.26倍/2.22倍;在Qwen3.5-122B-A10B上,分别提升至1.20倍/2.23倍;在Ornith-1.0-397B上,分别提升至1.16倍/2.06倍。

英文摘要:

The full-attention layers of large language models (LLMs) make every generated token more expensive than the previous one, slowing models down on long-context tasks. Hybrid models reduce this cost by replacing most full-attention layers with linear-attention layers, but the first still dominate decoding at long contexts. We accelerate these remaining layers without any training or weight changes using combined sparse attention: each layer attends to a sliding window of recent tokens, a pinned prefix, and a fixed budget of most relevant tokens in the context. The window size and budget are found on a per-layer basis using a multi-objective search algorithm. Across six hybrid models from three families, from 4B to 397B parameters, the selected configurations preserve their baseline model's accuracy on 21 long-context datasets. Decoding 64k/256k tokens becomes up to 1.26x/2.22x faster on Qwen3.5-4B, 1.20x/2.23x on Qwen3.5-122B-A10B, and 1.16x/2.06x on Ornith-1.0-397B.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑