Skip to content
Transformer Circuits·Indexed by this site · Originally published· Alignment →SelectedAttention40

Anthropic proposes a circuit tracing method: using cross-layer transcoders to reveal the computational graph of language models

Circuit Tracing: Revealing Computational Graphs in Language Models

AI summary

Anthropic's interpretability team proposed a circuit tracing method that uses cross-layer transcoders (CLT) to replace a language model's MLP with an interpretable surrogate model, and on that basis builds attribution graphs that describe the computational steps by which the model produces a given token under a specific prompt. Each CLT feature reads input from the residual stream of one layer and can output to all subsequent MLP layers; the team trained features ranging from 300K to 30M in scale on an 18-layer small model and Claude 3.5 Haiku. The attribution graph nodes include active features, prompt token embeddings, reconstruction error, and output logits, with edges representing linear attribution. The team ensured linear direct interactions between features by freezing attention patterns and normalization denominators, and used pruning to reduce the number of nodes by about 10 times while losing only about 20% of behavioral explanation.

Why it was selected

Anthropic's interpretability team published the full method for building attribution graphs with cross-layer transcoders, along with validation and limitations, suitable for readers focused on engineering details of mechanistic interpretability.

Read originaltransformer-circuits.pub