Data Mixing for Large Language Models Pretraining: A Survey and Outlook

Zhuo Chen, Yuxuan Miao, Supryadi, Deyi XiongarXiv 2026 · DOI

Here is a concise, engaging summary of the survey paper on data mixing for LLM pretraining.

TL;DR

This paper provides the first comprehensive survey of data mixing for Large Language Models (LLMs)—the strategic science of determining the optimal ratio of data domains (e.g., code, web text, academic papers) during pretraining. By formalizing data mixing as a mathematical bilevel optimization problem, the authors unify a fragmented literature into a clear taxonomy of static and dynamic methods while highlighting critical open challenges like limited transferability and unstandardized evaluation.

What Problem Does This Paper Address?

Pretraining an LLM requires massive, highly heterogeneous corpora. While early models relied on simple heuristics or expensive trial-and-error to decide how much data to sample from each source, modern pretraining demands principled, budget-aware data composition.

While sample-level data selection (filtering out low-quality individual samples) has been widely studied, domain-level data mixing (allocating sampling weights across entire data sources) has lacked a dedicated, systematic overview. This paper bridges that gap, providing a unified framework to understand how different data mixtures impact training efficiency and downstream generalization.

Methods

The authors formalize data mixture optimization as a bilevel optimization problem on a probability simplex. The outer objective minimizes evaluation loss on a validation set by selecting a domain weight vector ($k$), while the inner objective minimizes training loss to find the model parameters ($\theta$) given that specific mixture.

Because running a full training loop for every candidate mixture is computationally impossible, existing literature focuses on making this problem tractable. The paper organizes these solutions into a fine-grained taxonomy:

Figure 1. Taxonomy of data mixing.

1. Static Mixing

Static methods fix the domain weights ($k$) before training begins.

  • Rule-Based: Relies on simple heuristics (uniform or proportional sampling) or parameterized algorithms like temperature-based sampling, which flattens or sharpens the data distribution.
  • Learning-Based: Uses small proxy models to approximate the behavior of the target main model. This is split into:
  • Proxy Optimization-Based: Iteratively optimizing the mixture directly on the proxy model and transferring the final recipe to the main model (e.g., DoReMi, DoGE).
  • Prediction-Based: Using proxy experiments to fit a predictive function (like a neural scaling law or regression model) that maps data mixtures directly to validation performance (e.g., RegMix, Data Mixing Scaling Laws).
Figure 2. Proxy optimization-based methods employ a proxy model as the optimization carrier. An iterative optimization algorithm is executed on the proxy model, which uses internal signals from its training process (e.g., losses and gradients) to drive the optimization and obtain an approximately optimal data mixture. The resulting data mixture is then directly applied to training the target main model.

2. Dynamic Mixing

Dynamic methods adjust the mixture on the fly across different training stages ($k_t$).

  • Adaptive: Updates weights using internal signals from the target model itself during training—such as loss reduction rates or gradient norms—without needing external models (e.g., Velocitune, PiKE).
  • Externally Guided: Uses an explicit external controller model, often trained via reinforcement learning, to process training signals and output weight updates (e.g., Data Mixing Agent).

Datasets

As a comprehensive survey, this paper does not introduce new datasets or benchmarks. Instead, it analyzes how existing frameworks define "domains" (typically defaulting to raw data sources like Wikipedia or Common Crawl) and critiques the current reliance on potentially biased or unrepresentative validation sets to guide optimization signals.

Key Insights and Ideas

  • The Proxy Paradox: Learning-based static methods drastically lower costs by using small proxy models. However, they suffer from poor transferability. If you tweak the main model's architecture or training configuration, the proxy's optimized mixture often degrades, forcing you to rerun the entire proxy optimization pipeline.
  • Evolving Data Needs: A model's optimal data mixture changes over time. For instance, low-entropy domains like code and math can rapidly accelerate early-stage learning, but as training progresses, more diverse web data becomes crucial to prevent overfitting and boost generalization.
  • Model Mixtures vs. Data Mixtures: Innovative methods like Mixtures of Data Experts (MDE) approximate training on mixed data by linearly combining the predictions of domain-specific expert models, turning a costly data-retraining problem into a fast, optimizable objective.

Key Results

Because this is a survey paper, it intentionally avoids leaderboard-style quantitative comparisons. The authors note that directly comparing numbers across papers is currently an ill-posed problem due to wildly varying experimental setups, hardware, and domain definitions.

However, the paper compiles a highly useful reference table of sampling temperatures ($T$) explicitly reported by prominent multilingual LLMs, showing a historical convergence around specific values (e.g., mBERT at 1.43 vs. XLM-R at 3.33):

Table 1. Sampling temperature values T reported in the original publications of selected multilingual LLMs.

Limitations and Future Work

The authors identify several structural bottlenecks in the current state of data mixing:

  1. Coarse Domain Definitions: Relying strictly on data sources is suboptimal. Future work should pivot toward finer-grained, semantic domain partitioning (e.g., clustering by topic or required skill).
  2. Unstandardized Cost Accounting: The community lacks a unified metric for cost (tokens vs. FLOPs vs. wall-clock time), making cross-paper comparison difficult.
  3. Underdeveloped Theory: Current scaling laws provide qualitative guidance rather than precise, quantitative recipes for multi-domain resource allocation.

Promising Horizons

The survey concludes with three exciting exploratory directions:

  • Inverse Data Mixing: Inferring the closed-source data mixtures of frontier models by analyzing their tokenizers (via BPE merge lists) or generation distributions.
  • Pipeline-Aware Mixing: Designing data schedules that look ahead across the entire training lifecycle (Pretraining $\rightarrow$ SFT $\rightarrow$ DPO) rather than optimizing each stage in isolation.

Summary updated

BibTeX
@misc{chen2026data,
  author = {Zhuo Chen and Yuxuan Miao and Supryadi and Deyi Xiong},
  title = {{Data Mixing for Large Language Models Pretraining: A Survey and Outlook}},
  year = {2026},
  eprint = {2604.16380},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.16380},
}
Figure