Swap and Predict – Predicting the Semantic Changes in Words across Corpora by Context Swapping

Taichi Aida, Danushka Bollegala


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, w, changes its meaning between two different text corpora, 𝒞1 and 𝒞2. For this purpose, we propose Swapping-based Semantic Change Detection (SSCD), an unsupervised method that randomly swaps contexts between 𝒞1 and 𝒞2 where w occurs. We then look at the distribution of contextualised word embeddings of w, obtained from a pretrained masked language model (MLM), representing the meaning of w in its occurrence contexts in 𝒞1 and 𝒞2. Intuitively, if the meaning of w does not change between 𝒞1 and 𝒞2, we would expect the distributions of contextualised word embeddings of w 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 .
Anthology ID:
2023.findings-emnlp.520
Volume:
Findings of the Association for Computational Linguistics: EMNLP 2023
Month:
December
Year:
2023
Address:
Singapore
Editors:
Houda Bouamor, Juan Pino, Kalika Bali
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
7753–7772
Language:
URL:
https://aclanthology.org/2023.findings-emnlp.520
DOI:
10.18653/v1/2023.findings-emnlp.520
Bibkey:
Cite (ACL):
Taichi Aida and Danushka Bollegala. 2023. Swap and Predict – Predicting the Semantic Changes in Words across Corpora by Context Swapping. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 7753–7772, Singapore. Association for Computational Linguistics.
Cite (Informal):
Swap and Predict – Predicting the Semantic Changes in Words across Corpora by Context Swapping (Aida & Bollegala, Findings 2023)
Copy Citation:
PDF:
https://aclanthology.org/2023.findings-emnlp.520.pdf