Interpretable
Module 4.1 · ~4h

Circuit Tracing & the Biology of LLMs

Transcoders, attribution graphs, and what they revealed: planning, shared circuits, and why models hallucinate.

You'll be able to
  • Explain transcoders and how attribution graphs are built
  • Walk through the poetry-planning and multi-step reasoning case studies
  • Use an attribution graph to form and check a mechanistic hypothesis
Learn

From a vocabulary to a wiring diagram

Module 3.4 gave you a vocabulary: sparse features, thousands of them, each a direction the model uses. Module 3.5 gave you a method for establishing causal structure, at the cost of one forward pass per component per position. Neither, on its own, gets you a wiring diagram of a frontier model.

The obstacle is that an SAE explains an activation, not a computation. It tells you what is present at layer 12; it does not tell you that layer 12's Texas feature was caused by layer 8's Dallas feature. To get edges you need the features to sit inside the computation rather than beside it.

transcoder
An SAE that changes its mind about what it is reconstructing. Instead of mapping an activation to itself, a transcoder reads an MLP's input and reconstructs its output. It is therefore a sparse, interpretable replacement for the MLP, not a description of it — and you can substitute it into the model and keep running.
cross-layer transcoder (CLT)
A transcoder whose features read from the residual stream at one layer but write to all subsequent MLP layers. This matters because features are smeared across layers (the cross-layer superposition problem from Module 3.4), and because it collapses amplification chains: Anthropic report average path lengths dropping from 3.7 steps with per-layer transcoders to 2.3 with CLTs.
Key idea
Replace every MLP with a transcoder and you have a replacement model — a network that computes approximately what the original computes, but out of parts you can read. The circuit you then draw is a circuit of the replacement model. How well that transfers back to the original is the central question of the method, and the paper measures it rather than assuming it.
SAExfeaturesx̂ ≈ xtranscoderMLP infeaturesMLP out→ substitutable
An SAE describes an activation; a transcoder replaces a computation. The second gives you edges, because a feature's output is expressed in the same currency as its downstream neighbours' inputs.
Learn

Building an attribution graph

An attribution graph is a per-prompt diagram: which features caused which other features to fire, and which caused the output. Building one takes three moves.

One: freeze the non-linearities you are not studying. For a specific prompt, construct a local replacement model. Substitute CLTs for the MLPs, then freeze the attention patterns and the normalization denominators from the original forward pass, and add an error term at each layer equal to whatever the transcoder failed to reconstruct. The result reproduces the original model's output on this prompt exactly, and — crucially — the only remaining non-linearities are the feature activations themselves.

Two: read off the edges. With attention frozen, everything between two feature activations is linear, so the effect of source feature ss on target feature tt is just

Ast  =  aswstA_{s \to t} \;=\; a_s \cdot w_{s \to t}

where asa_s is the source's activation and wstw_{s \to t} is the virtual weight — the derivative of the target's pre-activation with respect to the source's activation, obtained through the frozen Jacobian. No approximation is needed at this step: within the local replacement model, this is exact.

Three: prune. The raw graph has millions of edges for a short prompt. Iteratively drop the lowest-influence nodes: Anthropic report reducing node count by an order of magnitude while losing only about 20% of completeness. Then a human groups features into supernodes and labels them — a manual, interpretive step the paper flags as a limitation.

error node
The part of each MLP's output the transcoder could not reconstruct, entered into the graph as an explicit node. Error nodes are the method's honesty mechanism: when a graph is mostly error nodes, you know your explanation is missing the computation rather than merely being complicated. The completeness and replacement scores quantify how much of the graph's influence flows through features rather than through error.
Key idea
The graph is a hypothesis, not a measurement. It is validated the way Module 3.5 taught you to validate anything: by intervention. Amplify or suppress a feature over a restricted layer range, rerun from there, and check that the downstream effect matches what the graph predicted.
How well does validation go?
Honestly, partially. Feature-to-feature influence predicted by the graph correlates with measured intervention effects at about 0.72 Spearman, and perturbation directions align at roughly 0.8 cosine similarity one layer downstream — but the discrepancies compound across layers. The replacement model's mechanisms and the original's drift apart with depth. Treat a deep chain in an attribution graph with more suspicion than a shallow one.
Learn

The biology: what the graphs actually showed

