Paper commentary
MixMin: Finding Data Mixtures via Convex Minimization
Convex minimization finds data mixtures for pretraining without retraining every candidate
- Problem Choosing data mixture weights is a bi-level problem that needs a trained model for each candidate mixture. Existing methods rely on grid or random search, which is expensive.
- Method MixMin minimizes a convex objective over mixture weights instead of searching blindly. It uses cheap proxy models, one per data source, and updates the weights with entropic descent.
- Results For pythia-410M trained on 8.2B tokens, MixMin improved negative log likelihood by 1-5% relative to baselines, using less than 0.2% additional compute.

Figure 1 : Optimizing MixMin to find the mixture weights requires training a few cheap models for each source and a target dataset. Given the mixture weights we train a more expensive model using the mixture.
Original paper · CC BY 4.0 · Anvith Thudi, Evianne Rovers, Yangjun Ruan, Tristan Thrush, Chris J. Maddison · MixMin: Finding Data Mixtures via Convex Minimization · Original paper figure · Extracted the figure area from page 2 of the original PDF.Why mixture search stays expensive
Pretraining now draws on many data sources, and the weight given to each source shapes what the model learns. Choosing the weights is therefore a bi-level problem, because the mixture is scored by the downstream loss of a model trained on that mixture. The inner step asks for the risk minimizer of each mixture, which makes the outer search hard to optimize.
Each candidate mixture needs its own trained model, so the usual answer is grid or random search over the mixture weights. The authors note that grid search only admits expensive zero-order approaches.
Other work predicts the loss of unseen mixtures from a set of trained runs, or reuses a large pool of existing models. Methods that ignore the downstream loss don't consistently beat training on all data in its natural proportions when evaluated on diverse downstream losses. The authors therefore compare MixMin with RegMix and random search in their experiments.
RegMix has significantly higher evaluation costs than MixMin, which is why the comparison matters for compute. The bi-level setting also breaks many hyperparameter-optimization methods, because the inner problem is over an arbitrary function space such as XGBoost. That lack of parametric gradients is the gap the next step, the convex reduction, is designed to close.
When the nested search collapses to a convex problem
The bi-level data mixing objective becomes a convex minimization once the model class is expressive enough, and the paper's reduction depends on the loss. This holds for unconditional CE, and for conditional CE or MSE only when there is no covariate shift, meaning p(x) is the same across sources. Under that condition, the mixture's best predictor is the weighted sum of the source predictors, written as f_λ(x) = Σ λ_p f_p(x).
Theorem 3.1 states that the arg min over the simplex of data mixing equals the arg min of Equation 1 under these conditions. The authors do not claim that the Bayes optimal models are easy to get, so the main hurdle is approximating them. Lemma 3.2 covers the case where the hypothesis space only approximates the Bayes optimal models. If each mixture's risk minimizer lies within ε of its Bayes optimal model, and the loss is C-Lipschitz in the model, the excess data mixing error is bounded by 2Cε.
The footnotes add that bounded output spaces for MSE, and probabilities bounded away from 0 and 1 for cross-entropy, keep this assumption valid.
The proof of the lemma compares the two hypothesis spaces, using the Lipschitz assumption to bound the gap in data mixing risk by Cε. The authors then chain two such gaps, which gives the 2Cε bound on the excess error. As the model class grows and ε shrinks, the data mixing solution approaches the convex one. The authors use this view to motivate MixMin, which optimizes Equation 1 with approximate proxy models instead of exact Bayes optimal ones.
The authors list their own limits: the reduction covers CE and MSE only, and it needs no covariate shift among sources. They say image classification, where covariate shift is common, isn't covered by their framework.
How MixMin computes the weights
MixMin swaps the two intractable parts of the convex objective for computable ones. The Bayes optimal model for each source is replaced by a proxy model trained on samples of that source. The integral over the target distribution is replaced by an empirical risk over a dataset Dt drawn from the target. Because the proxies are fixed, the outputs of each proxy on the target samples are computed once and reused in every gradient call.
Entropic descent, a variant of mirror descent, handles the simplex constraint on the weights.
Each iteration forms the weighted proxy ensemble on the target samples and computes the empirical loss. The gradient of that loss with respect to the weights is then taken, following from the chain rule. Each weight is multiplied by the exponential of its negative gradient, scaled by the step size η. The updated vector is renormalized so the weights sum to one, which keeps them inside the simplex.
The weights start uniform, at 1 divided by the number of sources, and the loop runs for n steps. In all experiments the authors ran MixMin with η = 1.0 for 100 steps.
The main cost is training one proxy per source, so MixMin needs only as many models as there are sources. Each update costs O(|P||D_t|), and that cost is independent of model size. The authors found that proxies trained with very small fractions of the total training compute gave good results. Extra proxy compute did not significantly improve the final mixtures, so cheap proxies were enough in their experiments.
Language model targets at small and large scale
For language targets, MixMin was compared against the balanced and natural mixtures, plus random search and RegMix at the same proxy budget. The sources are the SlimPajama domains, and the targets are PIQA, ARC Easy, SciQ and OpenWebMath. OpenWebMath is scored by the negative log probability of its sequences, since it is a specialized pretraining dataset.
The proxies are pythia-160M models, each trained on one source with 7 proxy models in total for MixMin and random search.
With proxies at 1% of the 160M training run's compute, MixMin consistently improved generative loss over the balanced and natural mixtures on all four targets. Some gaps are small, since the Welch's t-test p-value against the natural mixture on ARC Easy was 0.206 at this budget. MixMin held up as proxy compute fell from 100% to 1%, while random search and RegMix benefitted from more compute.
RegMix was not run at 100% compute because its evaluation overhead was 100 times that of the alternatives.
The mixtures found with pythia-160M proxies were reused without refitting to train pythia-410M for 8.2B tokens. MixMin mixtures took 0.15% of the training compute of the 410M run to find, which is part of the under 0.2% total. Negative log likelihood improved by 1-5% relative to the baselines on the four targets. Across the targets, accuracy and predictive loss improved in most cases, and generative loss improved in every case.

