Beyond the Hard Budget: Sparsity Regularizers for More Interpretable Top-k Sparse Autoencoders

TL;DR

Introduces two activation regularizers for Top-k sparse autoencoders, enhancing interpretability and robustness without sacrificing reconstruction quality.

cs.LG 🔴 Advanced 2026-06-26 109 views
Nathanaël Jacquier Maria Vakalopoulou Mahdi S. Hosseini
Sparse Autoencoder Top-k Sparsity Regularization Model Interpretability Vision Foundation Models

Key Findings

Methodology

This paper proposes two regularization strategies compatible with the Top-k sparse autoencoder (SAE): an off-support ℓ1 penalty and a scale-invariant ℓ1/ℓ2 ratio penalty. Both are applied to the activations prior to the Top-k selection, focusing only on batch-active units—those activated at least once within a batch. Experiments conducted on ImageNet-1K and Open Images V7 datasets, using embeddings from three pre-trained vision models (CLIP, SigLIP2, ViT-L/16), demonstrate that these regularizers consistently improve monosemanticity scores and class purity metrics while maintaining reconstruction performance. The ℓ1/ℓ2 regularizer further concentrates information into fewer latent units, reducing sensitivity to the inference-time choice of k, and enhances downstream linear probing tasks. The findings reveal that combining hard architectural sparsity with soft regularization yields complementary benefits, leading to more interpretable and robust representations.

Key Results

  • Across multiple datasets, models, and k values (32, 64, 128), the regularizers significantly improve monosemanticity scores—up to 0.13 points—without degrading R2 reconstruction metrics. This indicates enhanced interpretability with preserved reconstruction fidelity.
  • The ℓ1/ℓ2 regularizer effectively concentrates activations, reducing dead neurons and making the model’s representation more robust to variations in k during inference. Experimental results show minimal change in reconstruction error when k varies around the training value.
  • Category purity analysis confirms that regularized models produce latent units with responses more aligned to single classes, increasing class purity by approximately 0.1-0.15, thus improving the interpretability of individual latent units.

Significance

This work addresses fundamental limitations of fixed-budget Top-k SAE models by introducing soft regularization techniques that enhance the interpretability and robustness of learned representations. The ability to adaptively concentrate information into fewer units and reduce sensitivity to hyperparameters has broad implications for explainable AI, especially in high-stakes domains like medical imaging and autonomous systems. The demonstrated improvements in monosemanticity and class purity pave the way for more transparent and controllable deep learning models, fostering trust and facilitating model auditing. Moreover, the methodological framework offers a new avenue for integrating architectural constraints with soft regularization, enriching the toolbox for representation learning.

Technical Contribution

The core technical innovation lies in the design of two activation-level regularizers that operate before the Top-k selection: an off-support ℓ1 penalty that suppresses non-essential activations, and an ℓ1/ℓ2 ratio penalty that encourages activation sparsity and concentration. These regularizers are compatible with the hard Top-k mechanism, enabling a hybrid approach that combines the benefits of architectural sparsity with soft, differentiable constraints. The ℓ1/ℓ2 regularizer’s scale invariance and its ability to promote information concentration into fewer units distinguish it from traditional ℓ1-based methods. Extensive experiments validate that these strategies improve interpretability metrics without compromising reconstruction quality, offering a new paradigm for sparse representation learning.

Novelty

This research is the first to systematically incorporate activation-level regularization directly into the Top-k sparse autoencoder framework. Unlike prior approaches that rely solely on architectural constraints, the proposed regularizers provide a soft, learnable mechanism to enhance feature selectivity and concentration. The ℓ1/ℓ2 ratio regularizer, in particular, introduces a scale-invariant sparsity measure into the autoencoder context, enabling more robust and interpretable representations. This combination of hard and soft sparsity controls represents a significant departure from existing methods, offering a novel pathway to improve the interpretability and robustness of sparse models.

