atlas

Research map / Architectures and efficiency / RNNs and normalization

Efficient Automated Circuit Discovery in Transformers using Contextual Decomposition

ICLR 2025 · Architectures and efficiency › RNNs and normalization · approach: Mechanistic circuit interpretability · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces contextual decomposition for transformers (CD-T), an analytic method that decomposes activations into relevant and irrelevant parts to find attention-head circuits in GPT-2 and a toy transformer much faster than ACDC and EAP.

Problem

Automated circuit discovery via activation patching or its approximations is slow, approximate, and needs non-zero gradients, and cannot easily find fine-grained circuits at specific sequence positions.

Approach

Extends contextual decomposition (previously for LSTMs/RNNs/CNNs) to transformer modules including self-attention, giving exact relevant/irrelevant decompositions of node activations; an iterative algorithm ranks source attention heads (optionally per sequence position) by relevance to target nodes and prunes greedily, with no training or hand-crafted examples.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use CD-T instead of ACDC or EAP for circuit discoveryTransformer circuit discovery · IOI, Greater-than, DocstringROC AUC: 97\% averageHelped
Use CD-T instead of ACDCTransformer circuit discovery · IOI, Greater-than, DocstringRuntime: hours to secondsHelped
Use CD-T circuits rather than random circuitsCircuit faithfulness · IOI and Greater-thanFaithfulness relative to random circuits: 80\% more faithful; up to 60\% of the original model sizeHelped
Use CD-T circuits rather than random circuitsCircuit faithfulness · DocstringFaithfulness relative to random circuits: 80\% more faithful; up to 80\% of the original model's sizeHelped
Use CD-T circuits instead of EAP circuitsCircuit discovery · IOI, Greater-than, DocstringNodes needed to reach faithfulness = 1Helped
Use mean-ablation instead of zero-ablation (ablation)CD-T circuits · Greater-than and DocstringFaithfulnessHelped
Use mean-ablation instead of zero-ablation (ablation)CD-T circuits · IOIFaithfulnessNo clear effect
Add three heads to their circuit (ablation)Docstring circuit · DocstringTask-specific metric: 2.884 -> 3.524Helped
Add three heads to their circuit (ablation)Docstring circuit · DocstringCorrect guess rate: 0.54 -> 0.66Helped

Surprising findings

Limitations

Experimental setup

Datasets: IOI (indirect object identification) Greater-than Docstring

Benchmarks: IOI Greater-than Docstring

Metrics: ROC AUC runtime faithfulness hypothesis-test probability of being more faithful than rand

Baselines: ACDC EAP

Builds on: Contextual Decomposition ACDC Edge Attribution Patching Path patching

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy