Meta-Learning with Variational Semantic Memory for Word Sense Disambiguation

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

TL;DR

This paper introduces B-VSM, a novel meta-learning approach for few-shot Word Sense Disambiguation (WSD) that leverages a variational semantic memory. By adaptively updating this memory, B-VSM significantly improves performance in extremely data-scarce scenarios, achieving state-of-the-art results and demonstrating better generalization than previous methods.

What Problem Does This Paper Address?

Word Sense Disambiguation (WSD) is a fundamental task in Natural Language Understanding, aiming to identify the correct meaning of a word in a given context. Traditional supervised WSD methods require large amounts of labeled data, which are scarce for many words, especially for their less frequent senses. This data scarcity is exacerbated by the natural imbalance of sense frequencies. While few-shot WSD using meta-learning has shown promise in learning new word senses from minimal examples, its performance still lags behind fully supervised methods. This paper addresses this gap by proposing a model that enhances meta-learning for WSD with a semantic memory component, designed to better capture and utilize prior knowledge for improved generalization in low-resource settings.

Methods

The core of the proposed method, B-VSM, builds upon Variational Prototype Networks (VPN). Instead of learning deterministic prototypes for word senses, VPN models them as distributions, allowing for more robust representations, especially with limited data. The key innovation is the integration of a Variational Semantic Memory (VSM). This memory module stores prototypical representations of word senses encountered during training, acting as a repository of general knowledge.

The VSM operates in two phases:

  1. Memory Recall: This phase uses variational inference to retrieve relevant information from the memory based on the current task's support set. It introduces a latent memory variable m to capture this intermediate information.
  2. Memory Update: This phase consolidates new information into the memory. The paper proposes an adaptive memory update rule using a hypernetwork. Unlike previous VSM approaches where a fixed hyperparameter β controlled the update rate, B-VSM learns this β dynamically from the data via a lightweight hypernetwork. This adaptive β allows the model to better determine how much of the memory needs to be updated based on the incoming data, leading to more effective knowledge consolidation.

The overall model combines these components within a hierarchical Bayesian framework, aiming to improve generalization by leveraging both task-specific prototypes and long-term semantic memory.

Datasets

The paper uses the few-shot WSD benchmark provided by Holla et al. (2020a). This benchmark is based on the SemCor corpus (Miller et al., 1994), annotated with senses from the New Oxford American Dictionary by Yuan et al. (2016). The dataset is split into meta-training, meta-validation, and meta-test sets, with the meta-test set containing entirely new words. The experiments are conducted with varying support set sizes (|S| = 4, 8, 16, 32), representing different levels of data scarcity.

Key Insights and Ideas

  • Semantic Memory for Generalization: The core idea is that a persistent semantic memory, storing generalized knowledge from past tasks, is crucial for effective few-shot learning. This memory acts as a "lifetime experience" for the model, enabling it to adapt more quickly to new, unseen word senses.
  • Adaptive Memory Updates are Crucial: The adaptive update rule for the semantic memory (controlled by β) is a significant improvement. It allows the model to dynamically adjust how much it relies on new information versus existing knowledge, a critical factor for robust learning in varying data conditions.
  • Probabilistic Prototypes Enhance Representation: Using variational inference to model word sense prototypes as distributions, rather than single vectors, provides more informative and less uncertain representations, especially when dealing with limited examples.
  • Bridging the Gap to Fully Supervised Performance: The proposed B-VSM model significantly closes the performance gap between few-shot and fully supervised WSD, particularly in the most challenging low-shot scenarios.

Key Results

  • State-of-the-Art Performance: B-VSM achieves new state-of-the-art results on the few-shot WSD benchmark across all tested embedding functions (GloVe+GRU, ELMO+MLP, BERT) and support set sizes.
  • Consistent Improvements: The model consistently outperforms previous methods like ProtoNet, VPN, and VSM, with gains ranging from 0.9% to 2.4% in macro F1 scores.
  • Effectiveness in Low-Shot Scenarios: The most significant performance gains are observed for word senses with fewer training examples, highlighting the effectiveness of semantic memory in extremely data-scarce situations.
  • Improved Prototype Distinctiveness: Visualizations (using t-SNE) show that B-VSM produces more distinctive and well-separated prototypes for different word senses, leading to better contextual interpretation.

Limitations and Future Work

  • Computational Cost: While not explicitly detailed as a limitation, the use of meta-learning and memory mechanisms generally implies higher computational requirements compared to simpler models.
  • Future Work: The authors suggest exploring the role of memory in modeling meaning variation across different domains and languages. They also propose investigating tasks that integrate knowledge at various linguistic hierarchy levels. The adaptive memory update mechanism itself could be further explored for its potential in other meta-learning applications.

Summary updated

BibTeX
@inproceedings{du2021meta,
  author = {Ying-Jun Du and Nithin Holla and Xiantong Zhen and Cees G. M. 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