arXiv(opens in a new tab)cs.LGOct 2026Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2610.02140

Finetuning with Sampling: SFT Learns Better Than You Think

Aayush Karan, Sitan Chen, Yilun Du

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

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.

1 Introduction

Posttraining has brought about revolutionary advances in the capabilities of frontier large language models (LLMs) [Guo et al., 2025, Hu et al., 2025], giving sizeable performance gains across domains like math, science, and coding [Hendrycks et al., 2021, Li et al., 2022, Rein et al., 2024].

Still, a key open question remains: how can we introduce fundamentally new capabilities during posttraining without giving up existing ones? A large body of recent literature has been dedicated to understanding the extent to which existing learning frameworks – i.e., supervised finetuning (SFT) and reinforcement learning (RL) – can achieve this end. Overwhelming evidence [Chen et al., 2025, Chu et al., 2025, Shenfeld et al., 2025] points towards RL as the paradigm of choice, citing superior generalization on unseen domains that appears to leave prior abilities intact. Meanwhile, SFT suffers from weak generalization and catastrophic forgetting [Kirkpatrick et al., 2017, Luo et al., 2023]: a phenomenon where finetuned models exhibit significant deterioration in existing capabilities.

Chen et al. [2025], Shenfeld et al. [2025] attribute this performance gap to the on-policy nature of RL: the model's own samples dictate learning updates, constraining finetuning towards distributions that do not stray far from the original starting point. SFT on the other hand is off-policy, leaving finetuning more susceptible to drastic updates and shifts in behavior [Xiong et al., 2025].

At the same time, learning strictly on-policy is also a limitation, as it relies on the model's own ability to find successful trajectories through repeated sampling. If the model cannot generate a Preprint. Under review.

Figure

Figure

Ours (Sampling SFT)

Figure 1: Composed with sampling, SFT can generalize better and forget less than on-policy learning. Left: we compare SFT composed with our sampling algorithm for off-policy data against SFT on the original dataset and an on-policy learning algorithm that integrates off-policy data into self-distillation (OPSD) [Shenfeld et al., 2026]. We illustrate this on the task of scientific reasoning for chemistry problems and plot performance on prior capabilities introduced during pretraining (MMLU and AMC). Right: we compare the three along two axes: new task accuracy (chemistry) and prior task retention, which measures the percent of base model performance the finetuned models are able to maintain. SFT composed with sampling performs the best on both axes.

correct rollout on a training sample, there is no collective variance in reward, resulting in no learning signal. Qu et al. [2026] observes this deficiency in practice, identifying a sizeable regime of hard training samples that are effectively discarded during RL as they are simply too difficult to yield any trainability.

This limitation is not ideal for the purposes of introducing new capabilities, where the model is unlikely to already be competent enough to produce a successful trajectory. Here SFT has an advantage, as it leverages trajectories constructed from off-policy privileged information that provide rich supervision signal without necessitating an explicit reward.

In this work, rather than modifying the learning algorithm to accommodate off-policy data, we ask if we can instead shape the data distribution to accommodate learning. More precisely, can we algorithmically sample on-policy trajectories that remain faithful to privileged off-policy information? To this end, we propose a sampling algorithm that progressively transforms a dataset of off-policy expert traces to be distributionally closer to a given base model distribution.

Remarkably, this sampling step enables SFT to rival prevailing posttraining techniques, often generalizing better and forgetting less than strong on-policy learning algorithms.

Our contributions can be summarized as follows:

• We introduce a framework that formalizes the task of transforming off-policy data into on-policy data for finetuning. Namely, given a base model and a dataset of expert trajectories, we specify a target data generation policy that preserves the information content of the original dataset while maintaining maximal proximity to the base model distribution.

• To generate boosted samples from this policy, we introduce projection sampling, an approximate sampling algorithm using Markov chain Monte Carlo (MCMC) techniques that iteratively refine expert trajectories according to their likelihoods with respect to the base model.

• We empirically demonstrate the effectiveness of our sampling procedure for SFT over a range of tasks, including scientific skill acquisition, mathematical reasoning, and open-ended expertise. Our results show that SFT with sampling can outperform on-policy counterparts like RL and self-distillation on new task generalization as well as prior capability retention.

Our results collectively illustrate that composing sampling with finetuning is a powerful paradigm that can enable a learning algorithm as standard as SFT to perform far beyond conventional expectations.