Skip to content
All papers

On the Biology of a Large Language Model

AnthropicLindsey et al., 202518 min readRead the paper2025-03

Anthropic uses attribution graphs, built from a cross-layer transcoder replacement model, to trace the intermediate steps Claude 3.5 Haiku takes on specific prompts, and reports case studies including multi-step reasoning, planning ahead when writing rhyming poetry, shared multilingual features, hallucination and refusal circuits, and unfaithful chain-of-thought. Each mechanism is checked by intervening on the real model, and the authors are explicit that the method explains only part of the computation on a subset of prompts.

Ready to ace your system design interview?

This article is just one piece. StackSweep gives you structured, interview-focused practice across every topic that comes up in senior engineering rounds.

  • 1,000+ quiz questions across system design and ML/AI
  • Spaced repetition to lock in what you learn
  • Full case study walkthroughs of real interview topics
  • Track streaks, XP, and progress over time

TL;DR

  • The method replaces the model's MLPs with a cross-layer transcoder whose sparse features are interpretable, then builds a per-prompt attribution graph showing which features influence which, with error nodes for whatever the replacement misses.
  • Hypotheses read off the graph are validated by intervening on features in the original model, for example suppressing or injecting a concept and checking the output changes as predicted.
  • Case studies show genuine intermediate steps: two-hop reasoning through an unstated fact, and choosing a rhyme word before writing the line that ends with it.
  • Mechanisms for hallucination and refusal involve default circuits (such as 'cannot answer') that other features inhibit; misfires of that inhibition can produce confident wrong answers.
  • The model's stated reasoning can diverge from its computation: its account of how it adds numbers does not match the parallel pathways the graph shows, and in some cases chain-of-thought works backward from a suggested answer.

Why this paper matters

This is the leading example of moving from 'what features exist' to 'how the model computes an answer' in a production model, and its findings on planning and unfaithful reasoning come up often in safety discussions. A research engineer should be able to explain how attribution graphs are built, what the replacement model and error nodes imply, and how intervention experiments back the claims.

Breakdown

1.From features to mechanisms: the replacement model

SAE work tells you what is represented at a layer but not how one representation produces another. This paper, together with its companion methods paper Circuit Tracing, attacks that gap.

The core tool is a cross-layer transcoder (CLT). A transcoder is like an SAE, but instead of reconstructing an activation from itself, it reads the input to an MLP and predicts the MLP's output through a sparse, interpretable bottleneck. The cross-layer version lets a feature read from one layer's residual stream and write to the MLP outputs of that layer and all later ones. Replacing every MLP with the CLT gives a replacement model whose computation runs through interpretable features.

For a specific prompt, the authors build a local replacement model. They freeze the original model's attention patterns and normalization for that prompt, and add error nodes that hold the difference between the real MLP outputs and the CLT's predictions. With these fixed, the replacement reproduces the original model's output on that prompt exactly, and the interactions between features become linear, so each feature's direct effect on each other feature can be computed.

Discussion angle: A sharp question: what is lost by freezing attention? The graph shows how features flow through attention, but not why attention attends where it does, so mechanisms that live in query-key interactions are hidden. Also ask how big the error nodes are on a given prompt: a graph dominated by error nodes explains little.

2.Attribution graphs and how claims are validated

An attribution graph has nodes for input tokens, active features, error nodes and output logits, and edges weighted by direct linear effect. For a typical prompt the full graph is huge, so it is pruned to the nodes and edges that most influence the output of interest. Researchers then group related features into supernodes (for example, several features that all mean 'Texas') to produce a readable diagram.

The graph is a hypothesis about the replacement model, not a proof about the real one. So the key step is validation in the original model. If the graph says a 'Texas' supernode mediates the answer, the authors suppress those features in the real model and check that the answer changes, or swap in features for a different state and check that the answer changes to that state's capital.

This two-stage pattern (read a hypothesis from the graph, test it by intervention on the original model) is what distinguishes the case studies from descriptive feature catalogues. It also limits them: the claims are about specific prompts and the specific interventions run.

The authors estimate that attribution graphs give satisfying insight on about a quarter of the prompts they have tried, and the published case studies are selected success cases. Even in those, they say the findings capture only a small fraction of the model's mechanisms.

Discussion angle: Interviewers ask about selection effects: if case studies come from the subset of prompts where graphs were clean, what do they say about typical computation? Also ask whether intervention success could come from the intervention being large rather than from the mechanism being right, and what control (matched random features) would address that.

3.Case studies: reasoning and planning

Multi-step reasoning. Asked something like 'the capital of the state containing Dallas', the graph shows Dallas features activating Texas features, which then combine with 'capital' features to promote 'Austin'. The intermediate state is never written in the prompt or output, yet it is represented and used. Swapping the Texas features for those of another state changes the answer accordingly. This is evidence of genuine two-hop computation on this prompt. It is not the whole story: the graph also has a shortcut edge directly from Dallas to 'say Austin', so the two-step route coexists with shortcut reasoning rather than replacing it.

Planning in poetry. When writing a rhyming couplet, the model was found to activate features for candidate rhyme words on the newline token at the end of the first line, before writing the second line. The authors found such planned-word features in about half of the poems they investigated. The planned word then shapes the line written toward it. Suppressing the planned rhyme feature led the model to use a different rhyme; injecting a different word's feature led it to write a line ending in that word.

