René Murrell
DEEN

Blog

How Sparse Autoencoders Found Millions of Features in Claude and What It Means for AI Safety

· 6 min read

The Challenge of Interpretability in AI Safety

Interpretability matters for AI safety because it helps you understand how large language models produce their outputs. It can reveal internal mechanisms linked to deception, bias, or harmful content. Without that insight, finding these risks depends on testing inputs and outputs. That makes audits harder. As models grow larger, the need for better interpretability tools grows too.

Earlier methods struggled with scale and clarity. Techniques like feature attribution or probing give limited visibility into billions of parameters and their interactions. A single neuron often responds to many unrelated concepts. Sparse autoencoders offer a way to break model activations into many features that are easier to interpret.

The Breakthrough: Sparse Autoencoders with up to 34 Million Features on Claude 3 Sonnet

A sparse autoencoder (SAE) learns to rewrite a model's internal activations as a combination of learned features. A sparsity penalty makes sure only a few of them are active for each input. The set of features is much larger than the activation vector, so concepts that overlap inside the model can be pulled apart.

In May 2024, Anthropic published Scaling Monosemanticity. The team trained three SAEs on the middle layer of Claude 3 Sonnet, with about 1 million, 4 million and 34 million features. For all three, fewer than 300 features were active per token on average, and the reconstruction explained at least 65% of the variance of the model's activations. Not every feature is useful. In the 34M SAE, about 65% of the features were dead, meaning they never fired on a large sample of text Anthropic: Scaling Monosemanticity.

Many of the remaining features are easy to interpret. They cover entities such as cities, people, chemical elements and scientific fields, as well as code. Some are safety-relevant. Anthropic reports features related to security vulnerabilities and backdoors in code, bias, lying, deception and power-seeking, sycophancy, and dangerous or criminal content such as bioweapons. Anthropic also warns not to read too much into this. A feature about lying shows that the model knows about lies, not that it lies.

Why Mechanistic Interpretability Is Becoming Practical

From Theory to Tools

Open tools have made this kind of work easier:

  • TransformerLens: a library for inspecting and intervening on the internals of open transformer models, for example with activation patching.
  • SAE-Vis: visualizes sparse autoencoder features.
  • Neuronpedia: a public platform to browse and search SAE features of open models. DeepMind's interactive Gemma Scope demo runs on it.

These tools work on open models such as GPT-2 or Gemma 2. Claude's weights are not public, so outside researchers cannot run the same analysis on Claude. They can only read Anthropic's published results.

Multilingual and Multimodal Features

Many features are not tied to one language or format. Anthropic's Golden Gate Bridge feature fires on English mentions of the bridge, on discussions of it in Japanese, Chinese, Greek, Vietnamese and Russian, and on an image of it Anthropic Research. So a feature found in English text can also pick up the same concept in other languages or in images. This matters for safety work, because harmful requests do not always arrive as English text.

Implications for AI Safety and Regulatory Compliance

Safety-relevant features let you look for risks at the level of internal representations, not only at outputs. Anthropic showed that such features have a causal effect. Artificially activating a feature for sycophantic praise made the model answer an overconfident user with flowery praise. Strongly activating a feature for scam emails led Claude to draft a scam email it would normally refuse to write Anthropic Research. That cuts both ways: the same lever that can suppress a behavior can also trigger it.

This is still research. Finding a feature does not tell you how the model uses it. And Anthropic says the features it found are only a small subset of the concepts the model has learned.

The EU AI Act

The EU AI Act sets transparency duties. Article 13 requires high-risk AI systems to be designed so that deployers can interpret their output and use it appropriately. Article 50 adds disclosure duties for certain AI systems, for example chatbots and AI-generated content EU Commission FAQ. The Act does not require mechanistic interpretability. SAE features are a research method, not a recognised way to show compliance. They can still support the documentation and risk analysis that providers of high-risk systems have to produce.

Advancing AI Safety Research and Production Practices

Using Interpretability as an Audit Tool

Interpretability can complement testing. Instead of judging a model only by its outputs, you can inspect the internal features that drive its behavior and look for unsafe patterns before deployment. It also gives research and engineering teams a shared vocabulary for talking about model behavior.

Reducing Operational Risks

Once a feature linked to unwanted output is known, there are several options. You can monitor how often it fires, suppress it, or use it to guide fine-tuning. Published results so far come mostly from research settings. Treat this as a complement to evals and red-teaming, not a replacement.

DeepMind's Gemma Scope: Open Sparse Autoencoders for Gemma 2

Scale and Compute

In July 2024, Google DeepMind released Gemma Scope, a set of more than 400 sparse autoencoders for Gemma 2 2B and 9B. They were trained on every layer and sublayer output of both models and contain more than 30 million learned features in total, although many features likely overlap. Gemma Scope uses DeepMind's JumpReLU SAE architecture. Training took about 15% of the training compute of Gemma 2 9B. About 20 pebibytes (PiB) of activations were saved to disk, and the SAEs have hundreds of billions of parameters in total DeepMind Blog.

Implications for the Safety Community

Unlike Anthropic's SAEs for Claude, Gemma Scope is open. Researchers outside the big labs can study the features of a capable model directly, for example in the interactive demo on Neuronpedia. The cost also shows the limits. SAEs at this scale take a noticeable share of a model's training budget, which is a real hurdle for broad use.

Conclusion: Next Steps for Researchers, Engineers, and Policymakers

Integrating Interpretability into AI Development

For researchers and engineers, open SAEs and tools make it possible to start today on open models. Interpretability can help find risks such as bias or deceptive behavior earlier than output tests alone. It does not prove that a model is safe, so it belongs next to evals and red-teaming in the development process.

Policy and Compliance Considerations

For policymakers and compliance teams, interpretability is a promising source of evidence about model behavior, but not yet a standard method. The EU AI Act asks for transparency, documentation and risk management, not for a specific interpretability technique. Supporting research and shared standards in this area would help turn interpretability into something auditors can rely on.