English

Distribution-Aware Feature Selection for SAEs

Machine Learning 2025-09-01 v1

Abstract

Sparse autoencoders (SAEs) decompose neural activations into interpretable features. A widely adopted variant, the TopK SAE, reconstructs each token from its K most active latents. However, this approach is inefficient, as some tokens carry more information than others. BatchTopK addresses this limitation by selecting top activations across a batch of tokens. This improves average reconstruction but risks an "activation lottery," where rare high-magnitude features crowd out more informative but lower-magnitude ones. To address this issue, we introduce Sampled-SAE: we score the columns (representing features) of the batch activation matrix (via L2L_2 norm or entropy), forming a candidate pool of size KlKl, and then apply Top-KK to select tokens across the batch from the restricted pool of features. Varying ll traces a spectrum between batch-level and token-specific selection. At l=1l=1, tokens draw only from KK globally influential features, while larger ll expands the pool toward standard BatchTopK and more token-specific features across the batch. Small ll thus enforces global consistency; large ll favors fine-grained reconstruction. On Pythia-160M, no single value optimizes ll across all metrics: the best choice depends on the trade-off between shared structure, reconstruction fidelity, and downstream performance. Sampled-SAE thus reframes BatchTopK as a tunable, distribution-aware family.

Keywords

Cite

@article{arxiv.2508.21324,
  title  = {Distribution-Aware Feature Selection for SAEs},
  author = {Narmeen Oozeer and Nirmalendu Prakash and Michael Lan and Alice Rigg and Amirali Abdullah},
  journal= {arXiv preprint arXiv:2508.21324},
  year   = {2025}
}
R2 v1 2026-07-01T05:11:28.625Z