Mechanistic Interpretability

Mechanistic Interpretability — SAEs, Circuits, Steering

Reverse-engineering the internal computation of neural networks (chiefly transformer LLMs) into human-understandable mechanisms — the features a model represents and the circuits that combine them. A model-layer reference under the ai-agent-engineering hub (2024–2026). Mechanistic interpretability (MI) is distinct from post-hoc ML explainability (SHAP/LIME, which attribute an output to inputs without opening the model) and from LLM observability (which traces a running app). MI opens the box: it makes causal, testable claims about what computation the weights implement.

A defining property of healthy MI work in 2025 is epistemic honesty — the field’s flagship technique (SAEs) is under serious, well-evidenced critique. This reference deliberately carries both the methods and their negative results; treating MI as solved is the most common mistake.

1. The goal and the two paradigms

MI seeks faithful, causal, mechanistic explanations: not “this neuron correlates with X” but “this component computes X, and ablating/patching it changes the output as predicted.” Two complementary objects of study:

The linear representation hypothesis underpins much of the field: many human-interpretable concepts are encoded as (roughly) linear directions in activation space, so they can be found by linear probes, added/subtracted as steering vectors, and isolated by dictionary learning. It is a working hypothesis, not a law — non-linear and multi-dimensional feature geometry (e.g. circular “days of the week” features) are active counter-evidence.

2. Superposition and polysemanticity

Networks routinely represent more features than they have neurons by storing them in superposition — as overlapping, near-orthogonal combinations of activations (Anthropic, Toy Models of Superposition). The visible symptom is polysemanticity: a single neuron fires for many unrelated concepts, so neurons are the wrong unit of analysis. Superposition is why naive “neuron interpretation” fails and why dictionary-learning methods (SAEs) became central — they aim to recover monosemantic features from the polysemantic soup. Sparsity + a high-dimensional dictionary is the lever: real features are sparse (few active per token), so an overcomplete sparse basis can disentangle them.

3. Sparse autoencoders (SAEs) and dictionary learning

An SAE is trained on a model’s activations (a residual-stream layer, MLP, or attention output) to reconstruct them through a wide, sparse hidden layer; each hidden unit is a candidate monosemantic feature. The loss trades reconstruction fidelity against sparsity (active-feature count). Architectures evolved to fix the L1-sparsity “shrinkage” bias:

Landmark scale-ups: Anthropic Scaling Monosemanticity (Claude 3 Sonnet — millions of features incl. the “Golden Gate Bridge” feature) and DeepMind Gemma Scope (open SAE suite across all layers of Gemma 2, up to 27B), which made MI broadly reproducible.

4. The SAE critique wave (you MUST carry this)

By 2025 large, careful evaluations found SAEs failing to beat simple baselines on the tasks people most wanted them for:

The constructive reconciliation (Anthropic-adjacent): use SAEs to discover unknown concepts, not to act on known ones — they are exploratory instruments, not production controllers or canonical truth. Always benchmark an SAE claim against a probe/random baseline.

5. Transcoders and crosscoders

6. Circuit discovery and causal analysis

Finding the sparse subgraph that mediates a behavior, then proving it causally:

7. Attribution graphs and circuit tracing

Anthropic’s Circuit Tracing / On the Biology of a Large Language Model (2025) applied attribution graphs (built on cross-layer transcoders) to a production model (Claude 3.5 Haiku), surfacing multi-step internal “reasoning” — planning ahead in rhyming poetry, multi-hop factual lookups, a shared multilingual concept space. This was the field’s proof that MI can scale beyond toy models, with the honest caveat that attribution graphs are approximate and require manual validation.

8. Lenses and probing

9. Activation steering and representation engineering

Inference-time control of a frozen model by editing activations:

10. Auto-interpretability and evaluation

11. Tooling stack

12. Interpretability for alignment and safety

The strategic motivation: auditing models for hidden goals, deception, or backdoors that behavioral testing misses.

When to reach for which

Goal Reach for
“What does this part of the model represent?” SAEs / probes / logit-lens; benchmark vs a random baseline
“What computes this behavior?” activation/path patching → ACDC/EAP → sparse feature circuits
“Show the multi-step mechanism in a real model” attribution graphs / circuit tracing (CLT)
“Make MLPs interpretable for tracing” transcoders / cross-layer transcoders
“Steer behavior without retraining” steering/control vectors, RepE (expect brittleness; benchmark vs ActAdd)
“Audit for deception / backdoors” probes + crosscoder model-diffing + SAE discovery — as one layer of a safety case, validated causally

Sources