[Paper Review] Scaling and evaluating sparse autoencoders
This OpenAI study develops a scalable TopK-sparse autoencoder framework to analyze reconstruction-sparsity trade-offs, introduces new quality metrics, and trains a 16M-latent autoencoder on GPT-4 activations to study scaling laws.
Sparse autoencoders provide a promising unsupervised approach for extracting interpretable features from a language model by reconstructing activations from a sparse bottleneck layer. Since language models learn many concepts, autoencoders need to be very large to recover all relevant features. However, studying the properties of autoencoder scaling is difficult due to the need to balance reconstruction and sparsity objectives and the presence of dead latents. We propose using k-sparse autoencoders [Makhzani and Frey, 2013] to directly control sparsity, simplifying tuning and improving the reconstruction-sparsity frontier. Additionally, we find modifications that result in few dead latents, even at the largest scales we tried. Using these techniques, we find clean scaling laws with respect to autoencoder size and sparsity. We also introduce several new metrics for evaluating feature quality based on the recovery of hypothesized features, the explainability of activation patterns, and the sparsity of downstream effects. These metrics all generally improve with autoencoder size. To demonstrate the scalability of our approach, we train a 16 million latent autoencoder on GPT-4 activations for 40 billion tokens. We release training code and autoencoders for open-source models, as well as a visualizer.
Motivation & Objective
- Develop a state-of-the-art method to reliably train extremely wide and sparse autoencoders on language model activations.
- Characterize scaling laws for sparsity, autoencoder size, and subject model size across GPT-2 and GPT-4.
- Propose and validate new metrics for latent feature quality, including feature recovery, explainability, and downstream impact.
Proposed method
- Adopt TopK (k-sparse) autoencoders to directly control sparsity without L1 penalties, evaluating reconstruction performance with a pure L2 loss.
- Use initialization and auxiliary losses to prevent dead latents, achieving low dead-latent rates even at large scales (e.g., 7% dead latents for the 16M-latent model).
- Systematically scale autoencoder size (n latents) and sparsity (k) across GPT-2 small and GPT-4 family activations to derive scaling laws for MSE and sparsity.
- Compare TopK with baseline ReLU and other activations, showing improved sparsity-reconstruction frontier and reduced activation shrinkage.
- Define and compute evaluation metrics beyond MSE, including downstream loss, probe loss, explainability, and ablation sparsity to assess feature quality.
- Train a 16M-latent autoencoder on GPT-4 residual streams for 40B tokens to demonstrate scalability.

Experimental results
Research questions
- RQ1How do sparsity and autoencoder size interact to affect reconstruction quality and latent usefulness across large language models?
- RQ2Do larger, sparser autoencoders improve downstream predictive performance and interpretable feature recovery?
- RQ3What metrics best capture the quality and interpretability of features learned by sparse autoencoders in language models?
- RQ4Can TopK-sparse autoencoders mitigate dead latents at scale and how does this choice compare to alternative activations?
- RQ5How do scaling laws change with subject model size (GPT-2 vs GPT-4) and fixed sparsity?
Key findings
- TopK autoencoders outperform ReLU and ProLU baselines on the sparsity-reconstruction frontier, with better monosemanticity of activating examples.
- Dead latents are substantially reduced using encoder-decoder initialization and an auxiliary loss; in the largest 16M-latent model, only 7% latents remained dead.
- Clean scaling laws emerge for MSE with respect to autoencoder size n and sparsity k, including a joint L(n,k) relationship for GPT-4.
- Larger autoencoders generally improve downstream loss, probe loss, and explainability metrics across GPT-2 small and GPT-4 activations.
- A 16M-latent GPT-4 autoencoder trained on 40B tokens achieves downstream performance comparable to 10% of GPT-4 pretraining compute in a specific comparison.
- New evaluation metrics (downstream loss, probe loss, explainability, ablation sparsity) show improvements with larger and sparser models.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.