Transfer Learning and Distant Supervision for Multilingual Transformer Models: A Study on African Languages

Michael A. Hedderich, David Ifeoluwa Adelani, Dawei Zhu, Jesujoba O. Alabi, Udia Markus, Dietrich Klakow

Abstract

This study investigates the performance of multilingual transformer models, such as mBERT and XLM-RoBERTa, on low-resource African languages including Hausa, isiXhosa, and Yorùbá. By evaluating these models on Named Entity Recognition (NER) and Topic Classification tasks, we demonstrate that leveraging transfer learning from high-resource languages and employing distant supervision can significantly mitigate data scarcity. Our findings reveal that even a minimal amount of labeled data (10-100 sentences) leads to substantial performance gains, and that complex transformer architectures consistently outperform traditional RNN-based baselines in truly low-resource settings.

Introduction

Most breakthroughs in Natural Language Processing (NLP) rely on massive datasets, which are unavailable for the vast majority of the world's 7,000+ languages. While multilingual models exist, they are often tested on simulated low-resource settings rather than the messy reality of languages like those in Africa. This research addresses the challenge of performing NER and Topic Classification for Hausa, isiXhosa, and Yorùbá, investigating whether complex transformer models can outperform simpler models when data is extremely scarce.

Methodology

The researchers compared state-of-the-art multilingual transformers (mBERT and XLM-RoBERTa) against traditional baselines like RNNs (GRUs and LSTMs). To boost performance in low-data regimes, two primary strategies were employed:

  1. Transfer Learning: Models were fine-tuned on high-resource English datasets (CoNLL03 for NER and AG News for Topic Classification) before application to African languages in both zero-shot and few-shot scenarios.
  2. Distant Supervision: Native-speaker-defined rules and external knowledge bases (e.g., Wikidata) were used to automatically generate labels. A confusion matrix-based noise handling technique was applied to clean the resulting noisy signal.

Datasets

The study focuses on three linguistically diverse languages: Hausa (Afro-Asiatic), Yorùbá (Niger-Congo), and isiXhosa (Niger-Congo/Bantu). The authors released three new datasets: Hausa NER (1,014 sentences), Hausa Topic Classification (2,045 titles), and Yorùbá Topic Classification (1,340 titles).

Results and Discussion

The Power of Few-Shot Learning

A critical finding is the massive performance jump when moving from zero-shot to just 10 labeled sentences. For instance, in Hausa NER, adding 10 sentences improved the F1-score by over 10 points. This suggests that even minimal local data collection is highly valuable for practitioners.

Performance of transformer models vs. baselines across different languages and tasks.

Model Complexity and Robustness

Contrary to the myth that large models overfit on small data, transformers proved more robust than simpler RNNs. Their pre-trained background knowledge allows them to generalize better even with tiny fine-tuning sets. With only 100 labeled sentences, transformer models often matched the performance of baseline models trained on significantly more data.

Distant Supervision and Model Compression

Distant supervision acts as a significant force multiplier. For Yorùbá NER, combining 100 manually labeled sentences with distant supervision achieved performance parity with 400 manually labeled sentences, offering a scalable path for low-resource NLP.

Impact of distant supervision (a), development set size (b), and model distillation (c) on performance.

Experiments with DistilBERT showed it performs comparably to larger models in many cases, though it struggles when training data is extremely minimal (under 100 sentences). This is a vital consideration for researchers in regions with hardware constraints.

Conclusion

This work demonstrates that multilingual transformers are highly effective for African languages when combined with transfer learning and distant supervision. While limitations exist—such as label mismatches in topic classification and computational costs—the ability to achieve high F1-scores with fewer than 100 sentences marks a significant step toward inclusive NLP. Future work should focus on extending these realistic low-resource experiments to more of Africa's 2,000+ languages.

Summary updated

BibTeX
@inproceedings{hedderich2020transfer,
  author = {Michael A. Hedderich and David Ifeoluwa Adelani and Dawei Zhu and Jesujoba O. Alabi and Udia Markus and Dietrich Klakow},
  title = {{Transfer Learning and Distant Supervision for Multilingual Transformer Models: A Study on African Languages}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.204},
}
Figure