Figure 4 :MixMin mixtures derived from small models continue to improve training for larger models as measured by target accuracy (in most cases).We report accuracy with the errors bars representing a 95% confidence interval over 3 trials. MixMin weights were found using 1% the compute of the 160M model training run, which is 0.15% the compute of the410Mtraining run.
Original paper · CC BY 4.0PCBA assay mixing as the pool grows
The PCBA experiments treat each of the first 10 assays as a target in turn, with the other filtered assays as surrogate sources. The models are XGBoost on ECFP fingerprints of SMILES, scored by average precision, a variant of AUPR. Data filtering kept 1281 of the 1328 assays, and the first 10 were all kept. The natural distribution serves as the baseline mixture, which is the standard data mixture after filtering.
The authors varied the pool across 9, 85 and 1279 surrogate assays, as Figure 6 shows. Its advantage over the natural distribution grows as the number of mixed assays increases. The natural mixture's performance decreases with more sources, while MixMin's absolute performance grows. Across the settings, the paper summarizes the average precision gain over the natural distribution as 0.03 to 0.15.
This suggests MixMin finds relevant sources among more diverse sets.

Figure 6 : MixMin improved over using the natural distribution of data as we increased the number of surrogate assays.We report AP scores for the first 10 assays in PCBA, with error bars representing a 95% confidence interval over 3 trials.
Original paper · CC BY 4.0The authors also compare the retrained MixMin model against ensembling the proxy models, shown in Figure 7. Retraining performs significantly better than the ensemble across the pool sizes.
Retraining or ensembling the proxies
The reduction also suggests a second option: use the proxy models directly, as an ensemble weighted by the MixMin weights. The authors compared that ensemble against retraining a model on the MixMin mixture, on the PCBA assays. Retraining uses the MixMin weights to rebuild the training set from all the other assays, instead of reusing the proxies.
The proxies were trained only on each source's train split, and the target's train split fits the MixMin weights.
Retraining with the MixMin mixture beat the ensemble on every PCBA target in Figure 7, across 9, 85 and 1279 surrogate assays. The authors read this as the proxies being too noisy to form good ensembles. They argue that if the proxies were near Bayes optimal, the ensemble would be near Bayes optimal too. Even so, MixMin's mixture improved over the natural distribution, which the authors take to mean strong proxies aren't needed.

