Adapting BERT for Word Sense Disambiguation with Gloss Selection Objective and Example Sentences

Boon Peng Yap, Andrew Koh, Eng Siong Chng

Abstract

Word Sense Disambiguation (WSD) remains a core challenge in Natural Language Processing, requiring models to identify the correct meaning of a word within a specific context. This paper introduces two significant improvements to the WSD pipeline: a gloss selection objective that reframes the task as a ranking problem rather than binary classification, and a data augmentation strategy that leverages WordNet's own example sentences. By training BERT to discriminate between all possible definitions of a word simultaneously, the proposed model achieves a new state-of-the-art F1 score of 79.5% on standard English all-words benchmarks.

Introduction

Word Sense Disambiguation (WSD) is the task of determining which sense of a polysemous word is intended in a given context (e.g., distinguishing between "bank" as a financial institution versus a riverbank). Historically, WSD has been hampered by two primary issues: data scarcity, as manual sense-tagging is labor-intensive, and subtle semantic distinctions, where definitions for different senses are highly similar.

Previous approaches, such as GlossBERT, treated WSD as a binary classification task, asking the model to determine if a single definition fits a sentence in isolation. This paper argues that such a formulation ignores the competitive relationship between candidate senses. By shifting to a ranking-based objective, the model can better learn the boundaries between similar meanings.

Methods

1. The Gloss Selection Objective

The core innovation is the transition from independent binary classification to a joint ranking objective. Instead of processing context-definition pairs in isolation, the authors group all candidate glosses for a target word into a single training instance.

The gloss selection architecture uses a softmax over relevance scores to rank candidate definitions.

As shown in Figure 1, the model feeds a sequence containing the context sentence and a candidate gloss into BERT. A linear layer produces a relevance score ($s_i$) for each gloss. A softmax function is then applied across the scores of all candidate glosses for that specific word. This forces the model to maximize the probability of the correct definition relative to all other possibilities, effectively teaching it to discriminate between competing senses.

2. Data Augmentation via WordNet Examples

To address the "knowledge acquisition bottleneck," the authors utilized the example sentences already present in WordNet. For instance, the definition for the "river bank" sense often includes an example like "He pulled the canoe up onto the bank." By treating these examples as labeled training data, the authors added approximately 37,000 high-quality instances to the training set—a 17% increase—without requiring additional manual annotation.

Results and Discussion

The model was evaluated using the unified framework for WSD, training on SemCor and the augmented WordNet examples, and testing on five standard benchmarks (SE2, SE3, SE07, SE13, SE15).

Performance comparison of the proposed BERT-based models against previous state-of-the-art systems across multiple benchmarks.

As detailed in Table 1, the best-performing configuration (BERT-Large with augmented data) achieved an overall F1 score of 79.5%, setting a new state-of-the-art. Key findings include:

  • Superiority of Ranking: A single model using the gloss selection objective outperformed an ensemble of eight independent BERT models.
  • Impact of Augmentation: The inclusion of WordNet example sentences provided a consistent boost, particularly for Nouns.
  • Scaling BERT: Unlike previous studies where BERT-Large showed marginal gains, the ranking objective allowed BERT-Large to significantly outperform BERT-Base, especially when paired with data augmentation.

Conclusion

By reframing Word Sense Disambiguation as a ranking task and harvesting existing lexical resources for training data, this work demonstrates that BERT can be significantly more effective at capturing semantic nuances. Future research may explore extending this methodology to low-resource languages and incorporating broader lexical hierarchies, such as hypernyms and synonyms, into the training objective.

Summary updated

BibTeX
@inproceedings{yap2020adapting,
  author = {Boon Peng Yap and Andrew Koh and Eng Siong Chng},
  title = {{Adapting BERT for Word Sense Disambiguation with Gloss Selection Objective and Example Sentences}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.findings-emnlp.4},
}
Figure