[Paper Review] Circuit Breaking: Removing Model Behaviors with Targeted Ablation
This paper proposes targeted edge ablation—a method to remove undesirable behaviors in language models by identifying and ablating a small number of critical causal pathways in the model's computation graph. In GPT-2, ablation of just 12 edges reduced toxic generation by 28% on average and 40% on the most toxic prompts, with minimal performance degradation on other inputs.
Language models often exhibit behaviors that improve performance on a pre-training objective but harm performance on downstream tasks. We propose a novel approach to removing undesirable behaviors by ablating a small number of causal pathways between model components, with the intention of disabling the computational circuit responsible for the bad behavior. Given a small dataset of inputs where the model behaves poorly, we learn to ablate a small number of important causal pathways. In the setting of reducing GPT-2 toxic language generation, we find ablating just 12 of the 11.6K causal edges mitigates toxic generation with minimal degradation of performance on other inputs.
Motivation & Objective
- To address the challenge of removing harmful behaviors in language models that persist despite fine-tuning.
- To develop a method that specifically disables undesirable behaviors without degrading performance on unrelated tasks.
- To identify minimal, causal pathways responsible for bad behaviors using computational graph ablation.
- To achieve high specificity in behavior removal by preserving performance on disjoint, unrelated behaviors.
- To explore a post-training editing approach that avoids full fine-tuning or weight modification.
Proposed method
- Rewrite the model as a directed acyclic graph (DAG) at a chosen granularity, representing computation as nodes and edges as dependencies.
- Learn a binary mask over edges using a differentiable objective that penalizes ablations while increasing loss on bad-behavior inputs.
- Apply zero ablation or mean ablation to disable causal influence along selected edges during inference.
- Optimize the ablation mask using a loss function that balances increased loss on bad-behavior inputs and preserved performance on training data.
- Use early stopping and regularization to prevent overfitting to the small bad-behavior dataset.
- Apply ablation at inference time to disable specific pathways without modifying model weights.

Experimental results
Research questions
- RQ1Can a small number of targeted edge ablations effectively mitigate a specific undesirable behavior in a language model?
- RQ2How does targeted edge ablation compare to fine-tuning and task arithmetic in terms of efficacy and specificity?
- RQ3Can ablation of causal pathways break bad behaviors without degrading performance on unrelated, disjoint tasks?
- RQ4What is the trade-off between ablation sparsity and performance degradation on non-target behaviors?
- RQ5Does edge ablation outperform weight-based editing or activation-projection methods in behavior removal?
Key findings
- Ablating just 12 edges in GPT-2 reduced the average toxicity score on toxic prompts from 0.458 to 0.328, a 28% relative reduction.
- For the most toxic-inducing prompts, the toxicity score dropped from 0.944 to 0.567, a 39.9% relative reduction.
- The method outperformed task arithmetic on all efficacy and specificity metrics, including lower incoherence after toxic prompts.
- Mean ablation with 84 edges achieved similar mitigation of toxic generation while preserving performance on other inputs.
- The approach caused significantly less degradation on unrelated behaviors than joint fine-tuning, demonstrating high specificity.
- The method successfully identified minimal causal cuts through circuits responsible for toxic generation, confirming its mechanism-based approach.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.