Abstract
Modern language models are capable of contextualizing words based on their surrounding context. However, this capability is often compromised due to semantic change that leads to words being used in new, unexpected contexts not encountered during pre-training. In this paper, we model semantic change by studying the effect of unexpected contexts introduced by lexical replacements. We propose a replacement schema where a target word is substituted with lexical replacements of varying relatedness, thus simulating different kinds of semantic change. Furthermore, we leverage the replacement schema as a basis for a novel interpretable model for semantic change. We are also the first to evaluate the use of LLaMa for semantic change detection.
Introduction
Language is inherently dynamic. Words like "gay" have shifted from meaning "cheerful" to referring to sexual orientation, while "surfing" has expanded from the ocean to the digital realm. While Large Language Models (LLMs) excel at contextualization, they are typically trained on static snapshots of text. When an LM encounters a word in a historically shifted context, it experiences a computational "tension" between its pre-trained knowledge and the new usage.
Existing methods for Lexical Semantic Change (LSC) detection often function as "black boxes," identifying change without explaining its nature. This research introduces a "replacement schema" to quantify this tension, providing both state-of-the-art detection and human-readable interpretations of semantic shifts.
Methodology: The Replacement Schema
The core of this approach is substituting a target word in a sentence with words from specific linguistic categories to measure the model's response:
- Synonyms: To establish a baseline for stability.
- Antonyms: To simulate "contronym" changes.
- Hypernyms: To model semantic broadening (e.g., "dog" to "animal").
- Random words: To simulate the emergence of unrelated homonyms.
The researchers measure the Self-Embedding Distance (SED)—the cosine distance between the embedding of the original word and its replacement within the same context. This metric captures how much the model's internal representation is disrupted by the substitution.
Layer-wise Contextualization and Part-of-Speech
Analysis across different Transformer layers reveals how models process these replacements. As shown in Figure 1, the "tension" or SED varies significantly by layer and part of speech (PoS).
Key observations include:
- PoS Sensitivity: LMs rely more heavily on pre-trained knowledge for nouns and verbs, showing higher SED when these are replaced. Adjectives and adverbs appear more "malleable," adapting more readily to their surrounding context.
- Depth of Processing: In deeper layers, models generally rely more on context than on the specific word identity. However, "random" replacements maintain high tension across all layers, indicating the model consistently recognizes the semantic mismatch.
Performance and Interpretability
The replacement-based model achieves state-of-the-art results on standard benchmarks like SemEval-2020 Task 1. By evaluating which synonyms become more or less "distant" from the target word over time, the model can explain how a meaning has shifted. For instance, it can track the word "record" as it moves from associations with "attainment" toward "evidence" or "document."
As seen in the results table, the "Replacement Max. Corr." strategy achieves a Spearman correlation of 0.741, significantly outperforming previous specialized architectures that hovered around 0.60–0.63. Additionally, the study found that using LLaMa 2 to generate substitutes (rather than using fixed lexicons like WordNet) yielded a competitive correlation of 0.731, highlighting the power of modern generative models in capturing nuanced word usage.
Conclusion
By simulating semantic shifts through controlled lexical replacements, this work provides a robust and interpretable framework for detecting linguistic drift. While the model currently faces challenges in low-resource settings and with complex morphology, it sets a new standard for understanding the "tension" between pre-trained knowledge and evolving language. Future work will focus on expanding benchmarks to include a broader range of parts of speech beyond nouns.
Reference: Periti, F., Cassotti, P., Dubossarsky, H., & Tahmasebi, N. (2024). Analyzing Semantic Change through Lexical Replacements. Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics.
Summary updated