Mechanistic origins of catastrophic forgetting: why RL preserves circuits better than SFT?

Jeanmely Rojas Nunez, Viraj Sawant, Nathan Allen, Nomgondalai Amgalanbaatar, Yannis Zongo, Vasu Sharma, Maheep Chaudhary

TL;DR

This paper uncovers the internal mechanistic reasons why Reinforcement Learning (RL) mitigates catastrophic forgetting better than Supervised Fine-Tuning (SFT). By tracking attention-head circuits, the authors reveal that SFT acts as a "compressor" that aggressively disrupts existing circuits to create narrow specialist heads, whereas RL acts as a "distributed adaptor" that spreads updates uniformly and preserves the model's original computational structure.

What Problem Does This Paper Address?

When large language models (LLMs) are fine-tuned on a new downstream task, they frequently suffer from catastrophic forgetting—the degradation of previously acquired capabilities like coding, commonsense reasoning, or factuality.

Recent behavioral studies have shown that RL post-training retains prior skills better than standard SFT. This has traditionally been explained by "policy proximity," assuming that RL updates simply keep the model's output distribution closer to the base model (often measured via KL divergence). However, this surface-level explanation doesn't always hold true. This paper looks under the hood to ask a mechanistic question: Does RL's retention advantage stem from the preservation of internal computational subgraphs (circuits), even when output-space metrics fail to predict forgetting?

Methods

The authors introduce a framework called differential circuit vulnerability to measure how internal computational subgraphs degrade under different training objectives. Their methodology follows a three-phase pipeline:

  1. Two-Stage Adaptation: They take a pretrained model (Qwen2.5-3B-Instruct) and adapt it to a downstream scientific QA task using either standard SFT or an RL variant called Dr.GRPO (Group Relative Policy Optimization adapted for domain-specific correctness without an explicit KL penalty).
  2. Circuit Identification: They apply Differential Binary Masking (DBM) at the attention-head level to isolate the specific sparse circuits responsible for performing the tasks.
  3. Cross-Model Comparison: They perform causal interventions (necessity and sufficiency ablations) to evaluate how much of the original base circuit remains functional after SFT versus RL training.

Datasets

  • Adaptation Task (Task A): SciKnowEval, a benchmark for multi-level scientific knowledge and question-answering.
  • Retention Tasks (Task B): A diverse suite of standard benchmarks evaluating core capabilities:
  • MMLU, HellaSwag, WinoGrande (Reasoning and Commonsense)
  • TruthfulQA (Factuality)
  • IFEval (Instruction Following)
  • HumanEval (Coding)

Key Insights and Ideas

  • SFT the "Compressor" vs. RL the "Distributed Adaptor": SFT forces the model to rely on a tight cluster of newly formed "critical specialist" heads, discarding much of the broader base circuit. Conversely, RL distributes task adaptation evenly across many components, keeping the underlying base circuit intact.
  • The KL Divergence Illusion: Output-space metrics can be deceptive. The authors found that the RL model actually exhibited a larger output-space KL divergence from the base model than SFT did, yet it preserved the internal circuits and prior capabilities significantly better. Surface behavior does not reliably map to internal structural changes.
  • Circuit Recovery in RL: While SFT's circuit retention degrades monotonically across training epochs, RL's circuit retention actually recovers and increases between Epoch 1 and Epoch 2. This suggests that continued RL training can actively consolidate and restore previously disrupted internal structures.
Figure 1. Circuit retention trajectories during high-NTS train- ing. Starting from 100% base-circuit retention, SFT (orange) and RL (blue) diverge over two training epochs. SFT drops to 63.5% after Epoch 1 and further to 59.0% by Epoch 2. RL drops to 69.8% after Epoch 1 and increases to 72.5% by Epoch 2, a 13.5 percentage-point difference at Epoch 2. Footer values report per- epoch circuit faithfulness, both ≈1.0, and Differential Causal Mediation (DCM). RL yields higher DCM at both epochs: 15.8 vs. 10.4 at Epoch 1 and 10.6 vs. 6.3 at Epoch 2, indicating that the retained circuit components exert greater causal influence on model outputs under RL than under SFT.

Key Results

  • Higher Circuit Retention: At peak performance on the new task, RL maintained 72.5% of the base circuit heads, whereas SFT dropped to 59.0%—a substantial 13.5 percentage-point difference.
  • Structural Overlap: The RL model preserved roughly 296 total heads (68% overlap with the base model), closely matching the base model's circuit size of 297. SFT collapsed the circuit down to 265 heads (52% overlap).
  • Head Role Reorganization: Causal ablation tests showed that SFT creates a distinct, highly sensitive cluster of heads with high necessity and sufficiency scores. RL maintains a flatter, more distributed importance landscape that closely mirrors the original base model.
Figure 3. Head Role Distribution Under Base, SFT, and RL Training. SFT produces a cluster of heads with high necessity and high sufficiency scores, corresponding to the upper-right re- gion, relative to the base model. RL yields a distribution that more closely overlaps with the base model, with fewer heads concen- trated in the high-necessity, high-sufficiency region.

Limitations and Future Work

  • Model and Task Scope: The study evaluates a single model architecture (Qwen2.5-3B-Instruct) and focuses on a narrow scientific QA adaptation task. The generalizability of these trade-offs across other architectures (e.g., Llama, Mistral) and tasks remains to be validated.
  • Granularity of Circuit Analysis: The mechanistic analysis is constrained to the attention-head level. It leaves out the influence of MLP layers, residual-stream features, and fine-grained neuron-level dynamics, which are essential for a complete mechanistic picture of post-training adaptation.

Summary updated

BibTeX
@inproceedings{nunez2026mechanistic,
  author = {Jeanmely Rojas Nunez and Viraj Sawant and Nathan Allen and Nomgondalai Amgalanbaatar and Yannis Zongo and Vasu Sharma and Maheep Chaudhary},
  title = {{Mechanistic origins of catastrophic forgetting: why RL preserves circuits better than SFT?}},
  booktitle = {CATS @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=d10gWUgUJF},
}
Figure