GloVe

A table of word co-occurrences contains information about how words are used together. GloVe learns vectors whose comparisons account for patterns in those counts, rather than keeping the full table as the representation.

15 sections · 15 questions · 4 coding challenges

1 / 15

Could the Pattern of Co-Occurrence Counts Become a Compact Vector?

BOTIE

A corpus tells us which words appear near one another, but a full table of those counts can be enormous. We want compact vectors that preserve informative relationships in that table without merely giving the most frequent words the largest influence.

Pennington, Socher and Manning introduced GloVe in 2014, connecting global co-occurrence statistics with learned word vectors. Their motivation included the information in ratios of co-occurrence probabilities: a context can help distinguish two words when it is associated much more strongly with one than the other.

GloVe fits vector interactions and bias terms to log co-occurrence counts, with a weighting function controlling how count sizes contribute. The result is a compressed representation of observed context relationships. The fitting objective explains why corpus preparation and the context window matter. It also reminds us that the vectors model usage statistics rather than a complete account of language.

Sources for this history