TL;DR
This paper introduces a formal axiomatic framework to move mechanistic interpretability from ad-hoc "just-so stories" to rigorous reverse engineering. By requiring that interpretations match a neural network's internal logic step-by-step (compositionality), the authors provide a statistical method to prove whether a proposed human-readable "circuit" truly reflects a model's inner workings.
The Problem: Extensional Equivalence in Black Boxes
Neural networks are notoriously opaque. Mechanistic Interpretability (MI) aims to solve this by reverse-engineering these models into human-understandable programs or "circuits." However, MI currently lacks a formal standard for what constitutes a "valid" interpretation.
The authors highlight a critical trap: extensional equivalence. Two different algorithms can produce the same output for the same input, but only one represents how the model actually computes that output. Current validation methods often focus only on the final output or individual components in isolation, ignoring the compositional structure of the network. This can lead to interpretations that look plausible but are internally inaccurate.
An Axiomatic Framework for Validation
Inspired by abstract interpretation from the program analysis literature, the authors propose four core axioms to validate an interpretation ($h$) against a model ($t$):
- Prefix Equivalence: The first $i$ steps of the interpretation must match the activations of the first $i$ layers of the model.
- Component Equivalence: Each individual abstract component must match its corresponding neural layer.
- Prefix Replaceability: Replacing the first $i$ layers of the model with the interpretation should not significantly change the final output.
- Component Replaceability: Replacing a single layer with its abstract counterpart should have a negligible effect on the output.
To bridge the gap between high-dimensional vectors (the model) and discrete symbols (the interpretation), they use Abstraction ($\alpha$) functions to map activations to features and Concretization ($\gamma$) functions to map features back to activations. Validation is performed statistically by measuring the error rate ($\epsilon$) across a dataset.
Case Studies: Modular Addition and 2-SAT
The authors evaluate their framework on two case studies:
- Modular Addition: They re-examine a seminal study on a Transformer trained to perform $a + b \pmod{113}$.
- 2-SAT Solver: They introduce a new case study involving a small Transformer trained to solve the 2-Satisfiability problem (Boolean formulas with 10 clauses and 5 variables). This serves as a more complex algorithmic task than simple arithmetic.
Key Insights and Discoveries
- Compositionality is Non-Negotiable: Matching the final output isn't enough. An interpretation is only valid if its intermediate steps align with the model's intermediate layers. Errors that seem small in isolation can compound across layers, making component-only validation misleading.
- The "Brute-Force" 2-SAT Strategy: Through their analysis, the authors discovered that their 2-SAT model doesn't use a sophisticated graph algorithm. Instead, it uses a "parser" block to represent clauses and an "evaluator" block containing "evaluating neurons."
These neurons effectively perform an exhaustive enumeration, checking different variable assignments in parallel.
- Sparsity as a Guide: In the 2-SAT model, only 34 out of 512 hidden neurons had a significant effect on the final classification. These neurons acted as "SAT promoters," activating when specific assignments satisfied the formula.
Results and Trade-offs
- Validation of Existing Work: The authors confirmed the broad strokes of the modular addition circuit but noted that the original study lacked the "prefix" evidence required by their axioms to prove compositional faithfulness.
- High-Fidelity 2-SAT Interpretation: For the 2-SAT model, they derived a decision-tree-based interpretation that achieved an error rate ($\epsilon$) of approximately 0.0128. This means the abstract program perfectly matched the model's behavior on nearly 99% of the test cases, even when interleaving abstract and concrete components.
- Trade-offs in Interpretability: They demonstrated that while "disjunction-only" interpretations (simpler logic) are easier for humans to read, they are significantly less faithful to the model's internal state than more complex decision-tree interpretations.
Limitations and Future Work
- Axiomatic Sufficiency: The authors acknowledge these axioms are a "minimal set." They are necessary for a valid interpretation but may not be sufficient to capture every nuance of model behavior.
- Manual Effort: Currently, defining the abstraction ($\alpha$) and concretization ($\gamma$) functions requires significant domain expertise and manual analysis. A major future direction is automating the discovery of these functions.
- Scalability: While successful on "toy" algorithmic models, scaling this axiomatic approach to Large Language Models (LLMs) remains a significant challenge due to the sheer number of components and features involved.
Summary updated