AI Safety Compendium

Looking inside the model

Evaluating

Mechanistic interpretability

Reverse-engineer the network's internals into human-readable circuits and algorithms.

Open in the compendium

Mechanistic interpretability tries to reverse-engineer a trained neural network: to find the internal parts it uses and the step-by-step algorithm those parts carry out. For safety, the hope is to check what a model is doing inside instead of trusting only its outputs. Hidden goals or deception could then be caught before deployment.

How it works

A language model is a huge grid of numbers. When it reads text, each layer produces a list of numbers called activations. Researchers look for 'features' (patterns in the activations that stand for a concept, such as 'Texas') and 'circuits' (chains of features connected by the model's weights that together perform a task).

A well-known early example is a 2022 study of GPT-2 small on 'indirect object identification': completing a sentence with the name of the person who receives something, not the person who gives it. The researchers used causal interventions (copying or switching off internal parts and watching the output change) to find the circuit behind this: 26 attention heads in 7 groups.

One method Anthropic now uses is circuit tracing. Researchers train a simpler 'replacement model' whose parts are easier to read, run one prompt through it, and draw an 'attribution graph' showing which features pushed which. They then test the story by changing those features in the real model. In a March 2025 study of Claude 3.5 Haiku, the method showed the model working out 'Texas' as a middle step when asked for the capital of the state containing Dallas, and choosing a rhyme word before writing a line of poetry.

Where research stands

The field has moved from toy models and small circuits to partial maps of production models. The authors of Anthropic's attribution-graph study report satisfying insight for about a quarter of the prompts they tried, and stress that the replacement model captures the original only imperfectly. In May 2025 Anthropic open-sourced its circuit-tracing library, with a Neuronpedia viewer for open-weight models such as Gemma-2-2b. OpenAI has tried a different route: training models whose weights are mostly zero, so their circuits are smaller and easier to read. Scaling this beyond tens of millions of non-zero parameters is still unsolved.

Anthropic's CEO set a goal in April 2025 that interpretability can reliably detect most model problems by 2027. Google DeepMind's interpretability team, by contrast, said in December 2025 that it had moved away from complete reverse-engineering toward 'pragmatic' work on concrete safety problems, starting with the simplest methods that work. The MATS training programme reduced the share of interpretability research in its Winter 2025 cohort. Meanwhile the interpretability company Goodfire raised $150 million in February 2026.

Key results

Open problems

See all open problems in this group

Criticisms

Who works on it

Status

Named in 6 of the 7 source groups. For its Winter 2025 cohort, MATS "deliberately rebalanced its research portfolio, reducing the proportion of interpretability research".

Start reading

Related approaches

In their own words

Mechanistic interpretability seeks to reverse engineer neural networks, similar to how one might reverse engineer a compiled binary computer program. After all, neural network parameters are in some sense a binary computer program which runs on one of the exotic virtual machines we call a neural network architecture.

Chris Olah (Anthropic, Transformer Circuits Thread), Mechanistic Interpretability, Variables, and the Importance of Interpretable Bases, 2022

Features are the fundamental unit of neural networks. They correspond to directions. ... Features are connected by weights, forming circuits. A "circuit" is a computational subgraph of a neural network. It consists of a set of features, and the weighted edges that go between them in the original network.

Chris Olah, Nick Cammarata, Ludwig Schubert, Gabriel Goh, Michael Petrov, Shan Carter (Distill), Zoom In: An Introduction to Circuits, 2020

Suggest a correction Something wrong, out of date or missing, such as an organisation? Opens a GitHub issue (free account needed).