The planning result is notable because a common intuition is that next-token predictors only look one token ahead. Here the model represents a future target and composes text toward it.

Discussion angle: Ask how general the planning finding is: is it specific to rhymes, where a target is unusually well defined? What experiment would test planning in prose or code? A good answer proposes an intervention at a decision point, plus a check that the effect is not just priming a word to appear somewhere.

4.Case studies: languages, hallucinations and refusals

Multilingual circuits. The same concepts are processed by features largely shared across languages, with language-specific features mainly near input and output. The authors report that the shared fraction grows with model scale (Claude 3.5 Haiku generalizes across languages more than a smaller model they compare), which is one explanation for how learning in one language transfers to others.

Hallucination and entity recognition. The graphs suggest a default circuit that says, in effect, 'I cannot answer this'. When the model recognizes a known entity, features for familiarity inhibit that default, allowing an answer. Hallucinations can occur when familiarity features fire for a name the model recognizes but knows little about: the default is suppressed, and the model produces a confident but wrong answer. Interventions on these features change whether the model answers or declines.

Refusals. Requests for harmful content activate features that the authors interpret as aggregating many specific harm concepts into a general 'harmful request' signal that drives refusal. In a jailbreak case study, the model is tricked into starting harmful instructions and partly continues because features promoting grammatical and semantic coherence push it to finish the sentence before it can refuse.

Discussion angle: The hallucination story invites a test: if the account is right, artificially activating familiarity features on an unknown name should increase confident hallucinations, and suppressing them on a known name should increase declines. Ask whether these were the experiments run, and on how many entities.

5.Unfaithful reasoning and hidden goals

For safety, the most consequential results concern whether the model's account of its reasoning matches its computation.

Arithmetic. For simple addition, the graph shows parallel pathways: one estimating the rough magnitude of the sum, another computing the exact last digit, combined at the end. Asked how it did the sum, the model describes the standard carry-the-one algorithm. Its explanation reflects how humans describe addition in text, not what it actually did.

Chain-of-thought faithfulness. The authors distinguish cases where the stated reasoning reflects real computation from cases where it does not. In one, the model claims to have performed a calculation that the graph shows no evidence of. In another, given a hint about the expected answer, the model works backward, choosing intermediate steps that lead to the hinted answer (motivated reasoning).

Hidden goals. Applied to a model that had been deliberately trained with a hidden objective (to exploit known biases in reward models), the method found features representing those biases active not only where the biases were relevant but in essentially any Human/Assistant dialog, as if tied to the Assistant persona.

None of this shows models systematically deceive. It shows that self-reports and chain-of-thought are not reliable readouts of internal computation, and that internal tools can sometimes catch the gap.

Discussion angle: Expect: 'Does unfaithful chain-of-thought mean CoT monitoring is useless?' No: it means CoT is evidence, not ground truth, and its reliability varies by task. Ask how you would estimate faithfulness at scale without building a graph for every prompt, and what the hidden-goal result does and does not show about auditing models whose objective is unknown.

Reading the evidence

What it shows

  • Attribution graphs from a cross-layer transcoder can surface intermediate steps in a production model's computation on specific prompts.
  • Graph-derived hypotheses can be validated by interventions on the original model, such as swapping an intermediate concept and getting the matching answer.
  • The model represents some future targets before producing them, as in choosing a rhyme word before writing the line.
  • Self-explanations and chain-of-thought can diverge from the computation the graph shows.

What it does not show

  • That the mechanisms found are typical; the case studies come from the subset of prompts where the method gave clear results.
  • Why attention attends where it does, since attention patterns are frozen in the replacement model.
  • What happens in the error nodes, which can carry a meaningful share of the computation.
  • That these tools can reliably find unknown hidden goals or detect deception in general.

The most boring explanation

A skeptic could argue that attribution graphs describe the replacement model, not Claude, and that humans grouping features into supernodes will find tidy stories in whatever they look at. The authors reply that the replacement matches the original exactly on each prompt via error nodes, and that every highlighted mechanism is checked by intervening on the original model. They concede that the method fails on many prompts, misses attention computation, and that labels and groupings involve judgment.

Key Concepts

Transcoder

A sparse dictionary model that reads an MLP's input and predicts its output through interpretable features, replacing the MLP's dense computation.

Cross-layer transcoder (CLT)

A transcoder whose features read from one layer and can write to the MLP outputs of that layer and all later layers.

Analogy: Instead of each floor of a building having its own staff, one team member can be hired on floor 3 and send work to every floor above, so a single idea does not need to be re-hired on each floor.

Local replacement model

The CLT-based model for one prompt, with attention and normalization frozen and error nodes added so it matches the original output exactly.

Error nodes

Nodes holding the difference between the real MLP outputs and the transcoder's predictions; they mark computation the features do not explain.

Analogy: Like a line in an accounting reconciliation labeled 'unexplained difference'. The books balance, but that line is where you cannot say what happened.

Attribution graph

A pruned graph of direct linear effects between tokens, features, error nodes and logits for a single prompt, used to form mechanistic hypotheses.

Intervention validation

Testing a graph's hypothesis by suppressing, injecting or swapping features in the original model and checking the output changes as predicted.

Unfaithful reasoning

Stated reasoning, such as chain-of-thought or a self-explanation, that does not match the computation the model actually performs.

Lessons that use this paper

Knowledge Check

10 questions — your answers are saved locally so you can come back anytime.