PriFT: Prior-Support Guided Supervised Fine-Tuning

Ke Wang, Shuangqi Li, Mathieu Salzmann, Pascal FrossardarXiv 2026

TL;DR

Supervised Fine-Tuning (SFT) often causes large language models to overfit by forcing them to learn tokens that conflict with their pretrained knowledge. While recent methods try to fix this by reweighting tokens based on the active model's confidence, this paper shows that doing so creates a harmful, self-reinforcing bias loop. The authors introduce PriFT, a method that anchors token weights to a stable, frozen pretrained model, significantly boosting downstream performance and creating a much better starting point for subsequent reinforcement learning.

What Problem Does This Paper Address?

When adapting pretrained Large Language Models (LLMs) to downstream tasks, researchers typically use Supervised Fine-Tuning (SFT) followed by Reinforcement Learning (RL). SFT is computationally efficient but often generalizes poorly compared to RL. This is because standard SFT forces the model to mimic fixed demonstration data token-by-token, even when those tokens conflict with the model's underlying pretrained knowledge structure.

To mitigate this, recent "token-reweighting" methods dynamically adjust training weights so the model focuses on tokens it is already confident about. However, the authors identify a critical flaw in these approaches: they calculate token weights using the online model (the one currently being trained). Because the online model's distribution drifts rapidly during training, it creates a "rich-get-richer" dynamic. Tokens favored early on receive massive updates, while others are suppressed, destroying sampling diversity and ultimately hurting generalization.

Methods

The authors propose PriFT (Prior-support Guided Fine-Tuning). Instead of looking at what the active model prefers during training, PriFT derives token weights from a frozen, pretrained reference model. This provides a stable "prior support" signal that remains unchanged throughout the optimization trajectory.

The paper introduces two distinct ways to implement this framework:

  1. PriFT-prob: Uses the raw target-token probability from the pretrained model as a soft weight. Tokens that are highly plausible under the pretrained model get stronger supervision.
  2. PriFT-mass: Raw probability can overemphasize "easy" tokens (like punctuation or common function words) and suppress hard, domain-specific tokens. PriFT-mass solves this by calculating the cumulative probability mass of tokens less likely than the target token. It applies a binary mask: if a token falls within the top 50% of the cumulative probability mass, it is kept (weight = 1); otherwise, it is filtered out (weight = 0).

As shown in Figure 2, this percentile-based approach ensures that top-ranked tokens in hard contexts are still trained on, regardless of whether their absolute probability is sharp or flat.

Cumulative mass support vs absolute probability

PriFT adds negligible computational overhead because the reference model's token statistics can be precomputed entirely offline before fine-tuning begins.

Datasets

The authors evaluated PriFT across three distinct domains using several standard backbones (including Qwen2.5, Qwen3, and LLaMA-2):

  • Mathematical Reasoning: Fine-tuned on NuminaMath-CoT (100k samples) and evaluated on MATH-OAI, Minerva Math, OlympiadBench, AIME24, and AMC23.
  • Code Generation: Fine-tuned on Tulu-3-SFT-Personas-Code (~35k samples) and evaluated on HumanEval+, MBPP+, and LiveCodeBench (v5 and v6).
  • Medical QA: Fine-tuned on MedMCQA (10k and 100k samples) and evaluated on MMLU-Medical, MedQA, and the MedMCQA test set.

Key Insights and Ideas

  • The Online Drift is Real: Computing token weights from the active model makes the training signal a rapidly moving target. As seen in Figure 1(a), the correlation between online and pretrained probabilities drops drastically right at the start of training.
  • The Rich-Get-Richer Trap: Online reweighting aggressively drives initially favored tokens toward near-deterministic probabilities while pushing others to zero (Figure 1b and Figure 5). This severely hurts the model's output diversity.
  • References Must Be Uncontaminated: Simply freezing a reference model isn't enough. If you use a reference model that has been partially fine-tuned (even on just 2k samples), downstream performance degrades significantly (Figure 1c). The reference must be the pristine pretrained model.
Analysis of online reweighting drift and bias
  • Preserving RL Headroom: Because PriFT avoids premature optimization collapse and maintains broader token entropy (Figure 3a), it leaves "headroom" for subsequent RL training to explore and discover diverse, successful reasoning paths.

Key Results

  • State-of-the-Art SFT: On Qwen2.5-Math-7B, PriFT-mass achieved the strongest performance among all fine-tuning methods, outperforming the best prior token-reweighting baseline by 3.97 points in Avg@16 and 8.75 points in Pass@16.
  • Massive Diversity Gains: PriFT-prob outperformed online reweighting (DFT) by 14.76 Pass@16 points on Qwen2.5-Math-7B, proving that stable prior weighting preserves successful alternative reasoning trajectories.
  • Mitigating Coding Degradation: Standard SFT often degrades an LLM's existing coding capabilities on benchmarks like HumanEval+. PriFT-mass incurred the smallest degradation while simultaneously boosting performance on harder, newer coding tasks (LiveCodeBench).
  • Superior RL Initialization: When the fine-tuned models were subsequently trained with RL (DAPO), the PriFT-initialized models vastly outperformed the baselines, yielding up to a 9.57 point improvement in Avg@16 on Qwen3-8B-Base.

Limitations and Future Work

  • Model Scale and Domains: The study focused primarily on moderate-sized open models (1.5B to 8B parameters) and three specific domains. Validating PriFT on larger scales (e.g., 70B+ models) remains future work.
  • Utility Functions: The framework was only instantiated with raw probability and cumulative mass. The authors note that exploring other pretrained-reference utility functions is a promising direction.
  • Data Interaction: Future work could investigate how prior-support weighting interacts dynamically with different target task data distributions.

Summary updated

BibTeX
@misc{wang2026prift,
  author = {Ke Wang and Shuangqi Li and Mathieu Salzmann and Pascal Frossard},
  title = {{PriFT: Prior-Support Guided Supervised Fine-Tuning}},
  year = {2026},
  eprint = {2606.09396},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.09396},
}
Figure