Adaptive Sparse Allocation with Mutual Choice & Feature Choice Sparse Autoencoders

Kola Ayonrinde · DOI

Abstract

Sparse Autoencoders (SAEs) are essential for mechanistic interpretability in large language models (LLMs), yet they face challenges with "dead features" and rigid sparsity constraints. This paper proposes a resource allocation framework for feature activation, introducing Feature Choice (FC) and Mutual Choice (MC) SAEs. These methods enable adaptive computation—allocating more features to complex tokens—and eliminate dead features by ensuring every feature in the dictionary is utilized.

Introduction

Mechanistic interpretability aims to decompose the internal activations of LLMs into human-understandable features. While SAEs are the primary tool for this task, current architectures suffer from two significant limitations. First, the "dead feature" problem results in a high percentage of inactive features, wasting model capacity. Second, rigid sparsity mechanisms like TopK force a uniform number of features per token, regardless of the token's semantic complexity. For instance, a common punctuation mark is forced to use the same "sparsity budget" as a rare technical term, leading to inefficient reconstruction.

Methodology: Framing Activation as Resource Allocation

The core contribution of this work is reimagining feature activation as a many-to-many matching problem between tokens and features, subject to a global activation budget $M$.

Comparison of feature selection mechanisms: Affinities, Token Choice (TopK), Feature Choice, Mutual Choice, and ReLU.

Mutual Choice (MC) SAEs

Instead of selecting the top $k$ features per token, MC SAEs select the top $M$ activations across an entire batch. This allows for "Adaptive Computation," where difficult tokens can claim a larger share of the feature budget while simpler tokens use fewer.

Feature Choice (FC) SAEs

In FC SAEs, each feature "picks" the top $m$ tokens it most effectively reconstructs. By design, this ensures that every feature in the dictionary is active on at least some tokens, effectively achieving zero dead features.

Zipf-Distributed Sparsity and Auxiliary Loss

The paper observes that feature activity follows a Zipf distribution, mirroring natural language word frequencies. To support this, a new auxiliary loss function, aux_zipf_loss, is introduced to prevent underutilization and maintain feature activity before they become completely "dead."

Experimental Setup

Experiments were conducted on GPT-2 Small (layer 6 residual stream) across various SAE scales, ranging from 4x to 32x the width of original activations. Large-scale tests included autoencoders with up to 34 million latent features.

Key Results

The proposed methods demonstrate significant improvements over standard TopK and ReLU SAEs:

  • Pareto Efficiency: Both MC and FC SAEs achieved superior reconstruction loss at equivalent sparsity levels.
  • Elimination of Dead Features: FC SAEs maintained 0% dead features across all scales, including the 34m latent dimension model, where baselines often reached 90% dead feature rates.
  • Adaptive Allocation: Qualitative analysis confirmed that the model successfully allocated fewer features to "easy" tokens (e.g., <BOS>) and more to "hard" tokens, optimizing functional capacity.

Discussion and Future Work

The success of these methods relies on the Monotonic Importance Heuristic (MIH), which assumes activation magnitude is a proxy for feature importance. While this enables efficient global selection, it may overlook low-magnitude signals critical for specific downstream tasks.

Furthermore, the hypothesis that SAE features are the "semantic units of computation" explains the observed Zipf distribution. Future work should explore whether these findings generalize to non-linguistic modalities like vision or audio and develop more robust metrics for interpretability beyond reconstruction loss.

Conclusion

By shifting from rigid per-token sparsity to a global resource allocation framework, Feature Choice and Mutual Choice SAEs provide a more efficient and robust path for LLM interpretability, effectively solving the dead feature problem while enabling adaptive computation.

Summary updated

BibTeX
@misc{ayonrinde2024adaptive,
  author = {Kola Ayonrinde},
  title = {{Adaptive Sparse Allocation with Mutual Choice \& Feature Choice Sparse Autoencoders}},
  year = {2024},
  eprint = {2411.02124},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.02124},
}
Figure