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.
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 onScaleQuest-MathandGSM8K); evaluated onMATH-OAI,Minerva Math,OlympiadBench,AIME24, andAMC23. - Code Generation: Trained on
Tulu-3-SFT-Personas-Code; evaluated onHumanEval+,MBPP+, andLiveCodeBench(v5 and v6). - Medical QA: Trained on
MedMCQA; evaluated onMMLU-Medical,MedQA, andMedMCQAtest 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.
- 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 tanksPass@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 averagePass@16up 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% averagepass@1accuracy (7.65 points above the best baseline), with PriFT-mass jumping over 10 points ahead of baselines on the challengingLiveCodeBenchv5 and v6 splits while minimizing forgetting onHumanEval+. - RL Initialization: Applying RL after PriFT yields up to 9.57 points of
Avg@16improvement onQwen3-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