Data Mixing as Mixture Experiment: Response Surface Methodology and Optimal Design for Large Language Model Pretraining
Organizations: Department of Mathematics and Statistics, University of Calgary, University Drive NW, Calgary, T2N 1N4, Canada · Department of Systems and Information Engineering, University of Virginia, Charlottesville, VA, USA
Abstract
Data mixing is a central design problem in large language model pretraining: given a fixed token budget, practitioners must decide how much data to allocate to each domain. Recent proxy-based methods address this problem by training small models on candidate mixtures, fitting a response model, and using the response to select mixtures for larger-scale training. We show that this workflow has the structure of a classical mixture experiment. Under this view, data domains are mixture components, token shares are component proportions, proxy-training runs are experimental design points, and validation loss defines a response surface over the probability simplex. We develop this formulation using sparse second-order Scheffé response-surface models and construct model-robust -optimal designs for proxy data-mixing experiments. Using RegMix as an empirical case study, we demonstrate how the framework can both interpret observed mixture responses and design more efficient proxy experiments. The Scheffé analysis shows that domain value is strongly relational: several domains that are weak under additive effects become favourable through pairwise interactions, especially through combinations with web-derived text. The sparse Scheffé model preserves mixture rankings across model scales and remains competitive with a flexible machine-learning predictor while providing an explicit decomposition of additive and interaction effects. In a simulation study calibrated to observed proxy-training responses, model-robust -optimal designs recover the relevant mixture ordering after removing about 25% of the original proxy runs. These results suggest that LLM data mixing should be treated not only as a prediction problem, but also as an experimental-design problem in which the proxy mixtures themselves can be chosen to improve statistical efficiency.
Figures & tables
| Label used in this paper | Pile component | Brief description |
|---|---|---|
| arxiv | ArXiv | Scientific papers and preprints |
| freelaw | FreeLaw | Legal opinions and court documents |
| nih_exporter | NIH ExPorter | NIH grant and project records |
| pubmed_central | PubMed Central | Full-text biomedical articles |
| wikipedia_en | Wikipedia (en) | English Wikipedia articles |
| dm_mathematics | DM Mathematics | Mathematical problem and proof text |
| Proxy-based data-mixing workflow | Mixture experiment interpretation |
|---|---|
| Data domains | Mixture components |
| Domain token shares | Component proportions |
| Constraint | Simplex constraint |
| Sampled proxy-training mixtures | Experimental design points |
| Proxy-model validation loss or downstream score | Continuous response |
| Predictive model fitted to mixture–performance pairs | Response-surface model |
| Model | Scale | PRA | ||
|---|---|---|---|---|
| First-order Scheffé | 1M | 256 | 0.902 [0.869, 0.925] | 0.867 [0.863, 0.870] |
| First-order Scheffé | 60M | 256 | 0.892 [0.859, 0.917] | 0.859 [0.855, 0.863] |
| First-order Scheffé | 1B | 64 | 0.879 [0.767, 0.942] | 0.864 [0.849, 0.878] |
| Sparse Second-order Scheffé | 1M | 256 | 0.937 [0.914, 0.952] | 0.894 [0.891, 0.898] |
| Sparse Second-order Scheffé | 60M | 256 | 0.939 [0.916, 0.954] | 0.896 [0.893, 0.900] |
| Sparse Second-order Scheffé | 1B | 64 | 0.975 [0.949, 0.985] | 0.937 [0.926, 0.948] |
Data Mixture Optimization
Data mixture optimization studies how to allocate training examples across domains and tasks to improve model performance under data and compute constraints.
See all 39 papers