Better Quality Pre-training Data and T5 Models for African Languages

Akintunde Oladipo, Mofetoluwa Adeyemi, Orevaoghene Ahia, Abraham Toluwase Owodunni, Odunayo Ogundepo, David Ifeoluwa Adelani, Jimmy Lin

Abstract

Researchers have introduced WURA, a high-quality multilingual dataset for 16 African languages, created by meticulously auditing and cleaning existing web crawls while adding fresh, targeted data. Using this data, they trained AfriTeVa V2, a T5-based model that significantly outperforms much larger models like mT5—achieving nearly double the effectiveness on cross-lingual QA—proving that for low-resource languages, data quality beats sheer volume.

Introduction

In the world of Large Language Models (LLMs), the prevailing wisdom is often "more is better." However, for low-resource languages—specifically those spoken across Africa—large-scale web crawls like mC4 are riddled with "noise." Previous audits have shown that up to 16% of sentences in these datasets are in the wrong language, and another 11% are non-linguistic "junk" (like code or boilerplate text).

Researchers working on African NLP have traditionally faced a frustrating tradeoff: use a tiny amount of "clean" data (like news or Wikipedia) and struggle with model generalization, or use massive "noisy" datasets and deal with poor output quality. This paper tackles this "quality gap" by demonstrating how to systematically clean existing crawls and supplement them with high-quality indigenous sources to build better-performing models with fewer parameters.

Methods

The authors followed a three-pronged strategy to create their new dataset, WURA (which means "Gold" in Yoruba):

  1. Auditing and Cleaning mC4: Instead of taking the mC4 dataset at face value, they performed a multi-level filter at the corpus, document, and passage levels. They prioritized credible news outlets and removed "thin" content, repetitive text, and passages with excessive numeric characters.
  2. Targeted Web Crawling: They discovered that mC4 missed a significant amount of data from credible African news sites. By performing their own focused crawls, they increased the available data for languages like Hausa and Somali by over 100%.
  3. Model Training: They trained AfriTeVa V2, a 428M parameter T5 model. Notably, this model has about 26% fewer parameters than the standard mT5-base, making it more efficient for deployment.

Key Results

Text Classification

On the MasakhaNews benchmark, AfriTeVa V2 consistently outperformed larger baselines. It achieved an average score of 89.5, surpassing mT5-base by over 10 points. This result highlights that specialized, high-quality pre-training is more valuable than general-purpose scale for regional languages.

Performance comparison on the MasakhaNews benchmark across 16 African languages.

Cross-lingual Question Answering

AfriTeVa V2 was more than twice as effective as the standard multilingual T5 (mT5) on cross-lingual QA tasks. The model showed dramatic improvements in both F1 and Exact Match (EM) metrics across the board, particularly in languages like Yoruba and Igbo.

F1 and Exact Match (EM) scores on the AfriQA benchmark, showing AfriTeVa V2's significant lead over mT5.

Translation and Summarization

The model showed significant gains in BLEU scores when translating from African languages into English, topping both mT5 and AfriMT5. It also demonstrated superior performance in abstractive summarization tasks (XL-Sum), except for Nigerian Pidgin (pcm), where models trained on massive English datasets still hold an edge due to its status as an English-based creole.

Discussion and Future Work

The success of AfriTeVa V2 suggests that "general" crawls often fail to penetrate deep into regional web ecosystems. Focusing on the "head" of the distribution—credible news publications—yields much better results than relying on the scattered, noisy "long tail" of the web.

While 16 languages is a strong start, Africa has over 2,000 languages. Scaling this meticulous auditing process remains a challenge. Future work will also address the geographic bias inherent in news-heavy datasets to better capture the breadth of everyday spoken African languages.

Summary updated

BibTeX
@inproceedings{oladipo2023better,
  author = {Akintunde Oladipo and Mofetoluwa Adeyemi and Orevaoghene Ahia and Abraham Toluwase Owodunni and Odunayo Ogundepo and David Ifeoluwa Adelani and Jimmy Lin},
  title = {{Better Quality Pre-training Data and T5 Models for African Languages}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.11},
}
Figure