Introduction
Language is a dynamic entity, yet most Artificial Intelligence models are trained on static "snapshots" of data that quickly become obsolete. Standard Pre-trained Language Models (PLMs) such as BERT or LLaMA suffer from "temporal misalignment." Because they are trained on data from a specific point in time, their performance degrades when encountering "future" data where word meanings, usage, or even the grammatical roles of words have changed. For instance, the word "oval" might shift from describing a geometric shape to being a frequent shorthand for the "Oval Office" during specific political cycles.
Existing Temporal Language Models (TLMs) attempt to mitigate this by prepending timestamps to sequences. However, this approach is often superficial, indicating when data is from without helping the model learn the underlying linguistic shifts. This paper introduces SG-TLM (Syntax-Guided Temporal Language Model), a method that improves temporal adaptation by focusing on words whose grammatical roles shift over time.
Methodology
The authors propose SG-TLM, which leverages structural linguistic information through a three-stage process designed to identify and prioritize evolving language patterns:
- Syntax-Guided Lexicon Selection: Instead of computationally expensive semantic clustering, the researchers use syntactic role distributions. They track how often a word acts as a specific part of a dependency tree (e.g., an adjective modifier vs. a nominal subject). By calculating the cosine distance between these role "profiles" across different years, they identify a lexicon of words undergoing the most significant structural changes.
- Syntax-Guided Masking (SGM): During continued training, the model prioritizes masking words in the "changing" lexicon and their immediate grammatical "dependents" (the head nodes they connect to). This forces the model to learn the new context surrounding these evolving words.
- Temporal-Aware Masking (TAM): To ground the model in time, it is tasked with predicting the correct timestamp (year or month) based on surrounding text, teaching it to associate specific linguistic patterns with specific eras.
Experimental Setup and Results
The approach was evaluated on the WMT News Crawl (2015-2018) and the Reddit Time Corpus (2017-2020). Downstream tasks included political affiliation classification (POLIAFF), named entity recognition on tweets (TWINER), and political subreddit prediction (PSP).
Key Insights
- Syntax as a Proxy for Change: A primary finding is that syntactic role changes serve as a highly effective and efficient signal for language evolution. If a word's grammatical function shifts, it is a strong indicator that its meaning or usage has also evolved.
- Efficiency Gains: By using off-the-shelf syntactic parsers, the lexicon construction process is 180x faster than previous semantic-based methods, reducing measurement time from 360 minutes to just 2 minutes.
- Performance: SG-TLM achieved state-of-the-art performance, reaching an average F1 of 66.77 on POLIAFF and 66.67 on TWINER. The method also showed success across architectures, helping large-scale decoder models like LLaMA-7B capture challenging temporal information.
Conclusion
SG-TLM demonstrates that structural linguistic information is a powerful and efficient proxy for temporal change. While the model still faces challenges with entirely new concepts and the high computational costs of full LLM training, it provides a significantly more efficient path for temporal adaptation. Future work will explore "temporal prompting" and in-context learning to adapt LLMs without the need for extensive retraining.
Summary updated