Module 8 · Looking inside: what the weights actually hold

Sparse autoencoders: a dictionary for the residual stream

In this lesson

  • 10 min read
  • 8 reading sections
  • Knowledge check
  • Lesson 3 of 10 in this chapter

This chapter’s goalExplain how a probe, a sparse autoencoder, an activation patch and a steering vector each extract evidence about what a model represents, state what each finding does and does not prove, run a steering experiment on an open model, and say where the questions of memorisation, unlearning and faithful reasoning currently stand.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 9Free · no account needed
Lesson steps

The bet

Probes find the directions you can name. Superposition says there are thousands you cannot. The sparse autoencoder is a bet that they can be found anyway, without labels, from two assumptions the first lesson of this module set up: features are directions, and features are sparse.

The mechanism

Take activations from one layer of the model: say the 4,096-dimensional residual stream. Train a small network to reconstruct them through a hidden layer that is much wider than the input: 65,000 dimensions, or a million.

Text
h      = relu( W_enc · x + b_enc )      # 4,096  -> 65,536, sparse
x_hat  = W_dec · h + b_dec              # 65,536 -> 4,096
loss   = |x - x_hat|²  +  λ · |h|₁

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the AI, Actually Explained exam.

Stuck on something?Ask Anjali, your AI tutor

How to cite: Addaly (2026) ‘Sparse autoencoders: a dictionary for the residual stream’, in How a Language Model Actually Works. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/how-llms-work/sparse-autoencoders (Accessed: 27 November 2026).