NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

An Exploration of Vocabulary Size and Transfer Effects in Multilingual Language Models for African Languages

Akintunde Oladipo, Odunayo Ogundepo, Kelechi Ogueji, Jimmy LinAfricaNLP @ ICLR 2022

TL;DR

This paper investigates how shared vocabulary and pretraining strategies impact the cross-lingual transfer capabilities of multilingual language models for low-resource African languages. They find that while multilingual models generally outperform monolingual ones, there's a saturation point for the number of languages before performance degrades, and pretraining with high-resource languages like English doesn't significantly boost performance for these specific African languages.

What Problem Does This Paper Address?

The success of large multilingual language models (like mBERT and XLM-R) on a wide range of languages, including those they weren't explicitly trained on, is impressive. However, there's a significant gap in understanding why they work so well, particularly for low-resource languages. This paper aims to demystify this by exploring the trade-offs involved in sharing a vocabulary space across multiple languages and how this affects cross-lingual transfer. Specifically, they want to understand if and how pretraining with high-resource languages, using different scripts, and scaling the number of languages influences performance on downstream tasks for African languages.

Methods

The researchers trained several transformer-based multilingual models, all sharing the same architecture as the AfriBERTa model. They explored different configurations:

  • 3L multilingual models: Jointly pretrained on three low-resource African languages (Amharic, Hausa, Swahili) using a shared vocabulary.
  • 3L + En multilingual model: Similar to the 3L model but also includes English in the pretraining, allowing them to isolate the effect of high-resource transfer.
  • Monolingual Models: Three separate models, each trained on a single African language with its own dedicated vocabulary.

They evaluated these models on Named Entity Recognition (NER) and Text Classification tasks in zero-shot and few-shot settings. Additionally, they performed a token analysis to understand vocabulary overlap and an audit of pretraining corpus quality.

Datasets

The study focused on three African languages: Amharic, Hausa, and Swahili.

  • Pretraining Corpora:
    • British Broadcasting Corporation (BBC) News data.
  • Common Crawl (CC-100) data.
  • English data (sampled from Common Crawl) for the 3L+En model.
  • Downstream Tasks:
    • Named Entity Recognition (NER): Evaluated on the publicly available MasakhaNER dataset, which includes 10 African languages.
  • Text Classification: Evaluated on news title topic classification datasets for Hausa and Yoruba.

Key Insights and Ideas

  • The "Curse of Multilinguality" is Real (to an extent): Scaling up the number of languages in a multilingual model is beneficial for cross-lingual transfer in low-resource settings, but only up to a certain point. Beyond that, performance can degrade, suggesting an optimal number of languages for pretraining.
  • High-Resource Languages Aren't Always a Boost: Pretraining low-resource African languages with a high-resource language like English didn't yield significant improvements on downstream tasks. This challenges the common assumption that adding English is always beneficial.
  • Cross-Script Transfer is Possible: Multilingual models can achieve cross-lingual transfer even when the source and target languages use different scripts (e.g., Ge'ez script for Amharic vs. Latin script for Hausa and Swahili). This highlights the model's ability to learn more abstract linguistic representations.
  • Multilingual Tokenizers Help: Using a shared multilingual tokenizer generally improved performance compared to monolingual tokenizers, especially for cross-script transfer. This suggests that even when languages compete for vocabulary space, the shared representations are beneficial.
  • Corpus Quality Matters Less Than Expected: The study found little difference in the quality of BBC News and Common Crawl data when used for pretraining, as models trained on both yielded similar results.

Key Results

  • NER Performance: Multilingual models generally outperformed monolingual models. The performance increased as the number of languages in the pretraining set grew, from the 3L models to AfriBERTa (11 languages). However, XLM-R (100+ languages) did not show a consistent advantage over AfriBERTa, supporting the idea of a saturation point.
  • Text Classification Performance: Similar trends were observed, with multilingual models showing benefits. High-resource transfer (adding English) showed some benefits for text classification on specific languages like Yoruba and Hausa but not consistently across all tasks and languages.
  • Cross-Script Transfer: Monolingual models trained with a multilingual tokenizer performed better on tasks involving languages with different scripts compared to those using monolingual tokenizers. For instance, Hausa and Swahili NER performance improved on Amharic when using a multilingual tokenizer.
  • Token Overlap: While typologically similar languages showed higher token overlap, there was still a notable overlap between languages with different scripts, suggesting that shared subword units can bridge script differences.

Limitations and Future Work

  • Limited Language Scope: The study focused on only three African languages. Future work could expand to a wider range of languages to further validate the findings on language scaling and saturation.
  • Fixed Architecture: All models used the same architecture. Exploring how different model sizes or architectures interact with vocabulary size and transfer effects could be beneficial.
  • High-Resource Transfer Nuances: The paper found limited benefit from adding English. Future research could investigate why this is the case for these specific African languages and explore other high-resource languages or different methods of incorporating them.
  • Corpus Quality: While the study found little difference between BBC and Common Crawl, a more in-depth analysis of corpus characteristics (e.g., domain, style, noise levels) could reveal subtle impacts.

The authors suggest that their findings have practical implications for developing NLP tools for African languages and hope this research spurs further investigation into low-resource language modeling.

Summary updated

BibTeX
@inproceedings{oladipo2022exploration,
  author = {Akintunde Oladipo and Odunayo Ogundepo and Kelechi Ogueji and Jimmy Lin},
  title = {{An Exploration of Vocabulary Size and Transfer Effects in Multilingual Language Models for African Languages}},
  booktitle = {AfricaNLP @ ICLR},
  year = {2022},
  url = {https://openreview.net/forum?id=HOZmF9MV8Wc},
}
Figure