Analyzing the Surprising Variability in Word Embedding Stability Across Languages

Laura Burdick, Jonathan K. Kummerfeld, Rada Mihalcea

Abstract

Word embedding "stability"—the consistency of a word's nearest neighbors across different training runs—is surprisingly volatile and varies wildly across languages. This paper demonstrates that a language's inherent linguistic structure, such as its use of gender systems and complex affixing (prefixes/suffixes), directly correlates with how "jittery" its word embeddings will be.

Introduction

In Natural Language Processing (NLP), word embeddings like word2vec and GloVe are foundational tools used to represent the meanings of words as mathematical vectors. However, these models are known to be "unstable": if you change the random seed or slightly tweak the training data, a word's nearest neighbors in the vector space might shift entirely.

While this instability has been documented in English, the NLP community has largely ignored how it manifests in other languages. This is a critical gap because researchers often use embeddings to study linguistic trends or social biases. If the underlying "map" of the language is inherently unstable due to the language's grammar or morphology, those downstream findings might be noise rather than signal.

Methodology

The authors define stability as the percentage overlap between the top 10 nearest neighbors of a word across different embedding spaces. To investigate this across languages, they employed several techniques:

  1. Downsampling: They compared sampling with replacement vs. without replacement, finding that downsampling without replacement provided more consistent and comparable results across different languages.
  2. Algorithm Comparison: They trained both word2vec and GloVe models to see if the choice of algorithm influenced stability more than the language itself.
  3. Ridge Regression Modeling: To find the "why" behind the variability, they built a regression model using linguistic features from the World Atlas of Language Structures (WALS) to predict the average stability of a language.

Key Insights: Linguistic Determinism in AI

Stability isn't just a byproduct of data size; it's baked into the language. Languages with more affixing (adding prefixes or suffixes) tend to be less stable. This makes intuitive sense: a single root word like "walk" might appear as "walked," "walking," or "walker," splitting the "meaning" across many different vectors and making the neighborhood more crowded and volatile.

Stability distributions across 24 languages, comparing Wikipedia and Bible corpora with different embedding algorithms.

As shown in Figure 3, stability varies significantly by language. In their Wikipedia tests, Vietnamese emerged as the most stable language, while Korean was the least stable. The authors suggest Vietnamese’s status as an Austro-Asiatic language with unique structural properties contributes to this outlier behavior.

Key Results

  • Model Accuracy: Their regression model achieved a remarkably high $R^2$ score of 0.96, meaning linguistic features can almost perfectly predict a language's average embedding stability.
  • Feature Weights:
    • Strongly Suffixing traits had a strong negative weight (-0.14), correlating with low stability.
  • No Gender Grouping traits had a positive weight (+0.05), correlating with higher stability.
  • No Case Affixes was one of the strongest predictors of high stability (+0.11).
Stability across different Bible translations for German and French, showing high consistency within a language despite different translation styles.
  • Cross-Translation Consistency: When testing different German and French Bible translations (Figure 6), stability remained very consistent, suggesting that the specific "style" of a translator matters less than the fundamental structure of the language.

Limitations and Future Work

While the paper identifies the problem of instability, it focuses on "static" embeddings. While modern NLP often uses contextual embeddings (like BERT), static embeddings remain the standard for low-resource languages and computational humanities research. Future work could involve designing embedding techniques that are specifically robust to the morphological richness of languages like Korean or Turkish. Expanding the regression to more languages could reveal even more nuanced linguistic correlations.

Summary updated

BibTeX
@inproceedings{burdick2021analyzing,
  author = {Laura Burdick and Jonathan K. Kummerfeld and Rada Mihalcea},
  title = {{Analyzing the Surprising Variability in Word Embedding Stability Across Languages}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.476},
}
Figure