Manuscript Offprint

arXiv:2610.01921

Cross-Lingual Alignment for Decoder-Only Models using MoE Routers

Lucas Bandarkar, Clark Peng, Ahmed Haj Ahmed, Aditi Khandelwal, Nanyun Peng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

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.

Figure

Figure 1: Impact of our auxiliary alignment loss on routing alignment during CPT of the post-trained Qwen3-30B-A3B. In this case, vanilla CPT did not alter routing behavior (the blue and gray lines overlap), whereas our method (orange) substantially reduced routing divergence. The shaded orange region indicates the middle layers to which our loss was applied.

1 INTRODUCTION

Developing LLMs that perform well in natural languages underrepresented during pretraining or post-training remains a major challenge. One longstanding idea is that cross-lingual transfer—the generalization of learned capabilities and knowledge across languages—is closely tied to the alignment of internal representations (Klementiev et al., 2012; Gaschi et al., 2023; Liu & Niehues, 2025).

∗^{*}Correspondence to lucasbandarkar@cs.ucla.edu

If semantically equivalent inputs in different languages are represented similarly, knowledge and capabilities learned in one language are more likely to transfer to another. In earlier encoder-decoder language models, this idea could be operationalized directly because the encoder produces a natural sequence-level embedding (Zhou et al., 2016). Given the abundance of parallel (translated) text, cross-lingual contrastive learning could pull the embeddings of translated sentence pairs together while pushing those of unrelated pairs apart. Contrastive learning remains standard practice for training multilingual encoders (Wang et al., 2024a; SONAR Team et al., 2026; Zhang et al., 2025).

However, modern LLMs are decoder-only models. Consequently, they provide no natural sequence-level representation to align, and differences in tokenization and linguistic structure make it difficult to match tokens across translations. Common approaches to constructing sequence representations include using the final token's hidden state or mean-pooling hidden states (Li et al., 2024; Zheng et al., 2026), but neither reliably represents the meaning of the entire sequence. As a result, multilingual LLMs are typically trained without an inductive bias toward cross-lingual representational alignment, leaving the vast supply of translation data underutilized. Even so, these models implicitly learn language-agnostic representations, particularly in their middle layers (Wendler et al., 2024; Zhao et al., 2024; Bandarkar et al., 2026c). The extent to which models use these shared representations varies significantly across languages, and a growing body of work argues that poor cross-lingual alignment is directly tied to poor performance in those languages (See Section 2).

Motivated by these limitations, we present a method for effective cross-lingual alignment using the routers in mixture-of-experts (MoE) components. MoEs have become a prominent LLM architecture (Team et al., 2023; DeepSeek-AI et al., 2025) because they enable parameter scaling at a relatively fixed inference cost (Shazeer et al., 2017). For each token, the router at each layer produces a probability distribution over the available experts, determining which experts to activate. Based on prior research, we hypothesize that mean-pooled routing weights provide strong alignment targets. We evaluate this hypothesis by developing a training method that performs continual pretraining (CPT) on parallel data with an auxiliary KL-divergence loss over the mean-pooled routing weights of middle layers. We experiment with four MoE LLMs and seven languages. First, through small-scale training runs of 200k samples, we establish that this auxiliary loss effectively increases routing agreement. We also find that its gradients increase hidden-state similarity. Across a diverse set of downstream evaluations, models trained with our auxiliary loss consistently outperform those trained with vanilla CPT. Together, these results provide causal evidence that cross-lingual alignment improves multilingual performance. In practical terms, our method offers an effective and efficient cross-lingual alignment paradigm compatible with any training stage.

This paper is organized as follows. We first present recent research that motivates our method in Section 2 and describe its design and implementation in Section 3. Next, we outline our experiments in Section 4 and present internal metrics and downstream results in Section 5. Finally, we discuss our findings in Section 6, and conclusions, and the opportunities they open for future work in Section 7.

References (87)