Finetuning with Sampling: SFT Learns Better Than You Think
Summary
Conventional wisdom: RL generalizes well on new tasks without losing existing capabilities, while SFT suffers weak generalization and catastrophic forgetting — but SFT can learn from off-policy expert data, whereas RL must find successful trajectories by repeated sampling. Instead of modifying the learning objective for off-policy data, this work tailors the data distribution to the learner: an MCMC (Metropolis-Hastings) sampling algorithm progressively transforms off-policy traces to be more on-policy given a reference model. The target distribution is the KL-closest distribution to the base model consistent with a privileged information constraint C; the information constraint is absorbed into the MCMC proposer (used in-context to generate candidates) rather than as a verifier, and the data processing inequality guarantees the trajectory distribution moves closer to the base model as MCMC progresses. Across scientific skill acquisition, mathematical reasoning, and open-ended expertise, sampling-augmented SFT rivals prevailing post-training techniques — often generalizing better and forgetting less than strong on-policy baselines like RL and on-policy distillation — and the pass@k curve can exceed both base model and on-policy learning, i.e., learning genuinely new abilities rather than just sharpening. Sampling is framed as a model-native operator shaping data for learnability, with broader utility as a general primitive across the post-training stack (RL, OPD, self-play).
- Venue
- arXiv:2610.02140 (cs.LG), submitted 1 Oct 2026; to be presented at NeurIPS
- Source
- arxiv
- Access
- free
- Language
- en
- Added
- Oct 2, 2026
- Verified
- Oct 4, 2026
- Found via
- #random-papers
From the source
- Published
- Oct 1, 2026
- arXiv categories
- cs.LG, cs.AI, cs.CL
- Citations
- 0
- References
- 40
Abstract (from arXiv)
Introducing new capabilities to frontier models has long been the goal of posttraining, which predominantly employs supervised finetuning (SFT) and reinforcement learning (RL) to this end. Conventional wisdom dictates that RL enables strong generalization on new tasks without losing existing capabilities, while SFT is prone to weak generalization and catastrophic forgetting. At the same time, SFT can learn from off-policy expert data, whereas RL must rely on a model's ability to find successful trajectories with repeated sampling. In our work, we seek to leverage the strength of on-policy learning while utilizing the privileged information contained in off-policy data. However, rather than modifying the learning objective to accommodate this data, we instead tailor the data distribution to better suit the learner. We introduce a Markov chain Monte Carlo (MCMC) sampling algorithm that progressively transforms off-policy traces to be more on-policy given a reference model for finetuning. Across tasks like scientific skill acquisition, mathematical reasoning, and open-ended expertise, our sampling algorithm enables SFT to rival prevailing posttraining techniques, often generalizing better and forgetting less than strong on-policy baselines. In addition, the resulting finetuned models exhibit strong distributional performance and are capable of learning beyond sharpening the base model distribution. At a higher level, our approach presents sampling as a model-native operator that shapes data for learnability, offering broader utility as a general-purpose primitive throughout the posttraining stack.
Tags
Topics
SFT, post-training, MCMC, Metropolis-Hastings, off-policy data, on-policy learning, generalization, forgetting
Research notes
- Discovery: @aakaran31 (Aayush Karan) 11-part X thread 2026-10-02 (https://x.com/aakaran31/status/2106037829059133903)
- Blog: https://aakaran.github.io/finetuning_with_sampling/
- Code: https://github.com/aakaran/finetuning-with-sampling
- Method: sample from the distribution closest in KL divergence to the base model that outputs trajectories consistent with privileged information constraint C; Metropolis-Hastings with the constraint absorbed into the proposer (generate in-context candidates, refine by base model likelihoods)
- Follow-up to the author's prior work on reasoning with sampling; advised by @sitanch and @du_yilun
- License: CC BY 4.0
- 2026-10-03 @maximelabonne (Maxime Labonne, Head of Post-Training @liquidai) quote-post endorsement (https://x.com/maximelabonne/status/2106135282701779081, 5:32 PM ET, ~23.7K views): 'SFT generalizes worse than RL because the data is off-policy, not because of the SFT objective. Rewriting the trajectories from an expert to look like what the base model writes can match or beat on-policy methods. Bonus: it also forgets less.' Paper figure (GIF): bar charts of Chemistry, MMLU, AMC accuracy (SFT vs OPSD vs Sampling SFT — ours highest, e.g., AMC 37.4, MMLU 69.2) and New-Task-Accuracy vs Prior-Task-Retention scatter (Ours highest on both axes).
- Shared by @askalphaxiv 2026-10-04 11:00 AM ET (https://x.com/askalphaxiv/status/2106761408822366393), 1.7K views, via alphaxiv.org mirror
- Reply from @sakshjn: the MCMC-on-policy redistribution 'explains why RFT on the model's own samples keeps beating distillation from a much bigger teacher' — connects to catalog 1544 (Strategically Diverse Sampling: 4B self-samples beat 235B teacher distillation)
Similar entries
- Post SFT, RL, and On-Policy Distillation Through a Distributional Lens
- Paper Sharpening Tax in Post-Training
- Post Predictive Data Debugging: Reveal and Shape What Your Model Learns, Before You Train
- Tool RSIArena: LIVE RSI Arena (8 agents compete to post-train one 30B base model)
- Paper Rufus-Air: An Open LLM Post-Training Recipe
- Paper Match the Distribution, Not the Compute: Post-Training Multi-Token Prediction Heads