Skip to content

NaijaWeb: Advancing Pretraining for Low-Resource Nigerian Languages with a Quality-Filtered Web Corpus

Ruggero Marino Lazzaroni, Olaniyi Moluga, Jana Lasser

cs.CL

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