AI

Mechanistic Interpretability: Looking Inside AI Models

Mechanistic interpretability explained: features, circuits, superposition, sparse autoencoders, Anthropic's and OpenAI's results, tools to try, and limits.

By OmniAI Editorial · Nov 22, 2026 · 12 min read

Mechanistic interpretability is a branch of AI research that tries to reverse-engineer neural networks: to work out, from the inside, which concepts a model represents and which internal circuits it uses to turn an input into an output. Instead of only testing what a model says, researchers examine its activations and weights, identify "features" (directions in the model's internal space that correspond to concepts) and trace how they connect. Recent work with sparse autoencoders has found millions of interpretable features inside large language models, and showed that turning them up or down changes the model's behaviour. The field is promising but still far from fully explaining how large models work.

This guide explains what mechanistic interpretability is, the core ideas (features, circuits and superposition), how sparse autoencoders work, key results from Anthropic, OpenAI and Google DeepMind, how it differs from explainable AI, tools you can try, and its limits.

What Is Mechanistic Interpretability?

What is mechanistic interpretability, in one line? It's treating a trained neural network like a compiled program and trying to decompile it into human-understandable steps.

A neural network is billions of numbers (weights) learned during training. Nobody wrote its logic, so even its creators don't know exactly how it reaches an answer. Mechanistic interpretability asks precise questions: which internal components represent "this text is in French"? Which parts of the network look up the capital of a country? How does the model decide a sentence is a question? The goal is causal, testable explanations, not just correlations.

The field grew out of work on vision models around 2017 to 2020, notably by Chris Olah and colleagues at Google Brain and later OpenAI, published on the Distill journal. Their 2020 essay "Zoom In" argued that neural networks contain meaningful features connected into circuits that can be studied like biology. Many of those researchers later founded or joined Anthropic, which has made interpretability a central research program.

Why it matters:

  • Safety: detecting deception, hidden goals or dangerous knowledge directly in a model's internals rather than hoping they show up in tests. Our AI alignment guide explains how interpretability fits into wider safety work.
  • Debugging: finding why a model makes particular mistakes, such as hallucinating or following a malicious instruction.
  • Control: steering behaviour by adjusting specific internal features.
  • Science: understanding what large models actually learn about language and the world.

MIT Technology Review named mechanistic interpretability one of its 10 Breakthrough Technologies for 2026, reflecting how quickly the field has moved from niche to mainstream.

The Core Ideas: Features, Circuits and Superposition

Features. A feature is a property of the input that the model represents internally, such as "Python code", "the Golden Gate Bridge" or "a sarcastic tone". In practice, features are often directions in the model's activation space: a particular pattern across many neurons.

Circuits. Circuits are groups of features and the weights connecting them that together perform a computation, such as detecting curves in an image or completing a repeated pattern in text. A well-known example is the induction head, a two-part attention circuit that lets language models continue a sequence they have seen earlier in the context ("A B ... A" → "B"), which Anthropic researchers linked to in-context learning.

Superposition. The obstacle that slowed the field: individual neurons are usually polysemantic, firing for several unrelated concepts. Anthropic's "Toy Models of Superposition" (2022) showed why: models represent more features than they have neurons by packing them into overlapping directions, accepting a little interference to store more information. That means looking at single neurons is often misleading; you need a way to pull the overlapping features apart.

One large grey circle on the left with four thin ink lines fanning out to a light circle, square, triangle and diamond, each then linked to its own grey circle on the right, the third one orange.
Polysemantic neurons mix several concepts; interpretability methods try to separate them into single features.

Sparse Autoencoders: Untangling Features

A sparse autoencoder (SAE) is the main tool used to break superposition. It's a small neural network trained on a model's internal activations with two goals:

  1. Reconstruct the original activation as accurately as possible.
  2. Be sparse: use only a few active "latent" units for any given input, out of a very large dictionary.

The encoder expands each activation into a much larger number of latents (often millions), most of which are zero for any input; the decoder maps them back. Because only a few latents fire at once, each tends to correspond to a single, interpretable concept. It's the same basic idea as an ordinary autoencoder, which compresses data through a bottleneck (our autoencoder guide explains those), except the sparse version expands into an overcomplete dictionary and relies on sparsity instead of a narrow bottleneck.

Researchers then interpret each latent by looking at which inputs activate it most strongly, and test it by steering: artificially increasing or suppressing the feature and checking whether the model's behaviour changes as expected.

Key Results So Far

WorkOrganisationYearWhat it found
"Zoom In" (Distill)OpenAI researchers (Olah et al.)2020Argued vision networks contain interpretable features and circuits that can be studied systematically
Induction headsAnthropic2022Identified attention circuits that copy earlier patterns, linked to in-context learning
"Toy Models of Superposition"Anthropic2022Showed how models store more features than neurons, explaining polysemantic neurons
"Towards Monosemanticity"Anthropic2023Used sparse autoencoders on a small one-layer transformer to extract interpretable features
"Scaling Monosemanticity"Anthropic2024Trained SAEs with about 1M, 4M and 34M features on Claude 3 Sonnet; found concrete and abstract features, including safety-relevant ones such as deception and sycophancy, that causally influence outputs
"Golden Gate Claude" demoAnthropic2024Amplifying a single Golden Gate Bridge feature made the model talk about the bridge constantly, a vivid demonstration of steering
"Extracting concepts from GPT-4"OpenAI2024Trained a sparse autoencoder with 16 million features on GPT-4 activations and released code and smaller autoencoders
Gemma ScopeGoogle DeepMind2024Released hundreds of open sparse autoencoders for its Gemma 2 models so outside researchers could study them
"On the Biology of a Large Language Model"Anthropic2025Used attribution graphs on Claude 3.5 Haiku to trace intermediate steps, such as reasoning through "Texas" to answer the capital of the state containing Dallas, and evidence of planning rhyme words ahead in poems

Mechanistic interpretability at Anthropic

Searches for mechanistic interpretability Anthropic are common because the company has published much of the field's most cited work and treats interpretability as core to its safety approach. Beyond extracting features, its 2025 circuit-tracing work introduced attribution graphs: maps of which features influence which others on the path from a prompt to a response. The authors reported that the method gave useful insight on roughly a quarter of the prompts they tried, and Anthropic later open-sourced the tooling, with interactive exploration hosted on Neuronpedia. The company's CEO, Dario Amodei, published an essay in 2025, "The Urgency of Interpretability", arguing that understanding models internally must keep pace with their growing capabilities.

How a Mechanistic Interpretability Study Works

A typical project follows these steps:

  1. Pick a behaviour to explain, such as how a model adds numbers or refuses harmful requests.
  2. Collect activations by running many examples through the model and recording internal states at chosen layers.
  3. Find features, often with a sparse autoencoder trained on those activations.
  4. Label features by inspecting their top-activating examples, sometimes with help from another language model.
  5. Trace circuits by measuring how features in one layer affect features in later layers, using techniques such as activation patching (swapping activations between two inputs) and attribution.
  6. Test causally: ablate (remove) or amplify a feature and confirm the behaviour changes as the explanation predicts.
  7. Check faithfulness: make sure the explanation accounts for the model's real computation, not just a plausible story.

Worked Example: Steering a Feature

Suppose an SAE trained on a model's middle layer contains a feature that activates on text about the Golden Gate Bridge. An experiment might look like this:

StepActionObservation
1. InspectList the texts that most strongly activate the featureMentions of the bridge, San Francisco fog, photos of red suspension bridges described in captions
2. Test detectionRun new, held-out bridge texts and unrelated textsThe feature fires on bridge texts and stays near zero elsewhere
3. AmplifyAdd a large multiple of the feature's decoder direction to the model's activationsThe model brings the bridge into unrelated answers, the effect Anthropic demonstrated publicly
4. SuppressSet the feature to zeroThe model's knowledge of the bridge weakens in related questions
5. ConcludeThe feature is a causal, not merely correlated, representationEvidence the explanation is mechanistic

The same technique can be aimed at features linked to sycophancy, deception or unsafe content, which is why safety researchers care so much about whether features are reliable and complete.

AI Interpretability vs Explainability

AI interpretability vs explainability is a frequent source of confusion, because the terms overlap.

Mechanistic interpretabilityExplainable AI (XAI) methods
QuestionHow does the model compute this internally?Which inputs most influenced this prediction?
Typical methodsFeatures, circuits, sparse autoencoders, activation patchingSHAP, LIME, attention maps, saliency maps, counterfactual examples
Level of explanationInternal mechanisms, ideally causal and testableInput-output attributions, often local to one prediction
Main usersAI safety and research teamsData scientists, regulators, end users needing reasons for decisions
Works on any model?Needs access to model internalsMany methods work on black boxes
MaturityFast-moving researchWidely used in industry

Explainable AI tells you which features of a loan application drove a decision; mechanistic interpretability tries to tell you what algorithm a neural network has learned. Our explainable AI guide covers SHAP, LIME and the regulations that require explanations.

Two light panels: the left shows a row of input bars, two of them taller and grey, with an arrow into a closed grey box; the right shows a grey box with its lid raised, revealing a small ink circuit of grey nodes around one orange node.
Explainability highlights which inputs mattered; mechanistic interpretability opens the box to see how.

Tools You Can Try

  • TransformerLens: an open-source Python library for loading open models and inspecting or editing their internal activations, widely used in research and teaching.
  • nnsight: a library for tracing and intervening on the internals of PyTorch models, including large ones run remotely.
  • SAELens and pretrained SAEs: libraries and released autoencoders (including DeepMind's Gemma Scope and OpenAI's GPT-2 autoencoders) let you explore features without training your own.
  • Neuronpedia: a web platform for browsing features from published sparse autoencoders and exploring attribution graphs interactively.

A good first project is to load a small open model, find an attention head that behaves like an induction head, and confirm it by ablating it on repeated sequences.

Limits and Open Problems

  • Incompleteness. Anthropic noted its feature sets are incomplete and that it lacks rigorous ways to check whether features faithfully capture the model's computation.
  • Reconstruction loss. OpenAI reported that passing GPT-4's activations through its sparse autoencoder gave performance equivalent to a model trained with roughly ten times less compute, meaning the SAE misses part of what the model does.
  • Scale and cost. Training huge sparse autoencoders on frontier models is expensive, and explanations that work on small models may not transfer.
  • Partial coverage. Circuit tracing gives useful insight on only some prompts, and complex behaviours involve many interacting features.
  • Interpretation risk. Labelling a feature by its top examples can mislead; features may respond to subtler patterns than their labels suggest.
  • From insight to guarantees. Even good explanations don't yet let anyone certify that a large model is safe.

Should You Care If You Build With AI?

If you use AI through APIs, mechanistic interpretability won't change your code tomorrow. It matters indirectly: it shapes how model providers test for dangerous behaviour, it's starting to power steering and monitoring tools, and it informs debates about AI regulation and safety. For researchers and engineers working with open models, it's an accessible field where small experiments on modest hardware can still contribute.

FAQ

What is the goal of mechanistic interpretability?

To understand neural networks in terms of the internal features and circuits they use, well enough to explain and predict their behaviour, and eventually to detect problems such as deception or unsafe knowledge directly.

What is a sparse autoencoder in AI?

A sparse autoencoder is a model trained to reconstruct another network's internal activations using a large dictionary of features, only a few of which are active at once. That sparsity tends to separate overlapping concepts into individual, interpretable features.

What is superposition in neural networks?

Superposition is when a network represents more features than it has neurons by storing them as overlapping directions. It explains why single neurons often respond to several unrelated things.

Is mechanistic interpretability the same as explainable AI?

No. Explainable AI usually attributes a prediction to its inputs, often treating the model as a black box. Mechanistic interpretability studies the model's internal computations to explain how it works.

Can mechanistic interpretability make AI safe?

Not by itself yet. It's one of several research directions, alongside evaluations, training methods and monitoring, that could help detect and fix unsafe behaviour. Current methods explain only part of what large models do.

All articles

Read next

Language

EnglishEnglish · en TürkçeTurkish · tr DeutschGerman · de العربيةArabic · ar

Account

Enter your email. We’ll send you a sign-in link and a 6-digit code. No password needed.

Sign in

Theme

Language

Show our email address

To keep spam out of our inbox, please confirm your own email first. We will send you a 6-digit code.

We send codes only to these providers: gmail.com, googlemail.com, outlook.com, hotmail.com, live.com, msn.com, proton.me, protonmail.com, pm.me, icloud.com, me.com, mac.com, yahoo.com, aol.com, gmx.de, gmx.net, web.de, t-online.de, yandex.com, omniai.blog