Introduction
A central challenge in mechanistic interpretability is polysemanticity: the phenomenon where individual neurons respond to multiple, often unrelated features. This suggests that the fundamental units of representation in neural networks are not single neurons, but rather distributed representations—complex, joint states across many neurons.
Identifying these joint influences is computationally daunting; for a layer with $n$ neurons, there are $2^n$ possible subsets to evaluate. Traditional attribution methods, such as Saliency maps or Integrated Gradients, typically analyze neurons in isolation or via local gradients, often failing to capture these combinatorial interactions. This paper introduces Activation Spectroscopy (ActSpec), a framework that leverages pseudo-Boolean Fourier analysis to efficiently identify the neuron subsets that drive model decisions.
Methodology: The ActSpec Framework
ActSpec treats the sub-network between a specific layer and the model output as a pseudo-Boolean function. By binarizing neuron activations (on/off), the relationship can be decomposed using a Fourier Expansion. To navigate the exponential search space, the authors adapted the Goldreich-Levin algorithm, a theoretical computer science tool, into a branch-and-bound search for high-valued Fourier coefficients.
Key innovations include:
- In-Distribution Projections: Standard Fourier analysis assumes uniform random inputs. ActSpec utilizes a projection method to ensure the spectroscopy remains valid for the specific data distributions (e.g., natural images) the network actually encounters.
- Redundancy Filtering: To handle correlated neurons, ActSpec filters out complex subsets if a simpler group of neurons explains the output with equal fidelity.
Visualizing Distributed Features
The authors evaluated ActSpec on MNIST to visualize how pixel subsets define specific digits. Unlike gradient-based methods that often "smear" importance across the input, ActSpec identifies discrete functional units.
As shown in the MNIST visualizations, ActSpec successfully separates "core" features from "redundant" features (highlighted in orange). This allows researchers to distinguish between the primary signals the network relies on and the correlated backups it might use if primary neurons are unavailable.
The Impact of Regularization
One of the most significant findings involves the effect of Dropout on internal representations. The authors observed a clear trend: as Dropout regularization increases, the size of the important neuron subsets decreases, while the overall redundancy of the network increases.
This suggests that Dropout forces the network to concentrate information into smaller, robust "packets." Because the network can no longer rely on fragile, high-dimensional joint states that might be broken by the removal of a single neuron, it adapts by creating simpler, redundant representations that are more likely to survive the dropout process.
Key Results and Causal Evidence
- Synthetic Validation: In tests with known ground-truth importance, ActSpec achieved perfect recovery (0.0 total variation distance), significantly outperforming Integrated Gradients and Shapley Values.
- Causal Interventions in Transformers: Applying ActSpec to a roBERTa model for sentiment analysis, the authors found that intervening on specific sets of neurons identified by the algorithm successfully changed model predictions. Crucially, intervening on individual neurons within those sets often had no effect, providing strong causal evidence that these neurons function as a single joint unit.
Limitations and Future Work
While powerful, ActSpec relies on the binarization of activations. While this mapping was effective in the authors' tests, it may not capture extremely dense continuous encodings in all architectures. Furthermore, while the Goldreich-Levin adaptation is far more efficient than brute force, scaling the combinatorial search to the tens of thousands of neurons found in modern Large Language Models (LLMs) remains an ongoing computational challenge.
Summary updated