The strange geometry of skip-gram with negative sampling

David M. Mimno, Laure ThompsonEMNLP 2017

Introduction

Word embeddings, particularly those generated by Skip-Gram with Negative Sampling (SGNS), are a cornerstone of modern Natural Language Processing. The prevailing intuition among researchers is that these vectors are distributed somewhat uniformly throughout a high-dimensional space, with their relative positions determined primarily by semantic similarity. However, recent geometric analysis reveals a far more peculiar reality: SGNS vectors do not span the available space but instead huddle together in a narrow "cone."

The "Narrow Cone" Phenomenon

Contrary to the assumption of a balanced distribution, SGNS produces vectors that are tightly clustered in a single high-dimensional orthant. This means that almost all word vectors point in roughly the same direction relative to the origin. This global structure is often masked by visualization tools like t-SNE, which prioritize local neighborhood relationships over global geometric properties.

Density of mean products for SGNS vs GloVe vectors, illustrating the "narrow cone" effect in SGNS.

As shown in the figure above, SGNS vectors exhibit a high "MeanProduct" (a proxy for the angle and length relative to the global mean), indicating they are significantly offset from the origin. In contrast, GloVe vectors—trained on a superficially similar objective—show a much broader distribution, with less frequent words remaining closer to the origin.

Negative Sampling as a Geometric Driver

The primary cause of this strange geometry is the negative sampling objective itself. During training, SGNS attempts to pull a word vector and its context vector together while simultaneously pushing the word vector away from $S$ randomly selected "negative" context vectors. Because negative samples vastly outnumber positive ones, the cumulative "push" forces the vectors away from the average context, concentrating them into a narrow region.

This objective also creates a "mirror image" effect between word and context vectors. While GloVe produces word and context vectors that are nearly identical, SGNS forces them into diametrically opposite directions.

Comparison of inner products for SGNS and GloVe, showing the systemic negative bias in SGNS.

As illustrated in the inner product distributions, SGNS inner products are consistently negative, reflecting this "mirroring" behavior. GloVe inner products, conversely, tend toward positive values, indicating that word and context vectors point in similar directions.

Robustness and Utility

Despite this seemingly restrictive geometry, the utility of SGNS vectors remains high. The authors found that the "offset" from the origin is a systemic byproduct rather than a carrier of semantic information. For instance, rotating the SGNS space to discard all negative values (forcing non-negativity) resulted in negligible performance drops on gold-standard benchmarks like SimLex-999 (Spearman correlation moving from 0.283 to 0.276). Similarly, subtracting the global mean vector to center the data had almost no impact on word similarity tasks.

Conclusion

The "cone" structure of SGNS is an artifact of its mathematical objective rather than a reflection of linguistic semantics. This discovery suggests that the high-dimensional capacity of embedding spaces may be underutilized. Understanding this geometry explains why post-processing techniques like mean subtraction or non-negative constraints often succeed: they are simply aligning with a structure that the algorithm has already implicitly created. Future work may explore whether different objective functions can better utilize the full representational space to improve downstream NLP performance.

Summary updated

BibTeX
@inproceedings{mimno2017strange,
  author = {David M. Mimno and Laure Thompson},
  title = {{The strange geometry of skip-gram with negative sampling}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2017},
  doi = {10.18653/v1/d17-1308},
}
Figure