Improving Sparse Autoencoder with Dynamic Attention
Dongsheng Wang, Jinsen Zhang, Dawei Su, Hui Huang

TL;DR
This paper introduces a dynamic attention-based sparse autoencoder using sparsemax, which adaptively determines neuron activation levels, improving interpretability and reconstruction quality.
Contribution
It proposes a novel cross-attention architecture with sparsemax-based attention for flexible, data-dependent sparsity in autoencoders, enhancing interpretability and performance.
Findings
Achieves lower reconstruction loss compared to traditional methods.
Produces high-quality, interpretable concepts in classification tasks.
Automatically infers neuron activation sparsity based on data complexity.
Abstract
Recently, sparse autoencoders (SAEs) have emerged as a promising technique for interpreting activations in foundation models by disentangling features into a sparse set of concepts. However, identifying the optimal level of sparsity for each neuron remains challenging in practice: excessive sparsity can lead to poor reconstruction, whereas insufficient sparsity may harm interpretability. While existing activation functions such as ReLU and TopK provide certain sparsity guarantees, they typically require additional sparsity regularization or cherry-picked hyperparameters. We show in this paper that dynamically sparse attention mechanisms using sparsemax can bridge this trade-off, due to their ability to determine the activation numbers in a data-dependent manner. Specifically, we first explore a new class of SAEs based on the cross-attention architecture with the latent features as…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
