NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Train One Sparse Autoencoder Across Multiple Sparsity Budgets to Preserve Interpretability and Accuracy

Nikita Balagansky, Yaroslav Aksenov, Daniil Laptev, Vadim Kurochkin, Gleb Gerasimov, Nikita Koriagin, Daniil Gavrilov

TL;DR

This paper introduces HierarchicalTopK, a novel training objective for Sparse Autoencoders (SAEs) that allows a single model to maintain interpretability and accuracy across a wide range of sparsity levels. This overcomes the limitation of traditional SAEs that require retraining for each desired sparsity, offering a more flexible and efficient approach to analyzing neural network representations.

What Problem Does This Paper Address?

Neural networks, particularly in Natural Language Processing (NLP), have become incredibly powerful but notoriously difficult to interpret. Their internal "neurons" often exhibit polysemanticity, meaning a single neuron can activate for multiple, unrelated concepts. Sparse Autoencoders (SAEs) offer a solution by decomposing these complex hidden states into disentangled, human-interpretable features using sparsity constraints. However, standard SAEs are trained for a single fixed sparsity level. If you want to analyze the same model at different levels of detail (e.g., more or fewer features), you need to train entirely new SAEs, which is computationally expensive and inefficient. This paper addresses the need for a single SAE that can adapt its sparsity level dynamically without sacrificing interpretability or accuracy.

Methods

The core innovation is the HierarchicalTopK training objective. Unlike traditional SAEs that optimize for a single sparsity level (e.g., keeping only the top k active features), HierarchicalTopK encourages the SAE to achieve good reconstructions not just for the top k features, but for all sparsity levels from 1 up to a maximum budget K. This is achieved by introducing a hierarchical loss function that considers reconstructions at multiple sparsity levels simultaneously.

The paper also highlights the use of Triton kernels for efficient implementation of the HierarchicalTopK objective, significantly reducing computational overhead and memory usage compared to naive implementations.

Datasets

  • Training Data: A 1 billion token subsample of the FineWeb dataset was used to train SAEs on the Gemma-2 2B model.
  • Evaluation Data: The paper also presents results on the Qwen-2.5-7B model, using layer 14.

Key Insights and Ideas

  • One Model, Many Sparsities: The most significant insight is that a single SAE can be trained to be effective across a spectrum of sparsity levels, challenging the assumption that each sparsity requires a dedicated model.
  • Pareto Optimality: HierarchicalTopK SAEs achieve Pareto-optimal trade-offs between explained variance (accuracy) and sparsity, meaning they offer better performance than traditional SAEs trained at individual sparsity levels.
  • Preserving Interpretability: A key benefit is that HierarchicalTopK maintains high interpretability scores even when sparsity is reduced (more features are active), preventing the common issue of features becoming "dead" or entangled at lower sparsity.
  • Efficient Implementation: The use of specialized kernels (Triton) is crucial for making this hierarchical approach computationally feasible, especially at scale.

Key Results

  • Performance: HierarchicalTopK SAEs match or surpass the performance of individually trained TopK and BatchTopK SAEs across various sparsity levels, even when interpolating between trained points.
  • Interpretability: The Hierarchical SAE maintains a high interpretability score (measured by AutoInterp Score) across different sparsity levels, unlike traditional SAEs where interpretability often degrades as sparsity decreases.
  • Feature Health: Hierarchical training leads to fewer "almost dead" features (features with very low activation frequency) compared to traditional SAEs when sparsity is varied at inference time.
  • Efficiency: While requiring specialized kernels, the HierarchicalTopK implementation offers competitive latency and memory usage compared to optimized traditional SAE kernels.

Limitations and Future Work

  • Limited Scope: The current evaluation is limited to the Gemma-2 2B and Qwen-2.5-7B models and the FineWeb dataset. Further research is needed to test transferability to other architectures and datasets.
  • Automated Metrics: The paper relies on automated metrics for interpretability. Future work should include user studies to validate semantic alignment with human judgment.
  • Future Directions: The authors suggest exploring how this approach can be applied to other types of neural network representations and investigating its benefits in downstream tasks that might require dynamic sparsity adaptation.

Summary updated

BibTeX
@inproceedings{balagansky2025train,
  author = {Nikita Balagansky and Yaroslav Aksenov and Daniil Laptev and Vadim Kurochkin and Gleb Gerasimov and Nikita Koriagin and Daniil Gavrilov},
  title = {{Train One Sparse Autoencoder Across Multiple Sparsity Budgets to Preserve Interpretability and Accuracy}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure