What a probe asks
A probe is a small classifier trained to read a property off a model's activations while the model itself stays frozen. If a simple probe can tell positive reviews from negative ones using only the residual stream at some layer, the information is there in a form that is easy to extract; comparing layers shows where it appears.
This page probes Qwen2.5-0.5B-Instruct (24 blocks, residual width ) for the sentiment of Amazon reviews. Each review goes in as plain text, without the chat template, and the probe reads one vector: the residual stream at the review's last token, at 25 points (the embeddings and the output of each block). 400 reviews, half positive, train one probe per point; 200 others, also balanced, are held out to test it.
One dot product
Each probe is a logistic regression: a direction and an offset in the residual space, whose dot product with the stream gives a logit and, through the sigmoid, a probability:
It is fitted with scikit-learn's L2-regularised objective, with labels and :
The fit runs on standardised features, each dimension minus its training mean and divided by its standard deviation , and is then mapped back to the residual basis, and . The One dot product panel shows this sum for the selected review, and The largest terms w_d · x_d lists its biggest terms: a few dimensions carry large contributions that partly cancel, and the decision comes from the sum. The probe direction draws all 896 weights.
Accuracy at every point
The Accuracy at every point chart is the main result. At the embeddings the probe is at chance, 51.5 % on held-out reviews: point 0 sees only the last token's embedding, mostly a “.” or a “!”, and nothing of the review before it. After block 1 it reaches 69.5 %, climbs through the middle of the network, and is best after block 15 at 89.5 %; after the last block it is 84.0 %. Alain and Bengio, the first to probe every layer this way, found linear separability rising monotonically with depth in image classifiers; here it peaks in the middle and falls a little towards the output, where the stream is being turned into a next-token prediction.
Training accuracy is no guide. From point 3 on the probe fits all 400 training reviews: with 896 dimensions and 400 examples a linear classifier always can. Only held-out accuracy says whether the direction captures sentiment rather than these particular reviews.
A probe that needs no training
A simpler direction is the difference of the class means, , with the decision halfway between them. The chart draws its held-out accuracy too, and after blocks 13 to 23 it matches or beats the trained probe: after block 15 it gets 93.0 %. Yet the two directions are far from parallel; the page gives their cosine, between 0.17 and 0.41 after every block. In 896 dimensions many directions separate two clouds of 200 points, and the regulariser picks one among them.
The All 200 held-out reviews scatter shows the separation at the selected point: each review's probe logit on the horizontal axis, with the decision at 0, against the largest remaining spread once the probe's direction is removed. The probe on every token applies the probe, trained only on last tokens, to every token of a review, and shows the sentiment logit building up through the text.
What a probe can and cannot show
High probe accuracy says the information is linearly decodable, not that the model uses it. A probe with enough capacity can learn the task itself from the representation; Hewitt and Liang proposed control tasks, random labels the probe can only memorise, to check that a probe is selective. Keeping the probe linear and regularised, and judging it on held-out data, as here, limits that risk but does not remove it.
The causal test is to change the activations along the direction and see whether the model's behaviour changes. Tigges et al. did this for sentiment and found a single direction that the model uses, summarised at punctuation such as the final full stop this page reads; Marks and Tegmark found that class-mean directions are often more causally relevant than trained probes. The Steering tab makes such an intervention with a mean-difference direction, and the Patching tab tests components causally.
Where it came from
Alain and Bengio (2016) introduced linear classifier probes on every layer of a frozen network. In NLP, probes became the standard way to ask what BERT-style models know about syntax and semantics, and their limits were set out by Hewitt and Liang (2019) and in Belinkov's survey. The linear representation hypothesis, that concepts are directions in activation space, made probes a tool for finding directions to intervene on rather than only to measure.
Papers
- Understanding intermediate layers using linear classifier probes Introduces linear probes trained on every layer of a frozen network to see where a property becomes linearly separable.
- Probing Classifiers: Promises, Shortcomings, and Advances A survey of probing: what high probe accuracy does and does not show, and the controls and causal methods that address it.
- Designing and Interpreting Probes with Control Tasks Control tasks with random labels measure how much of a probe's accuracy comes from the probe memorising rather than the representation.
- Linear Representations of Sentiment in Large Language Models A single sentiment direction across models, shown causal by intervention and summarised at punctuation and other neutral tokens.
- The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasets Finds that simple difference-in-means probes generalise as well as trained ones and point in more causally relevant directions.
- Qwen2.5 Technical Report Qwen2.5, whose 0.5B instruction-tuned model this page probes.
- Character-level Convolutional Networks for Text Classification Builds the Amazon review polarity dataset whose test split supplies this page's reviews.