Abstract
A major obstacle in Word Sense Disambiguation (WSD) is that word senses are not uniformly distributed, causing existing models to generally perform poorly on senses that are either rare or unseen during training. We propose a bi-encoder model that independently embeds (1) the target word with its surrounding context and (2) the dictionary definition, or gloss, of each sense. The encoders are jointly optimized in the same representation space, so that sense disambiguation can be performed by finding the nearest sense embedding for each target word embedding. Our system outperforms previous state-of-the-art models on English all-words WSD; these gains predominantly come from improved performance on rare senses, leading to a 31.1% error reduction on less frequent senses over prior work. This demonstrates that rare senses can be more effectively disambiguated by modeling their definitions.
Introduction
Word Sense Disambiguation (WSD) is a fundamental task in Natural Language Processing that involves identifying the correct meaning of a polysemous word within a specific context. For instance, determining whether "plant" refers to a biological organism or an industrial facility. Despite its importance, WSD faces a significant hurdle: the Zipfian distribution of language. In most datasets, a word's Most Frequent Sense (MFS) dominates, leading neural models to develop a strong bias toward these common meanings while performing poorly on Less Frequent Senses (LFS) or zero-shot scenarios.
Methodology
To address the data imbalance in WSD, we propose the Bi-encoder Model (BEM). Unlike traditional classification approaches that treat senses as static labels, BEM frames WSD as a metric learning problem. The model maps both contextualized word mentions and dictionary definitions (glosses) into a shared embedding space.
Architecture
The BEM architecture, initialized with BERT-base, consists of two independent transformer encoders:
- Context Encoder: Processes the target word and its surrounding sentence to produce a contextualized embedding.
- Gloss Encoder: Processes the text of a dictionary definition from WordNet to generate a global representation for that specific sense.
During training, the model uses a cross-entropy loss to maximize the dot product between a context embedding and its corresponding correct gloss embedding, while minimizing it for incorrect candidates. At inference time, disambiguation is performed by selecting the sense whose gloss embedding is nearest to the target word's context embedding.
Data
The model is trained on SemCor, the largest manually annotated WSD dataset (~226,000 examples). Evaluation is conducted using the standard English all-words WSD framework, including SemEval-2007 (dev), and Senseval-2, Senseval-3, SemEval-2013, and SemEval-2015 (test). All definitions are sourced from WordNet 3.0.
Results and Discussion
The BEM achieves state-of-the-art performance across all standard benchmarks. As shown in the results table, it reaches an aggregate F1 score of 79.0, surpassing previous models such as GlossBERT and EWISE.
Performance on the Long Tail
The primary strength of the bi-encoder approach is its ability to handle rare senses. By modeling the semantic content of definitions, the BEM achieved a 31.1% error reduction on Less Frequent Senses compared to prior work. Furthermore, the model demonstrated robust zero-shot capabilities, successfully disambiguating words (91.2 F1) and specific senses (68.9 F1) that were entirely absent from the training data.
Data Efficiency and Bias
A key insight from this work is the model's extreme data efficiency. In few-shot settings, BEM matched the performance of a standard baseline trained on the full dataset using only five examples per sense. However, addressing the MFS bias remains challenging. While inverse frequency weighting improved LFS performance, it simultaneously degraded accuracy on common senses, suggesting that the natural frequency distribution provides a helpful prior for overall system performance.
Conclusion
The Bi-encoder Model demonstrates that explicitly modeling dictionary definitions allows for more effective disambiguation of rare and unseen word senses. While a performance gap between frequent and rare senses persists, the BEM's ability to generalize from glosses provides a powerful tool for scaling WSD to low-resource domains and languages. Future research will focus on balancing these signals to further close the gap on the long tail of language.
Summary updated