atlas

Research map / Large language models / Instruction and fine-tuning

Data Mixing Optimization for Supervised Fine-Tuning of Large Language Models

ICML 2025 · Large language models › Instruction and fine-tuning · approach: Efficient LLM fine-tuning systems · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Frames SFT data mixing as minimizing validation loss via a parametric loss that models effective transferred data and a fine-tuning power law, then solves for domain weights with SLSQP.

Problem

Choosing domain weights for the data mixture in supervised fine-tuning (SFT) of LLMs is underexplored; pre-training data-mixing methods transfer poorly to SFT and can give unbalanced domain weights when data scales.

Approach

Parametrize per-domain validation loss as a power law in effective data (own tokens plus transferred tokens from other domains, modeled as k*|D_other|^alpha), fit five parameters per domain from five perturbation runs with small data, then minimize the summed loss over the simplex with SLSQP; proofs of convexity and a "no domains left behind" property are given.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Optimize domain weights instead of selecting the best grid-search mixtureData Mixing Optimization · IF, math, code; 5M tokensoverall PPL: 2.9692 -> 2.9847Hurt
Optimize domain weights instead of selecting the best grid-search mixtureData Mixing Optimization · IF, math, code; 20M tokensoverall PPL: 2.8952 -> 2.9293Hurt
Optimize domain weights instead of selecting the best grid-search mixtureData Mixing Optimization · IF, math, code; 200M tokensoverall PPL: 2.7621 -> 2.8210Hurt
Reweight Tulu3 domains using optimized weights rather than original proportionsTulu3 fine-tuning · Tulu3 validationaverage PPL: 2.162 -> 2.150Helped
Reweight Tulu3 domains using optimized weights rather than original proportionsTulu3 fine-tuning · Tulu3 validationaverage PPL: 2.127 -> 2.080Helped
Reweight Tulu3 domains using optimized weights rather than original proportionsTulu3 fine-tuning · Tulu3 validationaverage PPL: 2.165 -> 2.133Helped
Reweight Tulu3 domains using optimized weights rather than original proportionsTulu3 fine-tuning · Tulu3 downstream tasksAverage: 50.1 -> 50.4Helped
Reweight Tulu3 domains using optimized weights rather than original proportionsTulu3 fine-tuning · Tulu3 downstream tasksAverage: 63.6 -> 63.8Helped
Reweight Tulu3 domains using optimized weights rather than the strongest baselineTulu3 fine-tuning · Tulu3 downstream tasksAverage: 68.5 -> 68.0Hurt
Use optimized mixture of Alpaca-GPT4 and PubMedQA instead of all PubMedQA dataMedical PubMedQA fine-tuning · Medical PubMedQAPPL: 5.48 -> 5.42Helped
Use optimized mixture of Alpaca-GPT4 and PubMedQA instead of all PubMedQA dataMedical PubMedQA fine-tuning · Medical PubMedQAaccuracy: 76.4% -> 76.8%Helped
Reweight Orca domains using optimized weights rather than the strongest baselineOrca fine-tuning · Orca validationaverage PPL: 1.763 -> 1.795; 1.644 -> 1.643; 1.649 -> 1.649Mixed

Surprising findings

Limitations

Experimental setup

Datasets: Infinity-Instruct OpenMathInstruct-2 OpenCoder (opc-sft-stage1) Tulu3 SFT mixture OpenOrca Alpaca-GPT4 PubMedQA

Benchmarks: AGIEval IFEval MMLU GSM8K HumanEval ToxiGen TruthfulQA HellaSwag

Metrics: token-level perplexity per-domain perplexity accuracy

Baselines: Grid search mixtures Original Equal_T Equal_I SMART

Builds on: DoReMi Data Mixing Laws RegMix AutoScale

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy