TL;DR
The authors introduce Summarize and Score (SASC), a framework that uses Large Language Models (LLMs) to generate natural language explanations for "black box" text modules—functions that map text to a single numerical value. By combining automated summarization of top-activating text with a novel synthetic scoring step, SASC provides human-readable insights into the internal workings of models like BERT and even the response patterns of individual voxels in the human brain.
What Problem Does This Paper Address?
As LLMs become more powerful, they also become more opaque. We often have "text modules"—subcomponents like individual neurons, attention heads, or even external models trained to predict fMRI brain activity—but we lack a clear way to describe what specific semantic concepts they are "looking for."
Existing interpretability methods often require access to a model's internal gradients or weights, or they rely on manual inspection of top-activating examples, which is slow and subjective. The challenge is to create an automated, "black-box" method that can accurately describe a module's selectivity in natural language and, crucially, provide a metric for how much we should trust that description.
Methods
SASC operates in two main stages, leveraging a "helper LLM" (like GPT-3) to bridge the gap between numerical activations and human language:
- Summarization: The method identifies the ngrams (short sequences of words) from a reference corpus that elicit the strongest response from the target module. A random subset of these top ngrams is fed to the helper LLM, which is prompted to find a common theme and generate candidate natural language explanations (e.g., "responds to: disbelief and questioning").
- Synthetic Scoring: To validate these candidates, the helper LLM generates new, synthetic sentences that are either related or unrelated to the candidate explanation. These are fed back into the target module. The explanation score is the difference in the module's response between the related and unrelated sets. This step is vital for grounding the explanation in the module's actual behavior and mitigating LLM "hallucinations."
Datasets
The researchers evaluated SASC across three distinct domains:
- Synthetic Modules: 54 modules built using the Instructor embedding model, each designed to respond to a specific ground-truth keyphrase (e.g., "math," "environmentalism").
- BERT Transformer Factors: 1,500 modules extracted from a pre-trained BERT-base-uncased model using dictionary learning on the WikiText dataset.
- fMRI Voxel Modules: 1,500 modules trained to predict the fMRI responses of three human subjects listening to over 20 hours of narrative stories (Moth stories dataset).
Key Insights and Ideas
- Grounding via Scoring: The "Score" step is the "aha moment." By generating new data to test the explanation, SASC moves beyond simple correlation (what happened to activate the module) to a form of causal verification (does this concept actually drive the module).
- Black-Box Versatility: Because SASC only needs input/output access, it treats a biological brain voxel and a transformer neuron exactly the same way. This allows for direct semantic comparisons between artificial and biological intelligence.
- Reliability Metrics: The explanation score serves as a reliable proxy for accuracy. Higher scores strongly correlate with the method's ability to recover ground-truth explanations in synthetic tests.
Key Results
- Synthetic Accuracy: SASC successfully recovered the ground-truth explanation for 88.3% of the synthetic modules in the default setting, significantly outperforming baselines that lacked the scoring step.
- BERT Interpretation: When compared to human-labeled explanations for BERT factors, SASC's explanations were rated as more reliable (higher explanation score) 61% of the time.
- Neuroscience Applications: SASC generated fine-grained hypotheses for fMRI voxels, identifying specific selectivity for themes like "food preparation" or "physical injury," which are more descriptive than the broad categories used in previous brain-mapping studies.
- Layer Depth: In BERT, modules in earlier layers were generally easier to explain (higher scores) than those in deeper layers, suggesting that deeper layers represent more complex, non-linear, or less semantically coherent features.
Limitations and Future Work
- Conciseness Assumption: SASC assumes a module's function can be captured in a short natural language string. It may fail to explain complex modules that respond to multiple, unrelated concepts.
- Ngram Limitations: The current implementation relies on ngrams, which might miss modules that respond to long-range context or specific structural patterns (like the position of a word in a sentence).
- LLM Dependency: The quality of the explanation is inherently tied to the capabilities of the "helper" LLM used for summarization and synthetic data generation.
- Future Directions: The authors suggest extending SASC to explain "circuits" of multiple modules working together and incorporating more than just ngrams (e.g., full sentences or structural information) into the summarization step.
Summary updated