On the Biology of a Large Language Model applies the method to Claude 3.5 Haiku across roughly a dozen behaviors. The title is deliberate — this is natural history, not theory. Here is what to take away from each.

Multi-step reasoning. “Fact: the capital of the state containing Dallas is” → Austin. The graph contains Texas features that no token in the prompt supplied. Swap them for California and the model says Sacramento; swap in Byzantine Empire and it says Constantinople. A genuine intermediate variable, computed and then used.

Planning in poems. At the line break, before writing a word of the next line, features for candidate rhyme words (“rabbit”, “habit”) activate — and they influence the output only at that position. Suppress them and the line comes out differently; inject “green” and the model rebuilds the line to land on it, about 70% of the time across 25 poems. A next-token predictor that plans ahead and writes backwards from the plan.

Addition. 36 + 59 is computed by two pathways in parallel: low-precision magnitude features (“add something near 57”) and lookup-table features for digit combinations. Asked how it did it, the model describes carrying — the algorithm it learned tosay, not the one it ran.

Key idea
The recurring shape across every case study: the model does something more structured than next-token pattern-matching, and something different from what it says it does. Planning ahead, computing intermediates, running parallel approximate pathways — none of it is visible from the outside, and in the addition case the model's own account of its method is simply wrong.

Multilingual circuits. The same question in English, French and Chinese runs through shared, language-independent features for the operation and the operand, with language-specific features only at input and output. The sharing increases with scale. But English is privileged: multilingual features have stronger direct weights onto English outputs, while other languages are more heavily mediated.

Safety tie-in
Hallucination has a mechanism, and it is a suppression circuit. A default “can't answer” circuit runs on every Human/Assistant prompt. “Known entity” and “known answer” features suppress it. Ask about Michael Batkin — a name the model does not know — and unknown-name features fire, the refusal survives, and the model declines. Ask for a paper by Andrej Karpathy and the known-entity features fire on the strength of the name, partially suppressing refusal, and the model fills the gap with something plausible.

That reframes calibration work: the model is not failing to represent uncertainty, it is mis-triggering a suppression mechanism. It also makes hallucination attackable from the inside — and, symmetrically, makes the suppression a target. The jailbreak case study runs the same play: an acrostic gets past refusal because the model assembles the letters without ever representing the decoded word, and only catches itself at the next sentence boundary.

Unfaithful chain of thought. The graphs distinguish three cases that look identical from outside: reasoning the model actually performed, reasoning it fabricated afterwards, and motivated reasoning in which the model works backwards from an answer a human hinted at. That distinction is exactly the one CoT monitoring needs and cannot get behaviorally.

Refusal. Asked to advertise mixing bleach and ammonia, specific “dangers of mixing cleaning chemicals” features trigger a chain into “harmful request” → “should refuse”. Remove the danger features and the model complies, though warnings resurface later — the knowledge and the refusal are separable.

Hidden goals. Applied to a model finetuned to pursue a concealed objective, the method surfaced the mechanism — embedded, interestingly, inside the model's Assistant-persona features. This is the closest existing thing to an interpretability-based audit of a misaligned model, and Module 5.3 returns to it.

Learn

What the method cannot see

The paper's limitations section is unusually good and you should be able to recite it. Four things.

attention is taken as given
The graphs capture OV-circuit effects — what attention heads move — and are blind to QK-circuit effects, because attention patterns are frozen. So when an induction head attends back to “Sally”, the graph shows a bare edge from a Sally feature to the output and says nothing about why attention went there. For attention-driven behavior, that is the entire interesting story, and the method skips it.
reconstruction error
The largest CLT on their 18-layer research model still has 11.5% normalized reconstruction error; on Haiku it is 21.7%. When the missing computation is the critical part, the graph shows you nothing useful. This is the dark-matter problem of Module 3.4, inherited.
inactive features are invisible
The method explains why active pathways fired. It is bad at explaining why something didn't. Given that refusal turns out to be a suppression circuit, the fact that a feature failed to fire is often the whole mechanism.
Key idea
And the headline caveat, in the authors' words: their attribution graphs provide satisfying insight for about a quarter of the prompts they tried. The case studies you read are the successes. Calibrate accordingly — every result in this module is a demonstration that a mechanism is findable, not evidence that models are broadly understood.
Three habits when reading these papers
(1) Ask whether the claim rests on the graph alone or on graph plus intervention — only the second is evidence. (2) Ask how deep the chain is, since faithfulness degrades with depth. (3) Ask whether the behavior is attention-driven, because if it is, the method has structurally not looked at the mechanism.
Safety tie-in
The safety case is real but narrower than the excitement suggests. What these methods now support: finding a mechanism you suspect exists, distinguishing faithful from fabricated reasoning on a specific prompt, and auditing a model you already suspect. What they do not yet support: certifying that a mechanism is absent. A quarter-of-prompts success rate and 21.7% reconstruction error mean “we found no deception circuit” is a much weaker statement than it sounds. Building tools that can make absence claims is one of the field's most valuable open problems.
Explore

