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 (BEM) that independently embeds the target word with its surrounding context and 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, achieving a 79.0% F1 score. These gains predominantly come from improved performance on rare senses, leading to a 31.1% error reduction on less frequent senses over prior work.
Introduction: The Challenge of the Long Tail
Word Sense Disambiguation (WSD) is the fundamental NLP task of determining which specific meaning a word carries in a given context—for example, distinguishing whether "bank" refers to a financial institution or a riverbank.
The primary hurdle in WSD is the Zipfian distribution of language. A small number of meanings (the Most Frequent Senses, or MFS) appear with high frequency, while the vast majority of meanings (Less Frequent Senses, or LFS) are rare. Traditional WSD models tend to become "lazy," defaulting to the MFS because they lack sufficient training examples for the "long tail" of rare senses. While previous attempts have integrated dictionary definitions (glosses) to mitigate this, they often struggled with computational efficiency or failed to bridge the performance gap between common and rare meanings.
Methodology: The Bi-Encoder Model (BEM)
The proposed Bi-Encoder Model (BEM) leverages a dual-encoder architecture built upon BERT-base. Unlike computationally expensive "cross-encoder" models that must process every possible word-gloss pair together, BEM processes them independently through two distinct components:
- Context Encoder: Generates an embedding for the target word within its surrounding sentence.
- Gloss Encoder: Generates an embedding for the dictionary definition of a potential sense.
The "secret sauce" of this approach is that these two encoders are jointly optimized in the same embedding space. During training, the model uses a cross-entropy loss to minimize the distance between a word's contextual embedding and the embedding of its correct definition. At inference, disambiguation is performed by calculating the dot product between the target word's embedding and all candidate sense embeddings, selecting the one with the highest similarity score.
Experimental Setup
The model was trained on SemCor, the largest manually annotated WSD dataset, comprising approximately 226,000 examples. All sense definitions were retrieved from WordNet 3.0. The system's performance was evaluated on the standard English all-words WSD benchmark, including Senseval-2, Senseval-3, SemEval-2013, and SemEval-2015, with SemEval-2007 (SE07) serving as the development set.
Key Results and Insights
The BEM achieved a new state-of-the-art overall F1 score of 79.0% on the all-words WSD task. The most significant improvements were observed in the "long tail" of rare senses.
Crushing the Long Tail
The model demonstrated a 15.6 absolute F1 improvement on Less Frequent Senses (LFS) compared to the previous best system. Furthermore, in "zero-shot" scenarios—where the model encounters senses never seen during training—the BEM achieved an F1 of 68.9, significantly higher than the 53.6 F1 of a standard BERT-base baseline. Crucially, these gains on rare senses did not compromise performance on common ones; the model maintained a high accuracy of 94.1 F1 on Most Frequent Senses.
The Power of Glosses
By using definitions as semantic anchors, the model learns the underlying meaning of a sense rather than just memorizing its appearance in the training data. The authors found that joint training is essential; using "off-the-shelf" BERT encoders without joint optimization led to substantially lower performance. Additionally, the model proved highly data-efficient, outperforming standard BERT classifiers in few-shot experiments (1 to 10 examples per sense).
Discussion and Limitations
While BEM represents a significant step forward, WSD remains an open challenge. A ~40-point F1 gap still exists between performance on common versus rare senses. The model also struggles with fine-grained nuances, particularly among verbs (e.g., distinguishing "running a race" from "running a business"). Future research may explore loss reweighting to further prioritize rare senses or apply this bi-encoder approach to low-resource languages and specialized domains.
Summary updated