From BERT's Point of View: Revealing the Prevailing Contextual Differences

Carolin Schuster, Simon HegelichACL 2022

Abstract

Traditional probing methods typically ask if specific linguistic information is extractable from a model's activations. This paper inverts that methodology to ask: what information actually shapes the model's internal representations? By analyzing BERT's activations through dimensionality reduction and clustering, the researchers discovered that simple positional information—where a word sits in a sentence—is a primary driver of internal organization, often rivaling or overshadowing complex syntactic and semantic features.

Introduction: Inverting the Probe

In the field of "BERTology," researchers often use edge probing to conclude that a model "knows" grammar if a small classifier can predict part-of-speech (POS) tags from its activations. However, the authors argue that extractability does not equal prevalence. Just because information can be found doesn't mean it is the primary factor organizing the model's high-dimensional space.

To address this, they introduce an inverted probing design:

  1. Masking: Tokens are masked to ensure activations reflect context rather than word identity.
  2. Dimensionality Reduction: K-Means clustering and Principal Component Analysis (PCA) identify the most significant groupings and directions of variation in the activations.
  3. Inverted Probing: Instead of predicting labels from BERT, they use three simple feature sets—Bag-of-Words (BOW), Part-of-Speech (POS), and relative Position—to try and reconstruct BERT's internal clusters.

Visualizing BERT's Internal Map

By projecting high-dimensional activations into two dimensions, we can visualize how BERT organizes information across different layers and datasets.

Visualization of BERT activations across layers 6 and 12 for four datasets, showing distinct clustering patterns.

As shown in Figure 1, the "point of view" evolves through the network. Middle layers (like Layer 6) often show more distinct, structured clusters compared to the final layer (Layer 12). These clusters represent the "prevailing differences" that the model finds most salient in the input context.

What Shapes the Space?

The core of the study compares how well the three simple models (BOW, POS, and Position) explain the variance and clustering found in BERT's activations.

Comparison of BOW, POS, and Position features in predicting BERT's internal clusters and principal components across layers 6 and 12.

Key Findings

  • The Power of Position: A striking result is the dominance of simple linear position. In Layer 6 on the "person" dataset, a Position-only model explained approximately 88% of the variance in the first two principal components. This suggests BERT may use position as a "shortcut" for more complex features.
  • Syntax vs. Semantics: While Part-of-Speech (POS) models generally performed the best, they often only slightly outperformed Position-only models. This implies that much of what is interpreted as "syntactic understanding" in BERT might actually be highly correlated with simple positional patterns.
  • Layer-Wise Evolution: The influence of these features shifts as information moves through the network. Early layers are more scattered, while middle layers show the strongest positionally-driven organization.

Conclusion

By looking at the data from "BERT's point of view," this research reveals that the model's internal world is heavily organized by simple structural features. While complex linguistic information is extractable, it is often the linear position of words that most significantly shapes the internal representation space. These findings suggest that future interpretability research should distinguish between information that is merely present and information that is functionally prevalent within the model.

Summary updated

BibTeX
@inproceedings{schuster2022from,
  author = {Carolin Schuster and Simon Hegelich},
  title = {{From BERT's Point of View: Revealing the Prevailing Contextual Differences}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.findings-acl.89},
}
Figure