Home › Tracks › AI Safety, Alignment & Interpretability › Mechanistic Interpretability Foundations
Week 5 concept
Mechanistic Interpretability Foundations
Reverse-engineering a neural network into human-understandable algorithms: features, circuits, the residual stream, and induction heads. Reading what a transformer actually computes instead of treating it as a black box.
Bridges to Compilers — reverse engineering, intermediate representations, and program analysisBuilds on: The Alignment Problem & Safety Foundations
Study notes
Master this concept.
Mechanistic Interpretability Foundations
What it is
Mechanistic interpretability is the process of reverse-engineering a trained neural network to understand its internal logic. Rather than treating a model as a "black box" that turns inputs into outputs, this approach treats the network as a computer program written in weights and activations. The goal is to decompose the model into human-understandable algorithms.
Why it matters
As AI systems grow more complex, we cannot rely solely on behavioral testing to ensure safety. If we don't know *how* a model reaches a conclusion, we cannot guarantee it won't fail catastrophically in novel situations. By understanding the internal mechanisms, researchers can detect hidden biases, identify deceptive reasoning, and build verifiable safety guards.
Core concepts to master
- Features: The basic units of meaning. These are specific directions in the model's activation space that represent a concept (e.g., "text in French" or "mention of a city").
- The Residual Stream: The "communication bus" of a transformer. It is the shared memory space where different layers read and write information to be passed forward.
- Circuits: Small groups of neurons or attention heads that work together to perform a specific task, such as identifying a grammatical pattern.
- Induction Heads: A specific type of circuit that allows a model to perform in-context learning by recognizing patterns like "if A followed B once, it will likely follow B again."
Common mistakes
- Over-reliance on heatmaps: Assuming that a high-activation area explains the "why" of a decision. Activations show *where* something is happening, not *how* the logic works.
- Assuming linear mapping: Believing that one neuron equals one concept. In reality, concepts are often "superposed," meaning multiple features are packed into a single neuron.
Track connection
This foundation serves as the diagnostic tool for the rest of the AI Safety and Alignment track. While Alignment focuses on *what* the model should want, Mechanistic Interpretability provides the tools to verify if the model is actually implementing those goals internally.
Go to the source
Read, watch, and practice.
Free, world-class material chosen for this concept.