Introduction
Stance detection is a critical task in Natural Language Processing (NLP) that involves identifying a user's attitude—such as pro-vaccine, anti-vaccine, or neutral—toward a specific topic. While standard evaluation practices often rely on random data shuffling, this approach fails to account for the dynamic nature of social media discourse. During the COVID-19 pandemic, public conversation evolved rapidly, shifting from vaccine development to side effects, and eventually to mandates and "vaccine passes." This phenomenon, known as temporal concept drift, poses a significant challenge for models deployed in real-world scenarios. This paper evaluates how this drift affects model performance and explores the efficacy of domain-specific pre-training as a mitigation strategy.
Methodology and Datasets
To investigate the impact of time, the researchers compared two data-splitting strategies across several transformer-based Pre-trained Language Models (PLMs):
- Random Splits: The standard academic approach using stratified 5-fold cross-validation on shuffled data.
- Chronological Splits: A more realistic simulation where models are trained on the earliest 70% of data and tested on the final 20%.
The study utilized five diverse datasets spanning different timeframes and languages, including English, French, German, Spanish, and Italian. These datasets captured various nuances of the vaccine debate, from general stance to specific categories like "hesitancy."
The Reality of Temporal Concept Drift
The core issue with random splits is that they allow "leakage"—similar tweets from the same time period appear in both training and testing sets, creating an illusion of high accuracy. In reality, as topics evolve, models encounter vocabulary and concepts they were never trained on.
As shown in the topic modeling analysis, certain discussion groups (TGs) are transient, while others persist. When a model trained on early data is asked to classify tweets about later concepts like "vaccine passes," it often fails because those terms were absent from its training window. Statistical analysis confirms this: a strong positive correlation (Pearson = 0.64) exists between vocabulary overlap (measured by the DICE coefficient) and model accuracy.
Performance Analysis
The transition from random to chronological evaluation reveals a stark performance gap. For instance, using the Cotfas dataset, a standard BERT model's F1-score plummeted from 79.2% in a random split to just 63.3% in a chronological split.
However, the results also highlight the resilience of domain-adapted models. COVID-BERT, pre-trained on pandemic-specific corpora, maintained significantly higher performance under chronological drift compared to "vanilla" BERT. These specialized models appear to capture a broader contextual understanding that remains relevant even as specific keywords and topics shift over time.
Conclusion
Temporal concept drift is a major hurdle for deploying stance detection models in the wild. Randomly shuffled evaluations provide an overly optimistic view of model capabilities. This research advocates for chronological splitting as the standard for evaluating social media classifiers. Furthermore, the success of domain-specific models like COVID-BERT suggests that continuous learning and specialized pre-training are essential for maintaining model robustness in evolving information environments.
Summary updated