mlsanityData to 14 Oct 2026

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

arXiv 2508.11953 ↗First posted 16 Aug 2025cs.AIcited by 12

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

  1. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  2. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  4. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  5. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  6. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  7. 2022Scaling Instruction-Finetuned Language Modelscited by 3,024
  8. 2022Training Compute-Optimal Large Language Modelscited by 3,019
  9. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
  10. 2021Convex optimizationcited by 2,515
  11. 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,288
  12. 2023Instruction-Following Evaluation for Large Language Modelscited by 1,228
27 more
  1. 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,053
  2. 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 868
  3. 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 739
  4. 2023AGIEval: A Human-Centric Benchmark for Evaluating Foundation Modelscited by 716
  5. 2023Instruction Tuning with GPT-4cited by 686
  6. 2022ToxiGen: A Large-Scale Machine-Generated Dataset for Adversarial and Implicit Hate Speech Detectioncited by 422
  7. 2023How Far Can Camels Go? Exploring the State of Instruction Tuning on Open Resourcescited by 408
  8. 2023Orca: Progressive Learning from Complex Explanation Traces of GPT-4cited by 379
  9. 2022PromptSource: An Integrated Development Environment and Repository for Natural Language Promptscited by 289
  10. 2021Scaling Laws for Transfercited by 272
  11. 2023Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2cited by 229
  12. 2023How Abilities in Large Language Models are Affected by Supervised Fine-tuning Data Compositioncited by 223
  13. 2024When Scaling Meets LLM Finetuning: The Effect of Data, Model and Finetuning Methodcited by 204
  14. 2024OpenMathInstruct-2: Accelerating AI for Math with Massive Open-Source Instruction Datacited by 200
  15. 2024Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performancecited by 184
  16. 2024RegMix: Data Mixture as Regression for Language Model Pre-trainingcited by 177
  17. 2024OpenCoder: The Open Cookbook for Top-Tier Code Large Language Modelscited by 130
  18. 2024Long Is More for Alignment: A Simple but Tough-to-Beat Baseline for Instruction Fine-Tuningcited by 85
  19. 2023Efficient Online Data Mixing For Language Model Pre-Trainingcited by 77
  20. 2024Scaling Laws for Predicting Downstream Performance in LLMscited by 48
  21. 2024Aioli: A Unified Optimization Framework for Language Model Data Mixingcited by 34
  22. 2024SMART: Submodular Data Mixture Strategy for Instruction Tuningcited by 17
  23. 2022How Many Data Samples is an Additional Instruction Worth?cited by 16
  24. 2024Mixing It Up: The Cocktail Effect of Multi-Task Fine-Tuning on LLM Performance -- A Case Study in Financecited by 15
  25. 2024Beyond IID: Optimizing Instruction Learning from the Perspective of Instruction Interaction and Dependencycited by 13
  26. 2024Revisiting the Superficial Alignment Hypothesiscited by 12
  27. 2024FineTuneBench: How well do commercial fine-tuning APIs infuse knowledge into LLMs?cited by 12

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 11.

12 papers.