Enhancing Multilingual LLM Pretraining with Model-Based Data Selection
Bettina Messmer, Vinko Sabolčec, Martin Jaggi
TL;DR
This work tackles the challenge of multilingual LLM pretraining data quality by extending model-based filtering to diverse languages and scripts. It introduces a two-tier approach that builds representative multilingual training sets (MKC and MKC$^+$) and applies both FastText and Transformer embedding-based filters to curate knowledge-rich, structured samples from web-scale data. Through extensive experiments with 1B-parameter LLMs across 20 languages, the study demonstrates that the Transformer-based MLP MKC$^+$ method can match or surpass baselines using only a fraction of the data (as low as 10%–15%) while maintaining or improving performance on multilingual benchmarks; it also analyzes data contamination, thresholding, and multilingual transfer effects. The findings support the generalizability of model-based multilingual data filtering and culminate in a public release of refined pretraining datasets and code for 20 languages, enabling broader, more efficient multilingual LLM development.
Abstract
Dataset curation has become a basis for strong large language model (LLM) performance. While various rule-based filtering heuristics exist for English and multilingual datasets, model-based filtering techniques have primarily focused on English. To address the disparity stemming from limited research on non-English languages, we propose a model-based filtering framework for multilingual datasets that aims to identify a diverse set of structured and knowledge-rich samples. Our approach emphasizes transparency, simplicity, and efficiency, leveraging Transformer- and FastText-based classifiers to ensure the broad accessibility of our technique and data. We conduct comprehensive ablation studies on the FineWeb-2 web crawl dataset across diverse language families, scripts, and resource availability to demonstrate the effectiveness of our method. Training a 1B-parameter Llama model for 70B and 119B tokens, our approach can match the baseline MMLU score with as little as 15% of the training tokens, while also improving across other benchmarks. These findings provide strong evidence for the generalizability of our approach to other languages. As a result, we extend our framework to 20 languages for which we release the refined pretraining datasets.
