English

$\textit{Swap and Predict}$ -- Predicting the Semantic Changes in Words across Corpora by Context Swapping

Computation and Language 2023-10-17 v1

Abstract

Meanings of words change over time and across domains. Detecting the semantic changes of words is an important task for various NLP applications that must make time-sensitive predictions. We consider the problem of predicting whether a given target word, ww, changes its meaning between two different text corpora, C1\mathcal{C}_1 and C2\mathcal{C}_2. For this purpose, we propose Swapping-based Semantic Change Detection\textit{Swapping-based Semantic Change Detection} (SSCD), an unsupervised method that randomly swaps contexts between C1\mathcal{C}_1 and C2\mathcal{C}_2 where ww occurs. We then look at the distribution of contextualised word embeddings of ww, obtained from a pretrained masked language model (MLM), representing the meaning of ww in its occurrence contexts in C1\mathcal{C}_1 and C2\mathcal{C}_2. Intuitively, if the meaning of ww does not change between C1\mathcal{C}_1 and C2\mathcal{C}_2, we would expect the distributions of contextualised word embeddings of ww to remain the same before and after this random swapping process. Despite its simplicity, we demonstrate that even by using pretrained MLMs without any fine-tuning, our proposed context swapping method accurately predicts the semantic changes of words in four languages (English, German, Swedish, and Latin) and across different time spans (over 50 years and about five years). Moreover, our method achieves significant performance improvements compared to strong baselines for the English semantic change prediction task. Source code is available at https://github.com/a1da4/svp-swap .

Keywords

Cite

@article{arxiv.2310.10397,
  title  = {$\textit{Swap and Predict}$ -- Predicting the Semantic Changes in Words across Corpora by Context Swapping},
  author = {Taichi Aida and Danushka Bollegala},
  journal= {arXiv preprint arXiv:2310.10397},
  year   = {2023}
}

Comments

Findings of EMNLP2023

R2 v1 2026-06-28T12:52:02.508Z