Module 8 · Looking inside: what the weights actually hold

Probing: asking the activations a question

In this lesson

  • 9 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 2 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 8Free · no account needed
Lesson steps

The method

If features are directions, the simplest way to find one is to ask for it by name. Collect the model’s activations at some layer for a few thousand inputs. Label each input with the property you care about: positive or negative sentiment, past or present tense, true or false, which language. Train the smallest possible classifier, a logistic regression, to predict the label from the activation.

Python
from sklearn.linear_model import LogisticRegression
probe = LogisticRegression(max_iter=2000).fit(acts_train, y_train)
print("layer", layer, "accuracy", probe.score(acts_test, y_test))

If the probe reads the property with high accuracy, the property is linearly represented at that layer. The probe’s weight vector is the direction. This is a linear probe, and keeping it linear is the point: a more powerful probe could compute the property itself from raw ingredients, and then you would have learned about the probe rather than the model.

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) ‘Probing: asking the activations a question’, in How a Language Model Actually Works. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/how-llms-work/probing-what-is-represented (Accessed: 29 November 2026).