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

Small Data? No Problem! Exploring the Viability of Pretrained Multilingual Language Models for Low-resourced Languages

Kelechi Ogueji, Yuxin Zhu, Jimmy Lin2021

Abstract

Pretrained multilingual language models (PLMs) have revolutionized NLP but are notoriously data-hungry, often requiring hundreds of gigabytes of text. This excludes the vast majority of the world's languages that lack extensive digital archives. This paper introduces AfriBERTa, a multilingual model trained from scratch on 11 African languages using less than 1 GB of data. We demonstrate that AfriBERTa is highly competitive with, and often outperforms, massive models like mBERT and XLM-R on downstream tasks, challenging the assumption that high-resource "anchor" languages are necessary for low-resource language performance.

Introduction

Modern NLP relies on models like BERT that are trained on massive web-crawled datasets. For low-resource languages, the standard approach is to include them in large multilingual models to benefit from cross-lingual transfer from high-resource languages like English. However, this often results in low-resource languages being underrepresented in the training data. AfriBERTa explores a different path: training a model exclusively on a small, curated set of related low-resource languages.

Methodology

AfriBERTa is based on the RoBERTa architecture and uses Masked Language Modeling (MLM) as its training objective. To optimize for a "small data" regime, the researchers conducted a design space exploration, testing various configurations:

  • Model Depth: 4 to 10 layers.
  • Attention Heads: 2 to 6 heads.
  • Vocabulary: A 70k-token vocabulary built using SentencePiece (unigram) to ensure fair representation across all target languages.

The study found that while performance generally increases with depth, a 6-to-8-layer model provides an optimal balance of efficiency and accuracy for small datasets.

Datasets and Pretraining

The pretraining corpus consists of approximately 0.94 GB of text (109 million tokens) covering 11 African languages: Afaan Oromoo, Amharic, Gahuza, Hausa, Igbo, Nigerian Pidgin, Somali, Swahili, Tigrinya, and Yorùbá. This work provides the first-ever language models for four of these languages.

Table 2: Pretraining corpus statistics for the 11 African languages included in AfriBERTa.

Key Results

AfriBERTa was evaluated on Named Entity Recognition (NER) and text classification. Despite having fewer parameters and being trained on less than 1% of the data used for models like XLM-R, AfriBERTa achieved superior results in several categories.

Named Entity Recognition (NER)

On the MasakhaNER dataset, AfriBERTa variants consistently outperformed or matched mBERT and XLM-R. For instance, in Amharic (amh) and Yorùbá (yor), AfriBERTa-large significantly exceeded the performance of the larger baseline models.

Table 6: NER F1 scores comparing AfriBERTa variants against mBERT and XLM-R. Bold values indicate the best performance.

Text Classification

In news topic classification for Hausa and Yorùbá, AfriBERTa outperformed XLM-R and mBERT by up to 10 F1 points, demonstrating that its internal representations are robust even with limited training data.

Discussion and Conclusion

The success of AfriBERTa suggests that quality and similarity matter more than quantity. Training on a small group of linguistically or geographically related languages can be more effective than joint training with massive, unrelated datasets. This "small data" approach offers a more inclusive and computationally efficient path for developing NLP technologies for the world's under-resourced languages.

Future work will explore the "data floor"—the minimum amount of text required for a model to be viable—and investigate the impact of adding more diverse languages to the training set.

Summary updated

BibTeX
@misc{ogueji2021small,
  author = {Kelechi Ogueji and Yuxin Zhu and Jimmy Lin},
  title = {{Small Data? No Problem! Exploring the Viability of Pretrained Multilingual Language Models for Low-resourced Languages}},
  year = {2021},
  doi = {10.18653/v1/2021.mrl-1.11},
}
Figure