Circuit Tracing: Revealing Computational Graphs in Language Models
TL;DR. This work trains a cross-layer transcoder (CLT) that stands in for all of a model’s MLPs with sparse, interpretable features. On a single prompt it freezes attention and layer-norm, which makes the feature-to-feature interactions linear. It then draws an attribution graph of which features caused which. The companion paper, On the Biology of a Large Language Model (Lindsey, Gurnee, Ameisen, …, 2025), applies these graphs to Claude 3.5 Haiku.
Key idea
Section titled “Key idea”Each layer’s CLT features read from that layer’s residual stream and write to all later MLP outputs:
Training minimises summed reconstruction MSE plus a sparsity penalty . The local replacement model for one prompt does three things:
- swaps MLPs for the CLT;
- freezes attention patterns and normalization denominators;
- adds error nodes for the leftover residual.
An edge’s weight is then .
Key results
Section titled “Key results”The Biology paper’s case studies include:
- Two-hop recall. “Dallas → Texas, Texas + capital → Austin”, with a parallel shortcut path. Inhibiting the Dallas features lowers the Texas features.
- Planning in poems. Candidate rhyme words such as “rabbit” are activated before the line that ends with them is written.
- Other behaviours. Multilingual circuits, addition, medical diagnoses, hallucination and refusal.
The authors report satisfying insight for about a quarter of the prompts they tried. They list the missing QK story and reconstruction error as the main limits.
Connections
Section titled “Connections”- A Mathematical Framework for Transformer Circuits: QK vs OV, the split these graphs only half-cover.
- Towards Monosemanticity: the SAE features that CLTs extend across layers.
- Gemma Scope: the JumpReLU activation also used here.
- Interpretability in the Wild (IOI): head-level circuits found by hand, before feature-level graphs.
- Chain-of-thought faithfulness: attribution graphs can check whether stated reasoning matches internal computation.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Mechanism
Explain why freezing attention patterns and normalization denominators makes the local replacement model linear between features, and derive the edge weight A(s→t) = a_s · w(s→t). What does this choice leave out of every attribution graph?
What a strong answer covers
- The CLT replaces each MLP output with a sparse sum of decoded features; the remaining nonlinearities are attention softmaxes and layer-norm denominators.
- If those are fixed at their values on the prompt, every path from a source feature's decoder to a target feature's encoder passes through only linear maps, so the effect on the target pre-activation is linear in a_s.
- The edge is the source activation times the virtual weight w(s→t), the sum over all linear paths (residual, attention OV with frozen patterns); error nodes absorb the reconstruction residual so the local model matches the original exactly on that prompt.
- Left out: QK effects, that is, why attention went where it did. Graphs show what information moved (OV) but not what decided the attention pattern.
- Critique
The authors report "satisfying insight" for about a quarter of prompts they tried. List the main reasons an attribution graph can mislead or fail, and say which ones error nodes and perturbation experiments can and cannot address.
What a strong answer covers
- Reconstruction error: the CLT does not perfectly reproduce MLP outputs; error nodes make the local model exact but are themselves uninterpretable, so large error weight means an incomplete explanation.
- Missing QK story: frozen attention hides mechanisms that act by changing attention patterns.
- Pruning and selection: graphs are pruned (about 10× fewer nodes for about 20% less explained behaviour), and features are grouped by hand into supernodes, which adds researcher judgment.
- Off-distribution replacement: the CLT is trained on the real model's activations but run on replacement-model activations. Perturbations (inhibiting or steering features in the real model) test whether the graph's claims hold causally but cannot fix the uncovered parts.
- Research idea
Propose an attribution-graph study of a retrieval-augmented model answering a two-hop question where the bridge entity is only in the retrieved passage (for example, "the capital of the state containing Dallas"). What graph structure would show genuine multi-hop use of the passage, and what perturbation would confirm it?
What a strong answer covers
- Expect a path from passage tokens to bridge-entity features (Texas), then from bridge features plus the "capital" relation to the answer (Austin), alongside a possible direct shortcut edge.
- Compare against the closed-book graph to see whether the passage replaces or supplements parametric recall.
- Perturbation: inhibit the bridge features and check that the answer drops; swap in features for a different state (as in the Biology paper's Texas → California swap) and check the answer changes accordingly.
- Report the error-node fraction and prompts where the graph is uninformative, given the roughly one-in-four success rate.