Foundations, Research Methods, Practical Applications, Career Resilience and the Future of AI
Introduction
- What Is This Book About?
- Who Should Read This Book?
- How This Book Is Structured
- What This Book Does Not Claim
- How to Use This Book
Chapter 1: What Is Mechanistic Interpretability?
- The black box problem: why neural networks are hard to understand
- Beyond behavioral evaluation: what mechanistic interpretability adds
- How it differs from feature attribution, probing and explainable AI
- The mechanistic explanation ideal: circuits, features and causal stories
- Why this matters: safety, reliability, capability understanding and scientific knowledge
Chapter 2: The History and State of the Field
- Early interpretability efforts: saliency maps, activation visualization and their limits
- The transformer era and why mechanistic interpretability became tractable
- The mechanistic turn (2020 onward): the transformer circuits agenda
- Key laboratories, researchers and open source projects
- Current research directions and how they relate
Chapter 3: Linear Algebra for Interpretability
- High-dimensional spaces, vectors and dot products
- Matrix factorization, SVD and dimensionality reduction
- Eigendecomposition and its role in understanding representations
- Orthogonality, projections and geometric intuition
- Rank deficiency, shared directions and information bottlenecks
Chapter 4: Probability, Information and Optimization
- Distributions over sequences and next-token prediction
- Entropy, mutual information and representation compression
- Cross-entropy loss and what it optimizes
- Gradient descent, saddle points and landscape geometry
- Implicit biases of optimization and their interpretability consequences
Chapter 5: Neural Network Architectures, From Perceptrons to Transformers
- Feed-forward networks, backpropagation and the credit assignment problem
- Residual connections and why they matter for interpretability
- Transformer architecture: attention, MLP blocks, layer normalization, positional encoding
- The residual stream as information highway
- How tokens flow through a transformer: a concrete trace
Chapter 6: Representations and Embeddings
- Token embeddings and what they capture
- Learned representations across layers
- Distributed representations and their properties
- Linear structure in neural network representations
- Feature spaces, distances and the geometry of learned embeddings
Chapter 7: The Problem of Polysemanticity
- Monosemantic vs. polysemantic features
- The overcompleteness problem: more features than dimensions
- Examples of polysemantic neurons from early research
- Why polysemanticity arises from optimization pressure
- The implications for interpretability: why single-neuron analysis fails
Chapter 8: Superposition and Feature Geometry
- What superposition is and isn’t
- Sparse features, activation sparsity and the coding hypothesis
- The geometric structure of superposed features
- Eigenfeatures and principal components of activation space
- The theoretical work of Elhage, Huben and others on superposition
Chapter 9: Sparse Autoencoders and Dictionary Learning
- The sparse autoencoder architecture and how it works
- Training objectives: reconstruction loss, L0/L1 penalties and dead feature problems
- Key results: monosemantic features from SAEs
- Variants: thresholded SAEs, JumpReLU SAEs, Gated SAEs, Transcoders
- Practical considerations: dictionary sizes, feature quality metrics and current best practices
Chapter 10: Circuits and Computational Graphs
- The circuit hypothesis: localized, composable mechanisms
- Defining a circuit: inputs, outputs and intermediate nodes
- How circuits differ from activation paths and attribution graphs
- The relationship between features and circuits
- The challenges of circuit discovery at scale
Chapter 11: Induction Heads and Algorithmic Behavior
- What induction heads are: the discovery by Olsson et al.
- The attention pattern: copying and sequence generalization
- How induction heads implement in-context learning patterns
- Empirical evidence and what we know about their prevalence
- What this case teaches us about finding genuine mechanistic explanations
Chapter 12: Indirect Object Identification and Complex Reasoning Circuits
- The IOI task: what models learn about indirect objects
- The circuit structure: superpattern attention, name-mover heads, router heads
- How evidence accumulated through patching and analysis
- Why IOI matters: it shows circuits can explain relational reasoning
- Limitations: IOI simplicity, task specificity and whether this generalizes
Chapter 13: Activation Analysis and Feature Visualization
- Collecting activations: hooks, forward passes and data collection pipelines
- Activation statistics: mean, variance, sparsity patterns across layers and components
- Feature visualization: maximizing neuron activations, inversion and limitations
- Logit lens and intermediate-token prediction
- What conclusions each technique justifies and what they cannot
Chapter 14: Probing and Representation Analysis
- Linear probes: what they test and what they measure
- Probing tasks: syntactic, semantic, world knowledge and emergent properties
- Probe performance vs. model use: the representational bottleneck hypothesis
- Multiview probes and representation similarity analysis
- When probes support mechanistic hypotheses and when they do not
Chapter 15: Activation Patching and Causal Tracing
- Activation patching: concept, implementation and what it measures
- Path patching and comparing clean vs corrupted inputs
- Causal tracing: following influence through the network
- Quantifying causal contributions: attribution scores and their interpretation
- The assumptions and limitations: locality, additivity and intervention effects
Chapter 16: Ablation, Intervention and Counterfactual Testing
- Ablation: zeroing, masking and disrupting specific components
- Constructive interventions: injecting activations and testing effects
- Counterfactual inputs: changing one aspect while holding others fixed
- Gradient-based interventions and optimization-based attacks
- How to design experiments that genuinely test a mechanistic hypothesis
Chapter 17: Decomposition and Attribution Techniques
- Taylor decomposition and first-order attribution
- Attention attribution: following information through attention patterns
- Integrated gradients, attribution patches and related methods
- Feature attribution vs. causal attribution: the difference that matters
- Computational cost, interpretability of results and common failure modes
Chapter 18: Automated and Scalable Interpretability
- Automated feature discovery: SAE scaling, neural gas and clustering
- Automated circuit extraction: graph search, causal discovery algorithms and ML-based methods
- The promise of automated interpretation at frontier scales
- Current limitations and the human-in-the-loop requirement
- The tension between automation and scientific understanding
Chapter 19: The Evidence We Have, Successful Explanations
- Case studies where mechanistic explanations are robust and verified
- Replication of published results and their generalizability
- What successful explanations look like and how to recognize them
- The gap between toy models and frontier models
- Honest assessment: how far we have come
Chapter 20: Limitations and Pitfalls
- Feature splitting, absorption and dictionary incompleteness
- Misleading feature interpretations: confirmation bias and overfitting to anecdotes
- Attribution errors: when patching gives wrong answers
- Distribution shift and the instability of explanations
- The curse of model scale: what we cannot do with current compute
Chapter 21: Beyond Mechanistic Interpretability, Complementary Approaches
- Behavioral evaluation and its irreplaceable role
- Formal methods, verification and their relationship to interpretability
- Causal inference and its relevance
- Scalable oversight and interpretability’s role in oversight
- How to combine methods for stronger conclusions
Chapter 22: Interpretability for AI Safety
- What interpretability can do now: model auditing, failure mode diagnosis, red teaming support
- Speculative applications: deception detection, objective discovery, hidden capability monitoring
- The gap between demonstrated capability and safety requirements
- What interpretability alone cannot guarantee
- The relationship to alignment strategies: oversight, training and deployment
Chapter 23: Governance, Auditing and Practical Deployment
- Model cards, transparency reports and interpretability evidence
- Regulatory expectations: what governments and regulators want
- Closed-source models and the interpretability access problem
- Practical auditing workflows using interpretability tools
- The political economy of model transparency
Chapter 24: Learning Path, From Fundamentals to Research Competence
- Prerequisites: what you need before starting (math, ML, programming)
- Core reading: essential papers and resources in reading order
- Tools to master: Python, PyTorch, TransformerLens, Hugging Face
- Hands-on projects: progressively more sophisticated work
- Research habits: how to think like an interpretability researcher
Chapter 25: Career Paths and Job Resilience
- Where the jobs are: labs, safety orgs, startups, academia and adjacent roles
- What employers value: research judgment, engineering, communication and domain knowledge
- Building a portfolio that demonstrates real competence
- Assessing opportunities: red flags, good signs and realistic expectations
- Interview preparation and demonstrating research ability
Chapter 26: AI Agents and Career Resilience
- What AI agents can already do: coding, literature review, basic analysis
- What they cannot do well: causal reasoning, experimental design, scientific judgment
- The changing labor economics of research and interpretation
- Concrete strategies: transferable skills, complementary specializations, diversification
- Scenario planning: what could change the field in the next 3-10 years
Chapter 27: Emerging Research Directions
- Scalable feature discovery for billion- and trillion-parameter models
- Interpretability of multimodal systems: vision, audio and cross-modal circuits
- Recurrent, reasoning and planning architectures: new challenges
- Causal representation learning and structured explanations
- Integrating interpretability into the training loop
Chapter 28: Looking Ahead, What You Should Watch, Learn and Build
- What to learn and build now: skills and projects with the highest expected value
- What to prioritize in the next 1-3 years: key developments to follow
- What to monitor in the next 3-5 years: structural changes that could reshape the field
- Longer-term possibilities: scenarios that could make interpretability more or less relevant
- Final assessment: is mechanistic interpretability worth the investment?