Limitations

  • The regularization strength (λ) requires careful tuning and may not generalize well across different datasets or tasks without adaptation.
  • While the concentration improves robustness, excessive regularization can lead to information loss, especially in highly complex or noisy data scenarios.
  • The experiments focus on frozen embeddings and do not explore end-to-end training scenarios, limiting the immediate applicability to broader model architectures.

Future Work

Future research could develop adaptive schemes for tuning regularization parameters dynamically based on data complexity. Extending these regularization techniques to end-to-end training of vision models or multi-modal systems could further enhance their utility. Additionally, exploring the integration of these methods with other sparsity-inducing mechanisms, such as structured sparsity or attention-based approaches, might yield even more interpretable and robust models. Investigating their effectiveness in real-world applications like medical diagnosis, autonomous driving, and natural language understanding will be crucial for translating these advances into practical tools.

AI Executive Summary

The rapid advancement of vision foundation models (VFMs) such as CLIP, ViT, and SigLIP has revolutionized image understanding, enabling powerful applications across industries. However, these models often operate as complex, high-dimensional representations that are difficult to interpret, limiting their transparency and controllability. This opacity stems from phenomena like polysemanticity and superposition, where individual units respond to multiple concepts simultaneously, obscuring the underlying structure of the learned features.

Sparse autoencoders (SAEs) have emerged as a promising approach to address this challenge by decomposing high-dimensional embeddings into more interpretable, sparse representations. Among them, Top-k SAE enforces a hard sparsity constraint by retaining only the top k activations per input, effectively reducing the complexity and promoting feature selectivity. Nonetheless, this approach has inherent limitations: the fixed k value is uniform across all samples, ignoring the variability in input complexity, and the model tends to overfit to the training k, reducing robustness during inference.

To overcome these issues, the authors propose two novel regularization strategies applied at the activation level before the Top-k selection. The first, off-support ℓ1 penalty, encourages inactive units to remain near zero, sharpening the selectivity of each latent feature. The second, a scale-invariant ℓ1/ℓ2 ratio penalty, concentrates the information into fewer effective units, making the representation more robust and interpretable. These regularizers are designed to complement the architectural sparsity, creating a hybrid framework that combines the strengths of both approaches.

Extensive experiments across multiple datasets, models, and hyperparameters demonstrate that these regularizers significantly improve the monosemanticity and class purity of the learned features. The ℓ1/ℓ2 regularizer, in particular, enhances the concentration of information, reducing the number of dead neurons and increasing robustness to variations in the inference-time k. The results show that the models maintain high reconstruction quality while achieving more interpretable and concentrated representations.

This work offers a substantial step forward in the quest for explainable AI. By bridging the gap between hard architectural constraints and soft regularization, it provides a flexible and effective framework for learning sparse, interpretable features. The implications extend beyond vision models, potentially influencing broader areas like natural language processing and multi-modal learning. Despite some limitations in parameter tuning and scope, the proposed methods open new avenues for developing transparent, robust, and controllable AI systems, aligning technical innovation with practical needs for interpretability and trustworthiness.

Deep Dive

Plain Language Accessible to non-experts

Imagine you’re running a busy kitchen where many chefs (features) are working to prepare dishes (representations). In the past, all chefs would try to work on every dish, leading to chaos and confusion about who is responsible for what. To fix this, the head chef decides that only the top few chefs (say, the best three) can work on each dish, making the process clearer and more organized. But sometimes, the same few chefs are always chosen, regardless of the dish’s complexity, which isn’t ideal.

To improve this system, the kitchen introduces two new rules. First, they penalize the chefs who aren’t contributing much to the dish, encouraging only the most relevant chefs to work. Second, they focus on concentrating the work into fewer chefs, so each dish is prepared by a small, specialized team. These rules help the kitchen run more smoothly, with clearer responsibilities and better quality dishes.

This analogy shows how the new methods make the process more efficient and understandable, just like improving a complex AI model’s internal features. Instead of relying only on strict rules (like the top few chefs), they add soft penalties that guide the system to be more focused and interpretable, leading to better performance and easier understanding of what’s happening inside the model.

