Enhancing Multilingual LLM Pretraining with Model-Based Data Selection

Bettina Messmer, Vinko Sabolčec, Martin Jaggi
2/14/2025
cs.CLcs.LG

No official code found. Best implementation: epfml/fineweb2-hq (7 stars, Apache-2.0, last commit 2025-05-16).

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 develop 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 and mitigating the curse of multilinguality. 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.

View on arXivView PDF

Code Implementations(1)

epfml/fineweb2-hqCommunity74%
Apache-2.0

Code for the paper "Enhancing Multilingual LLM Pretraining with Model-Based Data Selection"

72PythonFeb 13, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{messmer2025enhancing,
  title  = {Enhancing Multilingual LLM Pretraining with Model-Based Data Selection},
  author = {Bettina Messmer and Vinko Sabolčec and Martin Jaggi},
  year   = {2025},
  eprint = {2502.10361},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.10361v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.10361.svg)](https://codeofpaper.com/paper/2502.10361)

Discussion