2025-03-10 · 进阶 · 机器学习

Linear-MoE: Linear Sequence Modeling Meets Mixture-of-Experts

本文提出了一种名为Linear-MoE的模型,该模型结合了线性序列建模(LSM)和混合专家(MoE)技术,旨在提高大规模模型建模和训练的效率和性能。

更新于 2025-07-09。作者:Weigao Sun、Disen Lan、Tong Zhu、Xiaoye Qu、Yu Cheng。

中文摘要

线性序列建模(LSM)如线性注意力、状态空间模型和线性循环神经网络(RNNs),以及混合专家(MoE)架构最近被视为重要的架构改进。在本文中,我们介绍了线性-MoE,这是一个生产级别的系统,用于建模和训练将LSM与MoE集成的规模化模型。线性-MoE利用了LSM模块在具有线性复杂度的序列建模方面的优势,以及MoE层在稀疏激活方面的优势,旨在提供高效训练下的高性能。线性-MoE系统包括:1)建模子系统,提供支持所有LSM实例的统一框架;2)训练子系统,通过采用各种先进的并行技术,特别是为线性-MoE模型设计的序列并行性,以促进高效训练。此外,我们还探索了结合线性-MoE层和具有序列并行性的标准Transformer-MoE层的混合模型,以进一步增强模型的灵活性和性能。在A0.3B-2B和A1B-7B两个模型系列上的评估表明,线性-MoE在多个基准测试中实现了效率提升,同时保持了有竞争力的性能,展示了其作为下一代基础模型架构的潜力。代码:https://github.com/OpenSparseLLMs/Linear-MoE。

英文摘要

Linear Sequence Modeling (LSM) like linear attention, state space models and linear RNNs, and Mixture-of-Experts (MoE) have recently emerged as significant architectural improvements. In this paper, we introduce Linear-MoE, a production-level system for modeling and training large-scale models that integrate LSM with MoE. Linear-MoE leverages the advantages of both LSM modules for linear-complexity sequence modeling and MoE layers for sparsely activation, aiming to offer high performance with efficient training. The Linear-MoE system comprises: 1) Modeling subsystem, which provides a unified framework supporting all instances of LSM. and 2) Training subsystem, which facilitates efficient training by incorporating various advanced parallelism technologies, particularly Sequence Parallelism designed for Linear-MoE models. Additionally, we explore hybrid models that combine Linear-MoE layers with standard Transformer-MoE layers with its Sequence Parallelism to further enhance model flexibility and performance. Evaluations on two model series, A0.3B-2B and A1B-7B, demonstrate Linear-MoE achieves efficiency gains while maintaining competitive performance on various benchmarks, showcasing its potential as a next-generation foundational model architecture. Code: https://github.com/OpenSparseLLMs/Linear-MoE.

解读

一句话总结

本文提出了一种名为Linear-MoE的模型,该模型结合了线性序列建模(LSM)和混合专家(MoE)技术,旨在提高大规模模型建模和训练的效率和性能。

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

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

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

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

来源