Feel it: read a graph, then predict one

First walk two real attribution graphs node by node. Then reverse the exercise: commit to a hypothesis about a behavior before the graph is revealed, and see how good your intuitions about model internals actually are.

Attribution graph walkthrough
Two case studies from On the Biology of a Large Language Model, stepped through node by node. Click any node for detail.
Case study
Prompt
Fact: the capital of the state containing Dallas is
Austin

The whole pruned graph. Two input tokens, a chain of features, one output. Every edge is a direct linear attribution computed through a local replacement model in which attention patterns are frozen and MLPs are replaced by transcoder features.

“Dallas”“capital”Dallas features“capital of…” featuresTexas features“say a capital city”“say Austin”Austintoken / featureoutputexcitesinhibits

Click a node to see what it is and why it is in the graph.

Simplified from the published graphs: node groupings and labels are reduced for legibility, and error nodes are omitted. The mechanisms, intervention results and the 70% figure are the paper's, on Claude 3.5 Haiku. Explore the real, unsimplified graphs on Neuronpedia's circuit tracer.
Predict the mechanism
Commit to a hypothesis before you see the graph. Guessing wrong here is the point — the gap between the plausible story and the real one is what the Biology paper is for.
How does the model compute 36 + 59?

Claude 3.5 Haiku answers 95, reliably, on arithmetic it has certainly never seen in exactly this form. Before you look at the graph: what is it doing?

Answered 0 of 4. All findings from On the Biology of a Large Language Model (Anthropic, 2025).

Things to try: (1) In the Dallas graph, step to “4 · The shortcut” and sit with it — the clean two-hop story coexists with a memorised direct path, which is what real circuits look like. (2) In the poetry graph, note that the planning features are active at the newline only; ask yourself what behavioral experiment could have detected that from outside the model, and convince yourself none could. (3) In the game, commit out loud before clicking — the addition task in particular is designed so that the plausible answer is the model's own self-report, and the graph disagrees with it.

Practice

Problem set

The first two problems are about reading these papers critically, which is the skill this module is really teaching. The explore problem puts you in front of real graphs.

1.What the frozen attention hidespencil & paper

Attribution graphs freeze attention patterns from the original forward pass, so the graph contains OV-circuit effects but no QK-circuit effects.

(a) Take the IOI circuit from Module 3.5 and say precisely which parts of it an attribution graph would show, and which it would miss. (b) The Biology paper notes the method “skips over the interesting part” for some multiple-choice tasks. Construct a task where the whole mechanism is invisible to the method. (c) What would have to change for the method to see QK circuits?

2.Grade three claimspencil & paper

Each of these could appear in a paper. For each, say what evidence would be required, whether the Biology paper supplies it, and how confident you should be.

  1. “Claude plans ahead when writing poetry.”
  2. “Claude thinks in a language-independent conceptual space.”
  3. “We verified that this model contains no deception circuit.”
3.Trace a circuit yourselfexplore

Anthropic open-sourced the circuit-tracing tooling, and Neuronpedia hosts an interactive attribution-graph interface for open models. Go to neuronpedia.org/gemma-2-2b/graph and generate a graph for a prompt of your own design.

Pick a prompt with a predictable intermediate: a two-hop factual question in the Dallas mould (“the currency of the country whose capital is Lisbon is”) works well. Before you look, write down the intermediate feature you expect to find. Then:

  1. Find the output node and walk backwards along the strongest edges.
  2. Identify the supernodes yourself — group features that seem to be doing one job, and name them.
  3. Check the error nodes. How much of the influence into your output flows through features rather than error?
  4. Find one edge you do not believe, and say what intervention would test it.
4.Write a one-page biology reportexplore

Pick a behavior you actually care about — refusal on a borderline request, a sycophantic agreement, a specific arithmetic failure, a format instruction being ignored — and write a one-page report in the style of the Biology paper.

