混合架构中的竞争性学习
研究论文 · 2026/10/20
本文揭示了混合架构中不同混合器竞争学习同一函数的现象,即当某一层学会某函数时会抑制其他层对应的学习信号。层归因分析表明,在典型数据分布下,现代循环层比softmax注意力更快学会检索函数,导致注意力在多数情况下无法学习检索。训练中途停止循环层的权重更新有助于注意力学习检索。基于此,作者提出了一种用于自然语言预训练混合架构的分阶段训练流程。在高达10亿参数的模型上,实验表明该方法在语言建模损失、常识推理以及不同上下文长度的多种检索相关任务上均有显著提升。
该研究深入分析了混合架构中循环层与注意力层的竞争学习机制,提出了简单有效的分阶段训练方法,并在大规模模型上验证了其有效性,对理解及优化混合架构具有重要价值。
Many modern language models have adopted hybrid architectures that incorporate both linear-time recurrence and softmax attention. Modern recurrence layers provide a highly expressive mixing mechanism while ensuring high throughput by compressing contextual information into a fixed-size state, but underperform softmax attention in contextual information retrieval. In this paper, we reveal a Competing Learning phenomenon where different kinds of mixers compete to learn the same function, and when any layer learns a function, it suppresses the corresponding learning signal for other layers. Layer attribution analysis reveals that under typical data distributions, modern recurrence learns retrieval functions faster than softmax attention, causing attention to fail to learn retrieval in most cases. Stopping weight updates in recurrence in the middle of training helps attention learn retrieval. Based on these results, we propose a staged training procedure for pre-training hybrid architectures on natural language. Empirical results on models up to 1B parameters show that our method results in substantial improvement in language modeling loss, common-sense reasoning, as well as a wide range of retrieval-related tasks across different context lengths.