Optimizing Pre-Training Data Mixtures with Mixtures of Data Expert Models
Lior Belenki, Alekh Agarwal, Tianze Shi, Kristina Toutanova
TL;DR
This work tackles the challenge of optimizing pre-training data mixtures for large language models by introducing Mixture of Data Experts (MDE), an ensemble-based proxy that estimates generalization losses for candidate mixtures using per-token probabilities from domain-specific experts. By treating MDE outputs as features in regression models (Linear, GBM, MTGP), the authors achieve substantial improvements in ranking and loss prediction accuracy, enabling more effective data-mix optimization at reduced computational cost. Their theoretical justification shows that the optimal mixture can be expressed as a weighted combination of domain-specific predictors, supporting the efficacy of the MDE approach. Empirically, MDE-assisted optimization on SlimPajama data yields better few-shot downstream performance across generation and ranking tasks, and the approach remains competitive as a standalone estimator, offering a practical, sample-efficient path to improved generalization for mid-to-large-scale language models.
Abstract
We propose a method to optimize language model pre-training data mixtures through efficient approximation of the cross-entropy loss corresponding to each candidate mixture via a Mixture of Data Experts (MDE). We use this approximation as a source of additional features in a regression model, trained from observations of model loss for a small number of mixtures. Experiments with Transformer decoder-only language models in the range of 70M to 1B parameters on the SlimPajama dataset show that our method achieves significantly better performance than approaches that train regression models using only the mixture rates as input features. Combining this improved optimization method with an objective that takes into account cross-entropy on end task data leads to superior performance on few-shot downstream evaluations. We also provide theoretical insights on why aggregation of data expert predictions can provide good approximations to model losses for data mixtures.
