Introduction
The field of Mechanistic Interpretability aims to understand neural networks by treating them like compiled computer code or biological circuits, reverse-engineering their internal logic. However, researchers have historically struggled to map the "internal wiring" of Large Language Models (LLMs) due to the messy, entangled nature of individual neurons.
This paper introduces Sparse Feature Circuits, a scalable method that maps LLM behavior using human-interpretable features rather than raw neurons. By combining Sparse Autoencoders (SAEs) with causal attribution, the authors demonstrate how to discover, visualize, and even surgically "edit" the circuits responsible for specific model behaviors—such as removing gender bias from a classifier without requiring a balanced training dataset.
The Challenge: Polysemanticity and Scalability
Two major hurdles have traditionally stood in the way of mechanistic interpretability:
- The Polysemanticity Problem: Individual neurons are "messy." A single neuron might fire for both "the concept of Canada" and "the color purple." This polysemanticity makes it nearly impossible to build a clean, logical map of a model's reasoning.
- The Scalability Problem: Modern models possess billions of parameters. Manually finding which components cause a specific behavior (like subject-verb agreement) is akin to looking for a needle in a haystack of haystacks.
Prior work attempted to solve this by using coarse units, such as entire attention heads. However, these units are too broad for precise editing or deep understanding. Sparse Feature Circuits solve this by utilizing fine-grained, interpretable "features" to build causal graphs of how a model actually processes information.
Methodology: Mapping the Model's Internal Wiring
To move from raw, uninterpretable activations to a clean causal circuit, the authors propose a comprehensive pipeline:
- Feature Disentanglement: The researchers use Sparse Autoencoders (SAEs) to decompose the model's hidden states into thousands of sparse, interpretable directions (features). Instead of analyzing an ambiguous "Neuron #402," they can analyze a specific "Plural Noun Tracker" feature.
- Causal Attribution: To determine which features actually cause a specific behavior, they employ linear approximations—specifically Attribution Patching and Integrated Gradients. This allows them to efficiently calculate the "Indirect Effect" of every feature on a specific output metric.
- Circuit Discovery: By connecting features with high causal influence, they form a graph, or circuit. They carefully account for "SAE error terms" to ensure the resulting circuit remains a faithful representation of the original model.
Building on this pipeline, the authors introduce SHIFT (Sparse Human-Interpretable Feature Trimming). In this debugging technique, a human inspects a discovered circuit, identifies features that represent spurious correlations (e.g., relying on gender in a job classification task), and surgically ablates them to improve the model's fairness and generalization.
Key Insights and Results
The study evaluates its methods across several domains, including linguistic tasks (Subject-Verb Agreement), professional biographies (Bias in Bios), and massive text corpora (The Pile).
- Features Outperform Neurons: The paper provides strong evidence that SAE features are the optimal unit of analysis. Human evaluators consistently rated these features as significantly more interpretable than raw neurons.
- High Faithfulness with Fewer Units: A circuit comprising just 100–500 sparse features can explain as much model behavior as 1,500–50,000 raw neurons. This massive reduction in complexity is what makes precise "model surgery" feasible.
- Editing Without Balanced Data: Traditionally, removing bias from a model requires a perfectly balanced dataset. With SHIFT, developers only need to identify the biased feature within the circuit and turn it off. When applied to a profession classifier, SHIFT improved "worst-group accuracy" (e.g., accuracy on female doctors or male nurses) from 24.4% to 89.0% in Pythia-70M and 18.2% to 92.9% in Gemma-2-2B.
- Automated Interpretability: By clustering model behaviors and automatically finding their corresponding circuits across The Pile, the authors demonstrated a fully unsupervised interpretability pipeline. They successfully mapped circuits for thousands of auto-discovered behaviors, such as predicting "to" after certain verbs or incrementing numerical sequences.
Limitations and Future Work
While Sparse Feature Circuits represent a significant leap forward, the method has limitations. First, it is entirely dependent on the quality of the underlying Sparse Autoencoders, which are currently computationally expensive to train. Second, there remains an "unexplained gap" or error term—information the SAE fails to capture—meaning some "dark matter" activations are still not fully understood. Finally, the SHIFT technique currently requires a human-in-the-loop to label features as relevant or irrelevant. Future work may explore using advanced LLMs to automate this labeling and trimming process entirely.
Reference: Marks, S., Rager, C., Michaud, E. J., Belinkov, Y., Bau, D., & Mueller, A. (2025). Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Models. Published as a conference paper at ICLR 2025.
Summary updated