Interference Matrix: Quantifying Cross-Lingual Interference in Transformer Encoders

Belen Alastruey, João Maria Janeiro, Alexandre Allauzen, Maha Elbayad, Loïc Barrault, Marta R. Costa-jussàarXiv 2025 · DOI

Introduction

In the pursuit of universal natural language processing, modern models like mBERT and XLM-R are trained on hundreds of languages simultaneously. However, this approach often encounters the "curse of multilinguality": as more languages are added to a model with finite capacity, performance on individual languages tends to degrade. While researchers have long suspected that certain languages interfere with others, identifying these interactions has traditionally relied on proxies such as linguistic family trees or vocabulary overlap.

This paper introduces a direct, empirical method for quantifying these interactions: the Interference Matrix. By training thousands of bilingual models, the authors provide a ground-truth map of how languages compete for parameters within Transformer encoders, revealing surprising patterns that challenge conventional wisdom in multilingual NLP.

Methodology

To construct the Interference Matrix, the authors conducted a large-scale empirical study involving 83 languages:

  1. Model Architecture: They utilized shallow, 2-layer BERT-like Transformer encoders to keep the computational cost of thousands of runs manageable.
  2. Training Protocol: For each of the 83 languages, a baseline monolingual model was trained. Subsequently, a bilingual model was trained for every possible pair (A, B).
  3. Quantifying Interference: Interference was defined as the relative change in Masked Language Modeling (MLM) loss. Specifically, the interference of Language B on Language A is the relative difference in loss between the monolingual model (A) and the bilingual model (A + B).
  4. Scaling and Validation: To ensure findings from small models generalize, the authors trained standard 24-layer models on 20 million sentences per language and evaluated them on the Massive Text Embedding Benchmark (MTEB).

The Interference Matrix

The resulting 83x83 matrix provides a comprehensive view of cross-lingual dynamics. A primary finding is that interference is asymmetric: Language A may significantly harm the performance of Language B, while Language B has a negligible effect on Language A.

The full 83x83 Interference Matrix showing relative loss changes across language pairs.

The authors further decompose these interactions into two distinct traits:

  • Robustness: A language's ability to resist performance degradation when paired with others.
  • Friendliness: A language's tendency to minimize the degradation it causes to its partners. Crucially, these traits are not correlated; a language can be "friendly" to others while remaining highly "fragile" (low robustness) itself.

Key Insights: Script vs. Language Family

One of the most significant findings is that writing script is a far more potent predictor of interference than linguistic family. While it is often assumed that related languages (e.g., Romance or Germanic) benefit each other, the Interference Matrix shows that sharing a script is the primary driver of compatibility. Languages sharing a script interfere with each other significantly less than those that do not.

Aggregated interference scores grouped by writing script.

Furthermore, the study reveals that low-resource languages are generally both less robust and less friendly. This suggests that the noisy, harder-to-fit data typical of low-resource settings acts as a disruptive force during the joint training process. Empirical comparisons also showed that modern embedding similarities (like SONAR) fail to accurately predict these training-time interference patterns.

Downstream Impact and Predictive Power

The empirical matrix is not just a theoretical artifact; it has strong predictive power for downstream tasks. In experiments with 24-layer models, pairing a language like Greek with "high-interference" partners (e.g., Tamil or Malayalam) led to accuracy drops of up to 3.86 points compared to "low-interference" pairings. Similarly, adding a single "unfriendly" language to a stable multilingual mix caused significant performance regressions, whereas adding "friendly" languages had minimal impact.

Conclusion

The Interference Matrix offers a new lens through which to view multilingual training. By moving beyond linguistic proxies to direct empirical measurement, researchers can better understand the trade-offs inherent in massive multilingual models. These insights provide a practical roadmap for data selection, language grouping, and the design of more efficient, interference-aware architectures.

Summary updated

BibTeX
@misc{alastruey2025interference,
  author = {Belen Alastruey and João Maria Janeiro and Alexandre Allauzen and Maha Elbayad and Loïc Barrault and Marta R. Costa-jussà},
  title = {{Interference Matrix: Quantifying Cross-Lingual Interference in Transformer Encoders}},
  year = {2025},
  eprint = {2508.02256},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.02256},
}
Figure