PriFT: Guiding Supervised Fine-Tuning with Pretrained Priors

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

TL;DR

When fine-tuning a language model on fixed examples, forcing it to memorize unlikely words can overwrite its existing knowledge. Recent methods try to prevent this by letting the model weight words based on its current confidence during training, accidentally creating an echo chamber where it only learns what it already prefers. PriFT breaks this feedback loop by anchoring those weights to the original, frozen pretrained model, dramatically improving generalization, preserving creative diversity, and setting up a much better launchpad for Reinforcement Learning (RL).

What Problem Does This Paper Address?

Adapting a pretrained Large Language Model (LLM) to a specific skill—like writing Python or solving calculus—usually starts with Supervised Fine-Tuning (SFT). Standard SFT treats every word (token) in a human demonstration equally. The catch? If a demonstration uses phrasing or logic that clashes wildly with what the model learned during pretraining, forcing the model to fit those tokens distorts its internal representations and causes overfitting.

To fix this, recent "token-reweighting" methods give higher training weights to tokens the model already finds plausible, softening the blow of alien-looking data. However, these methods calculate weights using the online model—the very model actively changing during training.

Figure 1: PriFT improves SFT generalization through pretrained-prior guided token reweighting.

As the authors show, using a moving target creates a "rich-get-richer" self-reinforcing loop. Early in training, the model slightly boosts tokens it already likes; on the next step, because it likes them even more, it gives them even more weight, rapidly pushing favored tokens toward near-100% certainty while ignoring everything else. This collapses the model’s diversity—hurting its ability to brainstorm multiple valid solutions or learn effectively during subsequent RL.

Methods

Instead of asking the actively mutating model what looks reasonable, the authors propose PriFT (Prior-support guided Fine-Tuning), which asks the original, frozen pretrained model. This decouples the weighting signal from the optimization trajectory, measuring clean "prior support"—how well a target token aligns with the model's foundational knowledge before task adaptation begins.

The authors introduce two flavors of PriFT:

  • PriFT-prob: A direct, soft-weighting approach where each target token's loss is multiplied by its exact probability under the frozen pretrained model.
  • PriFT-mass: Raw probabilities have a quirk: in "easy" contexts (like predicting a period or formatting tag), probabilities spike near 1.0, whereas in complex reasoning steps, probabilities spread out across many valid words. To avoid over-weighting trivial words, PriFT-mass looks at cumulative probability mass. If a target token sits in the top 50% of the pretrained probability mass at that step, it gets a weight of 1 (keep); otherwise, 0 (ignore).

Bonus efficiency: Because the pretrained model never changes, you only need to run one forward pass over your dataset offline before training starts, caching a single number or binary bit per token. During actual SFT, PriFT takes zero extra GPU memory.

Datasets

No new benchmarks are introduced; the authors evaluate across established suites in three domains:

  • Mathematical Reasoning: Trained on NuminaMath-CoT (plus ablations on ScaleQuest-Math and GSM8K); evaluated on MATH-OAI, Minerva Math, OlympiadBench, AIME24, and AMC23.
  • Code Generation: Trained on Tulu-3-SFT-Personas-Code; evaluated on HumanEval+, MBPP+, and LiveCodeBench (v5 and v6).
  • Medical QA: Trained on MedMCQA; evaluated on MMLU-Medical, MedQA, and MedMCQA test sets.

Key Insights and Ideas

  • Online reweighting creates an instant echo chamber: Tracking token probabilities during online reweighting reveals a stark polarization—initially favored tokens shoot to ~1.0 probability almost immediately, while disfavored tokens flatline near zero.
Online reweighting rapidly pushes top-ranked tokens to near-deterministic probabilities while suppressing lower-ranked tokens.
  • Freezing isn't enough—the reference must be uncontaminated: What if you fine-tune a model on just 2,000 examples, freeze it, and use that as your reference? Performance drops sharply. Even brief fine-tuning contaminates the prior distribution.
  • Preserving diversity unlocks RL: Online reweighting often boosts single-shot accuracy (Avg@16) by making the model deterministic, but tanks Pass@16 (the chance that at least one of 16 attempts solves the problem). PriFT keeps token entropy healthy, maintaining diverse reasoning paths that subsequent RL (via DAPO) can explore and amplify.
  • Bigger teachers aren't always better: Using a 7B math model to weight tokens for a 1.5B math model didn't beat simply using the 1.5B model's own pretrained checkpoint, because a model's own prior best reflects its exact representational capacity.

Key Results

  • Math Reasoning (Qwen2.5-Math-7B): Simply swapping the probability source from the online model (DFT) to the frozen pretrained model (PriFT-prob) leaps average Pass@16 up by 14.76 points (from 53.86% to 68.62%). PriFT-mass pushes further to 40.67% Avg@16 and 69.60% Pass@16, beating the strongest prior SFT baseline by 3.97 and 8.75 points, respectively.
  • Code Generation (Qwen3-4B-Instruct): PriFT-prob hits 55.25% average pass@1 accuracy (7.65 points above the best baseline), with PriFT-mass jumping over 10 points ahead of baselines on the challenging LiveCodeBench v5 and v6 splits while minimizing forgetting on HumanEval+.
  • RL Initialization: Applying RL after PriFT yields up to 9.57 points of Avg@16 improvement on Qwen3-8B-Base, finishing at 47.65% Avg@16—handily beating RL runs initialized from standard SFT (42.67%) or online-reweighted DFT (39.63%).

Limitations and Future Work

The authors note two main boundaries to their current study. First, due to compute constraints, experiments focus on moderate-sized open weights models (1.5B to 14B parameters); validating PriFT at frontier scales remains open. Second, PriFT fundamentally relies on the pretrained model having some reasonable prior support for the target task—figuring out how to adapt this approach to radically unfamiliar domains or novel languages where the pretrained prior is nearly flat is an open question for future work.

Summary updated

Abstract

Supervised fine-tuning (SFT) is an efficient approach for downstream task adaptation and often serves as the initialization stage for reinforcement learning (RL), but it can show weaker generalization than RL. A key limitation is its off-policy objective: SFT fits fixed demonstrations token by token, including targets poorly aligned with the model's pretrained distribution, which can lead to overfitting. A recent line of work addresses this issue by assigning larger training weights to tokens better aligned with the current model's predictive distribution, with the intuition that fitting these tokens are less distortive to the model's knowledge and representations. However, computing the token weights from the model that is currently fine-tuned entangles token weights with the optimization trajectory, inducing a self-reinforcing loop which concentrates the supervision signal to a narrow set of initially preferred tokens. To address this, we propose PriFT (Prior-support guided Fine-Tuning), which derives token weights from a frozen pretrained reference to obtain a stable reweighting signal unaffected by fine-tuning. This signal estimates prior support: the extent to which each target token is supported by the pretrained distribution. By reweighting tokens according to their prior support, PriFT limits excessive adaptation to targets requiring substantial deviation from the pretrained distribution and improves SFT generalization. We introduce two instantiations: PriFT-prob uses pretrained target-token probability, while PriFT-mass selects tokens by cumulative probability mass under the pretrained distribution. Across mathematical reasoning, code generation, and medical QA, PriFT achieves state-of-the-art results among SFT baselines, while also providing a stronger initialization for subsequent RL.
BibTeX
@inproceedings{wang2026prift,
  author = {Ke Wang and Shuangqi Li and Mathieu Salzmann and Pascal Frossard},
  title = {{PriFT: Guiding Supervised Fine-Tuning with Pretrained Priors}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ILf5dWUdsd},
}
Figure