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

语言模型的混合架构:系统分析与设计洞察

Hybrid Architectures for Language Models: Systematic Analysis and Design Insights

FAIR at Meta(Meta的FAIR);Meta

Sangmin Bae, Bilge Acun, Chien-Yu Lin, Haroun Habeeb, Seungyeon Kim, Liang Luo, Junjie Wang, Carole-Jean Wu

AI总结:

本文系统分析了混合架构的设计,探讨了不同融合策略对语言模型性能、长上下文能力及效率的影响,提出优化设计方法。

摘要:

近年来,大型语言模型的进展表明,结合自注意力机制与结构状态空间模型(如Mamba)的混合架构能在建模质量和计算效率之间取得良好平衡,尤其适用于长上下文任务。尽管这些混合模型表现出色,但关于混合策略的系统比较及有效性关键因素的分析尚未明确。本文基于层间(顺序)或层内(并行)融合,全面评估了这些设计在多个维度上的表现:语言建模和下游任务性能、长上下文能力、扩展分析以及训练和推理效率。通过研究其计算原语的核心特性,我们识别出每种混合策略的关键要素,并进一步提出混合模型的最优设计方法。本文的全面分析为开发混合语言模型提供了实用指导和有价值的见解,有助于优化架构配置。

英文摘要:

Recent progress in large language models demonstrates that hybrid architectures--combining self-attention mechanisms with structured state space models like Mamba--can achieve a compelling balance between modeling quality and computational efficiency, particularly for long-context tasks. While these hybrid models show promising performance, systematic comparisons of hybridization strategies and analyses on the key factors behind their effectiveness have not been clearly shared to the community. In this work, we present a holistic evaluation of hybrid architectures based on inter-layer (sequential) or intra-layer (parallel) fusion. We comprehensively evaluate these designs across multiple dimensions: language modeling and downstream task performance, long-context capabilities, scaling analysis, and training and inference efficiency. By investigating the core characteristics of their computational primitive, we identify the most critical elements for each hybridization strategy and further propose optimal design recipes for hybrid models. Our comprehensive analysis provides practical guidance and valuable insights for developing hybrid language models, facilitating the optimization of architectural configurations.

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

↑