OPUS: Towards Efficient and Principled Data Selection in Large Language Model Pre-training in Every Iteration

Shaobo Wang, Xuan Ouyang, Tianyi Xu, Yuzheng Hu, Jialin Liu, Guo Chen, Tianyu Zhang, Junhao Zheng, Kexin Yang, Xingzhang Ren, Dayiheng Liu, Linfeng Zhang

As the AI industry rapidly approaches the "Data Wall"—with projections suggesting high-quality public text may be exhausted by 2026 to 2028—the focus of Large Language Model (LLM) pre-training is shifting fundamentally. The new mandate is no longer just about scaling the volume of tokens, but drastically improving their quality and relevance during training.

To address this, researchers have introduced OPUS (Optimizer-induced Projected Utility Selection), a dynamic data selection framework that achieves an 8x increase in data efficiency with a negligible 4.7% computational overhead. OPUS solves a critical flaw in existing data selection methods by aligning the selection criteria directly with the geometry of modern optimizers.

The Problem: Optimizer-Agnostic Data Selection

Current data selection strategies generally fall into two flawed paradigms:

  1. Static Filters: These rely on heuristics like perplexity scores or quality classifiers. Because they are "training-agnostic," they fail to account for the model's current state—ignoring whether the model has already mastered a concept or if its learning needs have shifted.
  2. Dynamic Selectors: These methods select data during training based on raw gradients, implicitly assuming the model is optimized using Simple Gradient Descent (SGD).

However, modern LLMs are rarely trained with SGD. They rely on complex optimizers like AdamW or Muon, which reshape gradients using momentum and second-order moments. If a data selector evaluates utility based on an SGD trajectory (Direction A), but the optimizer actually pushes the parameters along a momentum-adjusted trajectory (Direction B), the resulting data selection will be fundamentally misaligned and suboptimal.

The OPUS Framework

OPUS bridges this gap by defining data utility within the optimizer-induced update space. Rather than looking at raw gradients, OPUS calculates the "effective update" a piece of data will produce under the specific optimizer being used.

The framework relies on several core innovations:

  • Optimizer-Aware Utility: OPUS scores candidate data based on how well its optimizer-specific update aligns with a desired target direction.
  • BENCH-PROXY: To establish a stable "north star" for this target direction, OPUS avoids noisy raw benchmarks. Instead, it uses a retrieval-based proxy pool, selecting samples from the pre-training corpus that are semantically similar to target benchmarks.
  • High Efficiency via Ghost & CountSketch: Calculating per-sample gradients for every token is traditionally a massive computational bottleneck. OPUS bypasses this using the "Ghost technique" (factorizing gradients in linear layers) combined with CountSketch (dimensionality reduction). This allows utility estimation in a low-dimensional space, keeping overhead to just 4.7%.
  • Boltzmann Sampling: To prevent "diversity collapse"—a common issue where greedy "top-k" selection leads to highly redundant batches—OPUS employs stochastic Boltzmann sampling. This ensures the model sees a diverse range of data while still heavily favoring high-utility tokens.

Key Findings and Results

The researchers rigorously tested OPUS across multiple scales, from-scratch pre-training (using FineWeb and FineWeb-Edu), and continued pre-training (CPT) on domain-specific datasets like SciencePedia. The framework was evaluated against a suite of over 10 benchmarks, including MMLU, HellaSwag, and ARC.

1. Massive Efficiency Gains On a GPT-XL architecture, OPUS reached the same validation loss as random sampling while using 8x less computation. In continued pre-training scenarios, OPUS achieved peak performance using only 0.5 billion tokens, outperforming a random baseline that required 3 billion tokens (a 6x gain). Across downstream benchmarks, OPUS improved accuracy by an average of 2.2% over random selection.

2. Beating the "High-Quality" Baseline In a compelling stress test, OPUS was restricted to selecting data from a lower-quality pool (FineWeb-Edu score 3). Remarkably, it outperformed baseline models trained entirely on the highest-quality data (scores 4 and 5). This highlights a crucial insight: when a model sees specific data during its training trajectory is just as important as what that data is.

3. Toxicity and Garbage Filtering Beyond dynamic online selection, the OPUS utility score proved highly effective as a static filter prior to training. It successfully flagged toxic documents, spam, and scrambled text by assigning them near-zero or negative utility scores, allowing for automated corpus decontamination.

Limitations and Future Directions

While OPUS demonstrates profound improvements in data efficiency, the current study validates the method on models up to 8 billion parameters (e.g., Qwen3-8B). How these optimizer-induced dynamics scale to 100B+ parameter models remains an open question. Additionally, the framework's success is heavily dependent on the quality of its proxy; a biased or poorly constructed proxy will lead to biased data selection.

Looking forward, the authors propose extending this optimizer-aligned approach beyond individual document selection to optimize data mixtures—dynamically adjusting the ratios of code, mathematics, and natural language throughout the pre-training lifecycle.

Summary updated

BibTeX
@inproceedings{wang2026opus,
  author = {Shaobo Wang and Xuan Ouyang and Tianyi Xu and Yuzheng Hu and Jialin Liu and Guo Chen and Tianyu Zhang and Junhao Zheng and Kexin Yang and Xingzhang Ren and Dayiheng Liu and Linfeng Zhang},
  title = {{OPUS: Towards Efficient and Principled Data Selection in Large Language Model Pre-training in Every Iteration}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=lcLxGrk5N9},
}
Figure