                                                                                    MixMin: Finding Data Mixtures via Convex Minimization



                                                                                    1% of Training Cost                                                                                                         PIQA

                                                                                                                                                                               0.2

                                                                0.2





                           Natural Gen Loss - Method Gen Loss









                                                                                                                                          Natural Gen Loss - Method Gen Loss

                                                                                                                                                                               0.1

                                                                0.1

                                                                0.0                                                                                                            0.0

                                                                0.1

                                                                                                                                                                               0.1

                                                                0.2                                              Natural                                                                                                          Natural (y=x)

                                                                                                                 MixMin                                                                                                           MixMin

                                                                0.3                                                                                                            0.2                                                Balanced

                                                                                                                 Balanced

                                                                                                                 Random Search                                                                                                    Random Search

                                                                0.4                                              RegMix                                                        0.3                                                RegMix

                                                                         PIQA      ARC-Easy       SciQ                 OpenMath                                                      1%             5%            10%            100%

                                                                         (4.06)     (3.82)       (3.28)                 (3.65)                                                            Data Mixing Compute / Training Compute







Figure 3: MixMin consistently outperforms all baselines across the four target tasks using 1% of the final training run

compute (Left). We report improvement over the downstream generative loss of training on the natural distribution (which

is stated beside the task name): higher is better. Error bars indicate a 95% confidence interval. Furthermore, we find that

MixMin was robust to using less compute (Right), while RegMix and random search had their performance degrade

with less compute.



                                                                       PIQA                                                         ARC Easy                                                                                           SciQ

                                                                                                         0.52                                                                                           0.80

                                MixMin 160M 1%                                                                          MixMin 160M 1%                                                                                MixMin 160M 1%

             0.68               Balanced                                                                                Balanced                                                                                      Balanced

                                Natural                                                                  0.50           Natural                                                                         0.78          Natural



             0.66                                                                                        0.48                                                                                           0.76

      Accuracy









                                                                                                  Accuracy









                                                                                                                                                                                                 Accuracy

                                                                                                         0.46

             0.64                                                                                                                                                                                       0.74

                                                                                                         0.44

                                                                                                                                                                                                        0.72

             0.62                                                                                        0.42

                                                                                                                                                                                                        0.70

                                                                                                         0.40

                    160M                                                                410M                    160M                                                                 410M                      160M                               410M

                                                                      Model Size                                                    Model Size                                                                                    Model Size







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

the 410M training run.





Method Implementations We compared MixMin to the                                                                                                             compute we ran random search with the same number of

baselines of balancing the domains, the natural distribution                                                                                                 proxy models (7). RegMix showed benefits by using many

of domains in SlimPajama, random search and RegMix (the                                                                                                      (but cheap) proxy models (Liu et al., 2024), and so we

latter known to improve or perform on par as previous data                                                                                                   ablated the number of our cheapest proxy models to vary

mixing methods). We split the target task into a random                                                                                                      compute for it; this however increased its evaluation costs

80% training set, and 20% test set. The training set was                                                                                                     to the other baselines. All proxy models are trained with

used for the MixMin optimization, and the evaluation of                                                                                                      the same hyperparameters specified earlier, and use the

loss for random search and RegMix. Results are reported                                                                                                      160M pythia model architecture. To achieve X% compute

over 3 trials of random train-test splits.                                                                                                                   relative to a full training run of the 160M pythia model, we

                                                                                                                                                             trained each proxy model for 3.2(X/100)(1/7)B tokens

We ran MixMin using η = 1.0 for 100 steps for all

                                                                                                                                                             for MixMin and random search, and for RegMix train

the experiments. For RegMix, we adapted the code

                                                                                                                                                             7X proxy models where each proxy model trains for

available at https://github.com/sail-sg/

                                                                                                                                                             3.2(1/700)B tokens (our lowest compute proxy models).

regmix/blob/main/regression_fitting/

regression.ipynb, changing the hard-coded natural

                                                                                                                                                               6.1.2. R ESULTS

distribution to the SlimPajama natural distribution and

inputting our models’ results. We implemented random                                                                                                           MixMin found good mixtures with 1% of train compute

search by sampling uniformly from the simplex and training                                                                                                     In Figure 3 we show the generative loss results of MixMin,

proxy models on those mixture. Recall MixMin requires a                                                                                                        random search, and RegMix where the total compute for

proxy model for each domain, and to normalize evaluation                                                                                                       all the proxy models was 1% relative to training the final



                                                                                                                                         6

