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

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.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-23
DOI
https://doi.org/10.5281/zenodo.24462284
Primary Topic
Explainable Artificial Intelligence (XAI)
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

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

Parit Kansal
Zenodo (CERN European Organization for Nuclear Research)
Explainable Artificial Intelligence (XAI)
preprint

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

Parit Kansal
preprint en

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.

Zenodo (CERN European Organization for Nuclear Research)
Explainable Artificial Intelligence (XAI)
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon