Does reinforcement learning preserve knowledge better than supervised fine-tuning?
When trained on the same math problems with matched hyperparameters, do RL and SFT leave different traces in a model's parameters and knowledge? This matters for understanding whether training method choice affects out-of-domain capability loss.
"Scalpel vs. Hammer" trains the same OLMo-2-1124-7B-Instruct model on the same NuminaMath/OpenR1-Math-220k questions with matched hyperparameters, comparing GRPO (reinforcement learning with verifiable rewards) against SFT on DeepSeek R1's reasoning traces for those same questions. The paper reports that "RL yields minor in-domain gains on maths and slight degradation on knowledge-intensive benchmarks like MMLU, while both trends are more pronounced in SFT." On the specific math benchmarks, "training the model with GRPO leads to modest performance improvements on MATH-500 and a slight degradation on GSM8k," while "both of these developments are more pronounced after 3 epochs SFT, with slightly larger gains on MATH-500 and larger drops in performance on GSM8k."
The authors ground this in evidence from 20 saved checkpoints per run. First, KL divergence from the base model: during SFT it "increase[s] considerably and early into training before plateauing," while GRPO "exhibits much more gradual growth in the KL divergence with the base model, with a considerably lower plateau" — GRPO leaves the model assigning high probability to largely the same tokens as before, while SFT shifts the output distribution quickly. Second, parameter-level updates: both methods change query and key matrices the most, but "SFT causes much greater updates than GRPO," especially in mid-layer MLPs, "leading [them] to hypothesise that this may have caused the out-of-domain degradation." Since queries and keys set the attention map, the authors suggest GRPO "causes the attention heads to attend to different tokens, but that these still communicate the same thing" — a shift in what gets selected, not in what the model knows.
This gives mechanistic support to Does the choice of RL algorithm actually matter for reasoning?: that note's "selection, not discovery" framing for RL is consistent with the low, slow-growing KL divergence found here, where GRPO barely moves the model's output distribution. It sits beside Does supervised fine-tuning improve reasoning or just answers? but locates SFT's cost differently: that note's InfoGain finding shows SFT damaging the reasoning path within the training domain, while this paper's finding is that SFT's larger cost shows up out-of-domain, on knowledge-intensive benchmarks the model was never trained on.
The authors hedge explicitly: this is one model (already RLVR-trained before the experiment, which they say "introduces a confound"), one domain (math), and they "refrain from making overly strong claims based on our results," noting their hyperparameters may not have been optimal for either algorithm and that DeepSeek's own SFT models show less degradation, which they attribute to "800k heavily curated samples." The excerpt does not establish that the amplify/replace distinction generalizes beyond math-reasoning training or this model family — only that, in one controlled comparison, the two training signals leave measurably different traces in the model's parameters and output distribution.
Inquiring lines that read this note 19
This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.
How do supervised fine-tuning and reinforcement learning compare in preserving reasoning quality?- How much of Fin-R1's gain comes from SFT versus the GRPO stage?
- Does SFT degrade reasoning quality before reinforcement learning corrects it?
- Does outcome-based reward learning share the same plateauing problem as SFT?
- Does SFT's knowledge loss depend on the amount of training data used?
- Why does reinforcement learning generalize without needing balanced method coverage?
- Can matching SFT data source to RL rollout budget eliminate the generalization gap?
- Can SFT escape performance ceilings without relying on RL-style exploration?
- How do RL and SFT differ in which parameters they actually modify?
- Why does SFT induce representation drift while RL preserves general domain structure?
- Does the SFT-versus-RL split hold for reasoning tasks beyond math fine-tuning?
- Can instruction-following be recovered after math-focused SFT if using RL instead?
- How do token-level adjustments differ between RL and SFT on non-math inputs?
- Why does supervised fine-tuning make larger mid-layer parameter updates than reinforcement learning?
- What other interventions beyond layer freezing could prevent SFT knowledge-benchmark degradation?
- Does cold-start SFT capability differ fundamentally from RL strategy learning?
- Why does on-policy sampling reduce forgetting better than off-policy supervised fine-tuning?
Related concepts in this collection 6
This note in its neighbourhood — explore the map, then jump to a related concept in the list below.
Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph
-
Does the choice of RL algorithm actually matter for reasoning?
Expert Iteration, PPO, and RC-RL show similar performance on reasoning tasks. The question is whether algorithm choice drives results or whether something deeper—like the pretrained model itself—sets the real limits.
provides the mechanistic (KL-divergence, parameter-update) evidence for the "RL as selection, not discovery" claim that note argues from behavioral results alone
-
Does supervised fine-tuning improve reasoning or just answers?
Explores whether training models on question-answer pairs actually strengthens their reasoning quality or merely optimizes them toward correct outputs through shortcuts. This matters for deploying AI in domains like medicine where reasoning must be auditable.
a parallel SFT cost, but in-domain reasoning-quality loss rather than this paper's out-of-domain knowledge loss
-
Can freezing mid-layer parameters prevent SFT's out-of-domain degradation?
Researchers tested whether freezing model parameters during supervised fine-tuning could preserve knowledge-intensive benchmark performance. The outcome was mixed—helping on one benchmark while hurting others—leaving the question unresolved and suggesting the underlying mechanism may be more complex.
the same paper's own follow-up test of the mid-layer-MLP hypothesis this note reports
-
Can SFT match or beat RL when data and scale align?
Does the apparent superiority of RL over SFT for reasoning hold up when both methods train on comparable data sources and quantities? This challenges the common assumption that RL inherently generalizes better.
Qualifies: matching SFT's data source and rollout budget to RL's — beyond A's matched setup — closes the gap A attributes to algorithm choice
-
Can filtering hard examples match what reinforcement learning does?
Does explicitly removing difficult training data from supervised fine-tuning reproduce the generalization gains that reinforcement learning achieves implicitly? This matters because it could reveal whether RL's advantage comes from its reward signal or simply from which examples it trains on.
Contradicts: filtering hard SFT samples (DC-SFT) yields higher OOD generalization than both SFT and GRPO, reversing A's SFT-degrades-more finding
-
Why does RL generalize better than SFT to new domains?
Explores whether RL's out-of-distribution advantage over supervised fine-tuning stems from algorithmic differences or from implicit sample filtering. Understanding this mechanism could guide better training choices for robust vision-language models.
Evidence for: B's hard-sample gradient-norm analysis explains A's observed SFT vs GRPO OOD degradation asymmetry
Related papers in this collection 8
Papers most semantically related to this note, ranked by cosine similarity in the embedding space.
- Scalpel vs. Hammer: GRPO Amplifies Existing Capabilities, SFT Replaces Them
- Retaining by Doing: The Role of On-Policy Data in Mitigating Forgetting
- SFT Memorizes, RL Generalizes: A Comparative Study of Foundation Model Post-training
- On-Policy RL Meets Off-Policy Experts: Harmonizing Supervised Fine-Tuning and Reinforcement Learning via Dynamic Weighting
- Rethinking "RL Generalizes, SFT Memorizes": The Role of SFT Data
- Does Math Reasoning Improve General LLM Capabilities? Understanding Transferability of LLM Reasoning
- LSR: Reinforcement Learning with Supervised Reward Outperforms SFT in Instruction Following
- rStar2-Agent: Agentic Reasoning Technical Report
Original note title
grpo amplifies existing capabilities while sft replaces them under matched training conditions