Kaiyuan-2B: Open LLM Pretraining Guided by Quantile Benchmarking of Heterogeneous Corpora

Kairong Luo, Zhenbo Sun, Shengqi Chen, Xinyu Shi, Bowen Yu, Yunyi Chen, Chenyi Dang, Tao Heng Tao, Hui Wang, Fangming Liu, Kaifeng Lyu, Wenguang ChenNeurIPS 2026

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.

Quantile probing slices sorted corpora into fixed-size windows across different score percentiles.

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.
Figure 1: Capability profiles of heterogeneous web corpora. Left: average capability profiles of five web sources in the resume setting, averaged over the shared score quantiles 0, 30, and 60, where smaller quantile indices correspond to higher-scored windows. Right: capability profiles of FineWeb-Edu at the same three score quantiles. In both panels, each benchmark axis is normalized independently. The figure shows two effects: source ordering is benchmark-dependent, and FineWeb- Edu’s higher-scored windows help MMLU and ARC-E/C but can reduce PIQA and HellaSwag utility. Full curves are provided in Figures 6 and 7.
  • 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.73 points.
  • 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.99 points (+0.96 across 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.

Figure 2: Fully open 2B release case. KAIYUAN-2B lies on the parameter-efficiency frontier of compared fully open models with complete fifteen-task results (Section J).

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

Abstract

Fully open pretraining now has increasingly reproducible recipes and accessible web-scale corpora. What remains missing is a principled way to merge scored open-web data. Corpora such as DCLM Baseline and FineWeb-Edu are built with different filters and scorers, so their raw scores are not directly comparable. Because web data is large, heterogeneous, and token-budget dominant, choosing an additional retained fraction is a consequential compute decision rather than a minor sampling detail. We formulate this setting as heterogeneous top-p mixing: choosing top-p retained fractions for each corpus along its score distribution under a fixed total token budget. We propose quantile benchmarking, a proxy-training framework that probes fixed score quantiles from each source and compares them through a shared downstream-utility metric. The resulting measurements reveal benchmark-dependent source orderings, large within-source utility variance, and a strong knowledge bias in current scorers. In particular, higher-score regions often degrade broader commonsense benchmarks such as PIQA and HellaSwag. We then fit benchmark-conditioned utility curves and derive top-p mixing cutoffs through a global utility threshold. 40B-token ablation experiments show that quantile-benchmarking-guided thresholds improve over both uniform mixing and heuristic top-p filtering. Finally, we apply the resulting recipe to train a 2B model over 2.2T tokens with a fully open recipe, reaching the Pareto frontier of parameter efficiency among compared fully open models of similar scale.
BibTeX
@inproceedings{luo2026kaiyuan,
  author = {Kairong Luo and Zhenbo Sun and Shengqi Chen and Xinyu Shi and Bowen Yu and Yunyi Chen and Chenyi Dang and Tao Heng Tao and Hui Wang and Fangming Liu and Kaifeng Lyu and Wenguang Chen},
  title = {{Kaiyuan-2B: Open LLM Pretraining Guided by Quantile Benchmarking of Heterogeneous Corpora}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=lwteHS4l8A},
}
Figure