Safety

Sparse Autoencoder

A sparse autoencoder (SAE) is a neural network trained to reconstruct inputs via a large overcomplete hidden layer—most units inactive for any given input—used in mechanistic interpretability to decompose superimposed transformer activations into individually interpretable features.

A sparse autoencoder (SAE) is a variant of the classical autoencoder architecture in which an L1 sparsity penalty on the hidden layer forces the network to represent each input using only a small fraction of its hidden units. Unlike conventional autoencoders that compress information, SAEs learn overcomplete representations—more hidden units than input dimensions—trading compression for the ability to disentangle the many distinct directions that the input may contain. The sparsity constraint encourages individual hidden units to specialize for specific, rarely co-occurring patterns.

The application of SAEs to mechanistic interpretability was systematically developed by Anthropic in the 2023 paper "Towards Monosemanticity" and the 2024 paper "Scaling and Evaluating Sparse Autoencoders." The motivating insight is that transformer MLP layers and residual stream activations exhibit superposition: because models store more features than they have dimensions, individual neurons respond to many unrelated concepts simultaneously. Applying an SAE to these activations allows it to learn a dictionary of directions in which each SAE hidden unit tends to activate for a single, human-interpretable concept rather than many at once. Anthropic's analyses identified millions of such features in Claude models, corresponding to recognizable entities, programming constructs, emotional states, and sensitive topics.

SAEs matter for AI safety because they provide a scalable, enumerable dictionary of a model's internal concepts. With this dictionary, researchers can probe which features activate during a given generation, test whether safety-relevant internal states are present even when absent from the output, and perform targeted steering by artificially clamping feature activations. They also enable study of how simpler features compose into more complex representations, supporting a broader theory of knowledge storage in large language models.

As of 2026, SAEs have been trained on multiple frontier models and the technique has become a standard tool in mechanistic interpretability research. Open-source libraries such as SAELens enable researchers to train and analyze SAEs on publicly available model checkpoints. Active challenges include training SAEs efficiently at the scale of the largest models, establishing that identified features are causally rather than merely correlationally relevant, and handling abstract or relational features that resist single-token characterization.

Example

An SAE trained on a language model's residual stream reveals a hidden unit that activates strongly in contexts involving financial fraud; researchers clamp this unit active during inference and observe that the model's subsequent generations shift toward fraud-related content, confirming the feature is causally linked to that behavioral domain.

Related terms

← Glossary