Abstract
The researchers propose Multi-level Multilingual Knowledge Distillation (MMKD), a framework that improves multilingual language models by distilling semantic and structural knowledge from a high-performing English BERT model into a multilingual student (mBERT). By aligning representations at the token, word, sentence, and batch-structure levels using limited parallel data, MMKD significantly outperforms standard baselines on cross-lingual tasks, particularly for low-resource languages.
Introduction
Multilingual language models such as mBERT and XLM-R have demonstrated significant capabilities in cross-lingual transfer. However, these models often struggle to capture fine-grained semantic structures in non-English languages, particularly when training data is limited. Standard alignment techniques typically focus on token-level or sentence-level mappings, which may not fully capture the sophisticated semantic organization found in high-performing monolingual models.
The researchers propose MMKD to address this gap. The core idea is to transfer the superior vector space properties of a "smarter" English teacher model (BERT) to a multilingual student model (mBERT). By aligning representations across multiple levels, MMKD ensures the student model organizes its internal understanding of various languages in a way that mimics the teacher's semantic structure.
Methodology
The MMKD framework utilizes a Teacher-Student architecture where a frozen English BERT-base serves as the teacher and mBERT acts as the student. The training process involves a multi-task learning objective with four primary alignment goals:
- Translation Language Modeling (TLM): Predicts masked tokens in parallel sentence pairs to force cross-lingual context utilization.
- Cross-lingual Word-aware Contrastive Learning (XWCL): Aligns word-level representations using InfoNCE loss, bringing the student's target-language word embeddings closer to the teacher's English counterparts.
- Sentence Alignment (SentA): Encourages the student’s [CLS] token embeddings for any language to match the teacher’s English [CLS] embedding via Mean Squared Error (MSE) loss.
- Structure Alignment (StrucA): Preserves the relational geometry of the embedding space by ensuring that the similarity matrix of a batch of sentences in the student's space matches that of the teacher's space.
Experimental Results
The model was trained using parallel corpora from the OPUS website, covering English paired with seven other languages (Arabic, Bulgarian, Chinese, French, German, Hindi, and Spanish), with a limit of 2 million sentence pairs per language. Evaluation was conducted in a zero-shot setting on standard benchmarks including XNLI, PAWS-X, and XQuAD.
On the XNLI benchmark, MMKD achieved an average accuracy of 75.4% across eight languages, a substantial improvement over the 69.6% mBERT baseline. The model showed particularly strong gains in low-resource settings, such as a 10.1% accuracy increase for Hindi compared to the vanilla mBERT baseline.
Discussion and Conclusion
A key insight from this work is the importance of Structure Alignment (StrucA). By forcing the student to mimic the teacher's relational "map" of sentence batches, the model learns a more robust semantic organization that transcends simple translation. This validates the hypothesis that large-scale English corpora provide structural information that can "anchor" the semantic spaces of other languages. Qualitative analysis via t-SNE plots further confirmed that MMKD produces much tighter clusters for translations of the same sentence compared to vanilla mBERT.
MMKD provides an efficient way to improve existing multilingual models using limited parallel data and moderate computational resources (3 days on 8 A100 GPUs). While the framework shows a slight bias towards Indo-European languages closer to English, it consistently delivers performance gains across diverse language families. Future work may explore multi-teacher approaches to incorporate diverse semantic structures from various major language families.
Summary updated