DirectProbe: Studying Representations without Classifiers

Yichu Zhou, Vivek Srikumar

Introduction

In Natural Language Processing (NLP), "probes"—simple classifiers trained on top of frozen embeddings like BERT—are the standard tool for investigating the linguistic information captured by neural models. However, this approach is inherently flawed. Probing results are often unstable, depending heavily on the choice of architecture (linear vs. non-linear), optimization strategies, and even random seeds. Variations in accuracy for the same task can vary by up to 8% just based on the training run, making it difficult to distinguish between the quality of the representation and the effectiveness of the probe itself.

DirectProbe addresses this by asking: Can we evaluate a representation's quality for a task directly, without relying on a classifier as a proxy?

Methodology

DirectProbe is a novel, classifier-free method based on the concept of a version space—the set of all possible decision boundaries consistent with the training data. It evaluates the geometry of the embedding space through a three-step heuristic algorithm:

  1. Bottom-up Clustering: The algorithm starts with each data point as its own cluster and iteratively merges the closest pair of clusters that share the same label.
  2. Convex Hull Constraint: A merge is only allowed if the resulting cluster's convex hull (the smallest convex shape containing all points) does not overlap with any cluster of a different label. Overlap is checked using a linear programming solver.
  3. Geometric Analysis: Once no more merges are possible, the resulting partitions reveal the geometry of the task. The number of clusters indicates whether a representation is linearly separable (one cluster per label) or requires a non-linear boundary.
DirectProbe's transition from multiple possible classifier boundaries (version space) to geometric clusters defined by convex hulls.

Key Insights

Geometry Predicts Performance

The minimum distance between clusters of different labels is a strong predictor of classifier accuracy. When clusters are far apart, any classifier generalizes better. DirectProbe can also identify "confusable" labels—those whose clusters are geometrically close. In the SS-role task, 97.17% of misclassifications occurred between label pairs that DirectProbe identified as being in the "small distance" bin.

The Impact of Fine-tuning

The paper provides a geometric explanation for why fine-tuning works: it physically pushes clusters of different labels further away from each other in the embedding space. For the SS-role task, fine-tuning increased the minimum distance between clusters from 0.778 to 4.231, which corresponded to a jump in best classifier accuracy from 77.51% to 81.62%.

Linearity vs. Non-linearity

While many BERT representations are linearly separable for tasks like POS tagging, some models like RoBERTa-large require non-linear boundaries for certain tasks. DirectProbe detects this via an increased cluster count, providing a more nuanced view of model capacity than a single probe accuracy score.

Comparison of different boundary types: DirectProbe can distinguish between cases requiring non-linear boundaries (left) and those that are linearly separable (middle) by analyzing cluster geometry (right).

Results and Conclusion

DirectProbe's "intra-accuracy"—a parameter-free metric derived from the clustering—is highly correlated with the performance of the best-tuned neural classifiers. In tasks like POS tagging, it matches state-of-the-art probe performance without the need for training.

While the computational complexity of checking convex hull overlaps is higher than standard probing, DirectProbe offers a deterministic and interpretable alternative. It moves the field toward a more rigorous, geometric understanding of what neural models learn, potentially guiding the design of future pre-training objectives that explicitly maximize category separation.

Summary updated

BibTeX
@inproceedings{zhou2021directprobe,
  author = {Yichu Zhou and Vivek Srikumar},
  title = {{DirectProbe: Studying Representations without Classifiers}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.naacl-main.401},
}
Figure