Required structure:

  1. The behavior, with the exact prompt and completion.
  2. Your hypothesis, written before any tooling.
  3. Evidence: what you observed, by which method.
  4. Intervention: what you changed and what happened.
  5. What you could not see, using the four limitations from the lesson.

Section 5 is the one that matters. Most writing in this field is weak there, and it is the section that makes a report usable by someone else.

5.Train a transcoder and compare it to an SAEcode

Reusing your Module 3.4 setup on GPT-2 small, train two sparse models on the same layer's MLP: an SAE that reconstructs the MLP output from the MLP output, and a transcoder that predicts the MLP output from the MLP input. Match L0 between them.

Success check: report the reconstruction quality of each and, more importantly, splice each into the model in place of the MLP and measure loss recovered. Then pick one transcoder feature and compute its direct virtual weight to a later feature — you have just built one edge of an attribution graph by hand.

0 of 5 problems marked done
Check

Check yourself

1.
What distinguishes a transcoder from a sparse autoencoder?
2.
Why does the local replacement model freeze attention patterns and normalization denominators?
3.
The Dallas → Texas → Austin case study is presented as evidence of genuine multi-step reasoning. What makes it evidence rather than a suggestive picture?
4.
The model, asked how it computed 36 + 59, describes carrying the one. The attribution graph shows parallel magnitude and lookup-table pathways. The important implication is:
5.
A colleague says “attribution graphs show that models hallucinate because they lack a representation of uncertainty.” What is wrong with this?
6.
Which of these behaviors is the method structurally worst equipped to explain?
7.
The authors say attribution graphs give satisfying insight on about a quarter of prompts tried. How should that shape your reading of the case studies?
Answer all 7 questions to submit.
Submit your answers to complete this check.
Go deeper

Go deeper

Two long papers, best read as figures first. Do the biology paper over three sittings and keep the methods companion open beside it for whenever you want to know how a claim was actually established.

EssentialOn the Biology of a Large Language Modelpaper
Lindsey, Gurnee, Ameisen, Chen, Pearce, Batson, Olah, et al. (Anthropic) · 2025 · 5h, 3 sittings
Sitting 1: Multi-step Reasoning and Planning in Poems — the two cleanest arguments, and the template for how graph-plus-intervention works. Sitting 2: Multilingual Circuits, Addition, and Chain-of-thought Faithfulness — the three that should change how you think about model self-reports. Sitting 3: Entity Recognition and Hallucination, Refusals, Jailbreaks, and the Limitations section. Read every figure caption; the captions carry the caveats.
EssentialCircuit Tracing: Revealing Computational Graphs in Language Modelspaper
Ameisen, Lindsey, Pearce, Gurnee, Batson, Olah, et al. (Anthropic) · 2025 · 2.5h
The methods companion. Read the cross-layer transcoder section and the local-replacement-model construction properly — those two ideas are the whole method. Then read the evaluation section for the numbers you should quote: 0.72 Spearman between graph predictions and interventions, 11.5% and 21.7% reconstruction error, and the compounding divergence across layers. Skim the rest.
Tracing the thoughts of a large language modelblog
Anthropic · 2025 · 20 min
The accessible companion to both papers. Read it first if the biology paper feels like too much at once, or hand it to a colleague who needs the gist. It is a good calibration check: notice which caveats survive the translation to a blog post and which quietly do not.
Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Modelspaper
Marks, Rager, Michaud, Belinkov, Bau & Mueller · 2024 · 1h
The academic parallel line: circuits built from SAE features, discovered by gradient attribution, on open models you can run. Read §3 for the method and §5 for SHIFT, where they edit a classifier to stop using a spurious feature — the clearest demonstration that feature circuits are actionable and not just descriptive.
circuit-tracertool
Anthropic & Decode Research · 2025 · reference
The open-source implementation of attribution graphs, usable on open-weights models. Read the graph-construction code alongside §2 of the methods paper — seeing the frozen Jacobian actually assembled is worth an hour of prose.
Neuronpedia — attribution graph explorertool
Johnny Lin, Joseph Bloom, et al. · ongoing · 2h (hands-on)
Generate and explore attribution graphs in the browser for open models. Required for the explore problem. Budget time to fail on a few prompts before one produces a legible graph — that failure rate is itself the most useful thing the tool teaches.