Self-Privileged Fine-Tuning
Organizations: Department of Data Science and Artificial Intelligence The Hong Kong Polytechnic University · Department of Applied Mathematics The Hong Kong Polytechnic University
Abstract
Supervised fine-tuning (SFT) is a key component of language model post-training, enabling effective task adaptation and serving as an important foundation for subsequent reinforcement learning. Recent methods seek to improve SFT by introducing token-level weights into the training objective, where these weights are typically derived from a model's output distribution at each token position. To better understand how such weighting schemes affect SFT, we analyze their optimization objectives and theoretically characterize the target distributions they induce. Our analysis shows that dynamic weighting methods, such as Dynamic Fine-Tuning (DFT), induce a heavily sharpened distribution, whereas static weighting methods fit a target distribution proportional to the product of the data distribution and a frozen prior. These findings suggest that static weighting provides a more stable training target, while its effectiveness critically depends on the quality of the prior distribution. Building on this observation, we propose Self-Privileged Fine-Tuning (SPFT), which uses a frozen copy of the initial model conditioned on privileged information (such as ground truth for mathematical questions) as a prior to provide guidance for token-level weighting during fine-tuning. Through a Bayesian decomposition, we further show that SPFT reweights the standard static prior according to how informative each target token is for predicting the ground-truth outcome, thereby assigning larger weights to more predictive tokens. Experiments on mathematical reasoning and code generation show that SPFT improves over standard SFT and other baselines across the main settings.
Figures & tables
| Model | Method | MATH-500 | Minerva Math | OlympiadBench | AIME24 | AMC23 | Average | ||||||
| Avg@8 | Pass@8 | Avg@8 | Pass@8 | Avg@8 | Pass@8 | Avg@8 | Pass@8 | Avg@8 | Pass@8 | Avg@8 | Pass@8 | ||
| Qwen2.5 Math (7B) | Base | 60.38 | 87.40 | 16.18 | 42.28 | 27.76 | 54.07 | 14.58 | 36.67 | 49.69 | 85.00 | 33.72 | 61.08 |
| SFT | 67.85 | 89.40 | 24.45 | 47.43 | 30.96 | 55.85 | 5.42 | 20.00 | 40.62 | 75.00 | 33.86 | 57.54 | |
| DFT | 68.32 | 81.20 | 25.46 | 35.66 | 33.04 | 48.00 | 6.25 | 16.67 | 46.56 | 67.50 | 35.93 | 49.81 | |
| ASFT | 70.32 | 88.00 | 22.75 | 38.24 | 34.50 | 57.04 | 7.08 | 16.67 | 47.81 | 80.00 | 36.49 | 55.99 | |
| TALR | 65.88 | 85.20 | 22.56 | 44.85 | 29.20 | 53.48 | 5.83 | 16.67 | 35.62 | 75.00 | 31.82 | 55.04 | |
| Method | HumanEval | HumanEval+ | MBPP | MBPP+ | Code Avg | vs SFT |
| Base | 43.9 | 36.6 | 69.2 | 58.6 | 52.08 | – |
| SFT | 41.5 | 37.2 | 63.2 | 54.2 | 49.03 | 0.00 |
| ASFT | 49.4 | 43.3 | 67.2 | 55.8 | 53.92 | +4.89 |
| PriFT | 56.1 | 50.6 | 67.7 | 57.4 | 57.95 | +8.92 |
| TALR | 59.8 | 52.4 | 67.5 | 56.3 | 59.00 | +9.97 |
| SPFT | 56.7 | 53.0 | 70.6 | 58.5 | 59.70 | +10.67 |
| Reference | MATH-500 | Minerva Math | OlympiadBench | AIME24 | AMC23 | Average | |||||||
| Avg@8 | Pass@8 | Avg@8 | Pass@8 | Avg@8 | Pass@8 | Avg@8 | Pass@8 | Avg@8 | Pass@8 | Avg@8 | Pass@8 | ||
| Online ( ) | 60.30 | 84.00 | 21.65 | 51.10 | 23.61 | 47.70 | 5.42 | 16.67 | 38.12 | 75.00 | 29.82 | 54.89 | |
| Frozen ( ) | 64.75 | 87.40 | 20.82 | 40.44 | 28.94 | 51.26 | 7.08 | 16.67 | 43.12 | 82.50 | 32.94 | 55.65 | |
| Frozen Online | +4.45 | +3.40 | -0.83 | -10.66 | +5.33 | +3.56 | +1.66 | 0.00 | +5.00 | +7.50 | +3.12 | +0.76 | |
| Privileged information | HumanEval | HumanEval+ | MBPP | MBPP+ | Code Avg |
| SPFT (Clean Rule) | 56.7 | 53.0 | 70.6 | 58.5 | 59.70 |
| SPFT (Full Code) | 58.5 | 54.3 | 63.9 | 54.1 | 57.70 |
| SPFT (Unit Tests) | 53.0 | 48.2 | 68.2 | 56.6 | 56.50 |
| SPFT (Suffix-Half) | 57.3 | 51.8 | 66.2 | 56.9 | 58.05 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Objective | MATH-500 | Minerva Math | OlympiadBench | AIME24 | AMC23 | Average | |||||||
| Avg@8 | Pass@8 | Avg@8 | Pass@8 | Avg@8 | Pass@8 | Avg@8 | Pass@8 | Avg@8 | Pass@8 | Avg@8 | Pass@8 | ||
| SPFT | 64.75 | 87.40 | 20.82 | 40.44 | 28.94 | 51.26 | 7.08 | 16.67 | 43.12 | 82.50 | 32.94 | 55.65 | |
| Forward KL | 41.23 | 81.80 | 9.97 | 37.50 | 19.02 | 46.37 | 3.75 | 16.67 | 20.00 | 65.00 | 18.79 | 49.47 | |
| Reverse KL | 31.55 | 76.40 | 8.36 | 32.35 | 15.96 | 44.59 | 1.67 | 6.67 | 16.88 | 60.00 | 14.88 | 44.00 | |
| Configuration Item | Mathematical Reasoning | Code Generation |
| Training dataset | NuminaMath-CoT 10K (9,637 verified pairs) | OpenCodeInstruct 10K (10,000 verified pairs) |
| Backbone models | Qwen2.5-Math-1.5B, Qwen2.5-Math-7B, Qwen3-8B-Base | Qwen2.5-Coder-1.5B |
| Privileged prompt style ( ) | opsd_answer (boxed final answer) | code_rule_paradigm (Clean Rule AST summary) |
| Global batch size | 32 | 16 |
| Peak learning rate | ||
| LR schedule & warmup | Cosine decay, 5% linear warmup | Cosine decay, 5% linear warmup |
| Model | Method | MATH-500 | Minerva Math | OlympiadBench | AIME24 | AMC23 | Average | ||||||
| Avg@8 | Pass@8 | Avg@8 | Pass@8 | Avg@8 | Pass@8 | Avg@8 | Pass@8 | Avg@8 | Pass@8 | Avg@8 | Pass@8 | ||
| Qwen2.5-Math 1.5B | Base | 44.15 | 82.20 | 8.04 | 26.84 | 23.81 | 50.37 | 6.25 | 13.33 | 25.00 | 67.50 | 21.45 | 48.05 |
| SFT | 55.88 | 82.40 | 15.40 | 37.87 | 22.37 | 49.48 | 5.00 | 23.33 | 31.25 | 60.00 | 25.98 | 50.62 | |
| DFT | 62.92 | 80.00 | 22.24 | 38.60 | 24.41 | 43.56 | 4.58 | 10.00 | 34.06 | 60.00 | 29.64 | 46.43 | |
| ASFT | 59.20 | 82.40 | 18.98 | 40.81 | 23.28 | 46.52 | 4.17 | 13.33 | 32.81 | 70.00 | 27.69 | 50.61 | |
| TALR | 56.60 | 82.60 | 17.97 | 41.54 | 22.22 | 48.00 | 1.67 | 6.67 | 31.56 | 62.50 | 26.00 | 48.26 | |
| Model | Method | MATH-500 | Minerva | Olympiad | AIME24 | AMC23 | Average |
| Qwen2.5-Math-1.5B | Base | 56.20 | 6.62 | 31.11 | 13.33 | 27.50 | 26.95 |
| SFT | 68.00 | 20.59 | 30.07 | 6.67 | 42.50 | 33.57 | |
| DFT | 67.20 | 25.37 | 27.85 | 6.67 | 35.00 | 32.42 | |
| ASFT | 67.60 | 24.26 | 30.07 | 3.33 | 42.50 | 33.55 | |
| TALR | 68.20 | 25.74 | 31.26 | 3.33 | 45.00 | 34.71 | |
| PriFT | 69.20 | 14.34 | 33.63 | 6.67 | 40.00 | 32.77 |
Supervised Fine-Tuning
Supervised fine-tuning adapts pretrained models by learning from labeled examples, instructions, demonstrations, and task-specific trajectories.
See all 231 papers