Sparse autoencoder (SAE)
A sparse autoencoder is a small neural network trained to break a model's internal activations into a large set of features, only a few active at a time, which researchers can often interpret.
Looking inside a language model is hard because its individual neurons rarely mean one thing. A single neuron may fire for unrelated concepts, a property called polysemanticity. A September 2023 paper by Hoagy Cunningham and colleagues started from one hypothesised cause, superposition: a network represents more concepts than it has neurons by spreading them across many overlapping directions. Sparse autoencoders are a tool for pulling those directions apart.
The method takes the activations from one layer of a model and trains a second, much wider network to reconstruct them. The encoder maps each activation into many more units than the original layer had, and a sparsity constraint forces only a handful to be active for any given input. The decoder then rebuilds the original activation from those few units. Each unit that survives this squeeze tends to correspond to a single recognisable concept, called a feature. The approach is a form of dictionary learning, a long-established technique in machine learning.
Anthropic's October 2023 study, Towards Monosemanticity, applied it to a 512-neuron layer of a small transformer and found more than 4,000 features, including ones for DNA sequences, legal language, HTTP requests and Hebrew text. In May 2024 it scaled the method to the middle layer of Claude 3 Sonnet and extracted millions of features. One responded to the Golden Gate Bridge, whether mentioned in English, in other languages or shown in images. When researchers amplified it, Claude began describing itself as the bridge. In June 2024 OpenAI researchers reported a 16 million feature sparse autoencoder trained on GPT-4's activations.
Features can be used to steer behaviour as well as to read it. Anthropic found that strongly activating a feature linked to scam emails led Claude to draft one despite its usual refusal, and a feature for sycophantic praise made it flatter users. This suggests a route to auditing models for safety-relevant concepts and possibly adjusting them directly.
The limits are significant. Anthropic said the features it found were only a small subset of what the model had learned, that finding a full set with current methods would cost more computing than training the model, and that knowing which features exist does not show how the model uses them. Sparse autoencoders are a leading research tool in mechanistic interpretability, not yet a way to verify that a model is safe.
It is a neural network trained to reconstruct another model's internal activations through a wide layer in which only a few units can be active at once. Those units often line up with human-recognisable concepts, giving researchers a readable list of what the model is representing. Individual neurons in large models usually mix several unrelated concepts, which makes them hard to read. Sparse autoencoders separate those mixtures into features that often have a single clear meaning, which lets researchers inspect and even adjust specific concepts inside a model. It was a feature Anthropic found in Claude 3 Sonnet in May 2024 using a sparse autoencoder. It activated on mentions and images of the Golden Gate Bridge, and when researchers amplified it, the model started describing itself as the bridge. No. They recover only part of what a model has learned, their reconstructions are imperfect, and a list of features does not show how the model combines them to produce an answer. Researchers use them alongside other methods for tracing a model's internal circuits.Common questions
What is a sparse autoencoder?
Why are sparse autoencoders important for interpretability?
What was the Golden Gate Bridge feature?
Do sparse autoencoders explain everything a model does?
Search for "sparse autoencoder interpretability", "dictionary learning language models", "superposition" and "monosemanticity" to follow the research. The most reliable sources are papers on arXiv, interpretability research publications from AI developers and open-source tools that let you explore published features yourself. Be wary of claims that a single feature proves what a model believes, since features are approximations of the model's internals.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.