ELI14 Explained like you're 14

Imagine you’re in a school cafeteria with tons of different food stations (features). Normally, everyone goes to all stations, which makes it messy and hard to tell what’s really important. Now, suppose the cafeteria decides that only the top few stations (say, the best 3) are allowed to serve food at a time, so everyone knows exactly where to go. That makes things clearer, but sometimes, the same stations are always chosen, no matter what kind of meal you want.

To fix this, the cafeteria adds two new rules: one is to make the stations that aren’t being used less noticeable, encouraging only the most relevant stations to be active. The other is to concentrate the food preparation into fewer stations, so each meal is made by a small, specialized team. These changes help the cafeteria run more smoothly, and it’s easier for everyone to understand what’s happening.

In AI, it’s similar. The model has many features, but they’re often confusing because many are active at once. By adding these new rules, the model learns to focus only on the most important features, making it easier to understand and trust. It’s like having a well-organized cafeteria where everyone knows exactly which stations to use for each meal, making the whole process more efficient and transparent.

Abstract

Sparse autoencoders (SAEs) have become a leading tool for interpreting the representations of vision foundation models, decomposing their polysemantic activations into a larger set of sparse, more monosemantic features. The Top-$k$ SAE, a now-standard variant, enforces sparsity architecturally through its activation function, retaining only the $k$ most active latents per input. Because it was designed precisely to avoid the $\ell_1$ penalty used by earlier SAEs and its known drawbacks, it has not been combined with an explicit sparsity regularizer, despite retaining limitations of its own, such as a budget $k$ that is fixed regardless of input complexity and a tendency to overfit to the training value of $k$. We introduce two sparsity regularizers compatible with the Top-$k$ architecture, both acting on the activations before the Top-$k$ selection: an $\ell_1$ penalty on the unselected (off-support) units, and a scale-invariant $\ell_1/\ell_2$-ratio penalty that concentrates the code onto fewer effective units. Both penalties are applied only to the batch-active units, those selected by the Top-$k$ operator at least once within the batch. Across two datasets, three vision foundation models, and a range of $k$, both regularizers consistently improve monosemanticity at no cost to reconstruction quality. The $\ell_1/\ell_2$ penalty further concentrates information into fewer latents, making reconstruction more robust to the inference-time choice of $k$ and improving small-budget linear probing. Our central finding is that hard architectural sparsity and soft sparsity regularization are complementary rather than mutually exclusive.

cs.LG cs.AI

References (9)

An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale

Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov et al.

2020 64875 citations ⭐ Influential View Analysis →

Non-negative Matrix Factorization with Sparseness Constraints

P. Hoyer

2004 3055 citations ⭐ Influential View Analysis →

Learning Transferable Visual Models From Natural Language Supervision

A. Linear-probe

2021 162 citations

Probing the Representational Power of Sparse Autoencoders in Vision Models

M. L. Olson, M. Hinck, Neale Ratzlaff et al.

2025 6 citations View Analysis →

SoftSAE: Dynamic Top-K Selection for Adaptive Sparse Autoencoders

Jakub Stkepie'n, Marcin Mazur, Jacek Tabor et al.

2026 1 citations View Analysis →

DeepHoyer: Learning Sparser Neural Network with Differentiable Scale-Invariant Sparsity Measures

Huanrui Yang, W. Wen, H. Li

2019 114 citations View Analysis →

k-Sparse Autoencoders

Alireza Makhzani, Brendan J. Frey

2013 581 citations View Analysis →

ImageNet Large Scale Visual Recognition Challenge

Olga Russakovsky, Jia Deng, Hao Su et al.

2014 42938 citations View Analysis →

Sparse Autoencoders Find Highly Interpretable Features in Language Models

Hoagy Cunningham, Aidan Ewart, L. Smith et al.

2023 1311 citations View Analysis →