Making Sense Of Distributed Representations With Activation Spectroscopy

Kyle Reing, Greg Ver Steeg, Aram GalstyanarXiv 2025 · DOI

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.

Comparison of ActSpec with Integrated Gradients and Saliency on MNIST. ActSpec distinguishes between core features (white/red) and redundant features (orange).

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.

Subset size and redundancy trends as Dropout increases. Higher dropout forces the network to rely on smaller, more robust neuron packets.

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

Abstract

In the study of neural network interpretability, there is growing evidence to suggest that relevant features are encoded across many neurons in a distributed fashion. Making sense of these distributed representations without knowledge of the network's encoding strategy is a combinatorial task that is not guaranteed to be tractable. This work explores one feasible path to both detecting and tracing the joint influence of neurons in a distributed representation. We term this approach Activation Spectroscopy (ActSpec), owing to its analysis of the pseudo-Boolean Fourier spectrum defined over the activation patterns of a network layer. The sub-network defined between a given layer and an output logit is cast as a special class of pseudo-Boolean function. The contributions of each subset of neurons in the specified layer can be quantified through the function's Fourier coefficients. We propose a combinatorial optimization procedure to search for Fourier coefficients that are simultaneously high-valued, and non-redundant. This procedure can be viewed as an extension of the Goldreich-Levin algorithm which incorporates additional problem-specific constraints. The resulting coefficients specify a collection of subsets, which are used to test the degree to which a representation is distributed. We verify our approach in a number of synthetic settings and compare against existing interpretability benchmarks. We conclude with a number of experimental evaluations on an MNIST classifier, and a transformer-based network for sentiment analysis.
BibTeX
@misc{reing2025making,
  author = {Kyle Reing and Greg Ver Steeg and Aram Galstyan},
  title = {{Making Sense Of Distributed Representations With Activation Spectroscopy}},
  year = {2025},
  eprint = {2501.15435},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.15435},
}
Figure