                                                                                                     MixMin: Finding Data Mixtures via Convex Minimization









                                                                                   PIQA                                                                                                       ARC-Easy                                                                                                            SciQ

                                                                                                                                                                                                                                                                            0.04

                                                             Natural (y=x)                                                                                  0.04

                                             0.06            MixMin

        Method Accuracy - Natural Accuracy









                                                                                                                       Method Accuracy - Natural Accuracy









                                                                                                                                                                                                                                       Method Accuracy - Natural Accuracy

                                                                                                                                                                                                                                                                            0.02

                                                             Balanced                                                                                       0.02

                                             0.04            Random Search                                                                                                                                                                                                  0.00

                                                             RegMix                                                                                         0.00

                                             0.02                                                                                                                                                                                                                           0.02

                                                                                                                                                            0.02

                                             0.00                                                                                                                                                                      Natural (y=x)                                        0.04                                                     Natural (y=x)

                                                                                                                                                            0.04

                                                                                                                                                                                                                       MixMin                                                                                                        MixMin

                                                                                                                                                                                                                                                                            0.06

                                             0.02                                                                                                           0.06                                                       Balanced                                                                                                      Balanced

                                                                                                                                                                                                                       Random Search                                        0.08                                                     Random Search

                                             0.04                                                                                                           0.08                                                       RegMix                                                                                                        RegMix

                                                            1%             5%            10%           100%                                                                1%             5%            10%           100%                                                                 1%             5%            10%           100%

                                                                 Data Mixing Compute / Training Compute                                                                         Data Mixing Compute / Training Compute                                                                          Data Mixing Compute / Training Compute









Figure 11: MixMin often performed better or on par to alternative methods on accuracy across compute budgets, and was

robust to using less compute. We note both Random Search and RegMix tend to improve with more compute. We report

improvement over the accuracy of training on the natural distribution.









                                                                                PIQA                                                                                                     ARC Easy                                                                                                              SciQ

                                         4.1                                                                                                            7.0                                                                                                             7.2

                                                                                                MixMin 160M 1%                                                                                                MixMin 160M 1%

                                                                                                Balanced                                                                                                      Balanced

                                         4.0                                                    Natural                                                 6.8                                                   Natural                                                   7.0

                                         3.9

                                                                                                                                                        6.6

         Prediction Loss









                                                                                                                        Prediction Loss









                                                                                                                                                                                                                                        Prediction Loss

                                                                                                                                                                                                                                                                        6.8

                                         3.8

                                                                                                                                                        6.4

                                         3.7                                                                                                                                                                                                                            6.6

                                                                                                                                                        6.2

                                         3.6                                                                                                                                                                                                                            6.4               MixMin 160M 1%

                                                                                                                                                                                                                                                                                          Balanced

                                         3.5                                                                                                            6.0

                                                                                                                                                                                                                                                                                          Natural

                                                                                                                                                                                                                                                                        6.2

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

                                                                              Model Size                                                                                                    Model Size                                                                                                      Model Size







Figure 12: In most cases MixMin consistently improved predictive loss over the baselines as we scaled the models. We

report predictive loss relative to a pythia-160M model trained with the natural distribution of tokens (lower in the figures 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.









                                                       MixMin 1% of Training Cost                                                                                   Random Search 1% of Training Cost                                                                                 RegMix 1% of Training Cost

                                                                                                                 0.7                                                                                                                                                                                                                         0.5

        PIQA









                                                                                                                       PIQA









                                                                                                                                                                                                                                       PIQA









                                             0.049    0.7        0.003   0.22     0.005 0.0028 0.022             0.6                                        0.093     0.12      0.17   0.13     0.088    0.17     0.23                                                      0.23     0.11       0.32   0.02     0.041    0.27   0.014

                                                                                                                                                                                                                               0.30

                                                                                                                                                                                                                                                                                                                                             0.4

                                                                                                                 0.5

                                                                                                                                                                                                                               0.25

        Arc Easy









                                                                                                                       Arc Easy









                                                                                                                                                                                                                                       Arc Easy









                                             0.37     0.58 0.0028 0.03 0.0093 0.0028 0.0029                                                                 0.093     0.12      0.17   0.13     0.088    0.17     0.23                                                      0.028    0.35       0.42   0.055 0.065 0.034 0.044

                                                                                                                 0.4                                                                                                                                                                                                                         0.3

                                                                                                                                                                                                                               0.20

                                                                                                                 0.3

                                             0.45     0.34       0.026 0.085 0.039 0.026 0.026                                                              0.093     0.12      0.17   0.13     0.088    0.17     0.23                                                      0.028    0.35       0.42   0.055 0.065 0.034 0.044

        OpenWebMath SciQ









                                                                                                                       OpenWebMath SciQ









                                                                                                                                                                                                                                       OpenWebMath SciQ









                                                                                                                                                                                                                                                                                                                                             0.2

                                                                                                                                                                                                                               0.15

                                                                                                                 0.2

                                                                                                                                                                                                                               0.10                                                                                                          0.1

                                             0.15     0.13       0.11    0.13     0.21     0.11     0.17         0.1                                        0.053 0.067         0.35   0.12     0.18     0.099    0.13                                                      0.51     0.16       0.21   0.022    0.04     0.025 0.028



                                               0       1          2       3         4       5        6                                                        0        1         2      3         4       5        6                                                          0       1          2      3         4       5      6









Figure 13: The mixture weights found by MixMin, Random Search, and RegMix when using 1% the compute for a

pythia-160M training run on 3.2B tokens. Note the domains (x-axis) are “RedPajamaCommonCrawl”, “RedPajamaC4”,

“RedPajamaGithub”, “RedPajamaBook”, “RedPajamaArXiv” , “RedPajamaWikipedia”, “RedPajamaStackExchange” re-

spectively.









                                                                                                                                                                                              15

