Learning dynamic word embeddings with drift regularisation

Syrielle Montariol, Alexandre Allauzen

Abstract

This paper investigates the evolution of word meanings over time by evaluating variants of the Dynamic Bernoulli Embeddings (DBE) model. Using two decades of French and English news corpora, we introduce a cross-lingual pipeline to track and compare semantic drift. Our results highlight the critical trade-offs between different regularization strategies, demonstrating that while unregularized models may offer higher predictive performance, regularization is essential for distinguishing meaningful long-term semantic trends from transient media noise.

Introduction

Standard word embedding techniques, such as Word2Vec, typically assume that word meanings are static across a corpus. However, language is inherently diachronic; words shift in meaning and usage due to cultural, political, and technological changes. For instance, the term "Katrina" evolved from a common name to a signifier for natural disaster following the 2005 hurricane. Modeling this continuous evolution without losing the ability to compare vectors across time remains a significant challenge in natural language processing.

Methodology

We build upon Dynamic Bernoulli Embeddings (DBE), a probabilistic extension of the Continuous Bag-of-Words (CBOW) model. In this framework, context vectors are static, while target word vectors evolve via a Gaussian random walk. To optimize the capture of semantic change, we evaluate four regularization variants designed to control "drift" (the movement of a word's vector):

  1. DBE (Standard): Penalizes large jumps from the previous time step ($t-1$).
  2. DBE-I (Incremental): Removes drift regularization entirely, allowing free movement.
  3. DBE-NC (Non-Chronological): Penalizes distance from the initial time step ($t_0$), treating time slices independently.
  4. DBE-SC (Semi-Chronological): Penalizes distance from $t_0$ with a penalty that scales linearly with time.

Cross-lingual Pipeline

To compare English and French semantic evolution, we align static embedding spaces using the MUSE tool and a bilingual dictionary. These aligned spaces serve as the initialization for our dynamic models, enabling the measurement of cosine similarity between a word and its translation over a twenty-year period.

Experimental Setup

The models were trained on two journalistic corpora spanning January 1987 to December 2006:

  • New York Times Annotated Corpus (NYT): English news.
  • Le Monde: French news.

Data was analyzed at both annual (20 slices) and monthly (240 slices) granularities to test temporal sensitivity.

Results and Discussion

Predictive Performance

Quantitatively, the unregularized model (DBE-I) achieved the highest log-probability on test sets (e.g., -0.08448 for NYT annual). However, this high performance is deceptive. Qualitative analysis reveals that DBE-I is overly sensitive to short-term noise in news cycles, failing to distinguish lasting semantic shifts from temporary media spikes.

Log-probability of positive examples over time for different model variants.

Vocabulary Stability and Drift

A key finding is the necessity of regularization for maintaining vocabulary stability. In linguistic reality, most words do not change meaning over a twenty-year span. Standard DBE and DBE-NC successfully forced the majority of the vocabulary to remain stable. In contrast, DBE-I allowed excessive random drift across the entire vocabulary, as seen in the distribution of drift values.

Distribution of semantic drift across the vocabulary for the four DBE variants, illustrating how regularization (DBE, DBE-NC, DBE-SC) constrains movement compared to the unregularized DBE-I.

Cross-lingual Divergence

Our cross-lingual analysis showed that translated words often diverge. For example, while "Barbie" in the US corpus drifted toward fashion and toys, it remained anchored to the historical context of the Klaus Barbie trial in the French corpus. Overall, 57.8% of the bilingual vocabulary remained stable in both languages, while only 5.4% drifted in the same semantic direction.

Conclusion

While unregularized dynamic models may provide better fit to the data, drift regularization is indispensable for meaningful diachronic analysis. Future work should explore continuous-time models, such as Ornstein-Uhlenbeck processes, to move beyond the limitations of discrete time slices and automatically detect temporal ruptures in meaning.

Summary updated

BibTeX
@inproceedings{montariol2019learning,
  author = {Syrielle Montariol and Alexandre Allauzen},
  title = {{Learning dynamic word embeddings with drift regularisation}},
  booktitle = {PFIA (Articles Longs)},
  year = {2019},
}
Figure