Abstract
Multilingual language models typically mix same-language and cross-language contexts into a single attention module, which often causes them to lazily rely on the easier same-language context. This paper introduces Decomposed Attention (DA), an architecture that separates intra-lingual and cross-lingual attention to force the model to learn better cross-lingual alignments. Combined with a novel language-adaptive re-weighting strategy, this approach significantly boosts zero-shot cross-lingual transfer performance across various Natural Language Understanding (NLU) tasks.
Introduction
Modern multilingual pre-trained models, such as XLM, rely on Translation Language Modeling (TLM), where a sentence and its translation are concatenated for masked word prediction. Standard architectures utilize a "Mixed Attention" (MA) mechanism, treating all tokens in the bilingual pair equally. However, the authors identify a critical flaw: predicting a masked word using its surrounding native-language context is significantly easier than using the translated context. Consequently, MA models often favor intra-lingual context, failing to learn robust cross-lingual alignments. Additionally, the natural imbalance of word frequencies and data availability across languages leads to underfitting of rare words and low-resource languages.
Methods
To address these limitations, the authors propose two primary interventions:
Decomposed Attention (DA)
Instead of a monolithic attention block, DA splits the process into two sequential steps. First, an Intra-lingual Attention (IA) module processes context within the same language. Subsequently, a Cross-lingual Attention (CA) module computes attention based on the outputs of the IA. This decoupling forces the model to explicitly model cross-lingual dependencies rather than ignoring them in favor of easier intra-lingual clues.
Language-Adaptive Sample Re-weighting
To tackle data imbalance, the authors adapt Focal Loss (FL) to focus on "hard" examples. To avoid harming low-resource languages early in training, they designed a language-wise and data-type-wise FL that only triggers after the loss for a specific language drops below a certain threshold. This ensures the model focuses on difficult words only after mastering the easier ones.
Key Insights and Results
The proposed methods were evaluated on several benchmarks, including XNLI, PAWS-X, TyDiQA-GoldP, and UDPOS.
Performance Gains
- XNLI: The full model (DA + Adaptive FL) achieved an average accuracy of 70.8%, outperforming the MA baseline (70.3%) and mBERT (65.5%).
- PAWS-X: DA + Adaptive FL reached 82.2% average accuracy. Notably, performance on Asian languages (Japanese, Korean, Chinese) jumped from 67.2% (MA) to 73.1% (DA).
- TyDiQA-GoldP: DA reversed MA's failure on question answering, scoring 40.2 F1 compared to MA's 31.4 F1. This is attributed to the IA module preserving long-context capabilities that are often damaged in MA models during training on short translation pairs.
Forcing Hard Alignments
Attention heatmaps reveal that DA captures complex, non-monotonic cross-lingual alignments that MA misses. While MA tends to learn simple, monotonic alignments, DA effectively bridges the gap between languages with vastly different syntax, such as European and Asian languages.
Conclusion
The Decomposed Attention architecture and language-adaptive re-weighting strategy provide a robust framework for enhancing cross-lingual supervision in multilingual models. By forcing the model to engage with cross-lingual context and balancing the learning process across languages, the approach achieves state-of-the-art results in zero-shot cross-lingual transfer. Future work will explore leveraging CA layers for structured prediction tasks and dynamic hyper-parameter optimization.
Summary updated