Figure 7 :Retraining with the MixMin mixture performs better than using the MixMin weights to ensemble the proxy models.We report AP scores with error bars representing a 95% confidence interval over 3 trials.This implies the proxy models were far from Bayes optimal.
Original paper · CC BY 4.0Retraining was the stronger choice in these experiments, so the proxies work best as a tool for finding weights, not as the final model. The authors don't test whether ensembling the proxies can match retraining under other proxy sizes or targets. The conclusion says MixMin stayed robust to cheap proxy models, which is the claim this comparison supports.
Limitations and what the evidence does not reach
The convex reduction only covers cross-entropy and mean-squared error, and the authors require no covariate shift among the sources. Unconditional cross-entropy is covered directly, while conditional losses need the sources to share the same input distribution. Image classification sits outside the framework, because covariate shift is common among its sources.
The authors also stress that MixMin isn't necessarily the best way to solve the convex objective.
Every language experiment used pythia-160M proxy models, and pythia-410M was the only larger model the authors trained. The chemistry experiments use XGBoost on PCBA only, and they score results with average precision. They didn't test other datasets or other model families for the chemistry setting.
The cheapest proxy budget in the language experiments was 1% of the final 160M training run. Robustness was measured only at the 100%, 10%, 5% and 1% compute settings. The authors list how cheap a proxy model can get without degrading performance as an open problem.
Paper info
- Authors
- Anvith Thudi, Evianne Rovers, Yangjun Ruan, Tristan Thrush, Chris J. Maddison
- Venue
- arXiv · Preprint
- First published
- 2025-2-14
- Added
- 2026-10-30
- Updated
- 2026-1-15
- Version
- v3
- arXiv
- 2502.10510
- Category
- cs.LG · stat.ML
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Abstract
Modern machine learning pipelines are increasingly combining and mixing data from diverse and disparate sources, e.g., pre-training large language models. Yet, finding the optimal data mixture is a challenging and open problem. We formalize this data mixing problem as a bi-level objective: the best mixture is the one that would lead to the best model for a downstream objective. Unfortunately, this objective is generally intractable. In this paper, we make the observation that the bi-level data mixing objective becomes convex as our model class becomes larger. We develop and study a gradient-based approach for optimizing this convex objective, which we call MixMin, and test it on language modeling and chemistry tasks. MixMin was the only method that uniformly improved the data mixture in all our experiments. With MixMin, we improved the data mixture using less than 0.2% additional compute for a pythia-410M model trained on 8.2B tokens, resulting between 1-5% relative improvement to negative log likelihood on PIQA, ARC Easy, SciQ, and OpenWebMath. Crucially, we found that MixMin mixtures for smaller models improved training of larger models, suggesting that MixMin mixtures may be scale-invariant. When mixing bioassay data to train an XGBoost model, we saw improvements to average precision scores of 0.03-0.15.
Quote from the paper
Anvith Thudi, Evianne Rovers, Yangjun Ruan, Tristan Thrush, Chris J. Maddison (2025). MixMin: Finding Data Mixtures via Convex Minimization. arXiv:2502.10510v3. https://arxiv.org/abs/2502.10510v3
BibTeX
@misc{thudi2025mixmin,
title = {{MixMin: Finding Data Mixtures via Convex Minimization}},
author = {Anvith Thudi and Evianne Rovers and Yangjun Ruan and Tristan Thrush and Chris J. Maddison},
year = {2025},
eprint = {2502.10510},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2502.10510v3}
}