Abstract
While the activations of neurons in deep neural networks usually do not have a simple human-understandable interpretation, sparse autoencoders (SAEs) can be used to transform these activations into a higher-dimensional latent space which may be more easily interpretable. However, these SAEs can have millions of distinct latent features, making it infeasible for humans to manually interpret each one. In this work, we build an open-source automated pipeline to generate and evaluate natural language explanations for SAE features using LLMs. We test our framework on SAEs of varying sizes, activation functions, and losses, trained on two different open-weight LLMs. We introduce five new techniques to score the quality of explanations that are cheaper to run than the previous state of the art. One of these techniques, intervention scoring, evaluates the interpretability of the effects of intervening on a feature, which we find explains features that are not recalled by existing methods. We propose guidelines for generating better explanations that remain valid for a broader set of activating contexts, and discuss pitfalls with existing scoring techniques. We use our explanations to measure the semantic similarity of independently trained SAEs, and find that SAEs trained on nearby layers of the residual stream are highly similar. Our large-scale analysis confirms that SAE latents are indeed much more interpretable than neurons, even when neurons are sparsified using top-$k$ postprocessing.
Introduction
Large Language Models (LLMs) operate as "black boxes," where internal computations are carried out by millions of neurons. A significant challenge in mechanistic interpretability is polysemanticity: a single neuron often responds to multiple unrelated concepts (e.g., "French cooking" and "Python programming"). Sparse Autoencoders (SAEs) offer a solution by disentangling these activations into a high-dimensional space of "monosemantic" features. However, the sheer scale of these features—often numbering in the millions—precludes manual human labeling. This research introduces an automated, cost-effective pipeline to interpret and score these features at scale.
The Automated Interpretation Pipeline
The researchers developed a three-stage pipeline designed to translate abstract mathematical features into human-readable concepts.
- Collection: The system identifies text snippets from large datasets (like RedPajama-v2 or the Pile) where a specific SAE feature is highly active.
- Generation: An "explainer" model (e.g., Llama 3.1 70B) analyzes these snippets to identify common semantic themes, producing a natural language explanation.
- Scoring: The generated explanation is then validated. The authors move beyond expensive "simulation scoring" to more efficient methods.
Innovative Scoring and Causal Validation
A core contribution of this work is the introduction of five new scoring techniques that are significantly cheaper than previous methods.
- Fuzzing: This method asks a model to identify specific tokens within a sequence that activate the feature based on the explanation. Fuzzing was found to be the best proxy for human judgment, with a 0.69 correlation to human scores.
- Intervention Scoring: Unlike purely correlational methods, this is a causal approach. By artificially "turning on" a feature and observing if the model's output changes as predicted by the interpretation, researchers can validate the feature's actual role in model behavior. This revealed "output features"—concepts that influence what the model says next rather than just reacting to what it has already seen.
Results and Scale
The pipeline demonstrates remarkable efficiency, reducing costs by at least 5x compared to the state-of-the-art. The authors estimate a cost of approximately $200 to interpret one million features using their framework.
Key findings include:
- SAE Superiority: SAE features are consistently more interpretable than raw neurons, even when those neurons are post-processed for sparsity.
- Sampling Strategies: Stratified sampling across the activation distribution leads to broader, more robust labels compared to sampling only the highest-activating examples.
- Layer Similarity: Features in SAEs trained on adjacent layers of the residual stream show high semantic similarity.
Discussion and Limitations
While the pipeline scales effectively to modern models like Gemma 2 9B and Llama 3.1 8B, challenges remain. The current system uses short context windows, struggling with features that depend on long-range dependencies. Additionally, "intervention washing" occurs in early layers, where the causal effect of a feature is diluted before reaching the output, making early-layer causal scoring difficult.
The release of the open-source pipeline and a massive dataset of interpretations provides a foundational resource for the community to further explore the inner workings of LLMs.
Summary updated