Distribution-Aware Feature Selection for SAEs

Narmeen Oozeer, Nirmalendu Prakash, Michael Lan, Alice Rigg, Amirali AbdullaharXiv 2025 · DOI

Abstract

Sparse Autoencoders (SAEs) are essential tools for decomposing language model activations into interpretable features. However, current selection methods like BatchTopK are susceptible to an "activation lottery," where rare, high-magnitude features crowd out consistent, semantically rich ones. This paper introduces Sampled-SAE, a distribution-aware feature selection method that employs a two-stage gating process. By scoring features at the batch level before applying sparsity constraints, Sampled-SAE significantly increases the discovery of high-density features and achieves superior performance on interpretability benchmarks.

Introduction: The Activation Lottery

Mechanistic interpretability relies on SAEs to map high-dimensional model activations into a sparse set of interpretable features. While traditional TopK SAEs enforce a fixed number of active features per token, recent advancements like BatchTopK allow for variable sparsity by selecting the top activations across an entire batch.

However, BatchTopK introduces a phenomenon termed the "activation lottery." In this regime, features compete globally across the batch. Features that fire rarely but with extreme magnitude—often representing "spiky" noise—can dominate the selection process, displacing "middle-frequency" features. These displaced features are often semantically rich, capturing structural concepts like syntax or document position that fire consistently but at lower magnitudes.

Methods: Sampled-SAE

To mitigate the activation lottery, we propose Sampled-SAE, which generalizes the BatchTopK selection into a two-stage gating mechanism:

  1. Candidate Selection: Features are first ranked across the batch using a global scoring function (e.g., $\ell_2$-norm, squared-L, or entropy). A restricted candidate pool of size $K\ell$ is selected, where $\ell$ is a tunable expansion factor.
  2. Sparsification: Standard BatchTopK selection is then applied, but restricted only to the features within the candidate pool.
Conceptual illustration of the 'activation lottery' and the proposed selection mechanism. (a) Standard feature activations across a batch. (b) Sampled-SAE selects a candidate pool of features (blue dashed ovals) based on global batch statistics, filtering out outliers (grey circles).

By adjusting $\ell$, researchers can navigate the trade-off between global consistency ($\ell=1$) and standard BatchTopK ($\ell=n/K$).

Experimental Results

We evaluated Sampled-SAE using Pythia-160M trained on the residual stream (layer 6) and benchmarked performance using SAEBENCH.

Reconstruction vs. Interpretability

While BatchTopK remains superior in terms of reconstruction fidelity (lowest Fraction of Variance Unexplained, or FVU), Sampled-SAE variants—particularly those using $\ell_2$ and squared-L scoring—demonstrate superior performance in probing accuracy and feature absorption. This suggests that optimizing purely for reconstruction can lead to the inclusion of non-interpretable, noisy features at the expense of cleaner conceptual boundaries.

Performance benchmarks on Pythia-160M. Sampled-SAE variants (colored dots) define a Pareto frontier (red line) that often exceeds BatchTopK (black cross) in probing accuracy while reducing feature absorption.

Feature Density and Discovery

Sampled-SAE is notably more effective at capturing "high-density" features—those activating in more than 10% of tokens. Our results show a 2-3x increase in the density of these frequently activating features compared to BatchTopK. Furthermore, Sampled-SAE discovers a distinct set of features; while BatchTopK favors abstract, domain-specific concepts, Sampled-SAE tends to identify compositional structures like relational operators and HTML tags.

Discussion and Future Work

Sampled-SAE provides a tunable family of models via the expansion factor $\ell$, allowing researchers to prioritize either shared global structure or fine-grained reconstruction.

Current limitations include the computational overhead of tuning the additional hyperparameter $\ell$ and the need to scale these findings to larger models (e.g., 70B+ parameters). Future research will explore adaptive scoring functions and potential integrations with Mixture-of-Experts (MoE) routing architectures to further refine feature selection in sparse models.

Summary updated

BibTeX
@misc{oozeer2025distribution,
  author = {Narmeen Oozeer and Nirmalendu Prakash and Michael Lan and Alice Rigg and Amirali Abdullah},
  title = {{Distribution-Aware Feature Selection for SAEs}},
  year = {2025},
  eprint = {2508.21324},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.21324},
}
Figure