GloVe: Global Vectors for Word Representation
Pennington et al., 2014, GloVe (Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP))
Subscriber deck — free during early access
2 cards in “3.1 Relationship to Other Models” · whole deck
3.1 Relationship to Other Models
- How is skip-gram’s implicit global objective related to GloVe?Grouping identical \((i, j)\) terms, skip-gram’s objective is \(J = -\sum_i X_i H(P_i, Q_i)\), a weighted sum of cross-entropies between corpus distributions \(P_i\) and model softmax \(Q_i\). Replacing cross-entropy with least squares on unnormalized log values and generalizing the weight \(X_i\) to \(f(X_{ij})\) gives GloVe’s cost.
- Pennington et al., 2014, GloVe (Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP)), §3.1, pp. 1535–1536
- Why did Pennington et al. prefer least squares to cross-entropy for word vectors?Cross-entropy gives too much weight to unlikely events in long-tailed distributions, and it needs a normalized model \(Q\), which requires an expensive sum over the vocabulary. Least squares on log counts drops normalization, and logs tame the very large values of \(X_{ij}\).
- Pennington et al., 2014, GloVe (Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP)), §3.1, pp. 1535–1536
Source
- Jeffrey Pennington, Richard Socher and Christopher D. Manning. 2014. GloVe: Global Vectors for Word Representation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 1532–1543. doi:10.3115/v1/D14-1162 https://aclanthology.org/D14-1162/