Definition Modeling: Learning to define word embeddings in natural language

Thanapon Noraset, Chen Liang, Larry Birnbaum, Doug Downey

TL;DR

This paper introduces definition modeling, the novel task of generating natural language dictionary definitions directly from word embeddings. By using a specialized RNN architecture with a gated update function, the authors demonstrate that distributed representations contain enough semantic information to produce fluent, accurate definitions, offering a more transparent way to evaluate what embeddings actually "know."

What Problem Does This Paper Address?

While word embeddings (like Word2Vec or GloVe) are the backbone of modern NLP, we usually evaluate them indirectly through word similarity scores or analogy tasks (e.g., "king - man + woman = queen"). These metrics tell us that vectors are related, but they don't explain why or provide a human-readable account of a word's meaning.

The authors propose that if an embedding truly captures a word's semantics, we should be able to "decode" that vector back into a standard dictionary definition. This is a challenging "word-to-sequence" problem: unlike machine translation, where you have a full source sentence, here the model must generate a coherent descriptive phrase from a single dense vector.

Methods

The authors build upon Recurrent Neural Network Language Models (RNNLMs), specifically using a 2-layer LSTM. They compare several architectures for conditioning the generation on the target word embedding ($v^*$):

  • Seed (S): The target word is simply provided as the first token in the sequence.
  • Input (I) & Hidden (H): The embedding $v^*$ is provided as a constant input at every time step or used to initialize/update the hidden state.
  • Gated (G): This is the core innovation. Inspired by GRUs, the model uses a gated update function to dynamically control how much the target word influences the generation at each step. This allows the model to rely on the embedding for specific content words (like "fish" in the definition of "butterfish") while ignoring it for generic function words (like "a" or "of").
  • Character-level CNN (CH): To capture morphology (prefixes and suffixes), they add a CNN that looks at the character sequence of the target word.
  • Hypernym Embeddings (HE): They attempt to provide the model with "genus" information (the general category of a word) by feeding in a weighted sum of hypernyms retrieved from an external database.

Datasets

The researchers constructed a new benchmark by combining and preprocessing two major sources:

  • GCIDE: The GNU Collaborative International Dictionary of English.
  • WordNet: Specifically the "glosses" or definitions provided for synsets.

They filtered these for the 20,000 most frequent words in the Google Web 1T corpus to ensure the embeddings were well-trained. The resulting dataset (summarized in the table below) was split such that the words in the test set were never seen during training.

Table 2: Basic statistics of the common word definitions cor- pus. Splits are mutually exclusive in the words being de- fined.

Key Insights and Ideas

  • Selective Dependency: Dictionary definitions often follow a "genus + differentia" structure (e.g., "creek: a narrow [genus] stream of water [differentia]"). The gated model is successful because it learns that the target word is highly relevant for the "differentia" but less so for the generic "genus" or function words.
  • Visualizing the Gates: Figure 1 (below) shows this in action. The gates ($z$ and $r$) activate strongly for content-heavy words like "unable" or "sleep" when defining "insomnia," but stay quiet for "the" or "of."
Figure 1: Average gate activations for tokens of two definitions (omitting seed). The model utilizes the word being defined more for predicting content words than for function words.
  • Morphology as a Signal: Adding character-level information (CNN) significantly improved performance. This suggests that morphology provides a "semantic anchor" that complements the context-based information in standard embeddings.
  • Embedding Blind Spots: The errors made by the model reveal inherent weaknesses in embeddings. For example, embeddings often struggle with antonyms because "hot" and "cold" appear in similar contexts. Consequently, the model occasionally defined words as their opposites (e.g., defining "inward" as "not directed to the center").

Key Results

  • Perplexity: The Gated model (S+G) outperformed the Seed baseline, dropping perplexity from 56.35 to 50.95. Adding character info (S+G+CH) brought it down further to 48.57.
  • Reverse Dictionary Task: The model was tested on its ability to find a word given a definition. It achieved a massive 11.8% absolute gain in accuracy over previous state-of-the-art methods.
  • Qualitative Quality: As shown in the table below, the model produces remarkably human-like definitions, even for words it didn't see during training.
Table 1: Selected examples of generated definitions.

Limitations and Future Work

  • Hypernym Integration: Surprisingly, the hypernym embeddings (HE) provided little to no benefit. The authors suspect their simple weighted-sum approach was too crude to represent the "genus" effectively.
  • Hallucination and Repetition: Like many RNN-based generators of that era, the model occasionally suffered from repeating phrases (e.g., "a metal, or other materials, or other materials").
  • Implicit Knowledge: The model struggled when a word's primary role is implicit in its context. For example, "captain" appears near "ship," but its role as a leader is often not explicitly stated in text, leading to under-specified definitions.
  • Future Directions: The authors suggest using definition modeling as a new objective function to actually train better, more interpretable word embeddings.

Summary updated

BibTeX
@inproceedings{noraset2017definition,
  author = {Thanapon Noraset and Chen Liang and Larry Birnbaum and Doug Downey},
  title = {{Definition Modeling: Learning to define word embeddings in natural language}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  url = {https://openreview.net/forum?id=SkbE4CedWS},
}
Figure