Intuition The one core idea
A big neural network, while learning to do its main job (say, translate or predict the next word), quietly builds up internal "notes" about the input — numbers stored in its hidden layers. Probing means freezing those notes and training a tiny separate classifier to guess a specific property (like "is this word a noun?"): if the tiny classifier succeeds, the property was already written into the notes.
This page assumes you have seen none of the notation on the parent page . We build every symbol from a picture. Read top to bottom — each item uses only the ones above it.
x and input space X
x is one single example we feed the network — one sentence, one image. The fancy X (curly X) just means "the set of all possible inputs of that kind." So "x ∈ X " reads: "x is one item drawn from the collection of all valid inputs."
Picture it: a box labelled inputs holding sentences; you reach in and pull out one — that pulled-out sentence is x .
Y (curly Y)
Y is the set of all things the model was trained to output — the collection of possible French sentences, or the set of next-word probabilities. Just as X collects every valid input, Y collects every valid output. We write the model's job compactly as "f θ : X → Y " — read "f θ takes something from X and returns something in Y ."
Do not confuse this with the task labels y τ from §4: Y is the network's own main-job output; y τ is the property we later probe for.
f θ
f θ is the already-trained network . The little θ (Greek "theta") is the bag of all the numbers inside it — its weights, the knobs turned during training. Writing the θ as a subscript is a reminder: "this function's behaviour is fixed by those learned numbers."
Look at the figure. The input x enters on the left, flows through stacked layers, and the arrow labels tell you what comes out of each stage. The output lands in Y , but we rarely care about that final answer in probing; we care about the middle .
Intuition Why we look inside instead of at the output
The output only tells us the final answer. The interesting question — did it secretly learn grammar? — lives in the intermediate stages, not the final print-out.
This is the single most important symbol on the whole parent page, so we build it slowly.
Definition Representation
h ( l )
As x passes through the network, each layer transforms it into a list of numbers. That list is the layer's representation of the input, written h . The bold face means it is a vector (a whole list, not one number). The superscript ( l ) tells you which layer produced it: h ( 1 ) is layer 1's list, h ( 6 ) is layer 6's list.
h — the hidden activations (the "notes" the network took).
l — layer index, counting from the input (l = 0 ) toward the output (l = L ).
L — the total number of layers (the last one). This upright L is a plain count — keep it mentally separate from the script loss symbol L introduced in §6; they look alike but mean completely different things.
The figure shows each layer emitting its own arrow of numbers. Why does the topic need this symbol? Because probing asks where information lives — and "where" means "at which l ." Without a per-layer name, we couldn't say "POS is clearest at layer 6."
d and R d
Each h ( l ) is a list of, say, 768 numbers. We write h ( l ) ∈ R d , read "an h that is a point in d -dimensional real space." R (double-struck R) means "real numbers" (ordinary decimals); R d means "an ordered list of d of them."
Picture it: if d = 2 , h is a dot on a flat page ( x -coord , y -coord ) . If d = 3 , a dot floating in a room. For d = 768 we can't draw it, but the idea — a single point positioned by its coordinates — is exactly the same.
Frozen means we do not change θ . The network's knobs are locked; we only read its output numbers h ( l ) and never adjust them.
Common mistake Why not just fine-tune?
If we let θ change while probing, the network could learn the property on the spot to make the probe look good. Then we'd be measuring "could it learn this?" instead of "did it already know this?" Freezing forces an honest answer.
See Fine-tuning vs. Feature Extraction for the full contrast — probing is the extreme "feature extraction" end where nothing in the base model moves.
τ , label y τ
τ (Greek "tau") names the specific property we are testing for — e.g. "part-of-speech" or "singular vs. plural." For each input x i we attach a correct answer y i τ , its label for task τ . The subscript i counts examples (i = 1 , 2 , … , N ); N is how many examples we have.
The collection of pairs is the probe dataset : D probe = {( x i , y i τ )} — read "the set of (input, correct-property-label) pairs."
Picture it: a spreadsheet. Left column = sentences x i ; right column = the property answer y i τ (like NOUN, VERB).
Definition From categories to signed numbers
Properties like POS come as words (NOUN, VERB), but the boundary picture in §5 needs numbers . For a two-class task we pick a convention: one class becomes + 1 , the other − 1 . Example — "does subject and verb agree?": agree ↦ + 1 , disagree ↦ − 1 . The symbol ↦ means "is mapped to."
For a task with more than two categories (POS has dozens), we do not use one signed number; instead each category gets its own output slot and the probe uses softmax over slots. The tidy ± 1 / margin picture below is therefore the two-class special case — the cleanest one to draw and reason about.
g ϕ
g ϕ is the small classifier we train — a fresh, simple model that takes a representation h ( l ) and guesses the label. Its own knobs are called ϕ (Greek "phi"), separate from the frozen θ . Only ϕ moves during probing.
The simplest probe is a linear classifier . Here is every piece of its formula:
y ^ τ = σ ( w ⊤ h ( l ) + b )
Definition Breaking the formula apart
w — a weight vector , same length d as h . It is the probe's "direction of interest" in representation space.
w ⊤ h ( l ) — the dot product : multiply matching entries and add them all up, giving one single number. (The little ⊤ means "transpose," a bookkeeping symbol so the row-times-column multiplication lines up.)
b — the bias , one number that shifts the result up or down.
σ — the squashing function that turns the raw number into a probability between 0 and 1 (sigmoid) or into class-probabilities (softmax).
y ^ τ — the probe's prediction (the hat "^ " always means "estimate/guess," to distinguish it from the true y τ ).
Why a dot product? Because it is the mathematical way to ask "how much of direction w is present in h ?" One number that measures alignment — exactly what we need to sort points into two groups.
The figure shows dots (representations) in a 2-D space, with the line w ⊤ h + b = 0 splitting them. Using the ± 1 convention from §4: everything on one side gets label + 1 ; the other side gets − 1 . That line is the decision boundary .
Definition Linear separability
If a straight boundary can cleanly split the two classes, they are linearly separable — the property is written into h in an obvious, easy-to-read way. Points sitting on the wrong side (see the amber dot in the figure) mean the property is not cleanly linear there — the info may be entangled. That connects directly to Disentangled Representations .
γ — and which classifier it belongs to
The margin γ (Greek "gamma") is the width of the empty gap between the boundary and the nearest data point. A wide γ = confident, robust separation; a razor-thin γ = the classes barely come apart.
Caution — read this carefully. The margin is the native language of a max-margin classifier (an SVM), which explicitly maximises γ . A standard probe trained with cross-entropy (§6) does not directly maximise γ — it minimises a probability-based loss, so its final boundary need not be the widest-gap one. We still use γ here as an intuition-only ruler for "how cleanly separated are the classes?", not as the quantity the cross-entropy probe optimises. When the parent page mentions a margin, treat it as this diagnostic measure of separation quality, not as the objective of the logistic probe.
L
L (script L) is a penalty score : big when the probe's guesses are wrong, small when right. Training means turning the ϕ knobs to make L as small as possible. The parent uses cross-entropy loss, which specifically punishes confident wrong answers hard. Reminder: this script L is unrelated to the upright layer-count L from §2 — same letter, different alphabets, different meanings.
A τ ( l )
After training, A τ ( l ) is simply the fraction of held-out examples the probe gets right , for task τ at layer l . Written as a percentage. This is the number the whole study reports. High A τ ( l ) → the property is present and readable at layer l .
Definition Regularization
λ R ( ϕ )
R ( ϕ ) (often ∥ w ∥ 2 , the squared length of w ) is an extra penalty on probe complexity ; λ (Greek "lambda") sets how strongly we apply it. It keeps the probe simple , so a high score means the info was easy to extract, not that a clever probe dug it out.
Definition The label as a random variable
Y τ
So far y i τ has meant one observed answer for a specific example x i — a fixed value sitting in the spreadsheet. When we want to talk about the label's whole statistical behaviour across all examples — its spread, its uncertainty — we use the capital Y τ to denote the random variable : the label thought of as "a value that varies from example to example, with some distribution." So y i τ is one draw; Y τ is the die itself.
Definition Mutual information
I ( h ( l ) ; Y τ )
A number saying how much knowing the representation h ( l ) reduces your uncertainty about the label random variable Y τ . Zero means the representation tells you nothing about the property; large means it tells you a lot. High probe accuracy implies high mutual information. (Note the capital Y τ here — mutual information is a statement about the distribution of labels, so it must use the random variable, not a single observed y i τ .)
Common mistake Presence is not usage
A high A τ ( l ) shows the info is there , not that the model acts on it . To test whether the model actually uses a feature you must intervene — see Causal Intervention Methods . Probes on their own are a microscope, not a wrench.
The representations we probe often come from Attention Mechanisms inside transformers, and a probe that succeeds on tiny perturbed inputs but fails on natural ones is a warning sign studied under Adversarial Robustness .
Model f theta stacked layers
Hidden representation h at layer l
Vector in d dimensional space
Dot product w dot h plus b
Decision boundary and separation
Task tau labels y mapped to plus or minus one
Probe g phi trained on frozen h
Interpretation which layer encodes what
What does h ( l ) mean in plain words? The list of numbers (a vector) that layer l produces for an input — the network's internal "notes."
Why must the base model be frozen during probing? So the probe measures what the model already learned, not what it can learn on the spot.
What does the dot product w ⊤ h compute, and why one number? How much of direction w is present in h ; one number is enough to sort a point onto one side of the boundary.
What is θ versus ϕ ? θ = the frozen big-model weights; ϕ = the small probe's own trainable knobs.
How does a categorical label like agree/disagree become a number for the boundary picture? By a chosen convention, e.g. agree ↦ + 1 and disagree ↦ − 1 ; more-than-two categories use softmax slots instead.
Does a cross-entropy-trained probe maximise the margin γ ? No — γ is the native objective of a max-margin SVM; for a logistic probe we use γ only as an intuition ruler for separation quality.
What is the difference between y i τ and Y τ ? y i τ is one observed label for example i ; Y τ is the random variable — the label seen as a distribution across all examples.
How do the two look-alike symbols L and L differ? Upright L = total number of layers (a count); script L = the training loss (a penalty score).
What does high A τ ( l ) tell you — and what does it NOT tell you? It tells you the property is present and linearly readable at layer l ; it does NOT tell you the model uses that property for its main task.