All models

GloVe-net

Word vectors fitted by weighted least squares to the log of global word co-occurrence counts.

Language · 18 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (22 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
40.8M
Operations
18
Framework
PyTorch
Recurrent
No
Published
EMNLP 2014
Cited by
33,555 (as of 17 October 2026)
Authors
Jeffrey Pennington, Richard Socher, Christopher D. Manning
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m1221
Graph hash
04bc15a7e3f217f42ccecf00fc3edee416d9fc6d6bac1dc680810703d019efd6
Skeleton hash
04bc15a7e3f217f42ccecf00fc3edee416d9fc6d6bac1dc680810703d019efd6
Architecture hash
4bc4059ebd8aeeb6daa231e1e77e9949fb05a1531c9d4c5781a565e57d7ebbb0
Diagram SHA-256
e22f554544bd8aa726b49cd61eff7ffb547b918fea16f246b803e76214706e5e
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

GloVe, short for Global Vectors, learns a real-valued vector for every word in a vocabulary from how often words co-occur across a whole corpus. The paper set out to explain why vector arithmetic on word embeddings captures regularities such as analogies, something earlier methods had left opaque. Its answer is a global log-bilinear regression model that combines the strengths of global matrix factorization with those of local context window methods.

The starting insight is that ratios of co-occurrence probabilities, not the probabilities themselves, are what separate related words from irrelevant ones. The paper's worked example contrasts ice and steam against probe words like solid, gas and water. Working that requirement through leaves a simple fit: the dot product of a word vector and a context vector, plus one bias for each, should equal the log of their co-occurrence count. The project page says the same thing more plainly: GloVe is essentially a log-bilinear model with a weighted least-squares objective. Because rare co-occurrences are noisy and the log diverges at zero, the model trains only on the non-zero entries of the co-occurrence matrix and weights each one by a function of its count. That weight rises as a power of the count up to a cutoff, and the authors fixed the cutoff at 100 and the exponent at 3/4 for every experiment.

The traced member is a port of the model's parameters, two embedding tables and two bias vectors, set to the 400K-word vocabulary and 50 dimensions of the glove.6B release trained on Wikipedia 2014 and Gigaword 5. In this trace the forward pass takes a batch of word, context and count records and returns the weighted squared error of the fit for each, rather than the vectors themselves. The paper reports 75% on the word analogy task and wins over related models on similarity tasks and named entity recognition. The code is released under the Apache License and the pretrained vectors under the Public Domain Dedication and License.

Key idea. A weighted least-squares log-bilinear regression on global word-word co-occurrence counts, trained only on non-zero entries, that makes the linear analogy structure of word vectors explicit.

  • GloVe
  • Global Vectors
  • GloVe-net
  • word embeddings
  • word vectors
  • co-occurrence matrix
  • glove.6B
  • Stanford

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@inproceedings{Pennington_2014, title={Glove: Global Vectors for Word Representation}, url={http://dx.doi.org/10.3115/v1/D14-1162}, DOI={10.3115/v1/d14-1162}, booktitle={Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP)}, publisher={Association for Computational Linguistics}, author={Pennington, Jeffrey and Socher, Richard and Manning, Christopher}, year={2014}, pages={1532–1543} }