DB-KSVD: Scalable Alternating Optimization for Disentangling High-Dimensional Embedding Spaces
On the map: Mechanistic interpretability → Sparse autoencoder training and evaluation
Abstract (arXiv)
Dictionary learning has recently emerged as a promising approach for mechanistic interpretability of large transformer models. Disentangling high-dimensional transformer embeddings requires algorithms that scale to high-dimensional data with large sample sizes. Recent work has explored sparse autoencoders (SAEs) for this problem. However, SAEs use a simple linear encoder to solve the sparse encoding subproblem, which is known to be NP-hard. It is therefore interesting to understand whether this approach is sufficient to find good solutions to the dictionary learning problem or if a more sophisticated algorithm could find better solutions. In this work, we propose Double-Batch KSVD (DB-KSVD), a scalable dictionary learning algorithm that adapts the classic KSVD algorithm. DB-KSVD is informed by the rich theoretical foundations of KSVD but scales to datasets with millions of samples and thousands of dimensions. We demonstrate the efficacy of DB-KSVD by disentangling text embeddings of the Gemma-2-2B and Pythia-160M models and evaluating on six metrics from the SAEBench benchmark, where we achieve competitive results when compared to established approaches based on SAEs. We further show similar results when disentangling image embeddings obtained from the DINOv2-S and DINOv2-B models, solidifying our findings. By matching SAE performance with an entirely different optimization approach, our results suggest that (i) SAEs do find strong solutions to the dictionary learning problem and (ii) traditional optimization approaches can be scaled to the required problem sizes, offering a promising avenue for further research. We make an implementation of DB-KSVD available at https://github.com/romeov/ksvd.jl.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Sparse autoencoder training and evaluation, one of 13 directions in Mechanistic interpretability. Builds on 31 of its 60 references that are in the map. First posted on arXiv 24 May 2025.
Builds on
31 of 60 references.
Closest ancestors · 2
Same direction, newest first
- 2025Learning Multi-Level Features with Matryoshka Sparse Autoencoders21 Mar
- 2022Toy Models of Superposition21 Sep
Other references · 29
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,974
- 2023RT-2: Vision-Language-Action Models Transfer Web Knowledge to Robotic Controlcited by 3,080
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2021Barlow Twins: Self-Supervised Learning via Redundancy Reductioncited by 1,838
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,420
- 2021VICReg: Variance-Invariance-Covariance Regularization for Self-Supervised Learningcited by 1,057
- 2024Gemma: Open Models Based on Gemini Research and Technologycited by 916
- 2024Scaling and evaluating sparse autoencoderscited by 553
17 more
- 2022Transformers in Time Series: A Surveycited by 497
- 2022Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskcited by 431
- 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 319
- 2022Matryoshka Representation Learningcited by 282
- 2020Weakly-Supervised Disentanglement Without Compromisescited by 239
- 2025SAEBench: A Comprehensive Benchmark for Sparse Autoencoders in Language Model Interpretabilitycited by 124
- 2024Steering Knowledge Selection Behaviours in LLMs via SAE-Based Representation Engineeringcited by 63
- 2016A survey of sparse representation: algorithms and applicationscited by 58
- 2020A Sober Look at the Unsupervised Learning of Disentangled Representations and their Evaluationcited by 52
- 2016A note on the sample complexity of the Er-SpUD algorithm by Spielman, Wang and Wright for exact recovery of sparsely used dictionariescited by 26
- 2025Route Sparse Autoencoder to Interpret Large Language Modelscited by 26
- 2013Learning Sparsely Used Overcomplete Dictionaries via Alternating Minimizationcited by 24
- 2025Prisma: An Open Source Toolkit for Mechanistic Interpretability in Vision and Videocited by 21
- 2024Tracking the Feature Dynamics in LLM Training: A Mechanistic Studycited by 16
- 2015On the Minimax Risk of Dictionary Learningcited by 7
- 2014Efficient GPU Implementation for Single Block Orthogonal Dictionary Learningcited by 1
- 2023Cloud K-SVD for Image Denoisingcited by 1
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025Dimensional Collapse in Transformer Attention Outputs: A Challenge for Sparse Dictionary Learning
- 2026Subspace-Aware Sparse Autoencoders for Effective Mechanistic Interpretability
- 2025SplInterp: Improving our Understanding and Training of Sparse Autoencoders
- 2025Empirical Evaluation of Progressive Coding for Sparse Autoencoders
- 2026Causal Dimensionality of Transformer Representations: Measurement, Scaling, and Layer Structure
- 2026Sparse Dictionary Learning for Measure-Valued Data via Linearized Optimal Transport: Efficient Algorithms and Sample Complexity
- 2025Interpreting Large Text-to-Image Diffusion Models with Dictionary Learning
- 2026Expander Sparse Autoencoders: Parameter-Efficient Dictionaries for Mechanistic Interpretability