↑↓ move Enter open ⌘K find from any page 256 of 256 tabs
Loading the recording…

One prompt, traced

An attribution graph explains one output of a model on one prompt as a network of small, nameable steps. The page traces Gemma 2 2B on a two-hop fact: after "Fact: the capital of the state containing Dallas is" it puts 0.41 on " Austin". Nothing in the prompt says Texas; the model has to go from Dallas to Texas and from Texas to its capital. The second prompt swaps in Oakland, and Gemma answers " Sacramento" with 0.35. Lindsey et al. used the same Dallas prompt to study multi-step reasoning in Claude 3.5 Haiku.

The graph's nodes are the prompt's tokens, transcoder features at each layer and position, error nodes, and the output logits. Its edges are direct effects, each one a number. The Attribution graph panel draws them on the model: positions left to right, the embeddings at the bottom, one row per layer, the logits on top.

The local replacement model

The graph comes from a local replacement model: Gemma with every MLP swapped for its transcoder (the Transcoders tab), the sparsest of Gemma Scope's for each of the 26 layers, switching on between 5 and 95 features per token on average. Two more changes make it exact on this prompt. Each MLP gets an error node at each position, the vector its transcoder misses, so the stream is exactly the real model's. And the attention patterns and every norm's are frozen at their values on this prompt.

With those frozen, the only paths from one node to another are linear: the residual stream and the attention heads' value-output maps. A source node writes a vector into the stream (a feature's activation times its decoder row , an error vector, a token's embedding). A target reads one direction (a feature's encoder column times the frozen norm scale; for a logit, its unembedding row minus the mean row). The edge is

where is the frozen model's Jacobian from the source's layer and position to the target's. circuit-tracer computes every row with one backward pass per batch of targets: about a minute for Dallas and two for Oakland on the Mac's CPU.

From 22 million edges to a picture

The Dallas graph has 9,477 nodes: 9,170 active features, error nodes, 11 tokens and 10 logits, the model's ten most likely next tokens, which hold 74 % of the probability. 22,696,691 of its edges are non-zero. To keep what matters, each node gets an influence on the output. Take absolute edge weights, normalise each target's row to sum to 1 (giving ), and sum the effects along every path, weighted by the logits' probabilities :

Pruning keeps the nodes whose influence adds up to a chosen share of the total, then the edges that carry a share of what flows between them, and drops nodes left without edges. The pruned to buttons pick the node share; the edges keep 80 %. At 50 % the Dallas graph has 237 nodes and 1,863 edges. circuit-tracer's defaults keep 80 % of the node influence and 98 % of the edges: 590,589 edges here, too many to store or draw, so the page stops at 80 % of the edges.

Two scores say how much the graph leaves to error nodes. The replacement score, the share of influence from tokens to logits that passes only through features, is 0.718 for Dallas. The completeness score, the share of each node's inputs that come from features and tokens rather than errors, weighted by influence, is 0.925.

Reading the Dallas graph

Clicking a node shows its strongest inputs and outputs, the WikiText-2 paragraphs where it fires hardest, and what its decoder row pushes through the unembedding. At the token " Dallas" sit features that mean Texas. L14 #2268 and L16 #25 fire on "Texas" in the sample and push " Texas" and " Texan"; L4 #13154 and L20 #15589 do the same. That is the first hop.

At the last token, " is", the most influential feature of the whole graph is L20 #15589 again, the Texas feature, now at the position that predicts. Next to it, L21 #5943 pushes capital cities (Nairobi, London, Dublin, Sydney); L18 #8959 pushes " governor" and " statewide". Texas and "say a capital" meet at the output, the second hop. Many other nodes are less clear: several late features push code tokens or rare words, and 71 error nodes survive at 50 %. In the Oakland graph, L14 #12562 at " Oakland" pushes " California", L19 #9209 pushes " SF", " Bay" and " Sacramento", and L17 #7178 pushes " Capitol" and " Legislative".

Testing it on the real model

A graph is a hypothesis about the model, so the page steers the real Gemma, with no transcoder and nothing frozen. It takes the subject token's features that circuit-tracer's default pruning keeps (232 for Dallas, 249 for Oakland) and sets each to times its activation by adding to its layer's MLP output at that position.

For Dallas, " Austin" falls from 0.41 to 0.29 at and to 0.08 at , where " Dallas" itself becomes the top guess. From on, Austin is below 0.01. The swap row removes the Dallas features and adds Oakland's at their activations: the top answer becomes " Sacramento" with 0.22. The reverse swap on the Oakland prompt gives " Austin" 0.32. Not every number moves as the graph suggests: halving Oakland's subject features raises Sacramento from 0.35 to 0.41. Interventions check the graph's story; they do not prove it complete.

Where it came from

Circuit discovery began with whole components: ACDC (Conmy et al. 2023) pruned the edges between attention heads and MLPs that a task needs. Marks et al. (2024) built sparse feature circuits from SAE features with error terms, using linear approximations of each edge. Dunefsky et al. (2024) showed that transcoders split an edge through an MLP into an input-dependent activation and input-independent weights. Ameisen et al. (2025) combined these into attribution graphs over a replacement model with frozen attention, with cross-layer transcoders; Lindsey et al. (2025) used them to study Claude 3.5 Haiku, Dallas included. Their open circuit-tracer library, used here with Gemma Scope's per-layer transcoders, builds the same graphs for open models.

Papers

  1. Circuit Tracing: Revealing Computational Graphs in Language Models Emmanuel Ameisen et al. · Transformer Circuits Thread 2025 Attribution graphs: the local replacement model with frozen attention and error nodes, influence, pruning, and the replacement and completeness scores.
  2. On the Biology of a Large Language Model Jack Lindsey et al. · Transformer Circuits Thread 2025 Attribution graphs of Claude 3.5 Haiku, including the Dallas → Texas → Austin prompt and the Texas-for-California swap.
  3. Transcoders Find Interpretable LLM Feature Circuits Jacob Dunefsky, Philippe Chlenski, Neel Nanda · NeurIPS 2024 Why transcoders make circuit edges through MLPs input-independent.
  4. Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Models Samuel Marks et al. · arXiv 2024 Circuits of SAE features with error terms, found by linear attribution and checked by ablation.
  5. Towards Automated Circuit Discovery for Mechanistic Interpretability Arthur Conmy et al. · NeurIPS 2023 ACDC: pruning a model's computational graph of heads and MLPs down to the edges a task needs.
  6. Gemma Scope: Open Sparse Autoencoders Everywhere All At Once on Gemma 2 Tom Lieberum et al. · arXiv 2024 The per-layer transcoders the replacement model is built from.

See also