Abstract
Despite the recent popularity of word embedding methods, there is only a small body of work exploring the limitations of these representations. In this paper, we consider one aspect of embedding spaces, namely their stability. We show that even relatively high frequency words (100-200 occurrences) are often unstable. We provide empirical evidence for how various factors contribute to the stability of word embeddings, and we analyze the effects of stability on downstream tasks.
Introduction
Word embeddings are the mathematical backbone of modern Natural Language Processing (NLP), representing words as dense vectors in a high-dimensional space. These representations allow computers to capture semantic relationships—for instance, understanding that "king" is to "queen" as "man" is to "woman." However, a critical yet overlooked property of these embeddings is their stability.
Stability is defined as the consistency of a word's "neighborhood" (its top 10 nearest neighbors) across different training runs of the same algorithm on the same data. Ideally, training a model twice should yield identical results. In practice, embeddings are surprisingly "jittery": changing a random seed or the order of training data can cause a word's neighbors to shift dramatically. This paper quantifies this instability and identifies the underlying drivers, ranging from linguistic properties to algorithmic choices.
Methodology
To investigate the factors influencing stability, the authors employed a Ridge Regression model. The dependent variable was the percentage overlap of the top 10 nearest neighbors between two embedding spaces. The predictors were categorized into three groups:
- Word Properties: Part-of-speech (POS) tags, number of syllables, and polysemy (the number of distinct senses in WordNet).
- Data Properties: Raw word frequency, the size of the training vocabulary, and "training position" (the point in the corpus where a word first appears).
- Algorithm Properties: The specific embedding method (word2vec, GloVe, or PPMI) and the dimensionality of the vectors.
By analyzing the weights of this regression model, the researchers could isolate which factors most strongly correlate with stable representations.
Key Drivers of Instability
Frequency and Word Properties
While it is well-known that extremely rare words are unstable, the study reveals a more troubling trend: even high-frequency words exhibit significant variance. As shown in Figure 1, while stability generally increases with frequency, many words with hundreds of occurrences still demonstrate low stability.
Part-of-speech also plays a major role. Numerals are the most stable (approx. 47%), likely due to their consistent usage in specific contexts (e.g., dates or quantities). In contrast, punctuation and particles are the least stable (22-26%), acting as functional "glue" that appears in highly diverse contexts, making their vector representations harder to pin down.
Algorithm and Curriculum
The choice of algorithm is perhaps the most significant factor. GloVe was found to be the "Stability King," significantly outperforming word2vec and PPMI. This is attributed to GloVe’s reliance on global matrix factorization, which makes it less sensitive to the specific order of training sentences. Conversely, word2vec is highly sensitive to the "curriculum" or the order in which data is processed; the position where a word first appears in the training stream significantly impacts its final vector.
Domain Specificity
Stability is also highly dependent on the topical domain of the text. The researchers tested this using sub-sections of the New York Times (NYT) corpus and the Europarl dataset.
As illustrated in Figure 6, stability within a single domain (e.g., training and testing on "Arts") is much higher than across domains. Interestingly, a smaller, domain-specific dataset often produces more stable embeddings for that specific domain than a much larger, generic dataset like Europarl.
Downstream Impact
The instability of embeddings has tangible consequences for AI performance. In word similarity tasks, unstable word pairs show significantly higher error rates. However, the impact on complex neural architectures like Bi-LSTMs for POS tagging is more nuanced. When using "fixed" (non-trainable) embeddings, performance dropped to 85%. However, when the model was allowed to fine-tune the vectors during training, performance rose to 95.5%. This suggests that while initial embeddings may be unstable, neural networks can compensate for this "jitter" if the vectors are allowed to update.
Conclusion
This study highlights that word embedding stability is influenced by a complex interplay of linguistic, algorithmic, and data-driven factors. While GloVe offers a more stable alternative to word2vec, approximately 70% of the variance in stability remains unexplained by the current regression model. Future work is needed to explore these non-linear interactions and to determine if modern contextual embeddings (like BERT) suffer from similar neighborhood instability.
Summary updated