NaijaWeb: Advancing Pretraining for Low-Resource Nigerian Languages with a Quality-Filtered Web Corpus
Abstract
To advance pretraining for low-resource languages, we construct NaijaWeb, a filtered and cleaned corpus of 527.4M tokens (856,317 documents) in Hausa, Igbo and Yorùbá. We process Common Crawl snapshots from 2024 to 2026, filter and deduplicate them, and remove machine-translated localisation sites, which we screen manually. Next, we recruit native-speaker annotators to label documents as keep or drop, and train a classifier on these labels to select high-quality documents. To test this selection, we pretrain a small language model on it and on a random sample of the same size from the deduplicated pool, and compare the loss on held-out sets in the three languages: our selection has lower loss after one epoch and is on par after ten. We then expand the corpus by adding a re-crawl of news and community sites and the FineWeb-2 documents in these languages, from crawls up to 2024, that are not already in our pool, and pass all of them through the classifier. In our evaluation, where a 134.1M-parameter model is pretrained for ten epochs on each corpus, holding the token budget constant, NaijaWeb reaches the lowest mean held-out loss of the six corpora, ahead of WURA, FineWeb-2, MADLAD-400 (noisy and clean) and HPLT 2.0. By token count, it is also the largest in total of the filtered corpora we compare.
Create a lesson
Metadata
- Comments
- Accepted at AfriLang AI 2026 (PMLR). 29 pages
Related papers
Data Diversity Matters: How Varied Data Mixtures Lead to Robust Pretrained Language Models for Luxembourgish
Shared title terminologycs.CLAnne-Marie Lutgen, Felicia Körner, Alistair Plum et al.
From Intervention to Skill: Evolving Small--large Language Model Collaboration
Shared title terminologycs.CLZhenning Shi, Ran Wei, Ning Song et al.
Romanized Hindi Reveals a Model-Dependent Safety Asymmetry in Open-Weight Language Models
Shared title terminologycs.CLBibek Nagpal, Shrisay Shandilya, Soham Kumar et al.
Semantic irreversibility: how language models learn the arrow of time from syntax to reasoning
Shared title terminologycs.CLJunang Li, Weishun Zhong
A Token Rendering Perspective on Large Language Model Unlearning
Shared title terminologycs.CLHui Zhang, Wenxing Chen, Xiaojing Chen et al.
Loop Deeper or Branch Wider? Final-Loop Mixtures for Looped Language Models
Shared title terminologycs.CLJonathan Williams, Wenhao Chai, Esin Türeci et al.