GloVe › Bias Terms in GloVe
Language AI HandbookAll chapters GloVe › Bias Terms in GloVeOne section · Sections in this chapter5 / 13 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
The bias terms and play an important and often underappreciated role in making the objective symmetric and absorbing word-frequency effects.
What the Biases Capture
Recall that the derivation gave us . The term (the log total context count for word ) depends only on how frequent word is overall. Very frequent words like "the" have large regardless of the specific context word. If we did not include a bias term, this frequency effect would be absorbed into the dot product, corrupting the relational structure the vectors are supposed to capture. The bias absorbs this word-frequency effect, freeing the dot product to represent purely relational information.
Similarly, absorbs the frequency effect for word in its role as a context word. Together, accounts for both the target and context word's marginal frequencies, letting the dot product focus on the residual: how much more or less often and co-occur than we would predict from their individual frequencies alone. This residual is precisely what PMI measures, as we will see in the next section.
The bias terms are simple scalars, so they add very few parameters (only additional values) while providing a significant modeling benefit. In practice, the biases converge quickly during training because they are solving a simple regression problem: fit the word's average log-count across all its context partners.
Symmetry and the Dual Embedding Trick
An elegant consequence of the bias terms is that the objective behaves consistently when we swap the roles of target and context words. In the co-occurrence matrix , entry counts word in word 's context, and counts word in word 's context. For symmetric windows, . The GloVe objective with bias terms naturally accommodates this symmetry: both and are minimized simultaneously.
GloVe's symmetric design means that after training, the word vector and its context vector capture similar but not identical information. They have learned from the same co-occurrence data, just from different roles in the objective. A common and empirically validated practice is to use as the final word representation, combining the two complementary views for slightly improved performance. This is analogous to ensemble averaging: the two vectors have seen the same data from different angles, and combining them reduces variance in the final representation.
Why do the two vectors differ at all if they see the same data? Because the objective is not symmetric in the parameters, even though it is symmetric in the data. The gradients with respect to depend on , and vice versa. So although both vectors converge toward representations that encode the same underlying statistics, the optimization path is different, and the resulting vectors are slightly different directions in the embedding space. Summing them gives a representation that combines both views.