Work

Do Sparse Autoencoders Capture Structure Learned in Context? A Width- and Sparsity-Matched Random Baseline

Year: 2026
Type: preprint
Abstract: Sparse autoencoders (SAEs) are widely used to read language-model activations, but many SAE evaluations are also passed by dictionaries that reflect little or no learned computation. We ask whether public SAEs capture structure that a model learns only from its prompt better than such dictionaries do. On two synthetic tasks, a random walk over a graph of words and the hidden-state belief of in-context hidden Markov models (HMMs), we compare SAEs in three language models (two for the HMMs) with random dictionaries of the same width and number of active features, at fixed layers. On both tasks, the main SAEs leave much less of the structure in their reconstruction error than every matched random dictionary; on the graph task this lead holds across five seeds, most other public SAEs, a real-world graph and the attention and MLP outputs. Single features separate them less reliably, and how close random dictionaries come depends on the measure: very wide one-shot random dictionaries nearly match the widest SAE in error share but have about three times its total error, and on Gemma-3 a squared error share and one dominant direction in the HMMs narrow or reverse the lead. In our setting, error share alone, a ratio test and an unmatched rotation each made random baselines look stronger than they are, so we recommend matching them in width and sparsity and reporting total error.
Language: English
Open Access status: green
OpenAlex ID: W7238881499
Cites:
Cited by:
Related to: