Skip to content

Probing Classifiers: Promises, Shortcomings, and Advances

Skip →Transformer circuits framework
main track #1corefundamentalpaperrubric 11/122021 · Computational Linguistics · ~40 min

Yonatan Belinkov

Status

TL;DR. A probe is a small classifier trained on frozen hidden states to predict a property such as part of speech. High probe accuracy is easy to get and hard to interpret. Belinkov’s survey lists the problems: what to compare against, which probe to use, and whether the model uses what the probe finds. Hewitt and Liang’s control tasks (1909.03368, EMNLP 2019) give one concrete fix. They measure how much a probe can score by memorising alone, and report selectivity, the gap between the real task and that control.

Why it matters now. Probes are everywhere in LLM work: truthfulness directions, refusal directions, “does the retriever embedding encode the answer”, and dense linear probes that beat sparse-autoencoder features on safety tasks. Every one of these claims inherits the same two questions. Is the accuracy coming from the representation or from the probe? And is the information used by the model or just present?

Belinkov frames probing with a model ff trained on data DO\mathcal{D}_O and a probe gg trained on DP\mathcal{D}_P to map layer-ll states fl(x)f_l(x) to a property zz. The reported number is Perf(g,f,DO,DP)\mathrm{Perf}(g, f, \mathcal{D}_O, \mathcal{D}_P), so it depends on all four pieces, not only on ff.

Hewitt and Liang add a control task. Each word type vv gets a fixed random label C(v)C(v), drawn from the empirical label distribution. Nothing in the language predicts C(v)C(v), so a probe can only solve it by recovering word identity from hh and memorising the table. Then

selectivity=Acc(real task)−Acc(control task).\text{selectivity} = \mathrm{Acc}(\text{real task}) - \mathrm{Acc}(\text{control task}).

A good probe is accurate on the real task and selective.

Probing with control tasks: selectivity separates what the representation encodes from what the probe memorises Left: a frozen model produces a representation at layer l; a probe is trained on it twice, once for the real linguistic task (part-of-speech tags) and once for a control task that gives every word type a fixed random tag. Right: bar chart of Hewitt and Liang's Table 1. The linear probe gets 97.2 on part of speech and 71.2 on the control task, a selectivity of 26.0. The one-hidden-layer MLP probe gets 97.3 and 92.8, a selectivity of only 4.5: almost the same linguistic accuracy, but most of it could be memorisation. Same probe, two tasks frozen model f layer 1 layer l layer L weights frozen h probe g linear or MLP real task: PoS tag per token control: each word type gets a fixed random tag C(v) selectivity = task accuracy − control accuracy the control task is solvable only by memorising word types, so a high control score measures probe capacity ELMo layer 1, PoS (Table 1) 97.271.2 97.392.8 linear MLP-1 26.0 4.5 PoS accuracy control accuracy bracket = selectivity
Original sketch. The same probe is trained on the real task and on a control task with random per-type labels. Numbers from Hewitt and Liang, Table 1: equal PoS accuracy, very different selectivity.

The survey has no experiments of its own. Its value is the framework and the map of fixes (§2, §4). The numbers below come from Hewitt and Liang, using ELMo on the Penn Treebank.

Probe (ELMo layer 1)PoS acc.Control acc.Selectivity
Linear (default)97.271.226.0
MLP-1 (default)97.392.84.5
MLP-1 (0.4 dropout)97.593.44.1
Linear (tuned for selectivity)97.064.033.0
MLP-1 (tuned for selectivity)97.280.616.6

For dependency-edge prediction, the default MLP-1 has negative selectivity (92.3 task, 93.0 control). The bilinear probe is the most selective, but the most accurate dependency probes are still MLPs, which suggests some tree information is not bilinearly accessible (Hewitt and Liang §3.6).

