The Visualization of Change in Word Meaning over Time using Temporal Word Embeddings

Chiraag Lala, Shay B. CohenarXiv 2014

Abstract

Language is a dynamic system where the semantic properties of words evolve in response to cultural, technological, and social shifts. While modern Natural Language Processing (NLP) excels at representing word meanings as static vectors, these models often fail to capture the "drift" of meaning over time. This paper introduces a visualization framework that generates temporal word embeddings by combining static embedding functions with timestamped historical data. By employing a global Multidimensional Scaling (MDS) optimization, the authors provide a spatially consistent 2D landscape that allows for the observation of semantic trajectories over centuries.

Introduction

The word "broadcast" once referred primarily to the agricultural practice of sowing seeds across a field; in the modern era, it almost exclusively pertains to digital media transmission. This phenomenon, known as diachronic semantic change, poses a significant challenge for computational linguistics. Traditional word embeddings provide a single snapshot of language, effectively treating it as a static entity. To address this, the authors propose a system to mathematically represent and visually demonstrate how a word’s meaning shifts relative to other words over time, bridging the gap between high-dimensional vector space and human-interpretable animation.

Methodology

The authors propose a two-stage process to generate and visualize temporal embeddings.

1. Creating Temporal Embeddings

Rather than retraining a model for every specific era—which would be computationally prohibitive and data-intensive—the authors utilize a "base" static embedding function (such as SENNA, HLBL, or RNNLM). To derive a temporal vector, they analyze a word $w$ within a specific time slice $t$ (e.g., a five-year window in the 19th century).

Using the Google Books $n$-gram corpus, they identify the contexts in which $w$ appeared during that window. By aggregating the static vectors of these surrounding context words through associative commutative operations (such as summation or concatenation), they produce a new vector $g(t, w)$. This vector represents the specific "flavor" or semantic nuance of the word during that era, effectively "re-flavoring" the static base with historical context.

2. Global Multidimensional Scaling (MDS)

Projecting high-dimensional vectors into a 2D space for visualization often suffers from instability; if each time slice is projected independently, the resulting map may rotate or flip randomly, creating visual noise.

To solve this, the authors implement a Global MDS approach. They construct a massive distance matrix that encompasses every word in a user's query across all selected time slices simultaneously. By optimizing the 2D coordinates for the entire timeline at once, the system ensures that the movement of a word across the screen reflects actual semantic drift rather than mathematical artifacts of the dimensionality reduction process.

3. Animation and Rendering

The final tool utilizes Bresenham’s line algorithm to interpolate movement between calculated 2D points. This creates a smooth animation of semantic drift, allowing researchers to watch clusters of words diverge or converge over the 200-year span of the dataset.

Datasets

The system relies on two primary data components:

  • Historical Corpus: The Google Books 5-gram corpus, providing timestamped language data from 1800 to 2008.
  • Static Embedding Bases: The authors tested the framework using several established embedding sets, including SENNA (Collobert et al., 2011), HLBL (Turian et al., 2010), and RNNLM (Mikolov et al., 2011).

Key Insights

  • The Distributional Hypothesis in Time: The work reinforces J.R. Firth’s 1961 principle: "You shall know a word by the company it keeps." By tracking the change in "company" (context) over 200 years, the model successfully maps the evolution of the word itself.
  • Stability through Global Optimization: The use of a global distance matrix is critical for diachronic analysis. It provides the necessary spatial consistency to distinguish between meaningful linguistic shifts and stochastic variance in the visualization.
  • System Versatility: The mathematical framework defined by the authors allows any static embedding function to be converted into a temporal one, provided a timestamped context corpus is available.

Limitations and Future Work

While the tool provides a powerful qualitative look at language evolution, it faces certain constraints. The computational complexity of MDS grows quadratically with the number of words and time slices, which may limit the scale of real-time interactive queries. Furthermore, the temporal resolution is inherently limited by the quality and breadth of the underlying static embeddings.

Looking forward, the authors suggest that these temporal features could enable "diachronic classification." Such a system could analyze a text and, based on the specific semantic "thumbprint" of its vocabulary, accurately predict the decade in which it was authored.

Summary updated

BibTeX
@misc{lala2014visualization,
  author = {Chiraag Lala and Shay B. Cohen},
  title = {{The Visualization of Change in Word Meaning over Time using Temporal Word Embeddings}},
  year = {2014},
  eprint = {1410.4966},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1410.4966},
}
Figure