Bad Form: Comparing Context-Based and Form-Based Few-Shot Learning in Distributional Semantic Models

Jeroen Van Hautte, Guy Emerson, Marek ReiDeepLo @ EMNLP 2019

Abstract

Word embeddings are an essential component in a wide range of natural language processing applications. However, distributional semantic models are known to struggle when only a small number of context sentences are available. Several methods have been proposed to obtain higher-quality vectors for these words, leveraging both this context information and sometimes the word forms themselves through a hybrid approach. We show that the current tasks do not suffice to evaluate models that use word-form information, as such models can easily leverage word forms in the training data that are related to word forms in the test data. We introduce 3 new tasks, allowing for a more balanced comparison between models. Furthermore, we show that hyperparameters that have largely been ignored in previous work can consistently improve the performance of both baseline and advanced models, achieving a new state of the art on 4 out of 6 tasks.

Introduction: The Challenge of Few-Shot Word Learning

In natural language processing, standard models like Word2Vec require massive amounts of text to generate meaningful word embeddings. When a word is rare—a scenario known as few-shot learning—these models typically fail, producing low-quality vectors. To address this, researchers have developed "hybrid" models that utilize both surrounding context sentences and the word's surface form (e.g., subwords or character n-grams) to estimate the embedding.

However, a significant flaw exists in how these models are evaluated. In standard benchmark datasets, many "rare" test words share a morphological stem with highly frequent words already present in the training data (e.g., learning wanderers when the model already knows wanderer). Consequently, hybrid models have dominated benchmarks not necessarily due to superior context-based learning, but by simply copying information from known, related word forms.

Methods and Model Enhancements

To separate true context-based learning from morphological extrapolation, the authors introduced several model upgrades and a "Stem-Based" baseline:

  • Stem-Based Baseline: A dummy model that ignores context sentences entirely, averaging the vectors of known words sharing the same stem as the test word to demonstrate dataset leakage.
  • Selective Training: Modified Word2Vec and FastText to freeze background context words, updating only the target rare word to preserve the existing semantic space.
  • Weighted Addition: Enhanced additive models (like A La Carte) by incorporating Word2Vec's weighting heuristics: distance-based window weights, frequent word subsampling, and negative sampling.
  • Neural Architectures: Replaced rigid linear transformations in A La Carte (ALC) and Form-Context Models (FCM) with a flexible 1-hidden-layer neural network.

Datasets and the Leakage Problem

The authors utilized the Westbury Wikipedia Corpus for background embeddings and evaluated on three existing benchmarks: Definitional Nonce (DN), Chimera, and Contextual Rare Words (CRW). To address evaluation flaws, they introduced:

  • Filtered DN & Filtered CRW: Versions where words sharing a stem with test words are removed from the background corpus, forcing a reliance on context.
  • Full Chimera: An expanded version of the Chimera test set (from 110 to 330 words) for better statistical significance.
Morphological leakage in CRW and DN datasets.

The "Aha!" moment came when realizing that over 50% of CRW test words and ~28% of DN test words had a word with the exact same stem among their nearest neighbors, as shown in the figure above.

Key Results

The results confirmed that previous benchmarks were measuring morphological matching rather than context learning. The trivial Stem-Based model achieved a Mean Reciprocal Rank (MRR) of 0.5550 on the DN task, far surpassing the previous state-of-the-art of 0.1754.

Evaluation results on DN and Chimera tasks.

By combining new techniques like Neural FCM and Weighted Addition with rigorous hyperparameter tuning, the authors established a new state-of-the-art on 4 out of 6 tasks. Neural FCM emerged as the most robust model for natural usage (CRW), while the Additive model with window weights excelled in the Chimera task, proving that well-tuned simple heuristics can outperform complex architectures.

Conclusion

There is no "one size fits all" solution for few-shot word learning. Models excelling at dictionary definitions often struggle with natural usage. While leveraging word form is effective for real-world rare words, it can be detrimental for truly novel or nonsense words. Future work may explore dependency-based embeddings, but careful optimization remains critical for adapting any model to the few-shot setting.

Summary updated

BibTeX
@inproceedings{hautte2019bad,
  author = {Jeroen Van Hautte and Guy Emerson and Marek Rei},
  title = {{Bad Form: Comparing Context-Based and Form-Based Few-Shot Learning in Distributional Semantic Models}},
  booktitle = {DeepLo @ EMNLP},
  year = {2019},
  url = {https://openreview.net/forum?id=PyD2gJw7fY},
}
Figure