Introduction
Standard word embedding techniques, such as Word2Vec or GloVe, operate under the assumption that a word’s meaning remains static throughout a corpus. However, language is inherently fluid; words undergo "semantic drift," shifting meanings or acquiring new associations over decades or centuries. For instance, the word "computer" transitioned from describing a human profession to a mechanical device.
Capturing this evolution typically involves "time-binning"—dividing data into eras and training separate models. This approach suffers from two primary issues: alignment (stochastic training leads to incompatible vector spaces) and data sparsity (limited data in specific time slices leads to poor local models). This paper introduces Dynamic Bernoulli Embeddings, a probabilistic framework designed to share information across time, ensuring both alignment and robustness.
Methodology: Dynamic Bernoulli Embeddings
The proposed model builds upon Exponential Family Embeddings, specifically Bernoulli embeddings. Rather than using a computationally expensive softmax to predict word context, the model treats the presence or absence of a word in a context as a Bernoulli random variable.
To capture temporal dynamics, the authors treat word embedding vectors ($\rho$) as latent variables following a Gaussian random walk prior. This means the embedding for a word at time $t$ is centered around its position at time $t-1$, providing a natural smoothing effect. Crucially, while word embeddings drift, the context vectors ($\alpha$) remain static across the entire corpus, providing a stable "coordinate system" for comparison across time.
The model is fitted using a pseudo-log-likelihood objective with negative sampling and optimized via stochastic gradients (Adagrad).
Datasets and Experimental Setup
The framework was evaluated on three diverse historical corpora:
- U.S. Senate Speeches (1858–2009): 151 years of political rhetoric (13.7M words).
- ACM Computer Science Abstracts (1951–2014): 64 years of technical evolution (21.6M words).
- Arxiv Machine Learning Papers (2007–2015): 9 years of rapid modern research (6.5M words).
Key Insights and Results
The random walk prior acts as an effective regularizer, allowing the model to learn meaningful trajectories even for rare words. By calculating the absolute drift (Euclidean distance between the first and last time slices), the authors identified words with the most significant semantic shifts.
In the Senate dataset, "Iraq" exhibited the highest drift. Initially appearing in generic lists of foreign nations, its associations shifted toward "invasion" and "troops" in the 1980s, and eventually "terror" and "Saddam" by the 2000s.
Quantitatively, Dynamic Bernoulli Embeddings consistently outperformed both static and time-binned models in held-out log-likelihood across all datasets. Qualitatively, the model successfully mapped the transition of "computer" from a job title (grouped with "draftsman") to a machine (grouped with "software").
Conclusion and Future Work
Dynamic Bernoulli Embeddings provide a robust method for tracking language evolution by balancing temporal smoothing with a stable reference frame. While the assumption of static context vectors simplifies the model, it enables direct comparison across centuries. Future research may explore dynamic context vectors or apply this framework to non-textual sequential data, such as biological sequences or recommendation systems.
Summary updated