TL;DR
This paper introduces a formal axiomatic framework to move mechanistic interpretability from an ad-hoc art to a rigorous science. By drawing on "abstract interpretation" from program analysis, the authors provide a set of criteria to prove that a human-readable "circuit" truly captures the internal logic of a neural network, demonstrating its utility on both modular arithmetic and 2-SAT solver models.
What Problem Does This Paper Address?
Neural networks are notoriously opaque "black boxes." The field of Mechanistic Interpretability (MI) attempts to reverse-engineer these models into human-understandable programs or circuits. However, MI research has largely been ad-hoc; researchers find a pattern, claim it’s the "algorithm" the model uses, and validate it using inconsistent metrics.
The core challenge is fidelity: how do we know an interpretation isn't just a "just-so story" that happens to match the output but misses the internal mechanics? Existing methods like causal scrubbing often fail to account for the compositional structure of a network—how errors in one layer might compound or be masked by another. This paper seeks to formalize what it means for an interpretation to be "valid" through a set of mathematical axioms.
Methods
The authors propose four primary axioms based on $\epsilon$-accuracy (where $\epsilon$ represents the error rate). These axioms bridge the gap between the model's continuous vector space and the interpretation's discrete symbolic space using two functions: Abstraction ($\alpha$), which maps activations to symbols, and Concretization ($\gamma$), which maps symbols back to activations.
- Prefix Equivalence: The internal states of the interpretation must match the model's activations across a sequence of layers.
- Component Equivalence: Each individual component of the interpretation must match its corresponding model layer.
- Prefix Replaceability: Swapping a sequence of model layers for interpreted ones shouldn't break the final output.
- Component Replaceability: Swapping a single model layer for an interpreted one shouldn't break the final output.
A key contribution is the emphasis on Prefix Axioms. The authors argue that validating components in isolation (Axioms 2 & 4) is insufficient because small errors can compound across layers, a phenomenon they demonstrate both theoretically and empirically.
Datasets
The paper evaluates its framework on two main tasks:
- Modular Addition: A re-evaluation of the well-known study by Nanda et al. (2023a) on a Transformer trained to solve $a + b \pmod{113}$.
- 2-SAT Problem: A new case study involving a two-layer Transformer trained on a balanced dataset of 2 million randomly generated 2-SAT formulas (10 clauses, 5 variables). This dataset was split 60/40 for training and testing.
Key Insights and Ideas
- Compositionality is King: The most important finding is that an interpretation can look perfect at the component level but fail miserably when those components are composed. Validating the "prefix" (the cumulative computation) is essential for a faithful interpretation.
- The 2-SAT "Algorithm": Through their axiomatic lens, the authors discovered that the 2-SAT model learns a two-stage process. The first block acts as a parser, organizing the input into clause-level representations. The second block acts as an evaluator, using specific neurons to perform an exhaustive, brute-force-like check of variable assignments.
- Neuron Sparsity: In the 2-SAT model, the logic is highly sparse. Out of 512 hidden neurons in the MLP, only 34 were found to be "evaluating neurons" responsible for the final SAT/UNSAT decision.
- Beyond Attention Patterns: While attention patterns are a popular tool for interpretability, the authors found they were insufficient for the 2-SAT evaluator block. They had to use decision tree learning to decode the complex Boolean logic hidden within the MLP neurons.
Key Results
- Validation of Existing Work: The authors formally confirmed that the modular addition circuit from Nanda et al. satisfies their axioms, providing a stronger theoretical foundation for that seminal work.
- High Fidelity in 2-SAT: The 2-SAT interpretation achieved near-perfect matching. For the first block, the error rate ($\epsilon$) for Prefix Equivalence was a mere 0.0000374.
- The Danger of Ignoring Composition: In a synthetic error experiment, the authors showed that an interpretation with only 1% error per component could lead to a much higher failure rate when composed. Without the Prefix Axioms, these compounding errors would go undetected.
Limitations and Future Work
- Subjectivity of "Human-Interpretable": The axioms prove if an interpretation is valid, but they don't guarantee it is simple or useful. An analyst could technically provide the model's own weights as an "interpretation," which would satisfy all axioms but explain nothing.
- Scaling to LLMs: The current studies focus on small, algorithmic "toy" models. Applying this rigorous axiomatic approach to Large Language Models (LLMs) with billions of parameters remains a significant challenge.
- Automated Discovery: The authors suggest that these axioms could eventually be used as a training objective to automatically discover valid mechanistic interpretations, rather than relying on human intuition.
Summary updated