arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.19338cs.LGcs.AIcs.CL
收藏

每个注意力都重要:一种用于长上下文推理的高效混合架构

Every Attention Matters: An Efficient Hybrid Architecture for Long-Context Reasoning

Ling Team(语言团队)
Ling Team, Bin Han, Caizhi Tang, Chen Liang, Donghao Zhang, Fan Yuan, Feng Zhu, Jie Gao, Jingyu Hu, Longfei Li, Meng Li, Mingyang Zhang, Peijie Jiang, Peng Jiao… 展开作者

Ling Team, Bin Han, Caizhi Tang, Chen Liang, Donghao Zhang, Fan Yuan, Feng Zhu, Jie Gao, Jingyu Hu, Longfei Li, Meng Li, Mingyang Zhang, Peijie Jiang, Peng Jiao, Qian Zhao, Qingyuan Yang, Wenbo Shen, Xinxing Yang, Yalin Zhang, Yankun Ren, Yao Zhao, Yibo Cao, Yixuan Sun, Yue Zhang, Yuchen Fang, Zibin Lin, Zixuan Cheng, Jun Zhou

AI总结:

本报告提出Ring-linear混合注意力模型系列,通过融合线性与softmax注意力并优化FP8算子,显著降低长上下文推理成本,提升训练效率,并在复杂推理基准上保持SOTA性能。

摘要:

在本技术报告中,我们介绍了Ring-linear模型系列,具体包括Ring-mini-linear-2.0和Ring-flash-linear-2.0。Ring-mini-linear-2.0包含160亿参数和9.57亿激活值,而Ring-flash-linear-2.0包含1040亿参数和61亿激活值。两个模型均采用混合架构,有效整合了线性注意力和softmax注意力,显著降低了长上下文推理场景中的I/O和计算开销。与一个320亿参数的稠密模型相比,该系列将推理成本降低至1/10,与原始Ring系列相比,成本也降低了超过50%。此外,通过对混合架构中不同注意力机制比例的系統探索,我们确定了当前最优的模型结构。另外,通过利用我们自主研发的高性能FP8算子库linghe,整体训练效率提升了50%。得益于训练和推理引擎算子之间的高度对齐,模型在强化学习阶段能够进行长期、稳定且高效的优化,在多个具有挑战性的复杂推理基准上持续保持SOTA性能。

英文摘要:

In this technical report, we present the Ring-linear model series, specifically including Ring-mini-linear-2.0 and Ring-flash-linear-2.0. Ring-mini-linear-2.0 comprises 16B parameters and 957M activations, while Ring-flash-linear-2.0 contains 104B parameters and 6.1B activations. Both models adopt a hybrid architecture that effectively integrates linear attention and softmax attention, significantly reducing I/O and computational overhead in long-context inference scenarios. Compared to a 32 billion parameter dense model, this series reduces inference cost to 1/10, and compared to the original Ring series, the cost is also reduced by over 50%. Furthermore, through systematic exploration of the ratio between different attention mechanisms in the hybrid architecture, we have identified the currently optimal model structure. Additionally, by leveraging our self-developed high-performance FP8 operator library-linghe, overall training efficiency has been improved by 50%. Benefiting from the high alignment between the training and inference engine operators, the models can undergo long-term, stable, and highly efficient optimization during the reinforcement learning phase, consistently maintaining SOTA performance across multiple challenging complex reasoning benchmarks.

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

↑