# MixMin: Finding Data Mixtures via Convex Minimization

MixMin: 볼록 최소화를 통한 데이터 혼합 찾기

Anvith Thudi, Evianne Rovers, Yangjun Ruan, Tristan Thrush, Chris J. Maddison · arXiv · 2025년 2월 14일

- **연구 문제** 여러 데이터 source를 섞을 때 목표 과제 성능을 최대화하는 혼합 가중치를 찾는 일은 bi-level 최적화라 다루기 어렵습니다.
- **연구 방법** CE 또는 MSE에서 Data Mixing을 가중합 모델의 convex 최소화로 축소하고, cheap proxy 모델로 근사해 entropic descent로 최적화하는 MixMin을 제안합니다.
- **주요 결과** 언어 모델링과 PCBA 화학 실험에서 MixMin은 여러 비교 기준보다 자주 나은 혼합을 찾았고, 1% proxy 계산량에서도 성능이 유지되었습니다.

## 데이터 혼합의 bi-level 문제

여러 출처의 데이터를 섞어 사전학습할 때 가장 어려운 점은 각 출처의 가중치를 어떻게 정할지입니다. 목표 과제에서의 성능을 최대화하려면 먼저 주어진 혼합 가중치 λ로 모델을 학습하고, 그 모델의 목표 손실을 평가하는 두 단계가 얽힌 bi-level 최적화가 필요합니다. 원문은 이 목적이 일반적으로 다루기 어렵고, 기존에는 격자 탐색이나 무작위 탐색 같은 비용이 큰 0차 방법에 의존한다고 설명합니다.

논문은 모델 클래스가 충분히 커지면 이 bi-level 목적이 λ에 대한 convex 최소화로 축소된다는 점을 핵심 문제 설정으로 삼습니다. 이 축소는 손실을 교차 엔트로피(CE) 또는 평균제곱오차(MSE)로 제한할 때 성립하며, 이후 절은 이 축소가 어떤 가정 아래 성립하는지와 그 결과를 실제로 최적화하는 방법을 다룹니다.

## Bayes optimal 모델과 convex 축소

Data Mixing 목적은 혼합 가중치 λ에 따라 내부에서 혼합 분포의 위험 최소화 모델 f\_λ를 얻고, 이를 목표 분포 d\_t에서 평가하는 구조입니다. 논문은 CE 또는 MSE를 쓰고, 공변량 이동이 없으며 Bayes optimal 모델이 각 혼합에 포함되는 조건에서 f\_λ가 각 source의 Bayes optimal 모델 f\_p의 가중합 Σ λ\_p f\_p(x)와 같아진다고 보입니다.

이 조건에서 정리 3.1은 Data Mixing의 최적 λ\*가 Σ λ\_p f\_p(x)를 목표 손실 L에 넣은 convex 목적의 최소점과 일치한다고 말합니다. 공변량 이동이 있는 경우에는 혼합 모델이 단순한 가중합이 되지 않으므로 이 정리의 적용 범위를 벗어납니다. 원문은 무조건 CE, 공변량 이동이 없는 조건부 CE와 MSE를 이 정리의 대상으로 명시합니다.

정리 3.2와 Lemma 3.2는 정확히 Bayes optimal이 아니더라도 가설 공간이 충분히 커져 근사 모델이 f\_λ에 가까워지면, 목적의 초과 오차가 2Cε 이하로 제한된다고 주장합니다. 여기서 C는 목적 손실의 Lipschitz 상수이고 ε는 함수 공간 노름에서 측정한 근사 오차입니다.

