                                                                MixMin: Finding Data Mixtures via Convex Minimization



                                  PIQA                                                                 ARC Easy                                          SciQ                                                    OpenWebMath

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

                                              Balanced                        4.0                                                        3.4                        Balanced                                                    Balanced

                                              Natural                                                                                                               Natural                         3.6                         Natural

                    4.1

                                                                              3.9                                                        3.3

      Generative Loss









                                                                Generative Loss









                                                                                                                           Generative Loss









                                                                                                                                                                                      Generative Loss

                    4.0                                                                                                                                                                             3.5

                                                                              3.8

                                                                                                                                         3.2

                    3.9

                                                                              3.7                                                                                                                   3.4

                    3.8                                                                                                                  3.1

                                                                              3.6

                                                                                           MixMin 160M 1%                                                                                           3.3

                    3.7                                                                    Balanced

                                                                              3.5                                                        3.0

                                                                                           Natural

                    3.6

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

                                 Model Size                                                            Model Size                                      Model Size                                                  Model Size









Figure 5: MixMin mixtures derived from small models continue to improve training for larger models as measured by

target generative loss (in all cases). We report generative loss with the errors bars representing a 95% confidence interval

over 3 trials (lower is better). 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.





160M -pythia model for 3.2B tokens (Chinchilla optimal).                                                                                     6.2. Chemistry

We compared the performance of these to a balanced distri-

                                                                                                                                             We explored how MixMin could improve predicting prop-

bution and the natural distribution. We found MixMin con-

                                                                                                                                             erties of molecule libraries, in particular the endpoints of

sistently improved generative loss over the baselines. We

                                                                                                                                             an assay (a predictive task). Many assays have few posi-

also found MixMin consistently matched or improved the

                                                                                                                                             tive samples and training on just that data can lead to only

predictive loss and accuracy over all the baseline methods

                                                                                                                                             noisy performance. Past work has remedied this by transfer

(Figure 8 in Appendix B).

                                                                                                                                             learning from a larger dataset, but had not considering opti-

                                                                                                                                             mizing the data mixture after filtering (Salem et al., 2020;

MixMin was more cost effective than baselines In fig-                                                                                        Li et al., 2022; Sun et al., 2022; Ye et al., 2018). A common

ure 3 (and Figure 9 in Appendix B for other tasks) we                                                                                        default mixture is the natural distribution, and here we show

compared the performance of MixMin, random search, and                                                                                       MixMin provided better mixtures than this, especially as

RegMix as we vary the the total compute for all the proxy                                                                                    the diversity of the source datasets grows. We found similar

models from 100%, 10%, 5%, 1% of the compute for train-                                                                                      improvements over random search and RegMix. We hope

ing the final 160M -pythia model for 3.2B tokens (Chin-                                                                                      MixMin’s ability to scale helps future data curation efforts

chilla optimal). We found MixMin was robust to using less                                                                                    for predictive drug screening.

compute, where as random search and RegMix benefitted

from increasing compute (but do not meet MixMin perfor-                                                                                      6.2.1. E XPERIMENTAL S ETUP

mance even at the highest compute setting we tested). Note,

we did not include RegMix at 100% compute given the                                                                                          Datasets and Models We worked with the PCBA

significant evaluation overhead: 100 times the alternatives.                                                                                 dataset (Beaini et al., 2023) 6 , which was a filtered scrape of

                                                                                                                                             PubChem (Kim et al., 2016). We used the first 10 bioassays

                                                                                                                                             as the target distributions, using subsets of all the bioassays

MixMin mixtures for smaller models improve training                                                                                          (removing the target) as sources. Our experiments used XG-

of larger models Finally, we tested whether MixMin mix-                                                                                      Boost on ECFP fingerprints of SMILES (Rogers & Hahn,

tures derived from smaller models were useful for training                                                                                   2010) to fit each assay, known to be a strong baseline (Yang

larger models. We computed MixMin mixtures using pythia-                                                                                     et al., 2019; Seidl et al., 2023) for this domain. We report AP

160M proxy models each trained with 0.14% the compute                                                                                        performance (average precision score, a variant of AUPR)

of a full 3.2B token training run (for an overall cost of 1%).                                                                               for our experiments.

We then trained a pythia-410M for 8.2B tokens on those

mixtures. Here we only compared to the balanced or natural

mixture, as our previous experiments showed random search

and RegMix found mixture comparable or worse than one of

                                                                                                                                             Data Filtering We trained models over the first 100,000

those mixtures for our tasks. Accuracy results are presented

                                                                                                                                             molecules in PCBA. We further removed any assay with

in Figure 4 with generative and predictive loss results pre-

                                                                                                                                             no positive or negative instances among the first 100,000

sented in Figure 5 and Figure 12 (the latter in Appendix B).

                                                                                                                                             molecules. For all assays (1328) the number after filtering

For accuracy and predictive loss we found in most cases

                                                                                                                                             was 1281, for the first 100 assays this left 86, and the first 10

MixMin’s performance improved over the baselines as we

                                                                                                                                             were all kept. We performed data mixing among the filtered

increased scale, despite not refitting the MixMin weights.

                                                                                                                                             assays (excluding the target assay).

Even in the cases where MixMin’s accuracy and predictive

loss did not strictly improve over baselines, the generative                                                                                   6

                                                                                                                                                 The dataset can be found at https://polarishub.io/

loss always improved with MixMin.                                                                                                            datasets/graphium/pcba-1328-1564k-v1.



                                                                                                                           7

