Data Mixing Optimization for Supervised Fine-Tuning of Large Language Models
Not on the map. Why?
Abstract (arXiv)
Optimizing data mixtures for supervised fine-tuning (SFT) of large language models (LLMs) is critical for developing general-purpose models, yet this area remains underexplored. In this paper, we frame data mixing as an optimization problem and introduce a novel method designed to minimize validation loss. Our approach parametrizes the loss by modeling effective data transferred and leveraging scaling laws for fine-tuning. By experimenting with various small-scale data mixtures, we fit these parameters and derive the optimal weights. We provide both mathematical proofs and empirical results demonstrating that our algorithm achieves excellent overall and individual performance across all domains. Through controlled experiments, we show that models trained with our optimized weights perform on par with those using optimal weights determined via grid search, with per-domain loss only 0.66% higher than the best domain loss from grid search on average. Additionally, we show that reweighting popular SFT datasets using our method improves both validation loss and downstream performance. Finally, we discuss how our method can generalize to guide data selection for domain-specific models and provide insights into SFT.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 39 of its 50 references that are in the map. First posted on arXiv 16 Aug 2025.
Builds on
39 of 50 references.
References · 39
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2022Scaling Instruction-Finetuned Language Modelscited by 3,024
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
- 2021Convex optimizationcited by 2,515
- 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,288
- 2023Instruction-Following Evaluation for Large Language Modelscited by 1,228
27 more
- 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,053
- 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 868
- 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 739
- 2023AGIEval: A Human-Centric Benchmark for Evaluating Foundation Modelscited by 716
- 2023Instruction Tuning with GPT-4cited by 686
- 2022ToxiGen: A Large-Scale Machine-Generated Dataset for Adversarial and Implicit Hate Speech Detectioncited by 422
- 2023How Far Can Camels Go? Exploring the State of Instruction Tuning on Open Resourcescited by 408
- 2023Orca: Progressive Learning from Complex Explanation Traces of GPT-4cited by 379
- 2022PromptSource: An Integrated Development Environment and Repository for Natural Language Promptscited by 289
- 2021Scaling Laws for Transfercited by 272
- 2023Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2cited by 229
- 2023How Abilities in Large Language Models are Affected by Supervised Fine-tuning Data Compositioncited by 223
- 2024When Scaling Meets LLM Finetuning: The Effect of Data, Model and Finetuning Methodcited by 204
- 2024OpenMathInstruct-2: Accelerating AI for Math with Massive Open-Source Instruction Datacited by 200
- 2024Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performancecited by 184
- 2024RegMix: Data Mixture as Regression for Language Model Pre-trainingcited by 177
- 2024OpenCoder: The Open Cookbook for Top-Tier Code Large Language Modelscited by 130
- 2024Long Is More for Alignment: A Simple but Tough-to-Beat Baseline for Instruction Fine-Tuningcited by 85
- 2023Efficient Online Data Mixing For Language Model Pre-Trainingcited by 77
- 2024Scaling Laws for Predicting Downstream Performance in LLMscited by 48
- 2024Aioli: A Unified Optimization Framework for Language Model Data Mixingcited by 34
- 2024SMART: Submodular Data Mixture Strategy for Instruction Tuningcited by 17
- 2022How Many Data Samples is an Additional Instruction Worth?cited by 16
- 2024Mixing It Up: The Cocktail Effect of Multi-Task Fine-Tuning on LLM Performance -- A Case Study in Financecited by 15
- 2024Beyond IID: Optimizing Instruction Learning from the Perspective of Instruction Interaction and Dependencycited by 13
- 2024Revisiting the Superficial Alignment Hypothesiscited by 12
- 2024FineTuneBench: How well do commercial fine-tuning APIs infuse knowledge into LLMs?cited by 12
Built on by
Citing papers per year: 2025: 1; 2026: 11.
12 papers.
- 2026DynaMiCS: Fine-tuning LLMs with Performance Constraints using Dynamic Mixturescited by 4
- 2026mSFT: Addressing Dataset Mixtures Overfitting Heterogeneously in Multi-task SFTcited by 3
- 2026Multi2: Hierarchical Multi-Agent Decision-Making with LLM-Based Agents in Interactive Environmentscited by 2
- 2026Multi-task Code LLMs: Data Mix or Model Merge?cited by 1
- 2026Linear Model Merging Unlocks Simple and Scalable Multimodal Data Mixture Optimizationcited by 1
- 2026DataProphet: Demystifying Supervision Data Generalization in Multimodal LLMscited by 1
- 2026BoLT: A Benchmark to Democratize Black-box Optimization Research for Expensive LLM Taskscited by 1
- 2025AutoSynth: Automated Workflow Optimization for High-Quality Synthetic Dataset Generation via Monte Carlo Tree Searchcited by 0
- 2026CausalMix: Data Mixture as Causal Inference for Language Model Trainingcited by 0
- 2026AgentOmnia: Scaling Agentic Models for Full-Scenario Applicationscited by 0
- 2026CALIBUDGET: Calibration-Guided Source Allocation for Fixed-Budget Mixed-Reasoning Adaptationcited by 0
- 2026A helps B while B hurts A: directed transfer in instruction-tuning mixturecited by 0
- 2026A helps B while B hurts A: directed transfer in instruction-tuning mixture30 Sep 2026
- 2026CALIBUDGET: Calibration-Guided Source Allocation for Fixed-Budget Mixed-Reasoning Adaptation29 Sep 2026
- 2026AgentOmnia: Scaling Agentic Models for Full-Scenario Applications25 Jul 2026
- 2026CausalMix: Data Mixture as Causal Inference for Language Model Training1 Jul 2026
- 2026Multi2: Hierarchical Multi-Agent Decision-Making with LLM-Based Agents in Interactive Environments2 Jun 2026
- 2026BoLT: A Benchmark to Democratize Black-box Optimization Research for Expensive LLM Tasks16 May 2026
- 2026DynaMiCS: Fine-tuning LLMs with Performance Constraints using Dynamic Mixtures11 May 2026
- 2026mSFT: Addressing Dataset Mixtures Overfitting Heterogeneously in Multi-task SFT23 Mar 2026
- 2026DataProphet: Demystifying Supervision Data Generalization in Multimodal LLMs20 Mar 2026
- 2026Linear Model Merging Unlocks Simple and Scalable Multimodal Data Mixture Optimization4 Feb 2026
- 2026Multi-task Code LLMs: Data Mix or Model Merge?28 Jan 2026
- 2025AutoSynth: Automated Workflow Optimization for High-Quality Synthetic Dataset Generation via Monte Carlo Tree Search12 Nov 2025