Inside the Dark Matter of AI
Ask an LLM like ChatGPT to forget a phrase and it will claim it has. Badger it a little and it will admit it still knows the phrase and repeat it back. It has to: the phrase is in its context window, and there is no delete button for a concept inside a model. We train assistants to be helpful and honest, but we have no direct access to the concepts inside them, no dial for truthfulness. That gap is the problem of interpretability, and it is an active area of research.
One promising approach pulls features out of a model with a separate algorithm called a sparse autoencoder. The features often match ideas humans recognize: cats, dogs, Wi-Fi networks, and stranger ones like internal conflict. Once you have a feature, you can turn its strength up or down inside the model. Turn up internal conflict in Anthropic's Claude and ask it to forget a phrase, and it immediately admits it cannot actually forget words. The demos are striking, but Chris Olah, one of the key researchers, points out the catch: we have extracted a tiny fraction, likely less than 1 percent, of the concepts large language models must know.
Olah calls the rest the dark matter of interpretability. The features we can extract are the brightest stars, and the autoencoder is a telescope. Better telescopes may reveal more, or much of what a model knows may only ever be visible indirectly. To show why it is so hard, the video walks text through Gemma 2B, a small language model and a scaled-down version of Google's Gemini. The phrase the reliability of Wikipedia is vary becomes six tokens, each a vector of length 2304, stacked into a 6 by 2304 matrix. Each of the 26 layers adds its own matrix to the running total, called the residual stream, and the last row of the final matrix decides the next word.
The most likely next token is important, at 20.21 percent. But high is 11.16 percent, low is 10.8, questionable is 9.48, and poor is 5.47. Production systems sample from this distribution instead of always taking the top choice, so the same prompt can lead to a nuanced take, a positive one, or a skeptical one. Instruction tuning shifts the odds toward measured answers, but it does not give direct control over any specific behavior. Mechanistic interpretability tries to open the model up instead: map the residual stream back to a word at any layer, and watch, layer by layer, as vary turns into a decision about what to say.
Gemma next-token probabilitiesData from the sources listed below.
We can steer a model with training, and we can now read a few of its features. The dark matter is everything in between, and whether we ever map all of it is still an open question.
Try this
bashcurl -s https://transformer-circuits.pub/2024/scaling-monosemanticity/index.html -o /tmp/scaling-monosemanticity.html pip install transformers python -c "import transformers; print(transformers.__version__)"
Sources
- Source: The Dark Matter of AI [Mechanistic Interpretability] - Welch Labs
- Scaling Monosemanticity: Extracting Interpretable Features from Claude 3 Sonnet - https://transformer-circuits.pub/2024/scaling-monosemanticity/index.html
