Neural Word Embedding as Implicit Matrix Factorization
Omer Levy, Yoav Goldberg · neural information processing systems · 2014
We analyze skip-gram with negative-sampling (SGNS), a word embedding method introduced by Mikolov et al., and show that it is implicitly factorizing a word-context matrix, whose cells are the pointwise mutual information (PMI) of the respective word and context pairs, shifted by a global constant. We find that another embedding method, NCE, is implicitly factorizing a similar matrix, where each cell is the (shifted) log conditional probability of a word given its context. We show that using a sparse Shifted Positive PMI word-context matrix to represent words improves results on two word similarity tasks and one of two analogy tasks. When dense low-dimensional vectors are preferred, exact factorization with SVD can achieve solutions that are at least as good as SGNS's solutions for word similarity tasks. On analogy questions SGNS remains superior to SVD. We conjecture that this stems from the weighted nature of SGNS's factorization.
Cited by 1,482 works.
Authors
References
- Efficient Estimation of Word Representations in Vector Space
- Distributed Representations of Words and Phrases and their Compositionality
- A unified architecture for natural language processing
- The Approximation of One Matrix by Another of Lower Rank
- Natural Language Processing (almost) from Scratch
- Matrix Factorization Techniques for Recommender Systems
- 10.1162/153244303322533223
- Word association norms, mutual information, and lexicography
- Word Representations: A Simple and General Method for Semi-Supervised Learning
- A Scalable Hierarchical Distributed Language Model