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), massively multilingual models like mBERT or XGLM are highly valued for their ability to handle dozens of languages simultaneously. However, these models face a fundamental trade-off known as the "curse of multilinguality." As more languages are packed into a fixed-size model, they begin to compete for the same parameter capacity. This inter-language competition often results in performance that is inferior to dedicated monolingual models.
Beyond performance degradation, training these dense models presents significant logistical challenges. They require hundreds of perfectly synchronized GPUs for extended periods. Furthermore, adding a new language to an existing model often leads to "catastrophic forgetting," where the model loses proficiency in its original languages while attempting to learn the new one. This paper introduces Cross-lingual Expert Language Models (X-ELM) to address these limitations through a modular, asynchronous training paradigm.
The X-ELM Framework
The core of X-ELM is the x-BTM approach, an extension of the Branch-Train-Merge paradigm tailored for multilingual settings. The process is structured into four primary stages:
- Data Allocation: The multilingual corpus is partitioned into $k$ clusters. The authors evaluated two strategies: Balanced TF-IDF (automatic statistical clustering) and Linguistic Typology (grouping by language family and features).
- Branch: Starting from a "seed" multilingual model (e.g., XGLM-1.7B), $k$ identical copies, or "experts," are created.
- Train: Each expert is trained independently and asynchronously on its assigned data cluster. This independence eliminates the need for cross-GPU synchronization, significantly increasing training efficiency.
- Merge: During inference, the experts are ensembled. The system can utilize a "Top-1" approach, selecting the single best expert for a given language, or a weighted ensemble of multiple experts.
Additionally, the authors introduce Hierarchical Multi-round Training (HMR). This allows a trained expert (e.g., a Romance language expert) to be further branched to specialize in a specific sub-dialect or a new, related language without affecting the performance of other experts.
Experimental Setup
The models were pretrained on a subsampled version of mC4, focusing on the 16 highest-resourced languages in the XGLM corpus. To test adaptation capabilities, four "unseen" languages—Azerbaijani, Hebrew, Polish, and Swedish—were used. Evaluation metrics included perplexity (PPL) and performance on downstream benchmarks: XNLI (Natural Language Inference), XStoryCloze (Story completion), and PAWS-X (Paraphrase detection).
Key Insights and Results
Typology vs. Statistics
Grouping languages by typological similarity consistently outperformed automatic TF-IDF clustering. This suggests that shared linguistic structures, such as grammar and syntax, provide a more effective transfer signal than simple vocabulary overlap.
The "Goldilocks" Sweet Spot
Counter-intuitively, training one expert per language ($k=16$) was not the optimal configuration. The best average results were achieved with $k=8$ experts, where each expert handles roughly two related languages. This indicates that models benefit from a moderate amount of multilinguality—enough to allow for cross-lingual transfer without inducing excessive parameter competition.
Performance Gains
X-ELM (with $k=8$ and typological clustering) improved average perplexity by 2.97 points over the seed XGLM model and 1.20 points over a dense model trained with an equivalent compute budget. These gains translated to higher accuracy and "Win Rates" across XNLI, XStoryCloze, and PAWS-X in both zero-shot and few-shot settings. The improvements were particularly pronounced for lower-resource languages.
Conclusion and Future Work
X-ELM democratizes multilingual modeling by allowing researchers to train experts independently on smaller hardware clusters. It effectively mitigates the curse of multilinguality and avoids catastrophic forgetting when adding new languages via HMR.
Future research should explore the scalability of this approach to "frontier" models exceeding 70B parameters and expand downstream evaluations to a broader range of multilingual benchmarks. While X-ELM introduces some storage and inference overhead due to the ensembling of multiple experts, the performance and flexibility gains offer a compelling alternative to traditional dense multilingual models.
Summary updated