Graph-based Clustering for Detecting Semantic Change Across Time and Languages

Xianghe Ma, Michael Strube, Wei Zhao

Abstract

Despite the predominance of contextualized embeddings in NLP, approaches to detect semantic change relying on these embeddings and clustering methods underperform simpler counterparts based on static word embeddings. This stems from the poor quality of the clustering methods to produce sense clusters—which struggle to capture word senses, especially those with low frequency. This issue hinders the next step in examining how changes in word senses in one language influence another. To address this issue, we propose a graph-based clustering approach to capture nuanced changes in both high- and low-frequency word senses across time and languages, including the acquisition and loss of these senses over time. Our experimental results show that our approach substantially surpasses previous approaches in the SemEval2020 binary classification task across four languages. Moreover, we showcase the ability of our approach as a versatile visualization tool to detect semantic changes in both intra-language and inter-language setups.

What Problem Does This Paper Address?

Language is a dynamic entity; words like "mouse" have migrated from biology to computing, while "gay" shifted from "cheerful" to a primary descriptor of sexual orientation. In Natural Language Processing (NLP), detecting these shifts is known as Lexical Semantic Change Detection (LSCD).

Surprisingly, while modern "contextualized" embeddings (like BERT) dominate most NLP tasks, they have historically struggled with LSCD. They often underperform simpler "static" embeddings (where one word equals one fixed vector). The bottleneck isn't the embeddings themselves, but the clustering methods used to group them. Standard techniques like $k$-means often fail to capture "long-tail" meanings (low-frequency senses) and struggle to compare word usage across massive time gaps (e.g., 100+ years) or between different languages.

Methods

The authors introduce a Graph-based Clustering approach built on three core pillars:

1. Semantic-Tree Representation

Instead of a flat list of clusters, the model represents a word as a hierarchical tree. The root ($e_w$) is the word's overall centroid, the second layer ($p_i$) consists of specific "sense clusters," and the third layer ($e_j$) contains the "representative embeddings" of the $k$-nearest neighboring words. This structure allows the model to maintain a rich context for every identified sense.

The Semantic-Tree representation of a word's senses, mapping a word to its specific sense clusters and representative neighbor embeddings.

2. Iterative Merging

Unlike $k$-means, which requires a pre-defined number of senses ($k$), this algorithm starts by treating every single word instance as its own cluster. It then iteratively merges the most similar clusters until a distance threshold is met. This allows the model to naturally discover an adaptable number of senses, including very rare ones that would otherwise be lost in larger clusters.

3. Neighbor-based Distance Metric

To compare two sense clusters across time or languages, the model uses Bipartite Matching to compare the "neighborhoods" of those clusters. If the words surrounding "mouse" in 1850 (like rat, bat) match the neighbors in 2020, the sense is stable. If new neighbors appear (like keyboard, user), a new sense has been acquired. This metric leverages the participation of neighbors to determine similarity, making it less sensitive to embedding noise.

Key Insights and Ideas

  • Time-Dependence is Crucial: Previous models often pooled all word instances from all eras into one big "time-independent" clustering. The authors found that clustering each time period separately and then matching them is far more effective. It prevents the model from being confused by the massive shifts in general linguistic context over centuries.
  • The "Long Tail" Matters: Standard clustering often "swallows" rare word senses into more common ones. By using an iterative merging strategy that doesn't fix the number of clusters, this model can isolate a sense even if it only appears a handful of times in a million-word corpus.
  • Neighbors as Semantic Fingerprints: A single vector (centroid) is a "blunt instrument." By looking at the $k$-nearest neighbors, the model creates a semantic fingerprint that is much more robust to the noise inherent in high-dimensional embedding spaces.
Visualizing the semantic change of "mouse" over time. At time t-1, the word is associated with animal neighbors, while at time t, new clusters emerge with neighbors like "keyboard" and "user."

Key Results

  • Binary Classification: The model achieved an average accuracy of 0.776 across four languages (English, German, Latin, and Swedish), significantly outperforming the SemEval2020 winner (0.687) and other contextualized approaches.
  • Cross-Language Discovery: The tool successfully visualized "consistent" changes across languages. For example, it showed that both English mouse and German Maus acquired the "computer device" sense simultaneously, while Swedish mus acquired both the "computer" sense and a unique "fur/tail" related sense in the same period.
  • Ablation Success: Removing the neighbor-based metric or switching back to $k$-means caused performance to drop significantly, validating that the graph-based approach was the critical innovation.

Limitations and Future Work

While the model is the best at binary classification (Did it change? Yes/No), it still lags slightly behind static embeddings in the "ranking" task (How much did it change?) for non-English languages. The authors suspect this is due to the lower quality of multilingual BERT (m-BERT) in those specific languages. Future work will explore "meaning-level" alignment to better handle words with complex polysemy profiles and address the current lack of standard benchmarks for inter-language semantic divergence.

Summary updated

Abstract

Despite the predominance of contextualized embeddings in NLP, approaches to detect semantic change relying on these embeddings and clustering methods underperform simpler counterparts based on static word embeddings.This stems from the poor quality of the clustering methods to produce sense clusters-which struggle to capture word senses, especially those with low frequency.This issue hinders the next step in examining how changes in word senses in one language influence another.To address this issue, we propose a graph-based clustering approach to capture nuanced changes in both high-and low-frequency word senses across time and languages, including the acquisition and loss of these senses over time.Our experimental results show that our approach substantially surpasses previous approaches in the SemEval2020 binary classification task across four languages.Moreover, we showcase the ability of our approach as a versatile visualization tool to detect semantic changes in both intra-language and inter-language setups.We make our code and data available 1 . 5This metric leverages the participation of neighbors to determine the similarity between two words.By doing so, the similarity between two words is less affected by their embedding quality.See Figure 8 (appendix) for the idea illustration.
BibTeX
@misc{ma2024graph,
  author = {Xianghe Ma and Michael Strube and Wei Zhao},
  title = {{Graph-based Clustering for Detecting Semantic Change Across Time and Languages}},
  year = {2024},
  eprint = {2402.01025},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.01025},
}
Figure