When we teach a Large Language Model (LLM) a new trick, it often forgets its old ones—a phenomenon known as catastrophic forgetting. Interestingly, researchers have noticed that Reinforcement Learning (RL) seems to be "gentler" on a model’s existing knowledge than standard Supervised Fine-Tuning (SFT).
A new paper, Mechanistic origins of catastrophic forgetting: why RL preserves circuits better than SFT?, moves beyond surface-level behavior to look at the internal "wiring" of the model. The authors find that while SFT acts like a ruthless efficiency expert that rewires the model to specialize, RL acts more like a conservative gardener, preserving the model's original computational structures.
TL;DR
Reinforcement Learning (RL) prevents catastrophic forgetting better than Supervised Fine-Tuning (SFT) because it preserves the model's internal "circuits" (subnetworks of attention heads). While SFT aggressively compresses the model to focus on a new task, RL distributes changes more broadly, keeping the original functional architecture intact.
What Problem Does This Paper Address?
The standard explanation for why RL preserves knowledge better is "policy proximity"—the idea that RL updates keep the model's output distribution closer to the original. However, the authors argue that this doesn't tell the whole story. Sometimes a model can look similar on the outside (low KL divergence) but be completely rewired on the inside.
The researchers wanted to understand the mechanistic reason for this difference. They asked: Does RL actually protect the internal computational subgraphs (circuits) that represent the model's prior skills?
Methods
To peek inside the "black box," the team used several sophisticated interpretability techniques:
- Differential Binary Masking (DBM): A method to identify "circuits"—specific groups of attention heads responsible for a particular task.
- Differential Circuit Vulnerability: A new measure introduced in this paper to quantify how much a specific circuit degrades or changes during fine-tuning.
- Dr.GRPO: They used a specific RL algorithm called Group Relative Policy Optimization to train the model without needing a separate, computationally expensive reward model.
- Necessity & Sufficiency Analysis: They tested individual attention heads to see if they were "necessary" (the model fails without them) or "sufficient" (the head can perform the task almost alone).
Datasets
The researchers used Qwen2.5-3B-Instruct as their base model and evaluated it across two categories:
- Adaptation Task (Task A): SciKnowEval, a benchmark for scientific question-answering.
- Retention Tasks (Task B): A broad suite of benchmarks to test if the model "forgot" its general capabilities, including MMLU (general knowledge), HellaSwag (commonsense), TruthfulQA (factuality), IFEval (instruction following), and HumanEval (coding).
Key Insights and Ideas
- SFT is a "Compressor": SFT tends to collapse the model’s behavior into a small set of "critical specialist" heads. It overwrites the original circuits to make room for the new task, leading to high forgetting.
- RL is a "Distributed Adaptor": RL spreads the learning across many heads. It preserves a much larger fraction of the original "base circuit," allowing the model to maintain old skills while learning new ones.
- The "Circuit vs. KL" Paradox: Surprisingly, RL preserved internal circuits better even when its output (measured by KL divergence) was further from the base model than SFT’s. This suggests that internal circuit preservation is a better predictor of forgetting than external behavior.
- Non-Monotonic Recovery: In a fascinating twist, the researchers found that during RL training, the model initially loses some of its base circuit but then "recovers" it as training continues. In SFT, the degradation is a one-way street.
Key Results
- Circuit Retention: After two epochs of training, the RL model retained 72.5% of its original base circuit, while the SFT model dropped to 59.0%—a 13.5 percentage point gap.
- Head Overlap: The RL model shared 200 attention heads with the original base circuit, whereas the SFT model only shared 153.
- Functional Influence: Using a metric called Differential Causal Mediation (DCM), they found that the components RL retained were significantly more "causally influential" (i.e., they actually did more work) than those retained by SFT.
Limitations and Future Work
The authors are transparent about the scope of their study:
- Single Model: The study focused exclusively on Qwen2.5-3B-Instruct. Results might vary with different architectures (like Llama or Mistral) or at much larger scales.
- Attention-Centric: The analysis focused on attention heads, largely ignoring the role of MLP layers and the "residual stream" in the model.
- Narrow Task: They only looked at adaptation to a Science QA task.
- Future Goal: The ultimate goal is to use these insights to create "circuit-aware" regularization—training methods that provide the retention benefits of RL but at the much lower computational cost of SFT.
Summary updated