TLDR: This research investigates how Mixture-of-Experts (MoE) large language models process multilingual data. It reveals that MoE models route language-specific tokens differently in early and late layers but share experts across languages in middle layers. Crucially, the study finds a strong correlation between a model’s performance in a language and how similarly its tokens are routed to English in these middle layers. By intervening at inference time to promote English-activated task experts in these middle layers, the researchers achieved consistent 1-2% performance gains across various languages and tasks, demonstrating a causal link between cross-lingual expert sharing and improved multilingual generalization.
Large Language Models (LLMs) have become incredibly powerful, and a key reason for their scalability is a clever architecture called Mixture-of-Experts (MoE). Imagine an LLM as a team of specialists, or ‘experts,’ where different parts of a task are routed to the most suitable expert. This allows models to have a vast number of parameters while keeping computational costs manageable. However, despite their growing multilingual capabilities, it hasn’t been fully clear how these MoE models handle different languages internally.
A recent research paper, “Multilingual Routing in Mixture-of-Experts”, delves into this very question. The authors, Lucas Bandarkar, Chenyuan Yang, Mohsen Fayyaz, Junlin Hu, and Nanyun Peng, investigated how MoE models route tokens (pieces of text) when processing data in multiple languages. Their findings offer fascinating insights into the internal workings of these advanced AI systems and even propose a method to boost their multilingual performance.
The U-Shaped Routing Pattern
One of the most striking discoveries is a consistent “U-shaped” pattern in how MoE models route language tokens. When comparing the routing patterns of non-English languages to English, the researchers found significant differences (high divergence) in the very first and very last layers of the model. However, in the intermediate, or ‘middle,’ layers, this divergence dramatically decreased, indicating a strong alignment in how experts are utilized across languages. This suggests that the middle layers act as a kind of ‘language-universal’ processing hub, where different languages leverage similar underlying mechanisms, much like what has been observed in traditional, dense LLMs.
Furthermore, the study revealed a clear and strong correlation: the better a model performs in a given language, the more closely its routing patterns in these middle layers resemble those for English. Languages that the model struggles with, like Bambara, failed to show this alignment, maintaining high routing divergence throughout.
Expert Specialization and Modularity
The researchers also looked at how ‘routing entropy’ and ‘consistency’ change across layers. They found that as tokens pass through the model, the routers become more confident about which experts to send them to, especially for non-English languages. This increased confidence, particularly in the final layers, suggests that models develop dedicated experts for generating multilingual text. Interestingly, non-English languages generally showed higher routing consistency within a sequence compared to English, implying they rely on a smaller, more focused set of experts.
A crucial finding for future AI development is the concept of ‘language-task modularity.’ The study demonstrated that experts specialized for multilingual processing are entirely separate from those specialized for specific tasks, such as mathematical reasoning or medical knowledge. This means the model has distinct sets of parameters for handling different languages versus tackling complex tasks, a clear sign of modular organization within the MoE architecture.
Steering for Better Multilingual Performance
Building on these insights, the team explored whether they could actively intervene in the routing process to improve multilingual performance. They identified experts that were frequently activated when the model performed specific tasks (like math or medicine) in English. Then, during inference (when the model is generating output), they ‘steered’ the router to promote the activation of these same English-activated task experts in the middle layers for non-English languages.
The results were remarkably consistent: this simple, inference-time intervention led to statistically significant performance gains of 1-2% across two evaluation tasks (multilingual math and medical reasoning), three different MoE models, and over 15 languages. These gains were particularly noticeable for lower-resource languages. The success of these interventions highlights a causal link between cross-lingual routing alignment and the ability of LLMs to generalize complex capabilities across languages. It also underscores the critical importance of targeting the specific ‘language-universal’ middle layers for such interventions.
Also Read:
- A New Approach to Efficient Large Language Models with Dynamic Expert Management
- Decoding AI’s Thought Process: The Role of Internal States in Reasoning Models
Future Implications
This research provides a deeper understanding of how Mixture-of-Experts LLMs process and generalize across languages. The discovery of language-universal mechanisms in middle layers and the distinct modularity of language and task experts open up exciting avenues for future work. It suggests that developing new training methods or even architectural designs that actively enhance cross-lingual expert sharing could lead to even more significant improvements in multilingual AI performance.


