Efficient Dictionary Learning with Switch Sparse Autoencoders
Anish Mudide, Joshua Engels, Eric J. Michaud, Max Tegmark, Christian Schroeder de Witt
TL;DR
This work tackles the computational challenges of scaling sparse autoencoders to extract interpretable features from large language-model activations. It introduces the Switch Sparse Autoencoder, a mixture-of-experts architecture that routes activations to multiple small expert SAEs via a routing network, reducing FLOPs while preserving interpretability. The study develops end-to-end training with a reconstruction objective augmented by a load-balancing term, and analyzes scaling laws, sparsity-reconstruction tradeoffs, feature geometry, and automated interpretability, using GPT-2 residual activations. Results show Switch SAEs achieve Pareto improvements in reconstruction vs. compute over dense TopK SAEs, with some feature duplication across experts that diminishes with scale, suggesting practical applicability for large-scale training with potential wall-clock speedups on multi-GPU clusters.
Abstract
Sparse autoencoders (SAEs) are a recent technique for decomposing neural network activations into human-interpretable features. However, in order for SAEs to identify all features represented in frontier models, it will be necessary to scale them up to very high width, posing a computational challenge. In this work, we introduce Switch Sparse Autoencoders, a novel SAE architecture aimed at reducing the compute cost of training SAEs. Inspired by sparse mixture of experts models, Switch SAEs route activation vectors between smaller "expert" SAEs, enabling SAEs to efficiently scale to many more features. We present experiments comparing Switch SAEs with other SAE architectures, and find that Switch SAEs deliver a substantial Pareto improvement in the reconstruction vs. sparsity frontier for a given fixed training compute budget. We also study the geometry of features across experts, analyze features duplicated across experts, and verify that Switch SAE features are as interpretable as features found by other SAE architectures.
