GlossBERT: BERT for Word Sense Disambiguation with Gloss Knowledge

Luyao Huang, Chi Sun, Xipeng Qiu, Xuanjing Huang

Introduction

Word Sense Disambiguation (WSD) is a fundamental challenge in Natural Language Processing, focused on determining the correct meaning of a word based on its specific context. For instance, the word "bank" can refer to a financial institution or the terrain alongside a river. Historically, WSD approaches have been divided into two categories: supervised methods, which train specific classifiers for individual words, and knowledge-based methods, which utilize external dictionaries like WordNet. While supervised models are often more accurate, they lack the flexibility of knowledge-based systems.

GlossBERT bridges this gap by treating WSD as a sentence-pair classification task, leveraging the pre-trained power of BERT (Bidirectional Encoder Representations from Transformers) to integrate contextual information with dictionary definitions (glosses).

Methodology

The core innovation of GlossBERT is the transformation of WSD into a binary classification problem, similar to Natural Language Inference (NLI). Instead of choosing one sense from a list of $N$ possibilities, the model evaluates pairs consisting of a context sentence and a potential definition.

Context-Gloss Construction

For a target word in a sentence, the model constructs input sequences in the format: [CLS] Context Sentence [SEP] Gloss [SEP]. The model is then trained to output a "Yes" or "No" label, indicating whether the provided gloss matches the word's usage in that context.

Model Variants and Weak Supervision

The authors explored three primary architectures:

  1. GlossBERT(Token-CLS): Utilizes the BERT output vector corresponding to the target word's position.
  2. GlossBERT(Sent-CLS): Uses the aggregate [CLS] token representation for the classification decision.
  3. GlossBERT(Sent-CLS-WS): Introduces Weak Supervision (WS). In this variant, the target word is highlighted with quotation marks in the context, and the word's lemma is prepended to the definition (e.g., "research: systematic investigation..."). This structural hint helps the attention mechanism focus on the relevant semantic relationship.
Context-Gloss pairs with weak supervision for the target word "research".

Experimental Setup

The models were fine-tuned on SemCor3.0, the largest manually annotated WSD corpus, containing over 226,000 sense annotations. Evaluation was conducted across five standard English all-words WSD benchmarks: Senseval-2 (SE2), Senseval-3 (SE3), SemEval-2007 (SE07), SemEval-2013 (SE13), and SemEval-2015 (SE15). WordNet 3.0 served as the primary knowledge base for senses and glosses.

Key Results

GlossBERT established a new state-of-the-art (SOTA) for English WSD. The Sent-CLS-WS variant achieved an F1-score of 77.0% on the combined "All" benchmark, significantly outperforming previous neural architectures such as HCAN (71.1%) and GAS (70.6%).

Performance comparison of GlossBERT against baseline and state-of-the-art WSD systems across various benchmarks.

Analysis of Performance

  • Verb Disambiguation: The model showed substantial gains in disambiguating verbs, which are typically more difficult than nouns due to higher polysemy.
  • Handling Ambiguity: On the SE07 dataset—noted for its high degree of ambiguity—GlossBERT outperformed the previous SOTA by nearly 8 percentage points.
  • Unified Architecture: Unlike traditional "word expert" models that require separate classifiers for every word, GlossBERT provides a single, unified model capable of disambiguating any word in the vocabulary.

Conclusion

By reframing Word Sense Disambiguation as a sentence-pair classification task, GlossBERT effectively harnesses the semantic depth of pre-trained transformers and the structured knowledge of dictionary glosses. The inclusion of weak supervision further refines the model's focus, leading to robust performance across diverse lexical categories. Future work may involve incorporating additional WordNet relations, such as hypernyms and hyponyms, to further enrich the model's semantic understanding.

Summary updated

BibTeX
@inproceedings{huang2019glossbert,
  author = {Luyao Huang and Chi Sun and Xipeng Qiu and Xuanjing Huang},
  title = {{GlossBERT: BERT for Word Sense Disambiguation with Gloss Knowledge}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2019},
  doi = {10.18653/v1/d19-1355},
}
Figure