Abstract
Lin Pan, Chung-Wei Hang, Haode Qi, Abhishek Shah, Saloni Potdar, Mo Yu. Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies.
2021.
Researchers from IBM and MIT have developed a simple, self-supervised method called Post-Pretraining Alignment (PPA) that significantly improves how multilingual models like mBERT transfer knowledge across languages. By using a small amount of parallel data to align embeddings at both the word and sentence levels, they achieved state-of-the-art results on cross-lingual benchmarks while using a fraction of the data and parameters required by massive models like XLM.
Introduction
Pretrained multilingual models like mBERT and XLM-R are surprisingly effective at "zero-shot" transfer—learning a task in English and applying it to other languages without further training. However, these models are primarily trained on monolingual data via Masked Language Modeling (MLM). Because they rarely encounter explicit cross-lingual signals during pretraining, their internal representation spaces for different languages do not perfectly overlap, leading to a "misalignment" problem.
Existing solutions often require training massive models from scratch on huge parallel corpora or rely on noisy post-hoc word-alignment toolkits. The authors propose PPA as a lightweight, self-supervised way to "tune" existing models to better align their multilingual semantic spaces.
Methods
The authors propose Post-Pretraining Alignment (PPA), a multi-task learning approach applied to a pretrained mBERT model. It consists of three main components:
- Word-Level Alignment (Modified TLM): Using Translation Language Modeling, where parallel sentences are concatenated and the model predicts masked words. They introduce "random input shuffling" to prevent the model from relying on position-based heuristics.
- Sentence-Level Alignment (MoCo): Using Momentum Contrast (MoCo), they treat an English sentence and its translation as a "positive pair" to be brought closer in vector space, while using a large queue of other sentences as negative examples to push away. This aligns global meaning via the
[CLS]token. - Code-Switching during Finetuning: During downstream task training, they augment data by mixing English and target-language sentences to maintain alignment.
Datasets and Evaluation
The study utilized parallel sentences from MultiUN, Europarl, EUbookshop, and IITB, covering languages including French, Spanish, German, Bulgarian, Arabic, Chinese, and Hindi. They experimented with data scales of 250k, 600k, and 2M pairs per language. Models were evaluated on the XNLI (Natural Language Inference) and MLQA (Question Answering) benchmarks.
Key Results and Insights
- Performance Gains: The PPA-mBERT model improved over the baseline mBERT by 4.7% in zero-shot XNLI settings and outperformed XLM-R_Base by 2.3% on MLQA F1 scores.
- Efficiency: As shown in the model comparison below, PPA-mBERT achieves competitive results with 172M parameters, significantly fewer than models like XLM-R_Base (270M).
- The "Sweet Spot" of Data: The authors found that 600k parallel pairs per language provided a substantial boost, with diminishing returns at 2M, making the method accessible for limited compute environments.
- Dual-Level Alignment: Ablation studies showed that word-level (TLM) and sentence-level (MoCo) alignments are complementary, ensuring both local translation and global semantic preservation.
Conclusion
PPA provides a simple yet effective method for aligning multilingual models without the need for massive compute or external alignment tools. While the model's performance is ultimately bounded by its English proficiency and capacity, PPA-mBERT demonstrates that strategic alignment is as crucial as model size. Future work will look into scaling this approach to a broader set of the 104 languages supported by mBERT.
Summary updated