Methods · Circuits in Mechanistic Interpretability

Activation Patching

Survey sections: §7.1 Circuit Discovery Methods

Activation patching tests the causality of a component’s representations by swapping them between inputs that differ in the target property.

Evaluation considerations

The resulting change in model output quantifies the causal effect of intervening on S (Zhang & Nanda, 2024).

Intended applications

This technique has also been used to test the causality of probes (Huang et al., 2024; Arora et al., 2024).
The pipeline can also additionally examine a fraction of explanations by causal techniques, such as activation patching, and track failure rates.

Limitations

Requires many interventions; component-level granularity can be coarse

Related methods

Compare side by side →

Run it

Key papers

Cited in §7.1.

Also discussed in: §1.2 Survey Scope · §8.6.4 Causal Probing via Activation Patching · §7.5.2 Five Evaluation Dimensions · §12.6.2 Layer 2: Consistency and Causality Checks · §14.7 Transferability Beyond Transformers · §13.5 Choosing Appropriate Methods for Different Safety Applications

Other methods in Circuits in Mechanistic Interpretability

Path Patching · ACDC · Circuit Tracing (SAE- or CLT-Based Circuit Discovery) · Causal Scrubbing · Interchange Interventions