BERT Has Uncommon Sense: Similarity Ranking for Word Sense BERTology

Luke Gessler, Nathan SchneiderarXiv 2021

TL;DR

Large language models like BERT are surprisingly good at distinguishing rare word senses "out of the box," even without specific training. However, this paper reveals a surprising "RoBERTa Paradox": models that perform better on general benchmarks often struggle more with the long tail of uncommon meanings, suggesting that not all pretraining regimes are created equal when it comes to lexical semantics.

What Problem Does This Paper Address?

Contextualized word embedding (CWE) models like BERT have revolutionized NLP, but understanding exactly what they know about language remains a challenge—a field often called "BERTology." One major hurdle in NLP is Word Sense Disambiguation (WSD): the ability to tell if "bank" refers to a river edge or a financial institution.

While state-of-the-art WSD systems exist, they typically struggle with the "long tail" of rare senses. Most previous research evaluates these models by building complex systems on top of them. This paper asks a more fundamental question: Is sense information already present in the raw embeddings? Specifically, how well do these models represent rare senses in their native "neighborhoods" without any extra help?

Methods

The authors introduce a task called CWE Similarity Ranking. Instead of training a classifier, they use a query-by-example approach:

  1. Query: Take a target word in a specific sentence (e.g., "pull" in "pull off a million-dollar deal").
  2. Retrieve: Find all other instances of "pull" in a large database.
  3. Rank: Order those instances by the cosine similarity of their embeddings to the query embedding.
  4. Evaluate: Use Mean Average Precision (MAP) to see if the top-ranked results share the same gold-standard sense as the query.

This method is more revealing than standard classification because it awards "partial credit" for retrieving any correct instances, providing a clearer view of how coherent rare senses are within the model's internal representation. They also test "Inoculation by Fine-Tuning"—giving the model a tiny "sip" of domain-specific data to see if it helps "surface" existing latent knowledge.

Datasets

The study utilizes two major English sense-annotated corpora:

  • OntoNotes 5.0: Used for noun and verb senses.
  • Pattern Dictionary of English Prepositions (PDEP): A specialized corpus for the notoriously tricky task of disambiguating prepositions.
  • STREUSLE 4.4: A smaller dataset used for the "inoculation" fine-tuning experiments.

Key Insights and Ideas

  • Senses are "Native": All tested models (BERT, RoBERTa, ALBERT, etc.) significantly outperformed random baselines, even for rare senses. This proves that models naturally cluster similar meanings together during pretraining without being told to do so.
  • The RoBERTa Paradox: In a surprising twist, RoBERTa—which generally outperforms BERT on standard benchmarks like GLUE—performed significantly worse at representing rare word senses.
  • Pretraining Matters More Than Architecture: BERT and RoBERTa share the same architecture. Their performance gap suggests that RoBERTa’s specific pretraining choices (like removing the Next Sentence Prediction task or using dynamic masking) might actually hinder its ability to capture fine-grained lexical semantics.
  • Fine-tuning is a Band-Aid: While "inoculating" RoBERTa with a bit of data helped close the gap, it still couldn't match BERT’s native performance on rare senses. This suggests some information might be fundamentally harder to access in RoBERTa's embedding space.

Key Results

The researchers bucketed results by lemma frequency ($l$) and the proportion of the specific sense ($r$).

A sample of query results showing BERT successfully retrieving rare senses for "pull" and "on".
  • Top Performer: bert-base-cased was consistently the strongest model for rare senses.
  • The Gap: On OntoNotes rare senses ($r < 0.25$), BERT achieved a MAP of 41.60, while RoBERTa trailed at 32.87.
  • Prepositions are Hard: For prepositions in PDEP, the differences were even more stark. BERT scored 59.59 on rare senses compared to RoBERTa’s 39.84.
  • GPT-2 Struggles: GPT-2 showed the poorest performance, likely because its unidirectional (left-to-right) nature prevents it from using future context to disambiguate words.
Precision-at-k curves showing how different models compare against an oracle and a random baseline.

Limitations and Future Work

The authors acknowledge a few constraints:

  • Layer Choice: They only evaluated the final layer of each model. Since some studies suggest middle layers capture more "lexical" info, exploring other layers could yield different results.
  • English-Only: The study is limited to English; it remains to be seen if these "uncommon sense" patterns hold across typologically diverse languages.
  • The "Why": While the paper identifies that RoBERTa and BERT differ, it doesn't definitively prove which specific pretraining change caused the drop in sense awareness. Future work could involve ablation studies on pretraining objectives to pin this down.

Summary updated

BibTeX
@misc{gessler2021bert,
  author = {Luke Gessler and Nathan Schneider},
  title = {{BERT Has Uncommon Sense: Similarity Ranking for Word Sense BERTology}},
  year = {2021},
  eprint = {2109.09780},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.09780},
}
Figure