Abstract
Labeling neural network submodules with human-legible descriptions is useful for many downstream tasks: such descriptions can surface failures, guide interventions, and perhaps even explain important model behaviors. To date, most mechanistic descriptions of trained networks have involved small models, narrowly delimited phenomena, and large amounts of human labor. Labeling all human-interpretable sub-computations in models of increasing size and complexity will almost certainly require tools that can generate and validate descriptions automatically. Recently, techniques that use learned models in-the-loop for labeling have begun to gain traction, but methods for evaluating their efficacy are limited and ad-hoc. This paper introduces FIND (Function INterpretation and Description), a benchmark suite for evaluating the building blocks of automated interpretability methods. FIND contains functions that resemble components of trained neural networks, and accompanying descriptions of the kind we seek to generate. The functions span textual and numeric domains, and involve a range of real-world complexities. We evaluate methods that use pretrained language models (LMs) to produce descriptions of function behavior in natural language and code. Additionally, we introduce a new interactive method in which an Automated Interpretability Agent (AIA) generates function descriptions. We find that an AIA, built from an LM with black-box access to functions, can infer function structure, acting as a scientist by forming hypotheses, proposing experiments, and updating descriptions in light of new data. However, AIA descriptions tend to capture global function behavior and miss local details. These results suggest that FIND will be useful for evaluating more sophisticated interpretability methods before they are applied to real-world models.
Introduction
In the field of mechanistic interpretability, researchers aim to explain the specific sub-computations performed by neural networks. However, evaluating these explanations is notoriously difficult. If the internal logic of a neuron or layer is unknown, there is no objective way to verify the accuracy of an automated explanation. This "ground truth gap" often leads to evaluating black boxes with other black boxes, such as Large Language Models (LLMs), without a reliable baseline.
To address this, we present FIND (Function INterpretation and Description), a benchmark of over 2,000 procedurally generated functions where the internal logic is known a priori. This allows for a rigorous, automated assessment of how well interpretability methods perform across diverse domains.
The FIND Benchmark
The FIND benchmark is designed to mimic the types of computations found in real neural networks. It consists of three primary categories:
- Numeric Functions: Mathematical operations such as linear, periodic, and ReLU functions.
- String Functions: Symbolic manipulations including reversing, capitalizing, or shifting characters.
- Synthetic Neural Modules: Modules that simulate semantic concepts (e.g., "is this word related to botany?") and factual relations (e.g., "what is the capital of this country?") using an LLM backbone (Vicuna).
To simulate the messiness of real-world models, the benchmark incorporates complexity layers such as observation noise, domain corruption (where behavior changes in specific sub-regions), and function approximations.
Automated Interpretability Agents (AIAs)
We propose a new interactive method for interpretability: the Automated Interpretability Agent (AIA). Unlike traditional methods that look at a fixed set of examples, an AIA is given black-box access to a function and acts as an "automated scientist."
As shown in the figure above, the AIA forms a hypothesis about the function's behavior, selects specific inputs to test that hypothesis, observes the outputs, and iteratively refines its description. This interactive approach allows the agent to find "separating points" or boundaries in function behavior that static methods might miss.
Key Results and Insights
Our evaluation of several models as interpretability agents yielded several key insights:
- GPT-4 as a Scientist: GPT-4 emerged as the clear leader, demonstrating a surprising ability to perform experimental design. It successfully described 82% of Entity modules and 78% of Relation modules, though it struggled more with Numeric (33%) and String (23%) logic.
- Global vs. Local Understanding: A significant finding was that while LLMs are excellent at capturing "global" behavior, they often miss "local" nuances. For instance, an agent might correctly identify a "country to capital" function but fail to notice it is corrupted specifically for South American countries.
- The Hallucination Hurdle: Smaller models like Llama-2 often failed because they "hallucinated" outputs based on internal training data rather than actually executing the function code provided in the experiment.
- Reliable Automated Evaluation: We utilized a fine-tuned "Vicuna-evaluator" to judge descriptions by their ability to predict held-out test cases. This automated judge achieved 95-99% accuracy, proving that such benchmarks can be as reliable as human evaluation.
Conclusion
FIND provides a necessary yardstick for the burgeoning field of automated interpretability. While current agents like GPT-4 show promise in acting as automated scientists, they are not yet robust enough to capture the full complexity of neural computations. Future work will expand FIND to include "white-box" access to internal weights and more diverse shortcut behaviors, moving us closer to truly reliable automated model explanations.
Summary updated