Explaining Data Mixing Scaling Laws
Summary (Overview)
- Unified theoretical framework: The authors propose a theoretical framework to explain data mixing scaling laws, extending two single-domain theoretical perspectives (Quantization Model and Linear Regression Model) to multi-domain settings.
- Two key mechanisms identified: The framework identifies Capacity Competition (finite model capacity couples domain losses globally) and Noise Reduction (optimal weights shift toward harder-to-learn domains) as the two governing factors of domain losses.
- Superior empirical performance: The proposed models achieve lower Mean Relative Error (MRE) than existing empirical baselines (1.53% vs. 2.21% for the best baseline) while using significantly fewer free parameters.
- Cross-scale extrapolation: The framework successfully extrapolates across scales—predicting highly effective mixtures for large, unseen scales using parameters fitted exclusively on smaller ones.
- "Shared Head, Disjoint Tail" assumption: The paper formalizes the natural structure that domains overlap on fundamental skills while diverging on specialized skills, enabling tractable theoretical analysis.
Introduction and Theoretical Foundation
Background and Motivation
Large foundation models are trained on multi-domain data mixtures, where the proportion of each domain (the "data mixture") critically impacts performance. Discovering optimal mixtures is costly and lacks principled methodologies. Existing approaches fall into two paradigms:
- Online adaptation: Dynamically adjust domain weights during training (e.g., ODM, Skill-it, Aioli, ADO, PiKE)
- Offline prediction: Fit empirical scaling laws to predict loss landscapes a priori (e.g., Shukor et al., 2026; Ye et al., 2025; Ge et al., 2025)
The paper identifies a critical gap: while empirical laws exist, they act as "black boxes" with unclear generalization properties and lack rigorous theoretical understanding of domain interaction mechanics.
Theoretical Foundations
The paper builds on two primary theoretical frameworks for standard neural scaling laws:
1. Quantization Model (Michaud et al., 2023) : Frames learning as sequential acquisition of discrete "quanta" of skills following a Zipfian distribution:
The loss scales as:
2. Linear Regression Model (Lin et al., 2024a; Bordelon et al., 2024) : Derives scaling laws from spectral analysis of data covariance matrices under one-pass SGD. The eigenvalues follow a power law , and the loss decomposes into model scaling and data scaling terms:
Problem Setup
Given data domains, a mixture weight vector (probability simplex), model size , and training tokens , the goal is to predict domain loss and find the optimal mixture:
Existing empirical laws include:
- Additive Law (Shukor et al., 2026):
- Exponential Law (Ye et al., 2025):
Methodology
The "Shared Head, Disjoint Tail" Structure
The paper's central assumption: domains share a common foundation of basic knowledge (head) while diverging in specialized topics (tail):
- Power-Law Distribution: Skills within each domain follow a power-law frequency distribution
- Shared Head: High-probability fundamental skills overlap across domains (e.g., basic grammar, logic, arithmetic)
- Disjoint Tail: Rare, specialized knowledge becomes increasingly domain-specific
Extended Quantization Model
Each domain has skills indexed by with power-law density:
The model allocates capacity by choosing coverage thresholds , solving:
where . The test loss on domain is:
Key insight—Capacity Competition: The constraint couples domains, creating non-trivial interaction. For similar exponents, an approximate closed form exists:
Limitation: This model alone predicts (train on target distribution), contradicting empirical observations.
Extended Linear Regression Model
To address this limitation, the model incorporates data-dependent noise. Under the spectral assumption of shared head/disjoint tails, each domain's tail eigenvalues in the mixture are:
Theorem 4.1 (Informal): For a projected linear model trained via one-pass SGD on samples from mixture , the expected test loss on domain satisfies:
where are constants depending on .
Key insight—Noise Reduction: The noise term breaks the symmetry of the capacity allocation problem, shifting optimal weights toward harder-to-learn domains (larger , smaller ).
Optimization
The optimal mixture is found via bi-level optimization:
Proposition 4.2 (Gradient Characterization): The gradient of the outer objective is:
where
This is solved using Online Mirror Descent (OMD).
Empirical Validation / Results
Experimental Setup
| Setting | Domains | Model Size | Tokens | Dataset |
|---|---|---|---|---|
| Fitting Accuracy | 17 | 1B | 25B | Pile |
| Optimal Mixture (1) | 4 | 200M | 8B | Pile-CC subsets |
| Optimal Mixture (2) | 7 | 122M/310M | 10B/20B | SlimPajama |
| Extrapolation (1) | 4 | 200M→700M | 8B→16B | Pile-CC subsets |
| Extrapolation (2) | 7 | 122M→1B | 10B→30B | SlimPajama |
Fitting Accuracy Results
Table 2: Comparison of fitting accuracy on 64 1B-parameter models (K=17 domains from Pile)
| Method | MRE (%) ↓ | MAE ↓ | #Param |
|---|---|---|---|
| Empirical Baselines | |||
| Additive | 2.209 | 0.052 | |
| Exponential | 6.990 | 0.059 | |
| BiMix | 2.963 | 0.144 | |
| RegMix | 6.480 | 0.136 | |
| Our Models | |||
| Ours (Eq. (1)) | 2.064 | 0.051 | |
| Ours (Eq. 3) | 1.533 | 0.034 |
The Extended Linear Regression Model achieves the lowest MRE (1.53%) and MAE (0.034) while using parameters versus for the Additive baseline—a significant reduction.
Optimal Mixture Prediction
The mixture predicted by the Extended Linear Regression Model consistently yields the best held-out performance across all configurations:
- 200M model on 4 domains: Lowest test perplexity
- 122M model on 7 domains: Lowest test perplexity
- 310M model on 7 domains: Lowest test perplexity
- 17-domain Pile setting: Lowest test loss on Pile-CC domain
Cross-Scale Extrapolation Results
4-domain setting (200M/8B → 700M/16B):
- The extrapolated mixture for the target 700M/16B scale strictly outperforms both the static mixture (derived for 200M/8B) and the Additive Law baseline
- Confirms the framework correctly predicts how optimal mixtures shift with scale
7-domain setting (122M/10B → 1B/30B):
- The extrapolated mixture achieves the same test loss as the state-of-the-art empirical baseline (Additive Law fitted with a massive range of scales including the target 1B/30B itself)
- This is highly significant: the baseline had access to target-scale data, while our model relied solely on 122M/10B proxy losses
Robustness to Tail Overlap
A synthetic stress test (Figure 1) shows the model's MRE remains consistently low and stable even as tail overlap increases up to 40%, demonstrating robustness to violations of the disjoint-tail assumption.
Theoretical and Practical Implications
Theoretical Contributions
-
Unified framework: Bridges the gap between empirical data mixing laws and theoretical understanding by extending established single-domain scaling law theories to multi-domain settings.
-
Capacity Competition as mechanism: Formalizes how finite model capacity creates global coupling between domain losses—a non-trivial interaction that purely empirical laws capture only through flexible curve fitting.
-
Noise Reduction as mechanism: Explains why optimal mixtures deviate from target distributions: harder-to-learn domains require more training data to reduce noise, shifting optimal weights away from the target distribution.
-
Parameter efficiency: The theoretically grounded model achieves superior accuracy with parameters versus for the best baseline—a quadratic-to-linear reduction in parameter count.
Practical Implications
-
Compute-efficient mixture selection: Practitioners can determine optimal data mixtures using small-scale proxy models, then extrapolate to larger scales without expensive trial-and-error.
-
Interpretable predictions: Unlike black-box empirical laws, the framework provides mechanistic understanding of why certain mixtures perform better, enabling more informed decisions.
-
Scale-aware optimization: The framework explicitly captures how optimal mixtures shift with model size and data budget, enabling scale-specific mixture design.
Conclusion
Main Takeaways
- The "Shared Head, Disjoint Tail" structure provides a tractable and empirically validated assumption for modeling multi-domain data.
- Two mechanisms—Capacity Competition and Noise Reduction—govern domain losses in data mixing, explaining both domain interaction and optimal mixture deviation from target distributions.
- The Extended Linear Regression Model achieves state-of-the-art fitting accuracy (MRE = 1.53%) and optimal mixture prediction with significantly fewer parameters than empirical baselines.
- The framework successfully extrapolates across scales, matching the performance of empirical laws fitted with target-scale data while using only small-scale proxy data.
Future Directions
-
Unseen domains and downstream tasks: Extending the framework to predict effects on unseen domains or downstream task performance.
-
Explicit domain overlap: Incorporating explicit modeling of information overlap to refine predictions for highly correlated domains.
-
Reliable fitting algorithms: Developing more robust estimation techniques (e.g., convex relaxations or analytical approximations) to replace the current non-convex optimization, which is computationally intensive and initialization-sensitive.
Related papers
- Training Transformers for KV Cache Compressibility (KV-CAT)
KV-CAT trains transformers with learned routers to produce inherently compressible KV caches, improving compression quality up to 3.21x without sacrificing dense performance.
- HarnessOpt-Bench: Evaluating LLMs at Harness Optimization
HARNESSOPT-BENCH shows optimizer model choice matters 1.8x more than coding harness choice for agent improvement, with broader search driving gains and trace reading providing no benefit.
- Harness Continual Learning: Continual Adaptation Beyond Model Parameters
Harness Continual Learning enables frozen foundation models to accumulate capabilities by evolving prompts, memories, and tools around them, with guarded updates preventing harness-level forgetting.