Safety

Mechanistic Interpretability

Mechanistic interpretability is a subfield of AI research that attempts to reverse-engineer the internal computations of neural networks—identifying specific circuits, features, and algorithms that produce model behaviors—rather than treating models as opaque black boxes.

Mechanistic interpretability (often abbreviated "mech interp") emerged from work by Chris Olah and collaborators beginning around 2020 at OpenAI and continuing at Anthropic. The core goal is to understand not just what a neural network does—its input-output behavior—but how: which weights, neurons, and attention heads implement which algorithms, and what information is encoded in which internal representations. The approach treats a trained model as unknown code to be reverse-engineered through systematic experiments: ablating components, patching activations, and tracing information flow through the network.

Foundational concepts include features (directions in activation space corresponding to interpretable concepts such as "French text" or "Python function call"), circuits (small subgraphs of weights and activations implementing a specific computation such as indirect object identification or a greater-than comparison), and superposition (the observation that models encode more features than they have dimensions by overlapping directions, relying on the sparsity of real inputs to limit interference). Landmark empirical findings include the induction head circuit that mediates in-context learning in transformers and the curve detectors and multimodal neurons identified in vision models.

Mechanistic interpretability matters primarily as an AI safety tool. If researchers can reliably decode a model's internal computations, they can audit for deceptive reasoning, verify that safety training has produced genuinely aligned internal states rather than surface compliance, and predict behavior in novel situations. It also enables targeted interventions—modifying specific circuits to reduce harmful capabilities—rather than blunt approaches such as full fine-tuning.

As of 2026, Anthropic has published the most extensive mech interp research on frontier models, including large-scale sparse autoencoder analyses that identified millions of interpretable features in Claude. Google DeepMind, EleutherAI, and academic groups at MIT and Harvard maintain active programs. Tools such as TransformerLens and Neuronpedia allow interactive exploration of model internals. Significant open problems remain, including scaling circuit analyses to models with hundreds of billions of parameters and establishing causal rather than merely correlational accounts of identified features.

Example

Using mechanistic interpretability, researchers traced the circuit in GPT-2 that implements indirect object identification—pinpointing the specific attention heads responsible for correctly completing "Mary gave John the book; John gave it to ___" with "Mary"—demonstrating that the model uses a generalizable syntactic algorithm rather than pattern memorization.

Related terms

← Glossary