使用MoE路由器的仅解码器模型跨语言对齐

·

研究论文 · 2026/10/07

跨语言对比学习一直是多语言编码器训练的核心组成部分,但由于多语言分词的不同,仅解码器的大语言模型无法显式对齐表示。然而,越来越多的研究表明,即使在LLM中,更高的跨语言表示对齐也能带来更好的跨语言迁移。本文提出了一种新方法,在现代LLM的架构约束下重新构想跨语言对比学习。我们不在隐藏状态上应用辅助对齐损失,而是提出使用专家混合(MoE)路由器的输出作为对齐目标。路由器输出更适合对多个令牌进行池化,从而在序列级别实现更可靠的跨语言比较。在四个开源MoE上进行的受控持续预训练实验表明,引入这种路由损失还能对齐跨语言的底层隐藏表示。最重要的是,该损失在我们多样化的评估套件上提高了多语言性能,展示了跨语言MoE路由器对齐的潜力。

该研究为仅解码器LLM的跨语言对齐提供了新思路,利用MoE路由器输出实现序列级对齐,实验证明能提升多语言性能,对多语言LLM训练有重要参考价值。

Cross-lingual contrastive learning has been a core component of multilingual encoder training, but the ability to explicitly align representations is not possible in decoder-only LLMs because of varying multilingual tokenization. However, a growing amount of research suggests that even in LLMs, higher cross-lingual representational alignment leads to improved cross-lingual transfer. In this paper, we propose a novel approach to reimagine cross-lingual contrastive learning given the architectural constraints of modern LLMs. Rather than applying an auxiliary alignment loss on hidden states, we propose using the outputs of the mixture-of-experts (MoE) routers as the target for alignment. Router outputs lend themselves better to pooling over many tokens, enabling more reliable cross-lingual comparisons at the sequence-level. Controlled continual pre-training experiments on four open-source MoEs show that incorporating this routing loss also aligns the underlying hidden representations across languages. Most importantly, this loss improves multilingual performance on our diverse evaluation suite, demonstrating the potential of cross-lingual MoE router alignment.

阅读原文

参与讨论