# Finetuning with Sampling: Make SFT Generalize, Not Forget

*Aayush Karan, Sitan Chen, Yilun Du*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150118) · [OpenReview](https://openreview.net/forum?id=kXgdaUrvBN) · [alphaXiv](https://www.alphaxiv.org/abs/2610.02140) · [Open on the map](../papers.html#p150118)

Category: [LLM Post-Training: RL & Distillation](../pcat/18.md) › [On-Policy Distillation for Reasoning](../pgroup/351.md) · Type: new method · Keywords: supervised finetuning, off-policy data refinement, MCMC sampling, generalization, catastrophic forgetting, post-training

Areas: [RL for LLMs & Agents](../areas/llm-rl.md) › LLM Reasoning Reinforcement Learning › Post-training generalization; [Continual Learning & Adaptation](../areas/continual-adaptation.md) › Non-Stationarity Adaptation › Generalization and Adaptation

## Summary
Finetuning with Sampling uses an MCMC sampling algorithm to turn off-policy expert traces into more on-policy data, enabling SFT to generalize better and forget less.

## Explained to a 5-year-old
We want to teach a big robot new tricks without forgetting old ones. The robot looks at old examples and uses a special trick to make those examples look like they were learned the right way. Then we teach the robot using those improved examples. It learns new things better and keeps the old ones. This helps the robot get smarter without losing what it already knows.

## Explained to a 5-year-old, longer
Big computers called models can do many things, like answering questions or solving math problems. When we try to teach them something new, they sometimes forget how to do the old things. Other ways to teach them use a different method that avoids forgetting but is hard to get good examples from. The paper finds a way to take old examples that were not perfectly matched to the new task and improve them. It uses a special process that makes those old examples look more like the right kind of learning data. After improving the examples, the model is taught using normal teaching methods. This new teaching method helps the model learn new things better. At the same time, it keeps the old skills from disappearing. The researchers tested it on tasks like learning science facts, solving math problems, and remembering information. On these tests, the model performed better than the old ways of teaching. This makes it easier to add new abilities to big models without breaking what they already know. The idea can be used in many different situations, like when updating a phone's voice assistant or a chatbot.

## For a technical reader
The paper addresses the trade-off between supervised finetuning (SFT) and on-policy reinforcement learning in post-training large models. It proposes a Markov chain Monte Carlo sampling technique that transforms off-policy expert traces into more on-policy signals using a reference model. By applying standard SFT on these refined traces, the method achieves better generalization and reduced forgetting compared to traditional on-policy RL approaches. The authors evaluate it on scientific skill acquisition, mathematical reasoning, and fact-learning tasks, showing consistent improvements. This plug-and-play refinement can be integrated into existing pipelines to safely expand model capabilities.

## Problem
Supervised finetuning (SFT) often suffers from poor generalization and catastrophic forgetting when learning new tasks from off-policy expert data, while on-policy reinforcement learning avoids forgetting but lacks reliable signals from expert demonstrations.

## Method
The approach employs a Markov chain Monte Carlo sampling algorithm to refine off-policy expert traces, making them more on-policy with respect to a reference model, and then applies standard supervised finetuning on these transformed traces.

## Results
The approach shows improved generalization and reduced forgetting compared to on-policy methods on the evaluated tasks.

## Contributions
It introduces a principled data-refinement pipeline that converts off-policy expert traces into more on-policy signals and demonstrates that this yields better generalization with less forgetting in post-training.

## Practical relevance
It provides a plug-and-play refinement component that can be integrated into existing post-training workflows to safely add new capabilities to large models.

## Research questions this paper is counted under

- [How can supervised fine-tuning achieve better generalization when using demonstration data?](../q/581.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/150118)
