                                  MixMin: Finding Data Mixtures via Convex Minimization



A. Proofs

A.1. Theorem 3.1

Proof. Recall that the Bayes optimal model for conditional cross entropy Pis p(y|x) and for conditional MSE is Ey∼p(y|x) y.

In both cases, letting fλ be the Bayes optimal for the mixture dpλ = p∈P λp dp, and fp be the Bayes optimal for the

individual sources, we have for cross-entropy and ℓ22 :

                                                        P

                                                         dp∈P λp fp (x)p(x)

                                               fλ = P

                                                                    ′ ′

                                                           dp′ ∈P λp p (x)

                                                                                       P

and in particular, when there is no covariate shift amongst the sources we have fλ =       dp∈P λp fp (x).

                                                                                           P

Note that the Bayes optimal for unconditional CE is just p(x), and so similarly fλ (x) =      dp∈P λp fp (x).



                              then have our Data Mixing objective reduces to just learning a linear model over fp (x).

With this formula for fλ , we P

Specifically plugging in fλ = dp∈P λp fp (x) into Data Mixing gives Equation 1.







A.2. Lemma 3.2

Proof. First note that, using the Lipschitz criterion with the condition on the hypothesis space and the definition of data

mixing, letting H∗ contain the Bayes optimal for all mixtures, we have ∀λ ∈ ∆P that



                                          |DMH (λ, dt) − DMH∗ (λ, dt)| ≤ Cϵ.



Specifically, let fH,λ and fH ∗ ,λ be the minimizer of the mixture λ in H and H ∗ respectively. By definition of H ∗ , fH ∗ ,λ

                    R by the assumption in Rthe lemma statement, ||fH,λ − fH ∗ ,λ || ≤ ϵ. Now note |DMH (λ, dt) −

is Bayes optimal, and

DMH ∗ (λ, dt)| = | L(fH,λ (x), y)dt(x, y) − L(fH ∗ ,λ (x), y)dt(x, y)| ≤ C||fH,λ − fH ∗ ,λ || by the Lipschitz assumption.

Combining the two inequalities we have |DMH (λ, dt) − DMH ∗ (λ, dt)| ≤ Cϵ which gives the desired inequality.

This relation will be enough for the proof, and hence weaker criteria in the lemma that ensure this relation will suffice.

Let λ̄ = arg minλ∈∆P DMH (λ, dt) be the optimal data mixture weights and recall λ∗ = arg minλ∈∆P DMH∗ (λ, dt)

where H∗ contains the Bayes optimal functions for all mixtures. Now note the left hand side of the inequality





       DMH (λ∗ , dt) − min DMH (λ, dt) = DMH (λ∗ , dt) − DMH∗ (λ∗ , dt) + DMH∗ (λ∗ , dt) − DMH (λ̄, dt).

                         λ∈∆P





The first difference is bounded by Cϵ1 by the earlier inequality for changing hypothesis spaces. Now bounding the second

difference we have







  DMH∗ (λ∗ , dt) − DMH (λ̄, dt) = DMH∗ (λ∗ , dt) − DMH∗ (λ̄, dt) + DMH∗ (λ̄, dt) − DMH (λ̄, dt)

                                                                                 ≤ DMH∗ (λ̄, dt) − DMH (λ̄, dt) ≤ Cϵ1



where the first inequality came from the definition of λ∗ , and the second from the inequality stated at the beginning of the

proof for changing hypothesis spaces.

Hence we conclude

                                       DMH (λ∗ , dt) − min DMH (λ, dt) ≤ 2Cϵ1

                                                         λ∈∆P









B. Extra Tables and Figures





                                                             12

