[Paper Review] What the Vec? Towards Probabilistically Grounded Embeddings
This paper establishes a probabilistic foundation for Word2Vec and GloVe embeddings by linking them to Pointwise Mutual Information (PMI) vectors, showing that semantic relationships like similarity, paraphrase, and analogy emerge from linear interactions of these high-dimensional PMI vectors under low-dimensional projection. The key contribution is a theoretical framework explaining why W2V and GloVe embeddings work, revealing a hierarchical structure among semantic relationships and justifying common practices like using the mean of W and C matrices.
Word2Vec (W2V) and GloVe are popular, fast and efficient word embedding algorithms. Their embeddings are widely used and perform well on a variety of natural language processing tasks. Moreover, W2V has recently been adopted in the field of graph embedding, where it underpins several leading algorithms. However, despite their ubiquity and relatively simple model architecture, a theoretical understanding of what the embedding parameters of W2V and GloVe learn and why that is useful in downstream tasks has been lacking. We show that different interactions between PMI vectors reflect semantic word relationships, such as similarity and paraphrasing, that are encoded in low dimensional word embeddings under a suitable projection, theoretically explaining why embeddings of W2V and GloVe work. As a consequence, we also reveal an interesting mathematical interconnection between the considered semantic relationships themselves.
Motivation & Objective
- To provide a theoretical understanding of what W2V and GloVe embeddings learn and why they are effective in downstream NLP tasks.
- To explain the semantic properties of word embeddings—such as similarity, paraphrase, and analogy—through the lens of PMI vector interactions.
- To derive a mathematical relationship between the W and C embedding matrices, justifying their non-identity and the common heuristic of using their mean.
- To uncover a hierarchical interconnection between semantic relationships, starting from relatedness as the base pairwise measure.
Proposed method
- The authors analyze the loss functions of W2Vec and GloVe, showing they implicitly factorize a shifted PMI matrix S = W^T C.
- They demonstrate that semantic relationships correspond to specific linear combinations of PMI vectors, which are preserved under linear projection into low-dimensional space.
- A theoretical derivation shows that W and C matrices must differ, with a derived relationship W^T C = S explaining their asymmetric roles despite symmetric loss functions.
- The framework interprets common operations like cosine similarity as measures of relatedness between PMI vectors, and analogies as higher-order interactions involving joint word occurrences.
- The authors use empirical evaluation on the text8 corpus to validate the theoretical claims, comparing models with different constraints on W and C.
- They introduce a geometric interpretation of error terms in higher-order relationships (e.g., analogies) as deviations from the hypersurface S on which PMI vectors lie.
Experimental results
Research questions
- RQ1How do W2Vec and GloVe embeddings relate to Pointwise Mutual Information (PMI) vectors, and why do they capture semantic relationships?
- RQ2Why do W2Vec and GloVe embeddings exhibit properties like word analogy solving and cosine similarity for similarity detection?
- RQ3What is the mathematical relationship between the two embedding matrices W and C, and why are they not identical despite symmetric training?
- RQ4How are semantic relationships like similarity, paraphrase, and analogy hierarchically related through PMI-based interactions?
- RQ5What causes errors in higher-order semantic relationships (e.g., analogies), and how can they be interpreted geometrically?
Key findings
- The loss function of W2Vec implicitly minimizes a shifted PMI matrix, establishing a direct link between W2Vec embeddings and PMI vectors.
- Semantic relationships such as similarity and paraphrase emerge from linear combinations of PMI vectors, preserved under low-dimensional projection.
- The matrices W and C are not equal; a derived relationship W^T C = S explains their asymmetric roles and justifies using their mean in practice.
- Cosine similarity between word embeddings corresponds to relatedness measured by PMI, providing a semantic interpretation for this widely used heuristic.
- A hierarchical structure is revealed: relatedness is the base pairwise measure (PMI), similarity depends on global relatedness to all words, paraphrase on joint occurrence with word sets, and analogy on joint occurrence of word pairs.
- Error in analogy tasks arises from statistical dependence between words and can be interpreted geometrically as deviations from the hypersurface S on which PMI vectors lie.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.