TL;DR
RESCUE is a new framework that identifies and surgically repairs sparse "error circuits"—the specific internal components responsible for recurring model failures. By combining reinforcement learning with targeted fine-tuning, it can fix significant reasoning errors (e.g., boosting accuracy from 6% to 75%) while preserving 99.4% of the model's general capabilities.
What Problem Does This Paper Address?
Large Language Models (LLMs) often fail on seemingly simple tasks, like elementary arithmetic or specific medical questions, despite their massive scale. Traditional fixes usually involve more data or broad fine-tuning, which can be a "sledgehammer" approach that risks catastrophic forgetting—improving one skill while breaking others.
Mechanistic interpretability research has shown that model abilities are often localized in sparse "circuits." The authors of RESCUE ask: Can we find and fix "error circuits"? The challenge lies in the fact that reasoning errors often happen during long-form generation, where a small early mistake cascades. Standard Supervised Fine-Tuning (SFT) often fails to localize these generation-time errors because it only looks at static, teacher-provided references rather than the model's own "free-running" behavior.
Methods
RESCUE (Reasoning-Error Sparse-Circuit Uncovering and Editing) operates in three main stages, as illustrated in the framework overview:
- Supervised Mask Search: The model is given "clean" examples (where it succeeds) and "error-correction" examples (where its mistakes were revised by a teacher LLM). It optimizes a binary mask over MLP rows to find a candidate circuit that, when suppressed, minimizes the likelihood of the error and maximizes the likelihood of the correction.
- Outcome-guided Mask Refinement: To capture errors that only emerge during generation, RESCUE uses Reinforcement Learning (RL). It samples multiple rollouts from the masked model and uses a group-relative policy gradient to refine the mask, rewarding components that consistently lead to correct final answers.
- Circuit Pruning & Restricted Tuning: The refined mask is pruned to ensure extreme sparsity. Finally, only the weights corresponding to this tiny fraction of the model (typically <1.5% of MLP rows) are fine-tuned using the corrected reasoning traces.
Datasets
The authors evaluated RESCUE across two primary domains:
- Mathematical Reasoning: Using GSM8K and MATH-500. They constructed five pattern-specific repair sets (e.g., "Dynamic State Tracking," "Scale Conversion") to test if specific logic errors could be isolated.
- Medical QA: Using MedMCQA to demonstrate cross-domain applicability.
- General Capabilities: To measure "forgetting," they used a suite of eight benchmarks including ARC-Challenge, HellaSwag, WinoGrande, PIQA, TruthfulQA, and subsets of MMLU.
Key Insights and Ideas
- Errors are remarkably sparse: The paper shows that massive performance gaps can be closed by modifying as little as 1.4% of the model's MLP rows. This suggests that LLM failures are often "bugs" in specific sub-routines rather than a lack of overall capacity.
- RL is the "secret sauce" for localization: Static SFT targets are insufficient for finding error circuits. By letting the model "roll out" its own reasoning and rewarding the final outcome, RESCUE identifies the specific internal units that cause the model to drift off-track during generation.
- Causal Transferability: Circuits localized using one phrasing of a problem still work when the problem is rephrased. This indicates that RESCUE is capturing the underlying reasoning logic rather than just memorizing surface-level text templates.
- Sequential Reliability: The authors found they could repair multiple error patterns one after another. As shown in their sequential repair analysis, new repairs rarely interfered with previous ones, allowing for incremental model improvement.
Key Results
RESCUE consistently outperformed both vanilla fine-tuning (LoRA) and supervised-only baselines:
- Accuracy Boosts: On Qwen3-8B, GSM8K accuracy rose from 80% to 91%. On Llama-3.1-8B-Instruct, it improved from 73% to 77%, while a standard LoRA approach actually caused performance to tank to 50% on the same data.
- Surgical Precision: In the medical domain, repairing a tiny 1.44% circuit improved repair-set accuracy from 0% to 81%.
- Capability Preservation: Across all experiments, RESCUE retained an average of 99.4% of the base model's performance on non-target benchmarks.
Limitations and Future Work
- Granularity: The current work focuses exclusively on MLP rows. The authors acknowledge that attention heads and other components likely play a role in error circuits and could be included in future iterations.
- Teacher Dependency: The method relies on an external "teacher" LLM (like Gemini 3.1 Pro) to provide the initial minimal corrections for the error-correction set.
- Computational Cost: The RL refinement stage requires multiple rollouts per example, which is more computationally intensive than simple gradient descent on a fixed dataset.
Future research could explore automating the correction process further or applying these "surgical" updates to safety alignment, potentially removing harmful behaviors without degrading the model's helpfulness.
Summary updated