Abstract
Distributed representations of words have been shown to capture lexical semantics, as demonstrated by their effectiveness in word similarity and analogical relation tasks. But, these tasks only evaluate lexical semantics indirectly. In this paper, we study whether it is possible to utilize distributed representations to generate dictionary definitions of words, as a more direct and transparent representation of the embeddings' semantics. We introduce definition modeling, the task of generating a definition for a given word and its embedding. We present several definition model architectures based on recurrent neural networks, and experiment with the models over multiple data sets. Our results show that a model that controls dependencies between the word being defined and the definition words performs significantly better, and that a character-level convolution layer designed to leverage morphology can complement word-level embeddings. Finally, an error analysis suggests that the errors made by a definition model may provide insight into the shortcomings of word embeddings.
Introduction
In modern Natural Language Processing (NLP), word embeddings like Word2Vec or GloVe serve as the fundamental building blocks for language understanding. Traditionally, these high-dimensional vectors are evaluated indirectly through tasks such as word similarity or analogy detection. However, these methods provide only a partial view of the semantic knowledge captured within an embedding.
Researchers from Northwestern University propose a more direct challenge: definition modeling. If an embedding truly captures a word's meaning, a model should be able to "read out" that vector and generate a coherent dictionary definition. This task serves as a transparency layer, allowing us to evaluate what word embeddings actually learn by converting their latent information into natural language.
Methods and Architecture
The authors developed several architectures based on Recurrent Neural Networks (RNNs), specifically LSTMs, to tackle this task. Two key innovations were introduced to handle the unique structure of definitions:
- The Gated Model (G): Not all words in a definition depend equally on the word being defined. For instance, in the definition of insomnia ("the state of being unable to sleep"), the word "sleep" is highly specific to the input, while "the state of" is generic. The gated update function acts like a "volume knob," allowing the model to dynamically control how much information from the input word embedding influences the generation at each time step.
- Character-Level CNN (CH): To capture morphology, a character-level convolutional neural network was added. This helps the model identify semantic clues from prefixes and suffixes (e.g., "-ity" indicating a noun), which standard word-level embeddings might overlook.
Datasets
The study utilized a new corpus of word-definition pairs compiled from two primary sources: WordNet (WN) and the GNU Collaborative International Dictionary of English (GCIDE). The final dataset comprised approximately 146,000 training entries. Crucially, the test set words were excluded from training to ensure the model's ability to generalize from embeddings rather than simply memorizing definitions.
Key Results and Insights
The gated mechanism proved essential, significantly outperforming simpler baseline models. By learning to "turn up the volume" on the input embedding for specific content words and "turn it down" for generic function words, the model achieved a perplexity of 48.168, compared to 56.350 for the baseline.
Qualitative analysis revealed that the model is capable of generating highly accurate definitions for a variety of words. However, it also highlighted a phenomenon known as "antonym blindness." Because embeddings for opposites (like "hot" and "cold") often appear in similar contexts, the model occasionally generated definitions for the opposite of the target word.
Conclusion
Definition modeling provides a powerful new lens for inspecting word embeddings. The success of the gated architecture and character-level features suggests that both distributional and morphological information are vital for capturing full lexical semantics. Future work may involve using these models to refine embeddings or to align standard language models with explicit dictionary meanings.
Summary updated