TL;DR
This paper introduces EXTEND, an efficient method to adapt Multilingual BERT (M-BERT) for low-resource languages not covered in its original training. EXTEND significantly boosts performance on these new languages and even improves existing M-BERT languages, offering a practical solution for broader NLP applications.
What Problem Does This Paper Address?
Large pre-trained language models like BERT have revolutionized NLP, but their effectiveness is often limited by the languages they were trained on. Multilingual BERT (M-BERT) was trained on the top 104 languages from Wikipedia, achieving impressive zero-shot cross-lingual transfer capabilities. However, this leaves a vast number of languages, spoken by millions, completely unrepresented. For these low-resource languages, obtaining sufficient labeled data for traditional supervised learning is extremely difficult, making them inaccessible to state-of-the-art NLP models. While training a new M-BERT from scratch for every new language is computationally prohibitive, and bilingual BERT (B-BERT) approaches have limitations in leveraging related languages, there's a clear need for a more efficient and effective way to extend M-BERT's reach.
Methods
The core contribution of this paper is the EXTEND method. It's designed to be an efficient way to adapt M-BERT to new, low-resource languages. The process involves:
- Vocabulary Extension: The vocabulary of M-BERT is expanded to include new tokens relevant to the target language. The authors fix the size of this new vocabulary to 30,000 tokens.
- Model Adaptation: The dimensions of the model's encoder and decoder are adjusted to accommodate the extended vocabulary. New weights are initialized using M-BERT's default initialization.
- Continued Pre-training: The adapted model then undergoes continued pre-training using monolingual data from the target language. This results in a new model, termed E-MBERT.
This approach is significantly more efficient than training a new M-BERT from scratch, requiring less than 7 hours on a single cloud TPU, compared to days for BERT-base.
Datasets
The primary dataset used for evaluation is the LORELEI dataset, which contains NER (Named Entity Recognition) annotations for 27 languages. Crucially, 11 of these languages were not part of the original M-BERT training. The authors also mention using subsampled English Wikipedia data for training B-BERT and E-MBERT in some comparisons.
Key Insights and Ideas
- EXTEND is surprisingly effective for both "new" and "existing" languages: It's intuitive that EXTEND would help languages not in M-BERT. However, the paper shows it also improves performance on languages already covered by M-BERT.
- Vocabulary expansion is key, but not the only factor: While adding new vocabulary is crucial, the continued pre-training itself helps the model adapt and perform better, even without a significantly larger vocabulary.
- E-MBERT focuses on the target language: The continued pre-training step optimizes E-MBERT for the specific target language, leading to better performance on that language, even if it slightly degrades performance on other languages.
- Efficiency is a major win: EXTEND's ability to achieve significant improvements in a fraction of the time and computational resources compared to training from scratch or even B-BERT is a critical practical advantage.
Key Results
- Significant performance gains: EXTEND achieved an average increase of about 6% F1 on languages already in M-BERT and a substantial 23% F1 increase on the new, low-resource languages.
- Superior to B-BERT: In comparisons with Bilingual BERT (B-BERT), EXTEND often outperformed it, especially on target languages, and was significantly more efficient.
- Faster convergence: E-MBERT converges much faster than B-BERT, reaching optimal performance in about 100K pre-training steps compared to over 1M steps for B-BERT.
- Minimal impact on English performance: The paper shows that E-MBERT's performance on English (the source language in many scenarios) is largely unaffected, indicating it doesn't gain an unfair advantage.
Limitations and Future Work
- One language at a time: The current EXTEND method extends M-BERT for one language at a time. The authors suggest future work could explore extending to multiple languages simultaneously.
- Vocabulary initialization: While EXTEND uses random initialization for new vocabulary, they propose using alignment models like MUSE or VecMap with bilingual dictionaries for potentially better initialization.
- Model architecture: The authors suggest applying their EXTEND approach to newer, more advanced models like RoBERTa.
- Transferability trade-off: The paper notes that focusing on one language with EXTEND can hurt transferability to other languages. This is an important consideration for multilingual scenarios.
Summary updated