mSFT: Addressing Dataset Mixtures Overfitting Heterogeneously in Multi-task SFT
Organizations: KAIST AI · Yonsei University · Samsung Advanced Institute of Technology
Abstract
Current language model training commonly applies multi-task Supervised Fine-Tuning (SFT) using a homogeneous compute budget across all sub-datasets. This approach is fundamentally sub-optimal: heterogeneous learning dynamics cause faster-learning tasks to overfit early while slower ones remain under-fitted. To address this, we introduce mSFT, an iterative, overfitting-aware search algorithm for multi-task data mixtures. mSFT trains the model on an active mixture, identifies and excludes the earliest overfitting sub-dataset, and reverts to that specific optimal checkpoint before continuing. Extensive evaluations demonstrate that mSFT consistently outperforms 4 baselines across 10 benchmarks and 6 base models. Further analysis confirms mSFT maintains robust gains across diverse dataset sizes, task granularities, and is insensitive to its single new hyperparameter (compute budget). Notably, at low compute budget, mSFT can improve performance while lowering training FLOPs. Ultimately, mSFT establishes a practical overfitting-aware algorithm for multi-task SFT that maximizes the potential of models across diverse data mixtures.
Figures & tables
| Method | Type | Epochs |
|---|---|---|
| Magistral ( Rastogi et al., 2025 ) | Homogenous | 4 |
| OLMo ( Groeneveld et al., 2024 ) | Homogenous | 3 |
| OLMo 2 ( Walsh et al., 2025 ) | Homogenous | 2 |
| OLMo 3 ( Ettinger et al., 2026 ) | Homogenous | 2 |
| DeepSeek-V3 ( Liu et al., 2025 ) | Homogenous | 2 |
| DeepSeek-R1 ( Guo et al., 2025 ) | Homogenous | 2-3 |
| Model: | OLMo 2 | Qwen2.5 | Qwen3 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Size: | 1B | 0.5B | 1.5B | 3B | 7B | 8B | Average | |||||||
| Acc. | Ep. | Acc. | Ep. | Acc. | Ep. | Acc. | Ep. | Acc. | Ep. | Acc. | Ep. | Acc. | Ep. | |
| Science and Knowledge | ||||||||||||||
| Base | 32.4 | — | 26.1 | — | 54.6 | — | 12.1 | — | 4.0 | — | 24.6 | — | 25.6 | — |
| SFT | 47.9 | 9.75 | 37.5 | 0.50 | 65.8 | 3.00 | 71.8 | 5.00 | 74.5 | 2.00 | 77.9 | 3.00 | 62.5 | 3.88 |
| Continual SFT | 48.5 | 1.90 | 24.6 | 1.95 | 66.6 | 2.08 | 71.4 | 1.80 | 72.9 | 1.40 | 77.5 | 1.15 | 60.2 -2.3 | 1.71 |
| Average | ||
| Acc. | Ep. | |
| SFT | 61.9 | 3.88 |
| SRO SFT | 63.4 | 3.75 |
| Soft SRO SFT | 62.1 | 3.79 |
| mSFT ( ours ) | 63.7 | 4.12 |
| Model: | Gemma 3 4B | |||
|---|---|---|---|---|
| Science and Knowledge | Commonsense and Language | Mathematic and Quantitative | Average | |
| SFT | 59.2 | 69.0 | 38.5 | 59.0 |
| mSFT ( ours ) | 63.0 +3.8 | 74.1 +5.1 | 39.5 +1.0 | 62.7 +3.7 |
| Model: | OLMo 2 | Qwen2.5 | Qwen3 | ||||
|---|---|---|---|---|---|---|---|
| Size: | 1B | 0.5B | 1.5B | 3B | 7B | 8B | Average |
| Average Accuracy Across 10 Benchmarks | |||||||
| SFT | 43.6 | 33.0 | 64.1 | 73.2 | 76.8 | 80.8 | 61.9 |
| CoBa | 46.1 | 36.8 | 64.6 | 72.5 | 77.4 | 80.9 | 63.1 +1.2 |
| mSFT ( ours ) | 46.3 | 37.4 | 65.0 | 74.2 | 78.0 | 81.4 | 63.7 +1.8 |
| Source | FLOPs | |||||
| Stage | 7B | 13B | 32B | 7B | 13B | 32B |
| Pre-training | paper §2.3 | |||||
| Mid-training | paper §4.5 | |||||
| SFT | HF dataset | |||||
| DPO | HF dataset | |||||
| RLVR-grad | tulu3.md script | |||||
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Benchmark | Assigned Category | Domain | License |
| SciQ ( Welbl et al., 2017 ) | Science and Knowledge | Crowdsourced science exam | CC BY-NC 3.0 |
| ARC-Easy ( Clark et al., 2018 ) | Science and Knowledge | Grade-school science exam | CC BY-SA 4.0 |
| OpenBookQA ( Mihaylov et al., 2018 ) | Science and Knowledge | Elementary science facts | Apache 2.0 |
| MedMCQA ( Pal et al., 2022 ) | Science and Knowledge | Medical entrance exam | Apache 2.0 |
| CommonsenseQA ( Talmor et al., 2019 ) | Commonsense and Language | General commonsense | MIT |
| HellaSwag ( Zellers et al., 2019 ) | Commonsense and Language | Grounded sentence completion | MIT |
| Hyperparameter | Value |
|---|---|
| Learning Rate | |
| Learning Rate Schedule | Constant |
| Batch Size | 64 |
| Seed | 20 |
| Sub-dataset Size (train) | 1800 |
| Sub-dataset Size (validation) | 200 |
| Model: | Qwen2.5 | |||
|---|---|---|---|---|
| Size: | 3B | 7B | ||
| SFT | mSFT | SFT | mSFT | |
| Average Accuracy Across 10 Benchmarks | ||||
| Seed 20 | 73.25 | 74.25 | 76.80 | 78.05 |
| Seed 30 | 73.05 | 74.05 | 76.90 | 78.85 |
| Seed 40 | 72.65 | 73.25 | 76.80 | 78.05 |
| Soft | mSFT | |||||||
|---|---|---|---|---|---|---|---|---|
| Model | SFT | Cont. | Dynamix | IES | SRO | SRO | (C=1) | (C=3) |
| OLMo 2 1B | 157.19 | 124.52 | 263.22 | 112.05 | 218.66 | 273.35 | 74.06 | 210.11 |
| Qwen2.5 0.5B | 58.10 | 47.41 | 103.54 | 37.19 | 80.35 | 120.93 | 31.24 | 105.78 |
| Qwen2.5 1.5B | 207.90 | 308.98 | 363.97 | 135.80 | 374.98 | 443.58 | 144.21 | 416.26 |
| Qwen2.5 3B | 461.48 | 727.13 | 760.17 | 313.30 | 652.51 | 879.80 | 320.14 | 770.21 |
| Qwen2.5 7B | 1089.42 | 965.96 | 1742.91 | 663.91 | 1717.30 | 2057.52 | – | 1654.26 |