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:
- 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.
- 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.
Multi-Prototype Approach
To handle polysemy, the authors implement a multi-prototype training pipeline:
- Initial Training: Train a single-prototype model first.
- Context Representation: Represent each word occurrence as a weighted average of its context vectors.
- Clustering: Cluster these representations using spherical k-means to identify distinct senses.
- 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."
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