Meta-Learning with Variational Semantic Memory for Word Sense Disambiguation

Ying-Jun Du, Nithin Holla, Xiantong Zhen, Cees Snoek, Ekaterina Shutova

Abstract

Word Sense Disambiguation (WSD) is a fundamental challenge in natural language processing, often hindered by the long-tail distribution of word senses and the resulting data scarcity. This paper introduces β-VSM, a meta-learning framework that utilizes Variational Semantic Memory to perform WSD with minimal examples. By modeling word senses as Gaussian distributions and implementing an adaptive memory update rule via a hypernetwork, the proposed model captures semantic uncertainty and enables effective knowledge transfer across words. Our results demonstrate that β-VSM achieves state-of-the-art performance in few-shot WSD, significantly outperforming traditional prototypical networks in extreme data-scarce scenarios.

Introduction

Word Sense Disambiguation (WSD)—the task of determining the correct sense of a word based on its context—is essential for robust natural language understanding. However, the task is plagued by the data scarcity problem. Language naturally contains a massive "long tail" of rare words and senses that appear infrequently in labeled corpora. Traditional supervised models typically require hundreds of examples per sense to achieve high accuracy, failing when faced with new or rare senses seen only once (one-shot learning).

While meta-learning has been proposed to address these challenges by enabling models to "learn to learn" from few examples, previous attempts have often lagged behind fully supervised counterparts. This paper addresses these limitations by introducing a memory-augmented meta-learning approach that explicitly models semantic uncertainty.

Methodology

The authors propose β-VSM, which enhances standard Prototypical Networks with three major innovations:

  1. Variational Prototypes: Instead of representing a word sense as a single point in embedding space, β-VSM treats it as a Gaussian distribution. This allows the model to capture the inherent uncertainty and variance in how a word is used across different contexts.
  2. Variational Semantic Memory (VSM): The model maintains a memory module that stores prototypical representations of senses encountered during training. When faced with a new task, the model "recalls" relevant information from this memory to help disambiguate the current word, facilitating cross-word knowledge transfer.
  3. Adaptive Update Rule (β-VSM): Unlike standard memory networks with fixed update rates, β-VSM employs a hypernetwork to adaptively decide how much to update the memory based on new information. This data-driven approach optimizes memory consolidation for extreme few-shot scenarios.
The probabilistic graphical model of the β-VSM framework, illustrating the relationships between senses (S), context (x), and the latent semantic memory (z).

Experimental Setup

The model was evaluated using a few-shot WSD benchmark derived from the SemCor corpus, with senses annotated via the New Oxford American Dictionary. The data was split into meta-training, meta-validation, and meta-test sets to ensure that the test senses were novel to the model. Experiments were conducted across various "shot" levels and using different embedding backbones, including GloVe, ELMo, and BERT.

Key Results and Discussion

The β-VSM model achieved new state-of-the-art results across all tested embedding types. A BERT-based β-VSM reached an F1 score of 0.728 in the 4-shot scenario, significantly outperforming the standard Prototypical Network baseline (0.696).

As shown in the performance analysis below, the most significant gains occurred in the most data-scarce settings. While standard models like ProtoNet see a sharp decline in performance as the number of senses (and thus task complexity) increases, β-VSM maintains a much higher F1 score. This suggests that the semantic memory acts as a vital "knowledge anchor," preventing the model from losing track of semantic relationships when examples are scarce.

Comparison of Average Macro F1 scores across different numbers of senses for ProtoNet, VPN, VSM, and β-VSM. Note the robustness of β-VSM as task complexity increases.

Qualitative analysis via t-SNE visualizations further confirmed that the model successfully clusters similar senses of distinct words (e.g., "launch," "start," and "establish") closer together, demonstrating effective cross-word semantic transfer through the memory module.

Conclusion

β-VSM represents a significant step forward in few-shot Word Sense Disambiguation. By combining variational prototypes with an adaptive semantic memory, the model effectively handles the uncertainty and data scarcity inherent in natural language. Future research will focus on scaling these memory modules to handle tens of thousands of senses and exploring their application in specialized technical domains.

Summary updated

BibTeX
@inproceedings{du2021meta,
  author = {Ying-Jun Du and Nithin Holla and Xiantong Zhen and Cees Snoek and Ekaterina Shutova},
  title = {{Meta-Learning with Variational Semantic Memory for Word Sense Disambiguation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.acl-long.409},
}
Figure