Abstract
In the universe of Natural Language Processing, Transformer-based language models like BERT and (Chat)GPT have emerged as lexical superheroes with great power to solve open research problems. In this paper, we specifically focus on the temporal problem of semantic change, and evaluate their ability to solve two diachronic extensions of the Word-in-Context (WiC) task: TempoWiC and HistoWiC. In particular, we investigate the potential of a novel, off-the-shelf technology like ChatGPT (and GPT) 3.5 compared to BERT, which represents a family of models that currently stand as the state-of-the-art for modeling semantic change. Our experiments represent the first attempt to assess the use of (Chat)GPT for studying semantic change. Our results indicate that ChatGPT performs significantly worse than the foundational GPT version. Furthermore, our results demonstrate that (Chat)GPT achieves slightly lower performance than BERT in detecting long-term changes but performs significantly worse in detecting short-term changes.
Introduction
Language is a living entity, with word meanings evolving over time—a phenomenon known as Lexical Semantic Change (LSC). Tracking these shifts is crucial for historians, sociologists, and linguists to understand cultural and social evolution. While BERT-based models currently define the state-of-the-art for this task by comparing word embeddings across time periods, the emergence of Large Language Models (LLMs) like ChatGPT raises a new question: can these general-purpose models match specialized architectures in diachronic text analysis? This study evaluates (Chat)GPT 3.5 against BERT on two semantic change benchmarks: TempoWiC and HistoWiC.
Methodology
The researchers compared BERT (bert-base-uncased) with GPT-3.5 via both the official OpenAI API (gpt-3.5-turbo) and the standard web interface. Evaluation centered on the Word-in-Context (WiC) task, which requires models to determine if a target word shares the same meaning across two sentences from different eras.
Key methodological choices included:
- Prompting Strategies: Testing Zero-shot (no examples), Few-shot (a few examples), and Many-shot (using the training set as context) prompting.
- Temperature Tuning: Varying the "temperature" parameter (from 0.0 to 2.0) to assess how model determinism affects semantic logic.
- BERT Baseline: Extracting embeddings from all 12 layers and using a threshold-based classifier on the cosine distance between word vectors.
Datasets
The study utilized two primary benchmarks to capture different temporal scales:
- TempoWiC: A dataset of tweets designed to detect short-term semantic changes in highly dynamic social media language.
- HistoWiC: A new benchmark introduced by the authors, adapting historical English corpora (1810–2010) into a WiC format to evaluate long-term change detection.
- LSC Ranking Task: The English SemEval-2020 Task 1 dataset was used to evaluate the models' ability to rank words based on their degree of change.
Results and Discussion
The experiments reveal that BERT remains the superior tool for specialized semantic change detection. On the HistoWiC task, BERT achieved a Macro-F1 of .743, outperforming the best GPT API configuration (.689). The performance gap widened significantly on TempoWiC, where BERT scored .751 compared to GPT’s .636.
A critical finding was the impact of model determinism. As shown in Figure 5, performance generally degrades as temperature increases. For semantic tasks, "creativity" acts as a bug rather than a feature; the models perform best when they are most deterministic (temperature near 0.0).
Furthermore, the study highlighted a significant performance difference between interfaces. The official API was consistently more effective than the web interface, which scored only .580 on TempoWiC. This is likely due to the web interface's hidden moderate temperature and limited context history. ChatGPT also struggled with the "noise" of social media—abbreviations and slang—compared to the cleaner prose of historical documents.
Conclusion
While ChatGPT is a versatile "jack of all trades," it has not yet dethroned BERT in the specialized arena of Semantic Change Detection. BERT remains the superior tool, particularly for short-term shifts and precise ranking tasks. Future work will explore more advanced models like GPT-4 and open-source alternatives like LLaMA to determine if the performance gap can be closed through larger scale or more fine-grained control.
Summary updated