Attribution graph

An attribution graph is a diagram of the internal steps a language model takes to produce a particular output, showing which interpretable features influenced which others on the way from prompt to answer.

An attribution graph is a map of how a model reached one specific answer. Its nodes are the words of the prompt, the internal features that switched on, and the candidate outputs. Its edges show how strongly each node pushed on the next. Reading it from left to right shows, in part, the chain of intermediate concepts the model used.

Anthropic introduced the method on March 27, 2025 in Circuit Tracing: Revealing Computational Graphs in Language Models. The trick is to swap the model's hard-to-read MLP layers for a more interpretable stand-in called a cross-layer transcoder, which expresses the computation in terms of sparse features that each tend to mean something. For a given prompt, the method freezes the model's attention patterns and adds error terms so the stand-in reproduces the original's output exactly, then traces the linear effects between features. The graph is pruned to the parts that matter most.

A companion paper applied the method to Claude 3.5 Haiku. Asked for the capital of the state containing Dallas, the model activated a representation of Texas and then used it to reach Austin; swapping Texas for California changed the answer to Sacramento. When writing rhyming verse, the model chose the rhyming word before writing the line that ended in it. Asked to add 36 and 59, it ran parallel paths, one estimating the rough size of the answer and one working out the last digit, yet when asked how it had done the sum it described the carrying method taught in school.

The authors are clear about the limits. Each graph explains only part of the computation, with unexplained remainders shown as error nodes. Because attention patterns are frozen, the method does not show why the model attended where it did. Understanding a graph for a prompt of a few dozen words takes a researcher a few hours. On May 29, 2025 Anthropic released an open-source circuit-tracer library and an interactive viewer hosted on Neuronpedia, so researchers can build graphs for open-weight models such as Gemma 2 2B and Llama 3.2 1B.

The practical significance is evidence. An attribution graph can show when a model's stated reasoning does not match what it actually computed, which matters for anyone relying on a model's explanation of itself.

Common questions

What does an attribution graph show?

It shows the intermediate features a model activated while producing one particular output, and how strongly each influenced the others. Researchers use it to form hypotheses about the model's internal steps, then test them by switching features on or off and watching how the output changes.

What is circuit tracing?

Circuit tracing is Anthropic's name for its method of building attribution graphs, published in March 2025. It replaces parts of a model with an interpretable stand-in called a cross-layer transcoder and traces how features influence each other for a given prompt. Anthropic released an open-source version in May 2025.

Can I make attribution graphs myself?

Yes, for supported open-weight models. Anthropic's open-source circuit-tracer library and the interactive viewer on Neuronpedia let researchers generate, annotate and share graphs and test them by changing feature values. Gemma 2 2B and Llama 3.2 1B were among the models used in the release.

Do attribution graphs fully explain how a model works?

No. Each graph covers only part of the computation for one prompt, and leaves some of it unexplained. It also does not explain how the model decides where to direct its attention. The graphs are best read as partial, testable maps rather than complete explanations.

Finding more

Search for "attribution graphs", "circuit tracing", "cross-layer transcoder" or "biology of a large language model" for the methods and findings. Anthropic's papers on transformer-circuits.pub, the open-source circuit-tracer code and follow-up work from academic interpretability groups are the most reliable sources. Treat striking examples as findings about specific prompts and models, not general proof of how all models think.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.