Seedlabs
Source research

Retaining by Doing: The Role of On-Policy Data in Mitigating Forgetting

Howard Chen, Noam Razin, Karthik Narasimhan, Danqi Chen · 2026 · 135 citationsRead the paper

Adapting language models (LMs) to new tasks via post-training carries the risk of degrading existing capabilities -- a phenomenon classically known as catastrophic forgetting. In this paper, toward identifying guidelines for mitigating this phenomenon, we systematically compare the forgetting patterns of two widely adopted post-training methods: supervised fine-tuning (SFT) and reinforcement learning (RL). Our experiments reveal a consistent trend across LM families (Llama, Qwen) and tasks (instruction following, general knowledge, and arithmetic reasoning): RL leads to less forgetting than SFT while achieving comparable or higher target task performance. To investigate the cause for this difference, we consider a simplified setting in which the LM is modeled as a mixture of two distributions, one corresponding to prior knowledge and the other to the target task. We identify that the mode-seeking nature of RL, which stems from its use of on-policy data, enables keeping prior knowledge intact when learning the target task. We then verify this insight by demonstrating that the use on-policy data underlies the robustness of RL to forgetting in practical settings, as opposed to other algorithmic choices such as the KL regularization or advantage estimation. Lastly, as a practical implication, our results highlight the potential of mitigating forgetting using approximately on-policy data, which can be substantially more efficient to obtain than fully on-policy data.

What the full text shows

Shown in the lab
  • RL (GRPO) consistently results in less forgetting of non-target tasks than SFT while achieving comparable or higher target task performance. (Across Llama 3.1/3.2 and Qwen 2.5 models on IFEval, MMLU, and Countdown tasks)
  • The robustness of RL to forgetting is primarily driven by the use of on-policy data rather than KL regularization or advantage estimation. (Compared GRPO vs. REINFORCE and non-regularized GRPO)
  • SFT exhibits a strict tradeoff where higher target performance requires higher learning rates, which in turn increases forgetting. (Tested with learning rates 1e-5 and 1e-4 across 2 and 10 epochs)
  • Approximately on-policy data (e.g., iterative SFT or asynchronous sampling) can substantially reduce forgetting compared to off-policy SFT. (Tested on Qwen 2.5 models)
  • In multi-modal distribution simulations, reverse KL (RL) matches a new target mode while keeping the old mode intact, whereas forward KL (SFT) causes significant overlap loss. — 0.12 area overlap drop for SFT to reach 0.9 target gain (Bi-modal policy simulation)
Setup
Models: Llama-3.2-1B-Inst, Llama-3.1-8B-Inst, Qwen-2.5-1.5B-Inst, Qwen-2.5-7B-Inst. Tasks: IFEval, MMLU, Countdown (target); MATH, WildJailbreak, Wild-GuardTest (non-target).
How
The researchers compared SFT, Self-SFT, and RL (GRPO) across multiple LM families and tasks, measuring 'gain' on target tasks and 'drop' on non-target tasks. They used a simplified mixture-of-Gaussians simulation to analyze KL divergence dynamics and conducted ablation studies on KL regularization and advantage estimators.
Limitations
Compute budget limited model and dataset scaling beyond 8B parameters. · The theoretical explanation relies on a simplified mixture-of-Gaussians setting and requires further formal proof.

Summarized by Gemma 4 from the open-access full text · 27 Nov 2026. Read it