ClasSAE: Class-Aligned Sparse Autoencoders via Differentiable Feature-Class Affinity
On the map: Mechanistic interpretability → Sparse autoencoder training and evaluation
Abstract (arXiv)
Sparse Autoencoders (SAEs) began as an unsupervised tool for decomposing neural representations into sparse, interpretable features, and are increasingly used not only for passive analysis but also for active interventions such as unlearning, bias mitigation, and concept editing. A central challenge for these editing and steering methods is reliably matching features to target concepts; most current approaches address this by computing post-hoc scores over an already-trained, frozen dictionary. We instead introduce ClasSAE, a novel method that both automatically assigns classes to features and guides the encoder toward class-separable representations during training. Specifically, we apply a differentiable top-k operator to a trainable feature--class affinity matrix with per-feature budgets, coupling the features selected for each sample to the classes they are trained to represent. Because gradients flow through the selection of active features rather than only through their magnitudes, the encoder and the affinity matrix co-adapt rather than being fit in separate stages. The result is a dictionary that is both class-separable and class-annotated, with no need for post-hoc probing. We propose three variants for enforcing sparsity within this framework, which achieve comparable overall performance with slightly different trade-offs. Using CLIP ViT-L/14 embeddings on ImageNet, we show that the learned affinity matrix agrees closely with an independently estimated post-hoc feature-class matrix computed on held-out data. The model also supports direct class prediction from the encoder and affinity matrix alone, without a separately fitted classifier, and its more class-aligned encoder yields improved separation in Targeted Probe Perturbation evaluations. https://github.com/St0pien/ClasSAE.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Sparse autoencoder training and evaluation, one of 13 directions in Mechanistic interpretability. Builds on 32 of its 40 references that are in the map. First posted on arXiv 2 Oct 2026.
Builds on
32 of 40 references.
Closest ancestors · 6
Same direction, newest first
- 2025SALVE: Sparse Autoencoder-Latent Vector Editing for Mechanistic Control of Neural Networks17 Dec
- 2025Evaluating and Designing Sparse Autoencoders by Approximating Quasi-Orthogonality31 Mar
- 2025Learning Multi-Level Features with Matryoshka Sparse Autoencoders21 Mar
- 2025Archetypal SAE: Adaptive and Stable Dictionary Learning for Concept Extraction in Large Vision Models18 Feb
- 2025Sparse Autoencoders Do Not Find Canonical Units of Analysis7 Feb
- 2024Decomposing The Dark Matter of Sparse Autoencoders18 Oct
Other references · 26
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,739
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,420
- 2017Interpretability Beyond Feature Attribution: Quantitative Testing with Concept Activation Vectors (TCAV)cited by 1,319
- 2020Concept Bottleneck Modelscited by 1,032
- 2024Scaling and evaluating sparse autoencoderscited by 553
- 2024Jumping Ahead: Improving Reconstruction Fidelity with JumpReLU Sparse Autoencoderscited by 300
- 2013k-Sparse Autoencoderscited by 215
- 2026Scaling Monosemanticity: Extracting Interpretable Features from Claude 3 Sonnetcited by 191
- 2024Improving Dictionary Learning with Gated Sparse Autoencoderscited by 179
- 2024A is for Absorption: Studying Feature Splitting and Absorption in Sparse Autoencoderscited by 160
- 2024BatchTopK Sparse Autoencoderscited by 130
14 more
- 2025SAEBench: A Comprehensive Benchmark for Sparse Autoencoders in Language Model Interpretabilitycited by 124
- 2024Automatically Interpreting Millions of Features in Large Language Modelscited by 113
- 2025Sparse Autoencoders Trained on the Same Data Learn Different Featurescited by 93
- 2025SAeUron: Interpretable Concept Unlearning in Diffusion Models with Sparse Autoencoderscited by 80
- 2025Interpreting CLIP with Hierarchical Sparse Autoencoderscited by 60
- 2025Enhancing Automated Interpretability with Output-Centric Feature Descriptionscited by 41
- 2023Labeling Neural Representations with Inverse Recognitioncited by 32
- 2025Priors in Time: Missing Inductive Biases for Language Model Interpretabilitycited by 25
- 2025Temporal Sparse Autoencoders: Leveraging the Sequential Nature of Language for Interpretabilitycited by 18
- 2025LapSum -- One Method to Differentiate Them All: Ranking, Sorting and Top-k Selectioncited by 13
- 2025CRISP: Persistent Concept Unlearning via Sparse Autoencoderscited by 11
- 2025SAEmnesia: Erasing Concepts in Diffusion Models with Supervised Sparse Autoencoderscited by 10
- 2025Can SAEs reveal and mitigate racial biases of LLMs in healthcare?cited by 2
- 2026Look But Don't Touch with Sparse Autoencoders for Unlearning in Diffusion Modelscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Attribution-Guided Distillation of Matryoshka Sparse Autoencoders
- 2026Supervised sparse auto-encoders for interpretable and compositional representations
- 2026Toward Identifiable Sparse Autoencoders
- 2026Size Doesn't Matter: Cosine-Scored Sparse Autoencoders
- 2026Evaluating the Interpretability of Sparse Autoencoders with Concept Annotations
- 2025Universal Sparse Autoencoders: Interpretable Cross-Model Concept Alignment
- 2024Evaluating Sparse Autoencoders on Targeted Concept Erasure Tasks
- 2025Evaluating Sparse Autoencoders: From Shallow Design to Matching Pursuit