![Figure 2: The convexMixMin objective better approximates the Data Mixing objective as the model class becomes larger (and better approximates Bayes optimal)](https://refivu.com/papers/1812a7ac-7070-4e11-93d3-514e69d7cf83/figures/figure-8ed4ec74133b630d6043f0950b8fe0e5.png?thumb=512)

**Figure 2** : The convexMixMin objective better approximates the Data Mixing objective as the model class becomes larger (and better approximates Bayes optimal).

[원문](https://arxiv.org/abs/2502.10510v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Anvith Thudi, Evianne Rovers, Yangjun Ruan, Tristan Thrush, Chris J. Maddison · MixMin: Finding Data Mixtures via Convex Minimization · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

## MixMin의 실제 계산

이론상의 convex 목적은 Bayes optimal 모델 f\_p와 적분을 필요로 하므로 그대로 쓰기 어렵습니다. MixMin은 적분을 목표 데이터 샘플 D\_t 위의 경험적 위험으로 바꾸고, 각 source에 대해 저비용 proxy 모델 f̂\_p를 학습하여 f\_p를 근사합니다. 이렇게 얻은 목적은 λ의 simplex 위에서 목표 샘플의 평균 손실을 최소화하는 문제가 됩니다.

![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…](https://refivu.com/papers/1812a7ac-7070-4e11-93d3-514e69d7cf83/figures/figure-0008bea53ea72d9ee771ea6e1808ad6c.png?thumb=512)

**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.

[원문](https://arxiv.org/abs/2502.10510v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Anvith Thudi, Evianne Rovers, Yangjun Ruan, Tristan Thrush, Chris J. Maddison · MixMin: Finding Data Mixtures via Convex Minimization · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

알고리즘은 각 proxy 모델의 출력을 목표 샘플에 대해 한 번 계산해 저장한 뒤, 매 반복에서 혼합 출력 f̂\_λ(x)=Σ λ\_p f̂\_p(x)를 만들고 손실의 기울기를 구합니다. 가중치는 λ\_p ← λ\_p exp(−η g\_p)를 정규화한 entropic descent로 갱신됩니다. 여기서 정규화 분모는 모든 source에 대한 λ\_p exp(−η g\_p)의 합이며, 그 결과가 simplex 위에 남습니다. 원문에 따르면 반복당 비용은 O(\|P\|\|D\_t\|)이며 모델 크기에는 독립적입니다.

계산 비용은 proxy 모델을 학습하는 수가 source 수와 같다는 점이 중요합니다. 원문은 격자나 무작위 탐색 방법이 source 수에 따라 최악의 경우 지수적으로 많은 모델을 학습해야 한다고 비교합니다.

## 언어 모델링 실험 설정과 결과

언어 모델링 실험은 SlimPajama의 도메인을 source로 두고, PIQA, ARC-Easy, SciQ, OpenWebMath를 목표 과제로 사용합니다. proxy 모델과 최종 모델은 Pythia 160M과 410M을 쓰며, 목표 과제는 무작위 80% 학습 세트와 20% 테스트 세트로 나뉩니다. 비교 기준은 balanced, natural 혼합과 random search, RegMix입니다.

1% 계산량 조건에서 MixMin은 네 목표 과제 전체에서 생성형 손실 개선을 가장 일관되게 보였다고 원문은 보고합니다. 계산량을 줄였을 때 MixMin 성능은 유지되었지만 random search와 RegMix는 낮은 계산량에서 악화되었습니다. 이 결과는 160M 모델 기준의 proxy 계산량 조건에서 얻은 것입니다.

![Figure 8: In almost all cases MixMin improves or matches all baselines across the target tasks using 1% of the final training run compute (Left). We report imp…](https://refivu.com/papers/1812a7ac-7070-4e11-93d3-514e69d7cf83/figures/figure-4db4801b374258519e6c9c0a7ee6a1ea.png?thumb=512)

**Figure 8** : In almost all cases MixMin improves or matches all baselines across the target tasks using 1% of the final training run compute (Left). We report improvement over the predictive loss (left) and accuracy (right) of training on the natural distribution, which is stated on the x-axis with the task name.

[원문](https://arxiv.org/abs/2502.10510v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Anvith Thudi, Evianne Rovers, Yangjun Ruan, Tristan Thrush, Chris J. Maddison · MixMin: Finding Data Mixtures via Convex Minimization · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.

![Figure 9: MixMin consistently performed better than alternative methods on generative loss across compute budgets, and was robust to using less compute. We not…](https://refivu.com/papers/1812a7ac-7070-4e11-93d3-514e69d7cf83/figures/figure-774193b6511c71e12597373f687cee3f.png?thumb=512)

**Figure 9** : MixMin consistently performed better than alternative methods on generative loss 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 generative loss of training on the natural distribution.

[원문](https://arxiv.org/abs/2502.10510v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Anvith Thudi, Evianne Rovers, Yangjun Ruan, Tristan Thrush, Chris J. Maddison · MixMin: Finding Data Mixtures via Convex Minimization · 원문 그림 인용 · 원본 PDF 14쪽에서 그림 영역을 추출했습니다.

160M에서 찾은 MixMin 혼합을 pythia-410M 학습에 전이한 실험에서는 대부분의 경우 정확도와 예측 손실이 기준선보다 개선되었고, 생성형 손실은 항상 개선되었다고 보고됩니다. 이 전이 실험은 balanced와 natural 혼합에만 비교되었습니다.

![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 acc…](https://refivu.com/papers/1812a7ac-7070-4e11-93d3-514e69d7cf83/figures/figure-2e40417e72200be09e9a9617b7440df3.png?thumb=512)

**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.

[원문](https://arxiv.org/abs/2502.10510v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Anvith Thudi, Evianne Rovers, Yangjun Ruan, Tristan Thrush, Chris J. Maddison · MixMin: Finding Data Mixtures via Convex Minimization · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![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 pythi…](https://refivu.com/papers/1812a7ac-7070-4e11-93d3-514e69d7cf83/figures/figure-610ecfcb05b0c7442771687ef119ceb9.png?thumb=512)

**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 the410Mtraining run.

[원문](https://arxiv.org/abs/2502.10510v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Anvith Thudi, Evianne Rovers, Yangjun Ruan, Tristan Thrush, Chris J. Maddison · MixMin: Finding Data Mixtures via Convex Minimization · 원문 그림 인용 · 원본 PDF 15쪽에서 그림 영역을 추출했습니다.

![Figure 15: We report the performance of training on the natural and balanced mixture for different tasks at the 410M parameter scale. The subfigures report gen…](https://refivu.com/papers/1812a7ac-7070-4e11-93d3-514e69d7cf83/figures/figure-5841ff5ca731268f396d5e22d701c45a.png?thumb=512)

**Figure 15** : We report the performance of training on the natural and balanced mixture for different tasks at the 410M parameter scale. The subfigures report generative loss, predictive loss, and accuracy respectively. Comparing to Figure 14 we see both the natural and baseline mixture are matched or dominated in average performance across tasks by the MixMin weights for PIQA, Arc Easy, and SciQ.

[원문](https://arxiv.org/abs/2502.10510v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Anvith Thudi, Evianne Rovers, Yangjun Ruan, Tristan Thrush, Chris J. Maddison · MixMin: Finding Data Mixtures via Convex Minimization · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.

## 화학 bioassay 실험과 proxy 역할

화학 실험은 PCBA의 bioassay를 source로 사용하고, 첫 10개 assay를 목표 과제로 둡니다. 각 assay 모델은 ECFP 지문을 입력으로 한 XGBoost이며, 성능은 average precision으로 보고합니다. 목표 assay를 제외한 나머지 assay를 source로 사용하고, surrogate 데이터셋 수는 9, 85, 1279로 늘립니다.

원문은 source 수가 적을 때는 MixMin이 자연 분포와 대체로 비슷하지만, source 수가 늘수록 MixMin이 자연 분포보다 개선되었다고 보고합니다. 여러 surrogate를 혼합할수록 average precision 개선이 0.03에서 0.15 사이로 보고되었다는 점이 핵심 결과입니다. 이 값은 화학 실험 설정에서의 결과이며 언어 모델링의 결과와 직접 합치지 않습니다.

![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 assay…](https://refivu.com/papers/1812a7ac-7070-4e11-93d3-514e69d7cf83/figures/figure-49bad8e167aeeeb97a8a88a55c1405c4.png?thumb=512)

**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.

[원문](https://arxiv.org/abs/2502.10510v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Anvith Thudi, Evianne Rovers, Yangjun Ruan, Tristan Thrush, Chris J. Maddison · MixMin: Finding Data Mixtures via Convex Minimization · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

또 다른 비교는 MixMin 가중치로 proxy 모델을 앙상블한 결과와 같은 가중치로 모델을 재학습한 결과입니다. 원문은 재학습이 앙상블보다 유의하게 우수했다고 보고하며, 저자들은 이를 proxy 모델이 Bayes optimal과 거리가 멀다는 신호로 해석합니다.

![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 rep…](https://refivu.com/papers/1812a7ac-7070-4e11-93d3-514e69d7cf83/figures/figure-40db607c2b952b6608b1ec1a4e7b349a.png?thumb=512)

**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.

[원문](https://arxiv.org/abs/2502.10510v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Anvith Thudi, Evianne Rovers, Yangjun Ruan, Tristan Thrush, Chris J. Maddison · MixMin: Finding Data Mixtures via Convex Minimization · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 한계

정리와 MixMin의 축소는 CE와 MSE 손실에 한정되며, source 분포 사이에 공변량 이동이 없어야 합니다. 원문은 이 조건 때문에 입력 분포가 달라지는 이미지 분류 같은 과제에는 현재 틀을 그대로 적용하기 어렵다고 밝힙니다.

실험 결과도 특정 과제와 모델에서 얻어졌습니다. 언어 모델링에서는 Pythia 160M과 410M, 네 목표 과제, SlimPajama 도메인을 사용했고, 화학 실험에서는 PCBA의 첫 10개 assay와 XGBoost를 사용했습니다. 따라서 이 결과를 다른 데이터나 모델 전체로 일반화하려면 별도 검증이 필요합니다.

또한 원문은 proxy 모델을 얼마나 싸게 만들 수 있는지에 대한 한계가 남아 있다고 밝힙니다. 적은 계산으로 proxy를 학습해도 결과가 유지된 이유는 원문에서 완전히 설명되지 않았고, 원문은 이를 향후 연구 과제로 남겨 둡니다.

## 논문 정보

- **저자**: Anvith Thudi, Evianne Rovers, Yangjun Ruan, Tristan Thrush, Chris J. Maddison
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2025년 2월 14일
- **등록일**: 2026년 10월 30일
- **수정일**: 2026년 1월 15일
- **버전**: v3
- **arXiv**: 2502.10510
- **분류**: cs.LG · stat.ML
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2502.10510v3) · [원문 PDF ↗](https://arxiv.org/pdf/2502.10510v3)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

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.

## 원문 인용

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}
}
```

## 이 논문의 용어

- [XGBoost](https://refivu.com/terms/959f3da48853-xgboost)
- [average precision](https://refivu.com/terms/1764eaa249a6-average-precision)
- [cross-entropy](https://refivu.com/terms/8967f7f88108-cross-entropy)
- [Random Search](https://refivu.com/terms/4122ba3151ed-random-search)
- [Slimpajama](https://refivu.com/terms/49417fc10791-slimpajama)
- [covariate shift](https://refivu.com/terms/999984d6d515-covariate-shift)
- [negative log likelihood](https://refivu.com/terms/339ecb7aa325-negative-log-likelihood)
- [Pythia](https://refivu.com/terms/b66f02e437b6-pythia)
- [mean-squared error](https://refivu.com/terms/cb4f778e385c-mean-squared-error)
- [Bi-Level Optimization](https://refivu.com/terms/f83d053435ef-bi-level-optimization)
- [empirical risk](https://refivu.com/terms/5151796eb73a-empirical-risk)
- [proxy model](https://refivu.com/terms/e19a277f250e-proxy-model)
- [ARC-Easy](https://refivu.com/terms/f874cfc40eed-arc-easy)
- [Lipschitz](https://refivu.com/terms/4eacf3d2b187-lipschitz)
- [natural distribution](https://refivu.com/terms/f1a27e2d8dd5-natural-distribution)
- [PCBA](https://refivu.com/terms/42f879c62ff4-pcba)
- [RegMix](https://refivu.com/terms/edc451d9de8a-regmix)
- [SciQ](https://refivu.com/terms/47f00d720eb3-sciq)

## 다른 논문 해설

- [Towards Spectroscopy: Susceptibility Clusters in Language Models](https://refivu.com/papers/85bbfb6c-ef05-4a5e-b0fe-e16d447e7a34-towards-spectroscopy-susceptibility-clusters-in-language.md)
- [Spectra: Rethinking Optimizers for LLMs Under Spectral Anisotropy](https://refivu.com/papers/71a4f738-6a9f-4696-96a0-1cb4c94714d5-spectra-rethinking-optimizers-for-llms-under-spectral.md)
- [Privately Fine-Tuned LLMs Preserve Temporal Dynamics in Tabular Data](https://refivu.com/papers/fdefc07f-52c8-4caf-8a13-e628c8e07259-privately-fine-tuned-llms-preserve-temporal-dynamics-in.md)
- [Subliminal Effects in Your Data: A General Mechanism via Log-Linearity](https://refivu.com/papers/b9aecf72-42f4-40e2-a3a7-f535f717d390-subliminal-effects-in-your-data-a-general-mechanism.md)
- [Orthogonal Model Merging](https://refivu.com/papers/e8a54c90-4216-4c93-ac47-4c8fd707de99-orthogonal-model-merging.md)
- [The Geometry of Refusal in Large Language Models: Concept Cones and Representational Independence](https://refivu.com/papers/fd13f7d8-7e4a-4bc8-9f04-ace7e79ab349-the-geometry-of-refusal-in-large-language-models.md)
- [BLIPs: Bayesian Learned Interatomic Potentials](https://refivu.com/papers/c5c11940-253d-47af-b867-d3650dd8346a-blips-bayesian-learned-interatomic-potentials.md)
- [A model of errors in transformers](https://refivu.com/papers/1bc4b191-443f-4981-b9cc-cc08cedf2eca-a-model-of-errors-in-transformers.md)
- [VJEPA: Variational Joint Embedding Predictive Architectures as Probabilistic World Models](https://refivu.com/papers/7d1a7573-5ea9-499e-aa7c-6e83cdbefb6b-vjepa-variational-joint-embedding-predictive-architectures.md)
- [PyTDC: A multimodal machine learning training, evaluation, and inference platform for biomedical foundation models](https://refivu.com/papers/1035331c-584e-4748-8f99-4c6aefaf754a-pytdc-a-multimodal-machine-learning-training-evaluation-and.md)
- [Patterning: The Dual of Interpretability](https://refivu.com/papers/58d22720-b486-4c83-a12c-426de3cbcbdb-patterning-the-dual-of-interpretability.md)
- [Distributionally Robust Causal Abstractions](https://refivu.com/papers/0e7c33f1-0bd3-48e6-bfb3-bf1f7144f014-distributionally-robust-causal-abstractions.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/1812a7ac-7070-4e11-93d3-514e69d7cf83-mixmin-finding-data-mixtures-via-convex-minimization)
