TL;DR
This paper introduces a novel approach to pretraining large language models for low-resource languages by focusing on linguistically related data instead of just geographic proximity. They demonstrate that training on smaller, carefully selected datasets from related languages can achieve performance comparable to models trained on much larger, diverse datasets, offering a more efficient path to high-quality NLP for underrepresented languages.
What Problem Does This Paper Address?
The rise of massive multilingual language models (like mBERT and XLM-R) has been a boon for NLP, but they often suffer from the "curse of multilinguality," where performance on low-resource languages is diluted. This means that while these models contain many languages, they don't necessarily excel at them. Existing solutions like AfriBERTa showed promise by training on smaller, high-quality datasets, but they still relied on a mix of genetically unrelated languages. This paper tackles the challenge of efficiently pretraining models for low-resource languages by exploring whether grouping training data by linguistic relatedness, rather than just geographic proximity, can unlock better performance with less data.
Methods
The core of this research lies in linguistically-informed data selection. Instead of throwing vast amounts of diverse data at a model, the authors meticulously curate training sets based on language families and branches. They leverage the AfriBERTa corpus as a starting point and augment it with additional data, then split it according to linguistic relationships, specifically focusing on the Niger-Congo family (Volta-Niger and Bantu branches) and Afro-Asiatic languages. They then train new models from scratch on these curated subsets. The model architecture is kept consistent with AfriBERTa Large, ensuring a fair comparison.
Datasets
The paper utilizes and expands upon the AfriBERTa corpus. Additional data sources were collected online, prioritizing community-produced or partnered datasets. For evaluation, they use established datasets for downstream tasks:
- Named-Entity Recognition (NER): MasakaNER dataset.
- Part-of-Speech Tagging (POS Tagging): Masakhane data and DHASA-SACAIR data.
- Sentiment Analysis: YOSM and NaijaSenti.
- Text Classification: Hausa and Yorùbá news topic classification dataset, and KINNEWS and KIRNEWS datasets.
Key Insights and Ideas
- Linguistic Relatedness Trumps Quantity (and Geography): The most striking finding is that training on smaller datasets of genetically related languages can match or even surpass models trained on significantly more data from unrelated languages. This suggests that the model can learn more effectively from linguistic similarities.
- "Mini But Mighty" Models: The research demonstrates that efficient pretraining with linguistically grouped data can lead to smaller, yet powerful, models that are more accessible and usable for low-resource NLP.
- Specialization Can Be Beneficial: While a single model might not outperform all others across every task, specialized models (e.g., BantuBERTa for Bantu languages) show strong performance on their target language groups.
- Visualizing Language Embeddings: UMAP visualizations reveal that models trained on more closely related languages exhibit clearer, more distinct clusters, indicating better representation learning.
Key Results
- Models trained on linguistically related data achieved equal or better performance on downstream tasks compared to models trained on much larger, unrelated datasets.
- The proposed models achieved comparable performance to AfriBERTa (which used 939MB of data) using significantly less data, ranging from 107MB to 364MB.
- For example, in POS tagging, BantuBERTa showed improvements over AfriBERTa on several Bantu languages, despite using only about 25% of the training data.
- In text classification, linguistically-informed data selection was shown to outperform data quantity.
- UMAP visualizations showed that models trained on closely related languages produced more distinct clusters, highlighting the effectiveness of the data selection strategy.
Limitations and Future Work
- Limited Scope of Branches: The study focused on two branches of the Niger-Congo family. Expanding to a wider variety of branches could provide more generalizable conclusions.
- No Exact Overlap: There wasn't an exact overlap between all downstream tasks and training data, which prevented direct matching of pretrained models to general task performance.
- No Comparison to Fine-tuned Large Models: The paper did not compare their pretrained models to fine-tuned versions of larger, general-purpose multilingual models. The authors suggest that language-adaptive finetuning of Niger-Congo languages on models trained exclusively on Niger-Congo languages might yield even better results.
- Future Work: The authors suggest exploring guidelines for data selection for pretraining and finetuning, especially given resource constraints. They also propose investigating language-adaptive finetuning for even better performance.
Summary updated