The survey adds a caution from later work: Pimentel et al. argued control functions beat control tasks, but Zhu and Rudzicz showed the two criteria are almost equivalent (Belinkov §4.1).

  • Word-level only. Control tasks randomise per word type. Belinkov notes it is unclear how to extend them to sentence-level properties.
  • Selectivity is a heuristic. It depends on how the control labels are drawn and on the probe’s training budget. It does not give an information-theoretic guarantee.
  • Properties must be chosen in advance. Probing only finds what you already thought to look for, usually from existing English annotations (§4.5).
  • Datasets stand in for tasks. The choice of DO\mathcal{D}_O and DP\mathcal{D}_P is rarely varied, so conclusions may be about datasets, not models (§4.4).
  • Correlation, not causation. Interventional methods help, but each one has its own assumptions, for example that a property lives in a linear subspace.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    In Hewitt and Liang's Table 1 (ELMo layer 1, default probes), a linear PoS probe gets 97.2 accuracy and 71.2 on the control task, while a one-hidden-layer MLP gets 97.3 and 92.8. Compute selectivity for each. Then explain why the control task can be solved at all from a contextual representation, and what the 92.8 says about the MLP.

    What a strong answer covers
    • Selectivity = task accuracy − control accuracy: linear 97.2 − 71.2 = 26.0; MLP-1 97.3 − 92.8 = 4.5.
    • The control task assigns each word type v a fixed random tag C(v) (sampled from the empirical tag distribution). The only way to solve it is to recover the word's identity from h and memorise the type → tag table.
    • ELMo layer 1 still encodes word identity well, so a probe with enough capacity can memorise the table for word types seen in training.
    • The MLP reaches 92.8 on a task with no linguistic content. This shows the probe can memorise type labels, so its linguistic accuracy alone does not isolate information available in the representation. It does not establish what fraction of the real-task decisions used memorisation: the two numbers come from different probes trained on different tasks. The two probes have the same task accuracy but very different selectivity.
  2. Mechanism

    Hewitt and Liang find that ELMo layer 1 gives higher PoS accuracy than layer 2 (97.2 vs 96.6) but lower selectivity (26.0 vs 31.4). Explain the mechanism that produces this pattern and what claim about layers it undermines.

    What a strong answer covers
    • Layer 1 is closer to the input, so it keeps more word-identity information. That helps both the real task and the memorisation-only control task.
    • Higher accuracy on layer 1 can therefore come from easier memorisation of word types, not from better PoS abstraction.
    • Layer 2 loses some word identity, which hurts control accuracy more than PoS accuracy, so selectivity rises.
    • The claim "layer 1 encodes PoS better" is undermined: ranking layers by accuracy alone is confounded with how well each layer lets the probe memorise (§4 of Hewitt and Liang).
  3. What if…

    Hewitt and Liang compare complexity controls for MLP probes: dropout, rank or hidden-size limits, fewer training examples, weight decay and early stopping. Which controls improved selectivity, which did not, and why does dropout fail here?

    What a strong answer covers
    • With 0.4 dropout, the MLP-1 PoS probe still had selectivity 4.1 (control 93.4). Dropout does not stop memorisation of a type → tag table.
    • Constraining hidden size or rank, using fewer training examples and adding weight decay all raised selectivity. Tuned for selectivity, MLP-1 reached 97.2 / 80.6 / 16.6 (task / control / selectivity).
    • Dropout adds noise but leaves capacity intact; memorising a lookup table is robust to noise because many redundant units can store it. Bottlenecks remove capacity directly.
    • Even after tuning, the linear probe stayed most selective (33.0 for PoS), and the paper notes default probes are over-parameterised.
  4. Critique

    The survey separates "what f encodes" from "what f uses". A paper reports 90% accuracy for a linear probe that predicts "the passage contains the answer" from a dense retriever's passage embedding, and concludes the retriever relies on answerness. List what is missing from this argument and which tools from the survey would fix it.

    What a strong answer covers
    • No baseline or skyline: compare with a probe on a randomly initialised or simpler encoder (for example BM25 features or static embeddings) and with a model trained end-to-end on the probing task (§4.1).
    • No control: a control task or control function shows how much of the 90% the probe could reach by memorising surface cues, such as the passage's title or length.
    • Encoding is not use: the probe is trained separately from f, so high accuracy shows the information is decodable, not that ranking depends on it (§4.3).
    • Fixes: amnesic probing or INLP (project out the probe direction and measure retrieval quality), gradient-based interventions on the representation, or counterfactual passages that change answerness only.
    • Dataset confound: answer-bearing passages may differ systematically in lexical overlap with the query (§4.4).
  5. Design

    Design a selectivity-aware probing study asking whether a ColBERT-style late-interaction model encodes "is this query token a named entity" at each layer. Specify the probe family, control task, data split and what result would support the claim that this information becomes more linearly accessible in later layers.

    What a strong answer covers
    • Probe: linear (and a small bottleneck MLP) on per-token embeddings at each layer, with the encoder frozen.
    • Control task: give each word type a fixed random binary label with the same marginal rate as entity tokens. Report selectivity per layer, not just accuracy.
    • Run two evaluations. (1) Selectivity: the ordinary split by query, with overlapping word types between train and test, so the control task is learnable by memorisation exactly as in Hewitt and Liang. (2) Generalisation: a separate type-disjoint split (test entity types never seen in training) for the real task only.
    • Do not compute control selectivity on the type-disjoint split: random per-type control labels are unknowable for unseen types, so control accuracy falls to chance for reasons unrelated to probe memorisation.
    • Support: accuracy stays high and selectivity rises in later layers with the same probe. If accuracy rises only with control accuracy, the trend reflects memorisation of types.
    • Optional causal follow-up: remove the entity direction (INLP) at the best layer and measure retrieval quality on entity-heavy queries.
  6. Research idea

    Control tasks fit word-level properties because they randomise labels per word type. Propose a control for a sentence-level property, such as "the query asks for a numeric answer", and explain how you would test that your control measures probe capacity rather than something else.

    What a strong answer covers
    • Identify what a probe could memorise at sentence level: surface tokens (for example "how many"), length, or specific templates.
    • Candidate control: assign random labels per cluster of surface features (for example per first-two-token prefix or per template), so solving the control requires memorising surface patterns only.
    • Alternative: Pimentel-style control function that removes information from h (for example keep only a bag-of-words projection) and compare information gain.
    • Validation: the control should be easy for high-capacity probes and hard for low-capacity probes on a random encoder, and its accuracy should track probe size, not layer semantics.
    • Belinkov notes it is unclear how to extend control tasks to sentence-level properties, so a working control here is a genuine contribution.

Done with this page?

Status