混合注意力大语言模型的多语言能力

·

研究论文 · 2026/10/07

针对智能体和推理场景中对长序列日益增长的需求,许多先进的大语言模型结合了多种注意力变体,以缓解传统softmax注意力的二次复杂度问题。这些混合注意力大语言模型旨在平衡全注意力与基于循环的替代方案的优势和局限。本工作首次研究了混合注意力如何影响大语言模型的多语言能力。除了对分词不佳语言中长序列的影响外,我们的研究还受到循环状态的归纳偏置可能改变语言处理的可能性的驱动。我们的可解释性分析证实了这一点,表明混合模型中的跨语言表征发展与循环层和全注意力层的顺序相关。在不同模型中,我们特别观察到在第一个全注意力层附近跨语言对齐出现显著峰值。这些发现使我们质疑注意力层的传统顺序。在多语言数据的蒸馏实验中,所有替代层顺序在整个训练过程中均优于标准顺序,学习速度最高提升2.5倍。这些显著且可复现的结果促使我们提出理论:多语言模型受益于以全注意力层而非循环层开始。

该研究首次揭示了混合注意力架构中层顺序对多语言能力的关键影响,并提出了简单有效的改进方案,对多语言大模型的设计具有重要指导意义。

In response to the growing demand for long sequences in agentic and reasoning use cases, many state-of-the-art LLMs combine multiple variants of attention to mitigate the quadratic complexity of traditional softmax attention. These hybrid attention LLMs aim to balance the strengths and limitations of full attention and alternatives based on recurrence. This work presents a first study of how hybrid attention impacts the multilinguality of LLMs. Beyond the impact on long sequences in poorly tokenized languages, our study is motivated by the possibility that the inductive biases of the recurrent state alter linguistic processing. Our interpretability analysis confirms this, showing that cross-lingual representations in hybrid models develop in patterns tied to the ordering of recurrent and full-attention layers. Across diverse models, we notably observe a pronounced spike in cross-lingual alignment around the first full-attention layer. These findings lead us to question the conventional ordering of attention layers. In distillation experiments on multilingual data, all alternative layer orderings outperform the standard throughout training, learning up to 2.5X faster. These stark, replicable results prompt our theory that multilingual models would benefit from starting with a full-attention layer rather than recurrent layers.

阅读原文

参与讨论