Interpretability as Compression: Reconsidering SAE Explanations of Neural Activations

Kola Ayonrinde, Michael T Pearce, Lee Sharkey

TL;DR

This paper reframes Sparse Autoencoders (SAEs) as lossy compression algorithms for explaining neural activations. By applying the Minimal Description Length (MDL) principle, they propose a more principled way to train SAEs that balances accuracy and conciseness, leading to more interpretable features than those optimized solely for sparsity.

What Problem Does This Paper Address?

Interpreting the internal workings of neural networks, especially large language models, is a major challenge. Sparse Autoencoders (SAEs) are a popular tool for this, aiming to learn interpretable "features" that explain neuron activations. However, a common approach to training SAEs involves optimizing for reconstruction loss and sparsity (minimizing the number of active features). This often leads to SAEs that are excessively wide and sparse, which the authors argue doesn't necessarily yield the most interpretable features. The paper addresses the question of how to train SAEs that produce explanations that are not only accurate but also truly understandable and decomposable.

Methods

The core contribution is an information-theoretic framework for interpreting SAEs. They view SAEs as a communication protocol: transmitting compressed "feature activations" and a decoder to reconstruct the original activations. This perspective leads them to adopt the Minimal Description Length (MDL) principle, which favors explanations that are both accurate (low reconstruction error) and concise (short description length).

A key concept introduced is "independent additivity": interpretable features should be understandable in isolation, meaning the explanation of a combined set of features should be the sum of their individual explanations. This property is compatible with linear decoders and suggests architectures like directed trees for more efficient coding.

The authors propose an algorithm to find the MDL-optimal SAE by searching for hyperparameters that minimize description length while staying within a given reconstruction loss tolerance. They also analyze the trade-offs between sparsity and description length, particularly in the context of "feature splitting" (where a single concept is represented by multiple features).

Datasets

  • MNIST: Used for training and evaluating the proposed MDL-SAE framework. The authors demonstrate that their MDL approach finds features representing line segments, which are more interpretable and composable than features learned by SAEs optimized for extreme sparsity or density.

Key Insights and Ideas

  • SAEs as Lossy Compression: Reframing SAEs as a communication problem where features are compressed explanations provides a powerful theoretical lens.
  • MDL over Sparsity: The Minimal Description Length principle offers a more nuanced objective than pure sparsity for achieving interpretability. It balances accuracy with conciseness, avoiding pitfalls of extreme sparsity.
  • Independent Additivity is Crucial: For features to be truly interpretable, they must be independently additive. This means understanding one feature shouldn't require understanding complex interactions with others.
  • Feature Splitting Nuance: While sparsity can lead to feature splitting, MDL provides a criterion to distinguish between beneficial and undesirable splitting. Undesirable splitting, which doesn't add explanatory power, can be avoided by minimizing description length.
  • Hierarchical Architectures: The MDL framework naturally suggests hierarchical SAE architectures (like directed trees) that can lead to more efficient and interpretable coding of features, especially when there are causal relationships between them.

Key Results

  • MNIST Digit Decomposition: When applied to MNIST, the MDL-optimal SAEs learned features representing line segments and strokes, which are more reusable and composable than point-like features from dense SAEs or whole-digit features from very sparse SAEs.
  • Description Length Trade-offs: The paper quantifies description lengths for different SAE configurations (dense, sparse, and MDL-optimal) on MNIST, showing that MDL-optimal SAEs achieve a good balance. For example, they show that reasonable SAEs provide significant compression compared to dense activations or one-hot encodings.
  • Avoiding Undesirable Feature Splitting: The MDL criterion is shown to provide a decision boundary for when feature splitting is preferred, helping to avoid cases where it leads to redundant or less interpretable representations.

Limitations and Future Work

  • Computational Cost of Hyperparameter Search: The current MDL approach involves training multiple SAEs and performing a hyperparameter sweep, which can be computationally expensive. Future work could explore incorporating the entropy term directly into the loss function for direct optimization.
  • Dataset Dependency: The observed behavior of description length with SAE width might be dataset-dependent.
  • Formal Link to Rate-Distortion Theory: The authors suggest future work could explore a formal link between their MDL framework, interpretability, and established concepts like rate-distortion theory and compressed sensing.
  • Exploiting Causal Structure: Further research could investigate how exploiting causal structure inherent in data distributions can lead to even more efficient coding and interpretable SAEs.
  • Operationalizing Interpretability: The paper proposes that description length can serve as a principled metric for evaluating SAE interpretability, reducing reliance on subjective human ratings.

Summary updated

BibTeX
@inproceedings{ayonrinde2024interpretability,
  author = {Kola Ayonrinde and Michael T Pearce and Lee Sharkey},
  title = {{Interpretability as Compression: Reconsidering SAE Explanations of Neural Activations}},
  booktitle = {Compression @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=cblEXlSaWz},
}
Figure