Abstract
Recently, there has been a lot of effort to represent words in continuous vector spaces. Those representations have been shown to capture both semantic and syntactic information about words. However, distributed representations of phrases remain a challenge. We introduce a novel model that jointly learns word vector representations and their summation. Word representations are learnt using the word co-occurrence statistical information. To embed sequences of words (i.e. phrases) with different sizes into a common semantic space, we propose to average word vector representations. In contrast with previous methods which reported a posteriori some compositionality aspects by simple summation, we simultaneously train words to sum, while keeping the maximum information from the original vectors. We evaluate the quality of the word representations on several classical word evaluation tasks, and we introduce a novel task to evaluate the quality of the phrase representations. While our distributed representations compete with other methods of learning word representations on word evaluations, we show that they give better performance on the phrase evaluation. Such representations of phrases could be interesting for many tasks in natural language processing.
Introduction
In Natural Language Processing (NLP), representing individual words as continuous vectors (embeddings) has become a standard practice. However, representing phrases effectively remains a significant challenge. Existing approaches typically fall into two categories: simple composition, where pre-trained word vectors are averaged a posteriori, and complex architectures like Recursive Neural Networks that rely on expensive parse trees.
This paper argues that distributed representation and composition should be mutually learned. The authors propose a model that retains the statistical grounding of count-based distributional semantics while gaining the discriminative power of predictive neural models, explicitly training word vectors to be additive.
Methodology
The proposed framework utilizes a Linear Autoencoder to bridge the gap between distributional counting and neural prediction.
The Autoencoder Backbone
The model starts with high-dimensional word co-occurrence probabilities, specifically using the square root of these probabilities to relate to the Hellinger distance. This provides a robust statistical foundation. A linear autoencoder then compresses these vectors into a lower-dimensional space (e.g., 100 dimensions), acting as a neural approximation of Principal Component Analysis (PCA).
Joint Learning Objective
The model minimizes two loss functions simultaneously:
- Reconstruction Loss: Ensures the low-dimensional word vector retains maximum information from the original co-occurrence statistics.
- Ranking Loss: For a given phrase (e.g., "the red cat"), the model calculates a phrase vector by averaging the vectors of its constituent words. It then uses a ranking cost to ensure this phrase vector is closer (via dot product) to its actual constituent words than to random words from the dictionary.
By using linear layers, the authors preserve the inherent linear structure of word distributions, making the "sum of parts" logic mathematically sound. This "training to sum" approach ensures that constituent information remains accessible through simple averaging.
Evaluation and Results
The model was trained on the January 2014 version of English Wikipedia (1.6 billion words), with over 2 million phrases extracted using SENNA software.
Word and Phrase Performance
On standard word-level tasks (Word Analogies and Similarities), the model performed competitively with state-of-the-art models like GloVe and Skip-gram. However, the model's primary advantage appeared in the Phrase Retrieval task, where the goal is to retrieve the original words of a phrase given only its averaged vector representation.
As shown in the results, the proposed model achieved a 64.22% Recall@1, significantly outperforming GloVe (54.97%) and Skip-gram (7.96%). Notably, while other models' performance degrades as phrases get longer, this model maintains high accuracy even for phrases with five or more words, proving that its joint training strategy for averaging is highly robust.
Conclusion
By explicitly forcing word vectors to be additive during training, this model creates representations where the "sum of parts" reliably captures the meaning of the whole. This approach offers efficient inference; new word or phrase representations can be generated simply by counting neighbors in a corpus without retraining the network. Future work may address hardware-imposed limitations on context dictionary size and explore methods to handle non-compositional idiomatic expressions.
Summary updated