Auto-Encoding Dictionary Definitions into Consistent Word Embeddings

Tom Bosc, Pascal VincentEMNLP 2018

Introduction

Standard word embedding techniques, such as word2vec and GloVe, are built upon the distributional hypothesis, which posits that words appearing in similar contexts share similar meanings. While effective for many tasks, this approach often fails to distinguish between semantic similarity (e.g., cat and dog) and topical relatedness (e.g., coffee and cup). To address this, researchers from Mila have introduced the Consistency Penalized AutoEncoder (CPAE), a model that learns embeddings by reading and reconstructing dictionary definitions.

Methodology: The Consistency Penalized AutoEncoder (CPAE)

The CPAE architecture leverages the recursive nature of dictionaries—where words are defined by other words—to create a self-consistent semantic space.

CPAE Architecture: The model uses an LSTM to encode definitions and a simple language model to reconstruct them, constrained by a consistency penalty.

The model consists of two primary components:

  1. The Encoder: An LSTM network processes a dictionary definition's word sequence to generate a "definition embedding" ($h$).
  2. The Decoder: A unigram language model attempts to reconstruct the original definition's "bag-of-words" from the embedding $h$.

The core innovation is the consistency penalty. This loss term encourages the "input" embeddings (used by the LSTM to read the definition) to align with the "output" embeddings (the vectors produced for the defined word). This ensures that a word's representation is explicitly tied to the meanings of the words used to define it, effectively acting as a proxy for the infinite recursion found in lexical resources.

Experimental Setup

The model was trained using definitions from WordNet 3.0. Evaluation focused on two distinct categories:

  • Similarity Benchmarks: SimLex999, SimLex333, and SimVerb3500.
  • Relatedness Benchmarks: MEN, RG, WS353, SCWS, and MTurk.

The researchers also tested a pre-trained variant, CPAE-P, which initializes embeddings using Wikipedia data before applying the dictionary-based CPAE objective.

Key Results and Discussion

The CPAE model demonstrates a significant advantage in capturing semantic similarity compared to traditional distributional methods.

Performance Comparison: CPAE and its pre-trained variant (CPAE-P) outperform standard distributional models on similarity benchmarks.

As shown in the results, when trained solely on dictionary data, CPAE outperformed word2vec on similarity tasks. Specifically, on the SimLex333 benchmark, CPAE achieved a Spearman correlation of 30.9, nearly doubling word2vec's 16.0. The hybrid CPAE-P model achieved the best overall performance, reaching a correlation of 45.8 on SimLex999, suggesting that dictionary data provides a powerful signal that complements distributional information.

Furthermore, the model exhibits strong one-shot learning capabilities. By learning a mapping from definition text to vector space, it can generate an embedding for a previously unseen word immediately upon reading its definition, a feat impossible for distributional models that require extensive contextual data.

Conclusion and Future Work

The CPAE framework successfully utilizes the structured knowledge in dictionaries to refine word embeddings. While the current model uses a simple unigram decoder and produces a single vector per word (collapsing polysemy), it sets a new standard for learning semantically grounded representations. Future research may explore more sophisticated decoders to capture word order or multi-sense embeddings to better handle polysemous words like "bank."

Summary updated

BibTeX
@inproceedings{bosc2018auto,
  author = {Tom Bosc and Pascal Vincent},
  title = {{Auto-Encoding Dictionary Definitions into Consistent Word Embeddings}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  url = {https://openreview.net/forum?id=SJNKPMfu-H},
}
Figure