6.3.5 · D1Interpretability & Explainability

Foundations — Probing classifiers

2,410 words11 min readBack to topic

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.


1. The input, the model, and what it produces

Picture it: a box labelled inputs holding sentences; you reach in and pull out one — that pulled-out sentence is .

Figure — Probing classifiers

Look at the figure. The input enters on the left, flows through stacked layers, and the arrow labels tell you what comes out of each stage. The output lands in , but we rarely care about that final answer in probing; we care about the middle.


2. Hidden representations

This is the single most important symbol on the whole parent page, so we build it slowly.

  • — the hidden activations (the "notes" the network took).
  • — layer index, counting from the input () toward the output ().
  • — the total number of layers (the last one). This upright is a plain count — keep it mentally separate from the script loss symbol introduced in §6; they look alike but mean completely different things.
Figure — Probing classifiers

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 ." Without a per-layer name, we couldn't say "POS is clearest at layer 6."

Picture it: if , is a dot on a flat page . If , a dot floating in a room. For we can't draw it, but the idea — a single point positioned by its coordinates — is exactly the same.


3. "Frozen" — the crucial adjective

See Fine-tuning vs. Feature Extraction for the full contrast — probing is the extreme "feature extraction" end where nothing in the base model moves.


4. The auxiliary task and its labels

Picture it: a spreadsheet. Left column = sentences ; right column = the property answer (like NOUN, VERB).


5. The probe itself: , , ,

The simplest probe is a linear classifier. Here is every piece of its formula:

Why a dot product? Because it is the mathematical way to ask "how much of direction is present in ?" One number that measures alignment — exactly what we need to sort points into two groups.

Figure — Probing classifiers

The figure shows dots (representations) in a 2-D space, with the line splitting them. Using the convention from §4: everything on one side gets label ; the other side gets . That line is the decision boundary.


6. Measuring success: loss and accuracy


7. Two supporting ideas from information & causality

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.


Prerequisite map

Input x in set X

Model f theta stacked layers

Output in set Y main job

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

Loss and accuracy A

Interpretation which layer encodes what


Equipment checklist

What does mean in plain words?
The list of numbers (a vector) that layer 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 compute, and why one number?
How much of direction is present in ; 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 and disagree ; 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 and ?
is one observed label for example ; is the random variable — the label seen as a distribution across all examples.
How do the two look-alike symbols and differ?
Upright = total number of layers (a count); script = the training loss (a penalty score).
What does high tell you — and what does it NOT tell you?
It tells you the property is present and linearly readable at layer ; it does NOT tell you the model uses that property for its main task.