TL;DR
When training open Large Language Models (LLMs), researchers mix massive web datasets that each come with their own incompatible "quality scores"—a bit like trying to build a meal using ingredients rated in Fahrenheit, decibels, and star reviews. This paper introduces quantile benchmarking, a principled way to translate those mismatched scores onto a single downstream utility scale so you know exactly how deeply to scoop into each dataset. Along the way, it uncovers a surprising twist: the "highest quality" web text according to modern AI filters actually makes models worse at basic commonsense reasoning.
What Problem Does This Paper Address?
If you want to pretrain an LLM from scratch today, you have access to great open web corpora like DCLM Baseline and FineWeb-Edu. Each of these datasets uses its own automated classifier (or "scorer") to grade documents by quality. Naturally, you want to keep the best parts of each dataset to fit your compute budget.
Here is the catch: a 0.9 score from FineWeb-Edu (which looks for "educational" text using LLM judgments) means something completely different than a 0.9 from DCLM (which uses a lightweight FastText classifier). Standard data-mixing methods treat each dataset as a uniform soup and just optimize the proportions. Instead, the authors formulate heterogeneous top-$p$ mixing: deciding how far down the quality ranking (the top-$p$%) to reach in each corpus. Because reaching deeper simultaneously increases a dataset's share of your token budget and lowers its average quality, filtering and mixing are tightly coupled—and impossible to solve without a common ruler.
Methods
To build that common ruler, the authors introduce quantile benchmarking. Instead of evaluating a dataset cumulatively (e.g., testing the entire top 20%), they slice each sorted dataset into localized, fixed-token windows anchored at specific score percentiles—like probing a tiny slice at the top 0%, top 15%, top 30%, and so on.
They train small 0.6B proxy models on these individual 8.4B-token chunks—either from scratch or resumed from a checkpoint—and test them on downstream benchmarks. This maps every dataset's arbitrary internal score onto a shared, real-world utility metric.
Next, they fit smooth, monotonically decreasing curves to these discrete data points (using a stable "anchor" benchmark like MMLU). Finding the optimal data mix under a fixed token budget then reduces to a clean global search: sliding a single horizontal utility bar across all curves until the total tokens above the bar equal your compute budget. They also pair this with curriculum learning (feeding higher-scored data later in training via model averaging) and selective repetition of top-tier data.
Datasets
No brand-new static benchmark is introduced; instead, the authors benchmark existing open web corpora and evaluate on standard LLM suites:
- Probed Web Corpora: DCLM Baseline, FineWeb-Edu, and three partitions of Nemotron-CC-v2 (High-Quality, High-Quality Synthetic, and Medium-High-Quality, annotated with PreSelect scores).
- Evaluation Benchmarks: Knowledge and reasoning suites including MMLU, ARC-Easy/Challenge, CommonsenseQA (CSQA), PIQA, HellaSwag, Social IQA (SIQA), WinoGrande, and BoolQ, plus math, coding, and Chinese benchmarks for the final 2B model release.
Key Insights and Ideas
- Current quality scorers are secretly "knowledge snobs": Higher-scored web slices boost textbook-knowledge benchmarks like MMLU and ARC-Easy, but frequently degrade commonsense benchmarks like PIQA and HellaSwag. Filtering aggressively for "educational" text strips away everyday human scenarios. For FineWeb-Edu, dropping from the top-0% window down to the top-60% drops ARC-Easy by 8.11 points, yet improves PIQA by 1.09 and HellaSwag by 1.73.
- There is no universally "best" web dataset: FineWeb-Edu and Nemotron-HQS dominate on academic knowledge, whereas DCLM and Nemotron-MHQ take the crown on commonsense tasks.
- Uniform sampling is a bad abstraction: Within a single dataset, utility swings wildly across quantiles (over 8 points on ARC-Easy for FineWeb-Edu). Treating a scored dataset as a homogeneous bucket leaves massive performance on the table.
Key Results
In controlled 40B-token ablations (using a Qwen3-1.7B variant), quantile-guided mixing steadily outperforms standard approaches on the Core knowledge suite (MMLU, ARC-C/E, CSQA):
- Moving from uniform mixing (
50.43) to naive top-$p$ filtering (51.16) yields+0.73points. - Switching to quantile-benchmarking-guided cutoffs (
51.92) adds another+0.76—meaning calibrating the cutoffs across datasets is just as impactful as filtering in the first place. - Adding an ascending quality curriculum (
52.42) pushes the total Core gain to+1.99points (+0.96across the broader 8-task average).
Scaling these lessons up, the authors pretrain Kaiyuan-2B on 2.2 trillion tokens, releasing all weights, code, and data recipes under Apache 2.0. It lands squarely on the parameter-efficiency Pareto frontier among fully open models of similar size—outperforming SmolLM2-1.7B and matching YuLan-Mini-2.4B (67.74 average on reasoning/knowledge) with fewer non-embedding parameters.
Limitations and Future Work
- Forced reliance on biased anchors: Because existing open-web scorers only produce clean, monotone signals on knowledge-heavy tasks, the authors had to use MMLU as their anchor benchmark. Consequently, gains concentrate on knowledge metrics while commonsense metrics stay flat or dip slightly.
- Resolution vs. compute trade-offs: Probing requires training proxy models on fixed token chunks, which limits how finely you can slice the percentiles without racking up compute overhead.
- Future directions: Rather than passively calibrating flawed, textbook-biased scorers after the fact, future pipelines should train balanced, multi-objective data scorers explicitly aligned with diverse target capabilities from day one.
Summary updated