Abstract
Despite their popularity in non-English NLP, multilingual language models often underperform monolingual ones due to inter-language competition for model parameters. We propose Cross-lingual Expert Language Models (X-ELM), which mitigate this competition by independently training language models on subsets of the multilingual corpus. This process specializes X-ELMs to different languages while remaining effective as a multilingual ensemble. Our experiments show that when given the same compute budget, X-ELM outperforms jointly trained multilingual models across all considered languages and that these gains transfer to downstream tasks. X-ELM provides additional benefits over performance improvements: new experts can be iteratively added, adapting X-ELM to new languages without catastrophic forgetting. Furthermore, training is asynchronous, reducing the hardware requirements for multilingual training and democratizing multilingual modeling.
Introduction
In Natural Language Processing (NLP), the goal is often to create a single model capable of handling hundreds of languages. However, these "massively multilingual" models face a fundamental trade-off: with a fixed number of parameters, different languages must compete for representation space. This often results in the curse of multilinguality, where a multilingual model performs worse on a specific language than a dedicated monolingual model would.
Updating these dense models is also computationally expensive and carries the risk of "catastrophic forgetting," where training on new data causes the model to lose previous knowledge. This paper introduces Cross-lingual Expert Language Models (X-ELM), which use a sparse training approach to create specialized experts, scaling capacity efficiently while maintaining cross-lingual transfer benefits.
Methodology: The X-ELM Framework
X-ELM is built on the x-BTM framework (an extension of Branch-Train-Merge), which follows a modular four-step process:
- Data Allocation: The multilingual corpus is partitioned into $k$ clusters. The authors found that Linguistic Typology Clustering (grouping by structural similarity) consistently outperforms raw statistical clustering.
- Branching: Multiple experts are initialized from a single pretrained seed model (e.g., XGLM-1.7B).
- Independent Training: Each expert is trained independently and asynchronously on its assigned data cluster, significantly reducing hardware synchronization requirements.
- Merging/Inference: At runtime, the model can use the single best expert for a language or ensemble multiple experts together.
The framework also introduces Hierarchical Multi-round Training (HMR). Instead of training from scratch, HMR allows developers to "branch" a new expert from an existing, typologically related one. This enables the addition of new languages without altering the weights of existing experts, effectively eliminating catastrophic forgetting.
Key Results and the "Bilingual Sweet Spot"
X-ELM outperformed dense baselines on every one of the 16 languages tested under the same compute budget. A key insight from the study is the existence of a "bilingual sweet spot." The best average performance was achieved with $k=8$ experts for 16 languages, rather than purely monolingual experts ($k=16$). This suggests that "targeted multilinguality" allows the model to leverage cross-lingual transfer between related languages while avoiding the interference found in massive dense models.
Furthermore, HMR proved dramatically more effective for adapting to unseen languages. For Azerbaijani, the HMR approach achieved a perplexity of 32.74, compared to 65.73 for the dense baseline. These improvements in language modeling translated directly to better performance on downstream tasks like XNLI and PAWS-X.
Limitations and Future Work
While X-ELM is efficient to train, it requires more storage because each expert is a full copy of the model parameters. Additionally, ensembling multiple experts increases inference costs, though the authors suggest that using only the top-2 experts can mitigate this. Future work will explore scaling X-ELM to larger architectures and a broader range of languages.
Conclusion
X-ELM offers a modular and high-performance alternative to traditional dense multilingual models. By breaking the curse of multilinguality through specialized experts and hierarchical training, it provides a path toward more efficient and adaptable global NLP.
Summary updated