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 fundamental challenge in Natural Language Processing, requiring models to identify the correct meaning of a word within a specific context. This paper reimagines WSD as a relevance ranking task rather than a binary classification problem. By training BERT to select the most appropriate definition (gloss) from a set of candidates and augmenting the training set with WordNet’s example sentences, we achieve new state-of-the-art results on standard English WSD benchmarks. Our findings highlight the importance of discriminative features and the utility of leveraging existing lexical resources for supervision.

Introduction

Word Sense Disambiguation (WSD) is the task of determining which specific sense of a polysemous word is intended in a given sentence. For instance, the word "bank" can refer to a financial institution or the sloping land beside a body of water. While pre-trained models like BERT have significantly advanced the field, previous state-of-the-art approaches, such as GlossBERT, typically treated WSD as a binary classification task. In that framework, the model evaluates context-gloss pairs independently, asking "is this the correct sense?" for each candidate in isolation.

This paper addresses two primary limitations of current WSD methods: the lack of inter-sense comparison during training and the chronic scarcity of labeled training data. We propose a ranking-based objective that forces the model to compare candidate senses directly and a data augmentation strategy that utilizes WordNet's example sentences to expand the training corpus.

Methodology

Gloss Selection Objective

The core innovation of this work is the shift from binary classification to a ranking-based Gloss Selection Objective. Instead of treating every context-gloss pair as an independent instance, we group all candidate definitions for a target word together.

As shown in Figure 1, the model processes multiple candidate glosses for a single context. A linear layer computes a relevance score $s_i$ for each definition, and a softmax function is applied across the entire group of candidates. This approach encourages the model to learn discriminative features, identifying why one specific sense is more probable than others in a given context.

Architecture of the Gloss Selection Objective using BERT.

Data Augmentation via WordNet Examples

To mitigate the data sparsity problem, we leverage WordNet 3.0, a large lexical database. WordNet provides not only definitions (glosses) but also example sentences for many word senses. We "flipped" these examples into training data by treating the example sentence as the context and its associated definition as the ground truth. This process generated over 37,000 new training instances, representing a 17% increase in available data without the need for additional manual labeling.

Experimental Setup

We evaluated our approach using the "unified evaluation framework" for WSD.

  • Training Data: The primary training set was SemCor, the largest manually sense-tagged corpus.
  • Augmentation: Example sentences were extracted from WordNet 3.0.
  • Evaluation Benchmarks: We tested on five standard datasets from the Senseval and SemEval competitions: SE2, SE3, SE07, SE13, and SE15.

Results and Analysis

Our proposed models achieved state-of-the-art (SOTA) performance across all major benchmarks. As detailed in Figure 2, the BERT-large model combined with data augmentation reached an overall F1-score of 79.5% on the concatenated "all-words" dataset, surpassing previous benchmarks set by GlossBERT (77.0%) and other complex ensemble systems.

Performance comparison of the proposed models against state-of-the-art systems on standard WSD benchmarks.

Key Insights

  • The Power of Comparison: The transition from classification to ranking proved highly effective. By processing related candidate senses simultaneously, the model better distinguishes subtle nuances in meaning.
  • Impact of Data Augmentation: The inclusion of WordNet example sentences consistently improved performance. This was particularly evident for nouns, where the F1-score for BERT-large rose from 81.2% to 82.6%.
  • Model Scaling: Unlike previous studies that found diminishing returns when moving from BERT-base to BERT-large for WSD, our ranking objective allowed the larger model to shine. The increased capacity of BERT-large was effectively utilized to handle the complexity of the ranking task.

Conclusion

This research demonstrates that framing WSD as a gloss selection task significantly improves performance over traditional binary classification. By leveraging BERT's representational power with a discriminative ranking objective and augmenting training data with existing lexical resources, we established new performance ceilings for English WSD.

While the paper demonstrates clear gains, future work will focus on addressing the computational complexity of ranking high-polysemy words and exploring techniques to improve performance on the "long tail" of rare word senses. Additionally, we aim to extend this gloss-selection framework to multilingual WSD using cross-lingual models.

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