Transport Optimal pour le Changement Sémantique à partir de Plongements Contextualisés (Optimal Transport for Semantic Change Detection using Contextualised Embeddings )

Syrielle Montariol, Alexandre Allauzen

Introduction

Language is a dynamic entity; the meanings of words like "mouse" or "stream" have shifted dramatically over the decades. In Natural Language Processing (NLP), identifying these shifts is known as diachronic semantic change detection. Traditional approaches relied on "static" embeddings (e.g., Word2Vec), which assign a single vector to a word per time period. While effective, this method collapses the various nuances and senses of a word into a single point.

Modern contextualized models like BERT provide a unique vector for every occurrence of a word, capturing its specific meaning in context. However, comparing two massive "clouds" of high-dimensional vectors—representing thousands of usages across different eras—presents a significant mathematical challenge. This paper introduces a novel pipeline that applies Optimal Transport to BERT-based embeddings to quantify these shifts.

Methodology: From Clouds to Clusters

The authors propose a multi-step process to transform raw text into a measurable "change score":

  1. Embedding Extraction: Contextualized embeddings are extracted for target words using a pre-trained BERT model.
  2. Clustering & Filtering: To manage the high-dimensional data, Affinity Propagation groups similar usages into clusters representing distinct word senses. A recursive filtering process then merges highly similar clusters and prunes "noisy" outliers (clusters with fewer than 10 instances) to ensure a clean signal of semantic drift.
  3. Optimal Transport (Wasserstein Distance): This is the core innovation. Instead of comparing vector averages, the method treats clusters as a probability distribution. It uses the Wasserstein Distance (or Earth Mover’s Distance) to calculate the minimum "work" required to transform the distribution of word senses from one time period to another.

Quantitative Performance

The researchers evaluated their method across six annotated benchmarks, including GEMS, SemEval 2020 (covering English, German, Swedish, and Latin), and DURel.

Comparison of semantic change detection methods across multiple benchmarks.

As shown in the results table, the "Clustering + Filtering" approach using Wasserstein Distance (DW) outperformed other contextualized methods across nearly all datasets. While the traditional static embedding method (SGNS + PO) still holds a slight lead in some benchmarks—likely due to the lemmatized nature of the test data which can hinder BERT's contextual strengths—the proposed method represents the state-of-the-art for contextualized approaches.

Qualitative Case Study: The Evolution of "Strain"

To demonstrate real-world utility, the authors analyzed 500,000 news articles from early 2020 to track the evolution of the word "strain" during the onset of the COVID-19 pandemic.

Evolution of the word 'strain' during the early COVID-19 pandemic.

The model successfully captured a clear distributional shift. In January and February, the word was dominated by biological senses (Clusters 0 and 2, relating to "virus" and "respiratory syndrome"). By March and April, as the pandemic's societal impact intensified, the usage shifted toward senses of pressure on systems (Clusters 3 and 4, relating to "financial strain" and "strain on hospitals").

Conclusion and Future Work

By leveraging Optimal Transport, this method effectively captures how the proportions of word usage shift over time, rather than just identifying that a word has become "different." While the approach faces challenges with specific languages (like Swedish) and the computational cost of transport calculations, it provides a robust framework for understanding linguistic evolution in the era of large language models. Future work may involve fine-tuning models specifically on historical corpora to further bridge the gap between static and contextualized performance.

Summary updated

BibTeX
@inproceedings{montariol2021transport,
  author = {Syrielle Montariol and Alexandre Allauzen},
  title = {{Transport Optimal pour le Changement Sémantique à partir de Plongements Contextualisés (Optimal Transport for Semantic Change Detection using Contextualised Embeddings )}},
  booktitle = {TALN},
  year = {2021},
}
Figure