Improving Word Representations via Global Context and Multiple Word Prototypes

Eric H. Huang, Richard Socher, Christopher D. Manning, Andrew Y. Ng

Abstract

Traditional vector-space models often struggle with polysemy, representing words with multiple meanings as a single point in high-dimensional space. This paper introduces a neural network architecture that learns word embeddings by combining local "n-gram" context with global document-level information. By clustering these context-rich representations, the model learns multiple distinct embeddings (prototypes) for a single word, effectively capturing different semantic senses. Our approach significantly outperforms standard models on word similarity benchmarks.

Introduction

Most traditional Vector-Space Models (VSMs) represent each word with a single vector. This approach suffers from two primary limitations:

  1. The Polysemy Problem: A single vector cannot represent a word with multiple meanings. For example, "bank" ends up as a noisy average of financial and geographical definitions, failing to represent either accurately.
  2. Contextual Myopia: Most models rely solely on local context (immediate neighbors). However, the broader topic of a document (global context) provides essential clues for disambiguation that local windows might miss.

Methodology

The proposed model utilizes a two-pronged scoring function to capture both syntactic and semantic nuances.

Local and Global Context

The Local Context Component uses a standard neural network to examine a fixed window of words, capturing syntactic and immediate semantic cues. The Global Context Component represents the entire document as a weighted average of its word vectors using inverse document frequency (idf) weighting. A second neural network processes this "document vector" alongside the target word to contribute to the final score.

The model architecture integrates local context windows with global document-level semantic vectors to compute a final word score.

Multi-Prototype Approach

To handle polysemy, the authors implement a multi-prototype training pipeline:

  1. Initial Training: Train a single-prototype model first.
  2. Context Representation: Represent each word occurrence as a weighted average of its context vectors.
  3. Clustering: Cluster these representations using spherical k-means to identify distinct senses.
  4. Re-training: Re-label word occurrences with cluster IDs (e.g., bank_1, bank_2) and re-train the model to learn distinct embeddings for each sense.

Evaluation and Results

The model was trained on a 2010 snapshot of English Wikipedia and evaluated using the WordSim-353 benchmark and a new Stanford Contextual Word Similarity (SCWS) dataset. SCWS provides word pairs within their original sentences, allowing for a more robust evaluation of context-dependent meanings.

Quantitative Performance

On WordSim-353, the model achieved a Spearman’s correlation of 64.2 (71.3 without stop words), significantly outperforming the Collobert & Weston (C&W) baseline of 55.3. On the SCWS dataset, the multi-prototype model reached a correlation of 65.7, compared to 57.0 for the single-prototype baseline.

Qualitative Analysis

The model successfully distinguished between different word senses by identifying distinct nearest neighbors for each prototype. For instance, bank_1 is associated with financial terms like "corporation" and "insurance," while bank_2 relates to geographical terms like "shore" and "coast."

Nearest neighbors for different word prototypes demonstrate the model's ability to separate distinct semantic meanings.

Conclusion

By integrating global document context and learning multiple prototypes per word, this architecture effectively addresses the limitations of traditional VSMs. While the current approach uses a fixed number of clusters and incurs higher computational costs due to its multi-pass training, it provides a significant step forward in capturing the inherent ambiguity of natural language. Future work may explore more flexible clustering methods to dynamically determine the number of senses per word.

Summary updated

BibTeX
@inproceedings{huang2012improving,
  author = {Eric H. Huang and Richard Socher and Christopher D. Manning and Andrew Y. Ng},
  title = {{Improving Word Representations via Global Context and Multiple Word Prototypes}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2012},
}
Figure