Time Will Change Things: An Empirical Study on Dynamic Language Understanding in Social Media Classification

Yuji Zhang, Jing Li · DOI

Introduction

Social media platforms are characterized by rapid linguistic evolution. Standard Natural Language Processing (NLP) models, typically evaluated on static datasets with random train-test splits, often fail when deployed in these dynamic environments. This failure stems from a temporal Out-of-Distribution (OOD) shift: the language used during training (e.g., early pandemic discussions) differs significantly from the language encountered during inference months later. This paper explores the extent of this performance decay and proposes a framework to mitigate it.

The Performance Decay Problem

The core challenge identified is the "performance tanking" effect. As the temporal gap between training and testing data increases, model accuracy consistently declines. For instance, a model trained on COVID-19 stance detection in early 2020 may struggle as the discourse shifts from medical precautions to political controversies.

Performance decay of BERT and LSTM models over time segments t0 to t4.

Empirical results across various tasks demonstrate this progressive decay. On the STANCE task, a standard BERT model's accuracy dropped from 0.902 at the initial time step ($t_0$) to 0.784 by the final segment ($t_4$). This suggests that models lose their grasp on the evolving context of social media conversations over time.

Methodology: Time-Adaptive Learning

To address this decay, the authors propose a Time-Adaptive Learning framework designed to bridge the feature gap between labeled historical data and unlabeled "future" data (referred to as "trans-data"). The framework integrates two primary strategies:

  1. Variational Auto-Encoder (VAE): This feature-centric approach learns latent topics from both past and future data, helping the model recognize underlying semantic connections even as specific vocabulary evolves.
  2. Pseudo-Labeling (PL): This data-centric approach allows the model to "self-teach" by generating labels for unlabeled trans-data, which are then used for further training to adapt decision boundaries.
The proposed BERT-VAE-MLP framework for time-adaptive learning.

The novel contribution is the Joint-PV (J-PV) framework, which couples VAE and PL. By optimizing both simultaneously through a joint loss function, the model benefits from both time-adaptive features and dynamic supervision.

Experimental Evaluation

The study evaluates the J-PV framework across four Twitter-based benchmarks: STANCE (COVID-19 stance detection), FAKE-NEWS (truthfulness classification), HATE-SPEECH (binary detection), and HASHTAG (a 50-class prediction task). Datasets were split chronologically into five segments ($t_0$ to $t_4$) to simulate real-world temporal progression.

Key Results and Insights

The J-PV framework consistently outperformed standalone BERT and LSTM models. In the FAKE-NEWS task at $t_4$, J-PV achieved an accuracy of 0.685, significantly higher than BERT’s 0.636.

Key takeaways include:

  • Unlabeled Data Utility: Leveraging unlabeled data from the period between training and testing is crucial for mitigating performance loss.
  • Complementary Mechanisms: VAE excels at finding cross-temporal semantic links, while PL effectively adapts the classifier to new label distributions.
  • Data Recency: "Fresher" trans-data—data closer to the target test time—provides more effective supervision for pseudo-labeling.

Conclusion

Temporal evolution is a significant hurdle for deploying NLP models in social media contexts. By utilizing a joint framework of VAEs and Pseudo-Labeling, models can better adapt to shifting linguistic patterns. Future work will focus on automating the selection of relevant trans-data and improving robustness against the noise inherent in social media and pseudo-labeling processes.

Summary updated

BibTeX
@misc{zhang2022time,
  author = {Yuji Zhang and Jing Li},
  title = {{Time Will Change Things: An Empirical Study on Dynamic Language Understanding in Social Media Classification}},
  year = {2022},
  eprint = {2210.02857},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.02857},
}
Figure