Adaptive Mutual Distillation for Balanced Multi-Task Post-Training of Large Language Models
Organizations: Harbin Institute of Technology · Peng Cheng Laboratory
Abstract
Multi-task post-training of large language models (LLMs) aims to improve performance across tasks with unequal amounts of training data. Existing methods focus primarily on balancing task contributions during single-model training. Different task-balancing strategies can produce models with complementary strengths, creating opportunities for mutual distillation. However, the usefulness of cross-model supervision can vary across tasks, transfer directions, and stages of training. We propose Adaptive Mutual Distillation (AMD), a collaborative post-training framework that jointly trains two models with different task-balancing strategies. AMD evaluates candidate adjustments to distillation weights through short training probes shared across tasks, then uses task-wise validation scores to select an adjustment for each task and transfer direction. Across six benchmarks and three LLM backbones, both AMD models achieve higher average benchmark scores than supervised fine-tuning (SFT) baselines trained with the same sampling strategies. They also outperform the task-balancing methods evaluated in our experiments. Merging the two trained models can further improve their average benchmark score while yielding a single model for inference. The merged models outperform multi-task SFT by an average of 2.91 points across the three backbones.
Figures & tables
| Method | Sampling | Math | Medicine | Law | Avg. | Avg. | |||
|---|---|---|---|---|---|---|---|---|---|
| GSM8K | Math-500 | MedQA | MedBullets | LawBench | CMMLU-Law | ||||
| SFT Baselines | |||||||||
| Multi-task SFT | 57.47 | 42.40 | 27.34 | 40.10 | 29.53 | 48.99 | 40.97 | – | |
| Smoothed SFT | 57.47 | 34.20 | 30.71 | 44.16 | 28.48 | 50.03 | 40.84 | – | |
| Prior Methods | |||||||||
| PCGrad | 56.10 | 34.40 | 29.38 | 47.40 | 32.86 | 48.64 | 41.46 | +0.49 | |
| Method | Sampling | Math | Medicine | Law | Avg. | Avg. | |||
|---|---|---|---|---|---|---|---|---|---|
| GSM8K | Math-500 | MedQA | MedBullets | LawBench | CMMLU-Law | ||||
| SFT Baselines | |||||||||
| Multi-task SFT | 58.45 | 27.20 | 49.25 | 51.14 | 28.46 | 50.49 | 44.16 | – | |
| Smoothed SFT | 50.42 | 26.00 | 50.67 | 55.19 | 35.84 | 47.99 | 44.35 | – | |
| Prior Methods | |||||||||
| PCGrad | 62.32 | 25.80 | 50.12 | 55.36 | 31.93 | 49.92 | 45.91 | +1.75 | |
| Method | Sampling | Math | Medicine | Law | Avg. | Avg. | |||
|---|---|---|---|---|---|---|---|---|---|
| GSM8K | Math-500 | MedQA | MedBullets | LawBench | CMMLU-Law | ||||
| SFT Baselines | |||||||||
| Multi-task SFT | 19.94 | 7.00 | 30.40 | 29.55 | 16.55 | 33.53 | 22.83 | – | |
| Smoothed SFT | 20.39 | 6.80 | 28.20 | 32.79 | 16.70 | 32.94 | 22.97 | – | |
| Prior Methods | |||||||||
| PCGrad | 15.62 | 5.80 | 27.65 | 35.88 | 22.15 | 32.20 | 23.22 | +0.39 | |
| Method | Sampling | Avg. |
|---|---|---|
| SFT baselines | 22.83 / 22.97 | |
| Same-temp MD | 22.50 / 22.45 | |
| Same-temp MD | 23.18 / 22.22 | |
| Fixed-Bi | 24.07 / 23.92 | |
| Adaptive | 25.03 / 24.54 |
| Method | Sampling | Macro Avg. by seed | Mean Std. | ||
|---|---|---|---|---|---|
| 42 | 43 | 44 | |||
| Fixed-Bi | 24.07 | 23.79 | 23.83 | 23.90 0.15 | |
| 23.92 | 24.14 | 24.44 | 24.17 0.26 | ||
| Fixed-Uni | 24.38 | 24.52 | 24.16 | 24.35 0.18 | |
| 24.51 | 24.40 | 24.45 | 24.45 0.06 | ||
| Adaptive | 25.03 | 24.32 | 24.44 | 24.60 0.38 | |
| Training | Empirical sampling | Smoothed sampling | Merged | Merge |
|---|---|---|---|---|
| SFT baselines | 22.83 | 22.97 | 24.08 | +1.11 |
| AMD | 25.03 | 24.54 | 25.53 | +0.50 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Category | Dataset | Cap |
|---|---|---|
| Math | NuminaMath-1.5 ( AI-MO, 2025 ) | 100k |
| Medicine | MedQA ( Jin et al., 2021 ) | 9,178 |
| Law | DISC-Law ( Yue et al., 2023 ) | 50k |
| General | InfinityInstruct ( Li et al., 2025a ) | 10k |
| Method | Sampling | Math | Medicine | Law | Avg. | Avg. | |||
|---|---|---|---|---|---|---|---|---|---|
| GSM8K | Math-500 | MedQA | MedBullets | LawBench | CMMLU-Law | ||||
| SFT Baselines | |||||||||
| Smoothed SFT | 20.39 | 6.80 | 28.20 | 32.79 | 16.70 | 32.94 | 22.97 | – | |
| Prior Methods | |||||||||
| PCGrad | 21.30 | 7.00 | 26.47 | 34.90 | 20.78 | 33.14 | 23.93 | +0.96 | |
| MFTCoder | 15.16 | 4.80 | 28.36 | 33.93 | 21.51 | 31.13 | 22.48 | -0.49 | |
| # | Schedule | Macro Avg. |
|---|---|---|
| 1 | 23.96 | |
| 2 | 24.89 | |
| 3 | 23.64 | |
| 4 | 25.03 |
| Method | Macro Avg. |
|---|---|
| Single-model baselines, six epochs | |
| Multi-task SFT | 23.05 |
| Smoothed SFT | 22.94 |
| PCGrad | 23.50 |
| FAMO | 24.16 |
| CoBa | 23.35 |
LLM Post-Training
Large language model post-training adapts pretrained models into more useful, reliable, and specialized assistants through supervised and preference-based learning.
See all 246 papers