Paper Info
arXiv: 2406.01352
Title: Position: An Inner Interpretability Framework for AI Inspired by Lessons from Cognitive Neuroscience
Authors: Martina G. Vilas, Federico Adolfi, David Poeppel, Gemma Roig
Venue: ICML 2024
Prior Knowledge
Inner interpretability studies the internal computations behind a model's capabilities. Ablation and activation patching can identify components whose manipulation changes an output. A mechanistic explanation describes what those components do and how their interactions produce the behavior.
Multilevel explanation in cognitive neuroscience separates questions about a system's capacity, the algorithm that realizes it, and its implementation. This gives researchers a way to connect descriptions of behavior with descriptions of internal processes.
Main Idea
The paper argues that inner interpretability needs to connect its localized findings into explanations of how a capacity works. Knowing that a component matters leaves open which operation it performs and how that operation fits into the larger computation. The authors draw on cognitive neuroscience to organize these questions and make the connections testable.
Factual editing makes the gap concrete: identifying where factual information has a causal effect does not automatically tell us where an edit will work best. More broadly, the authors question assumptions about which units to inspect and how discoveries in small models will generalize. Their proposal combines top-down hypotheses about capacities with bottom-up observations of model computations, allowing each to revise the other.
The Framework
Four levels organize the explanation (Figure 1 and Section 4.1). The paper's factual-recall example shows how they fit together:
| Level | What it specifies | Factual-recall example |
|---|---|---|
| Computational problem | The capacity, input and output domains, and relevant context | Given a subject and relation, return the missing attribute within a specified fact domain, such as France + capital → Paris |
| Algorithmic description | The steps and data structures that realize the capacity | Boost candidate attributes associated with the subject, relation, and their combination; combine the vectors and select an attribute |
| Primitive representations and operations | The building blocks that execute those steps | Key-value memory pairs: a key detects an input pattern, and its value contributes associated information |
| Implementation | The model computations that realize the primitives | MLP or self-attention operations that could implement key-value memory |
This is an illustrative candidate account assembled from prior work. Its purpose is to connect a capacity to a possible sequence of operations and their implementation. The primitive level is particularly useful here: a learned key-value operation describes a functional building block, while an MLP describes a possible realization of it. Which operations qualify as primitives remains a question for theoretical and empirical evidence (Appendix C).
Two distinctions matter when using the framework. First, these are levels of explanation, separate from the choice to describe an implementation through neurons, circuits, or activation-space directions. Second, the levels constrain one another. A proposed algorithm must be realizable by the architecture; observations of the implementation can change the algorithmic account. Choosing an abstraction is part of developing the explanation, and can be revised as the evidence changes.
Research Suggestions
The framework leads to a few practical habits for studying mechanisms:
- Define the capacity carefully. A correct response on one prompt may result from different underlying processes, including shortcuts. Specify what inputs and outputs the proposed capacity covers, and test the conditions under which the model actually exhibits it.
- Make hypotheses distinguishable. Derive predictions from the proposed operations, compare plausible alternative mechanisms, and use meaningful baselines. The authors emphasize severe tests: if the hypothesized mechanism were absent, the method should have a good chance of revealing that absence. Systems with known design principles can help evaluate the method itself.
- Use failures and variation to refine the explanation. A fact that was never learned and a learned fact that a prompt fails to elicit may require different accounts. Controlled variations and naturalistic prompts can expose this distinction. Test across domains, initializations, or model sizes when the explanation is intended to generalize that far.
An incomplete mechanistic sketch can still be useful. The aim is to make its gaps explicit and let findings at one level guide questions at the others. This gives partial discoveries a place in an evolving explanation without requiring every study to finish the entire account.
Related
- Does Localization Inform Editing? Surprising Differences in Causality-Based Localization vs. Knowledge Editing in Language Models - Provides the factual-editing example used to question whether locating information supplies a sufficient account of how to change it.
- Transformer Feed-Forward Layers Are Key-Value Memories - Supplies one of the empirical foundations for the key-value primitive used in the paper's factual-recall example.