Paper commentary
GloVe: Global Vectors for Word Representation
GloVe fits word vectors to global co-occurrence counts for better analogies
- Problem Count-based matrix methods like LSA use corpus statistics well but do poorly on analogies. Window methods like skip-gram do better on analogies but ignore global counts.
- Method GloVe learns word vectors by fitting weighted log co-occurrence counts. Unlike window methods, it uses global counts and skips zero entries, so training uses only nonzero entries.
- Results On the 42B-token corpus, GloVe scored 75.0 on the analogy task. SVD-L scored 49.2 on the same corpus.
Where the two model families stall
Word vectors are often checked on analogies, where the offset between one word pair should carry over to another pair. Matrix factorization methods such as LSA use corpus statistics efficiently, but they do relatively poorly on analogies. Local window methods such as skip-gram do better on analogies, but they train on separate windows instead of global counts.
So the question is how to keep the statistical efficiency of counts while still producing the linear structure that analogies need. Count-based models have their own trap, because frequent function words can dominate similarity scores in HAL-style counts. Window methods, meanwhile, scan local windows across the corpus and miss the repetition that global counts would capture.
The ratio idea behind the model
The key idea is to model ratios of co-occurrence probabilities, because a ratio isolates what distinguishes two words from what they share. Compared with the raw probabilities, the ratio separates solid and gas from the uninformative probe words more clearly.
The authors first let F depend on the difference \(w_i - w_j\) and take a dot product with the probe vector, which keeps the model linear in the vectors. Requiring F to turn sums into products gives F = exp, so the ratio becomes a difference of logarithms: \[ w_i^{T}\tilde{w}_k = \log(P_{ik}) = \log X_{ik} - \log X_i \] The term log X_i does not depend on k, so it can become a bias b_i, and a second bias \(\tilde{b}_k\) restores the symmetry between word and context roles: \[ w_i^{T}\tilde{w}_k + b_i + \tilde{b}_k = \log X_{ik} \] Because log of zero diverges, the authors use log(1 + X_ik) instead, which keeps X sparse.
The weighted least squares objective
The authors turn this equation into a cost by weighting each squared residual with f(X_ij) and summing over the vocabulary of size V: \[ J = \sum_{i,j=1}^{V} f(X_{ij}) \left( w_i^{T}\tilde{w}_j + b_i + \tilde{b}_j - \log X_{ij} \right)^2 \] The weight must be zero at zero counts, non-decreasing so that rare pairs are not overweighted, and relatively small for large counts.
The form used is \(f(x) = (x/x_{\max})^{\alpha}\) for x below x_max, and 1 otherwise.
The authors fix x_max to 100 and alpha to 3/4 in all experiments, and they chose 3/4 on empirical grounds. Without the weights, the cost would treat rare, noisy pairs the same as frequent ones, and zero entries make up 75–95% of X. Since f(0) = 0, the zero entries drop out of the sum, so training effectively uses only the nonzero entries.
Training and the final vectors
Training uses AdaGrad with an initial learning rate of 0.05, and the model samples nonzero entries of X stochastically. The authors run 50 iterations for vectors under 300 dimensions and 100 otherwise, with a context of ten words on each side. Pairs d words apart contribute 1/d to the count, so distant pairs carry less weight.
The model learns two sets of vectors, W and \tilde{W}, and the authors use their sum as the final word vectors.
How many entries the training touches
The naive cost is O(|V|^2), because the number of nonzero entries can't exceed the number of matrix entries. With hundreds of thousands of words, |V|^2 can reach the hundreds of billions, which is larger than most corpora. So the authors ask whether the nonzero count is much smaller than that bound.
They model X_ij as a power law in the frequency rank of the word pair, with alpha equal to 1.25 for the corpora studied. This gives \(|X| = O(|C|^{0.8})\), which is better than the O(|C|) scaling of window-based methods. The bound follows from the power-law assumption, so it is not a measured runtime.
Analogy accuracy against skip-gram and SVD
The analogy set has 19,544 questions in semantic and syntactic subsets, and an answer counts only if it is the exact correct word. The predicted word is the one closest by cosine similarity to \(w_b - w_a + w_c\).
Trained on the 6B corpus with 300 dimensions, GloVe scored 71.7 total, compared to 69.1 for SG† and 65.7 for CBOW†. On the 42B corpus GloVe rose to 75.0, while SVD-L fell from 60.1 at 6B to 49.2 at 42B. The authors read the SVD-L drop as evidence that their weighting scheme is needed when corpora grow.
Only the rows marked with daggers were trained by the authors, and the other rows are published numbers from earlier work.
Vector size and window choices
The vector-size sweep uses a window of 10 on the 6B corpus, and the window sweep uses 100-dimensional vectors.
Small and asymmetric windows do better on syntactic questions, and larger symmetric windows help semantic ones. The authors attribute this to syntax leaning on immediate context and word order, while meaning is more often non-local.
Similarity and named entity results
On RW it scored 47.8, compared to 39.9 for SVD-L. The 6B results are not uniformly best, since on SCWS GloVe scored 53.9, compared to 57.0 for CBOW† on 6B.
The authors feed 50-dimensional vectors into a CRF as continuous features next to discrete features. HPCA scored 88.7 on that split, so GloVe is not best there, and on ACE and MUC7 GloVe scored 82.9 and 82.2.
Corpus size and run time
Syntactic accuracy rises steadily from the 1B token Wiki2010 corpus up to the 42B token Common Crawl corpus. The semantic score is not monotonic, since the smaller Wikipedia corpora beat the 4.3B token Gigaword 5 corpus. The authors attribute this to many city and country analogies and to Wikipedia's up-to-date articles.
Populating X took 85 minutes on a single thread for the 6B corpus with a 10-word symmetric window. One training iteration at 300 dimensions took 14 minutes on 32 cores. The authors did not parallelize the counting, though they note it could be.
Comparison with word2vec under matched settings
Matching word2vec was hard because its code is built for a single epoch, so training time is the variable to match.
word2vec's analogy accuracy falls once negative samples exceed about 10. The authors suspect that negative sampling does not approximate the target distribution well.
With the same corpus, vocabulary, window and training time, GloVe consistently beats word2vec and gets better results faster. Other parameters were set to defaults, which the authors acknowledge is a simplification.
Limitations
The word similarity gains are not uniform, since on SCWS CBOW† on 6B scored higher than GloVe. The word2vec comparison leaves unspecified parameters at defaults, which the authors call a simplification to relax in a fuller analysis.
The complexity bound depends on the power law with alpha of 1.25, observed only for the corpora studied. NER was tested with one feature setup and 50-dimensional vectors, and HPCA is slightly better on the CoNLL test set. The weighting exponent 3/4 rests on empirical choice rather than theory.
Paper info
- Authors
- Jeffrey Pennington, Richard Socher, Christopher D. Manning
- Venue
- Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP) · Published
- Added
- 2026-11-11
- DOI
- 10.3115/v1/d14-1162
- Original paper terms
- Check in the original ↗
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Jeffrey Pennington, Richard Socher, Christopher D. Manning (2014). GloVe: Global Vectors for Word Representation. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP). https://doi.org/10.3115/v1/d14-1162
BibTeX
@article{pennington2014glove,
title = {{GloVe: Global Vectors for Word Representation}},
author = {Jeffrey Pennington and Richard Socher and Christopher D. Manning},
year = {2014},
journal = {Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP)},
doi = {10.3115/v1/d14-1162},
url = {https://doi.org/10.3115/v1/d14-1162}
}