Probing as Quantifying Inductive Bias

Alexander Immer, Lucas Torroba Hennigen, Vincent Fortuin, Ryan Cotterell

Abstract

Traditional probing methods in Natural Language Processing (NLP) often struggle with paradoxes regarding random representations and the appropriate complexity of probe architectures. This paper reframes probing as a measurement of inductive bias through a Bayesian framework. By calculating model evidence (marginal likelihood), the authors provide a mathematically grounded approach to compare representations that naturally accounts for probe complexity and resolves long-standing inconsistencies in the field.

Introduction

In modern NLP, "probing" is the standard technique for investigating the linguistic knowledge encoded within pre-trained models like BERT or T5. Typically, this involves freezing the model's weights and training a small supervised "probe" on its embeddings to predict specific linguistic properties, such as part-of-speech tags or dependency relations.

Despite its popularity, the community has faced three significant challenges:

  1. The Random Baseline Paradox: Some studies observed that untrained, random representations performed surprisingly well, suggesting they "knew" linguistics, which is theoretically impossible.
  2. Probe Complexity: There is ongoing debate over whether probes should be simple (linear) or complex (neural). Complex probes risk "learning" the task themselves rather than merely extracting information from the representation.
  3. Task Ambiguity: The relationship between a probing task and actual downstream performance remains frequently opaque.

The Bayesian Framework for Probing

The authors propose treating the representation and the probe as a single representation–probe pair. Instead of evaluating this pair based on raw accuracy, they utilize Bayesian model evidence (marginal likelihood). This metric naturally incorporates Occam’s Razor: a model that is too simple will fail to fit the data (low evidence), while a model that is too complex will overfit and spread its probability mass too thin (also resulting in low evidence).

An insufficient probe $P'$ failing to capture the underlying structure of the data, leading to low model evidence.

To ensure fair comparisons, the researchers do not mandate a single probe architecture. Instead, for every representation-task pair, they search for the optimal probe specification (varying depth and weight decay) that maximizes the evidence. This allows for an "apples-to-apples" comparison between models with different structures, such as BERT and fastText, by granting each the most suitable probe for its specific embedding space.

Resolving the Random Baseline Paradox

A key finding of this work is that model evidence correctly identifies the poor inductive bias of random representations. Unlike accuracy metrics, which can be inflated by complex probes memorizing patterns, model evidence shows that random weights contain no useful linguistic information.

Visualization of a random representation $R'$ showing a complex, overfitted decision boundary and significantly lower log-evidence compared to trained models.

For random representations, the "optimal" probe is typically a very simple one that predicts the majority class, resulting in much lower evidence than trained models. This effectively resolves the paradox by showing that while a complex probe can fit a random representation, the Bayesian framework penalizes that complexity because it does not generalize or simplify the data.

Key Insights and Comparative Results

The framework was evaluated across 28 tasks, spanning token-level, arc-level, and sentence-level linguistic properties across diverse languages.

  • Linear Probes are Not Universal: The study demonstrates that for complex models like BERT, non-linear probes (with 1 or 2 hidden layers) are often the correct level of complexity to "unlock" stored information without overfitting. For random baselines, however, the optimal depth was almost always zero (linear).
  • fastText vs. BERT: Surprisingly, fastText provides a better inductive bias than BERT for certain morphosyntactic tasks, particularly in agglutinative languages like Turkish. This suggests that fastText’s subword-unit mechanism is inherently better suited for these linguistic structures than BERT's tokenization.
  • Sentence-Level Performance: For complex tasks like those in the SuperGLUE benchmark (e.g., BoolQ, RTE), T5 generally offered the strongest inductive bias, though the performance gap between different pre-trained models was narrower than in lower-level tasks.

Conclusion

This paper argues that the ultimate goal of probing is to quantify how much a representation helps a model learn a task with less data—essentially measuring learning efficiency. By moving from accuracy to model evidence, researchers can more accurately pinpoint where specific linguistic knowledge is localized. Future work may extend this framework to neuron-level probing, potentially identifying the specific subsets of neurons in massive architectures like GPT-4 that contribute most to specific linguistic capabilities.

Summary updated

BibTeX
@inproceedings{immer2022probing,
  author = {Alexander Immer and Lucas Torroba Hennigen and Vincent Fortuin and Ryan Cotterell},
  title = {{Probing as Quantifying Inductive Bias}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.129},
}
Figure