2025-10-23 · 专家 · 自然语言处理 · 机器学习

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

本文提出了一种名为Ring-linear的混合架构,通过结合线性注意力和softmax注意力,有效地减少了长上下文推理场景中的I/O和计算开销,显著提高了模型在多个复杂推理基准上的性能。

更新于 2025-10-23。作者: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。

中文摘要

在本技术报告中,我们介绍了环形线性模型系列,具体包括环形迷你线性-2.0和环形闪速线性-2.0。环形迷你线性-2.0包含16B个参数和957M次激活,而环形闪速线性-2.0则包含104B个参数和6.1B次激活。这两种模型都采用了一种混合架构,该架构有效地整合了线性注意力和softmax注意力,显著降低了长上下文推理场景中的I/O和计算开销。与32亿参数的密集模型相比,本系列将推理成本降低到原来的十分之一,与原始环形系列相比,成本也降低了超过50%。此外,通过系统地探索混合架构中不同注意力机制之间的比率,我们已经确定了当前最优的模型结构。另外,通过利用我们自开发的性能优异的FP8算子库——灵鹤,整体训练效率提高了50%。得益于训练和推理引擎算子之间的高度对齐,这些模型在强化学习阶段可以经历长期、稳定且高效的优化,在多个具有挑战性的复杂推理基准测试中持续保持最先进的性能。

英文摘要

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.

解读

一句话总结

本文提出了一种名为Ring-linear的混合架构,通过结合线性注意力和softmax注意力,有效地减少了长上下文推理场景中的I/O和计算开销,显著提高了模型在多个复杂推理基准上的性能。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt