Named Entity Recognition in Twitter: A Dataset and Analysis on Short-Term Temporal Shifts

Asahi Ushio, Leonardo Neves, Vitor Silva, Francesco Barbieri, Jose Camacho-Collados

TL;DR

This paper introduces TweetNER7, a new dataset of over 11,000 tweets designed to measure how Named Entity Recognition (NER) models handle short-term temporal shifts on social media. The authors demonstrate that standard language models degrade significantly when tested on tweets from even one year into the future, and popular mitigation strategies like self-labeling fail to bridge the gap.

What Problem Does This Paper Address?

While modern language models (LMs) achieve over 90% F1 scores on standard Named Entity Recognition (NER) benchmarks, these datasets are typically built from clean, static sources like Wikipedia or news articles. Social media platforms like Twitter present a much harsher environment. Not only is the text noisy and informal, but it is also highly dynamic.

New entities (e.g., viral trends, new products, emerging public figures) appear constantly, and the meanings of words evolve rapidly. This phenomenon, known as temporal shift, causes NER model performance to degrade over time. Existing Twitter NER datasets are either too small, cover too few entity types, or lack a uniform distribution of data over time, making it difficult to rigorously analyze how models adapt to these short-term temporal changes.

Methods

The authors collected tweets spanning from September 2019 to August 2021, filtering them using weekly trending keywords to ensure diverse topic coverage. They split the data into two distinct periods: the 2020-set (Sept 2019 – Aug 2020) and the 2021-set (Sept 2020 – Aug 2021).

To evaluate temporal degradation, they established a baseline setup: models were fine-tuned on the 2020-set and evaluated on the 2021-set. They benchmarked several language models, including:

  • General-purpose LMs: BERT and RoBERTa.
  • Twitter-specific LMs: BERTweet and TimeLMs (RoBERTa models continuously pre-trained on tweets up to specific years).

The authors also experimented with mitigation strategies, including continuous fine-tuning (training on 2020 data, then continuing on 2021 data) and self-labeling (using a fine-tuned model to pseudo-label large amounts of unlabeled recent tweets to augment the training set).

Datasets

The primary contribution is TweetNER7, which consists of 11,382 human-annotated tweets. It features seven general entity types: person, location, corporation, creative work, group, product, and event.

Unlike prior datasets like the Broad Twitter Corpus (BTC) or the Temporal Twitter Corpus (TTC), TweetNER7 maintains a strictly uniform distribution of tweets across every month of its two-year span, ensuring that temporal analysis isn't skewed by varying data volumes.

Dataset statistics showing the distribution of entities across splits

Key Insights and Ideas

  • The "Diversity" Difficulty: A higher frequency of an entity type doesn't automatically mean better performance. The authors found that entity types with high diversity (a high percentage of unique entities, like creative work) are much harder for models to recognize than low-diversity types (like person), even when the total instance counts are similar.
  • Self-Labeling Falls Short: In contrast to some prior studies on long-term temporal shifts, self-labeling (pseudo-labeling) did not yield major improvements here. Contextual analysis revealed that the base models suffer from persistent internal biases; they tend to output the same incorrect predictions for specific entities regardless of the newer context, meaning they pass their own errors into the pseudo-labeled data.
Figure 2: Entity-wise F1 score breakdown from the baseline results in the 2021 test set (Table 5).

Key Results

  • Low Overall Performance: The task is remarkably challenging. Every tested model scored below a 65% Micro F1 on the 2021 test set when trained only on 2020 data.
  • Top Performer: RoBERTa-LARGE achieved the highest overall performance with a Micro F1 of 64.8% on the 2021 test set.
  • Value of Recent Data: Eliminating the temporal gap by randomly mixing 2020 and 2021 data into the training set consistently improved performance on the 2021 test set across all LMs (e.g., providing a +1.5 absolute F1 boost for RoBERTa-LARGE). This underscores the ongoing necessity of human-annotated data from the target time period.

Limitations and Future Work

The authors note a few key limitations of TweetNER7:

  1. Language Constraint: The dataset is strictly limited to English tweets.
  2. Granularity: It is optimized for studying short-term, rapid temporal shifts (monthly/yearly) rather than multi-decade macro shifts.

For future work, the team plans to extend this methodology to other languages and expand data collection to additional social media platforms (such as Reddit or YouTube) to build a more generalized understanding of how language evolves across the internet.

Summary updated

BibTeX
@inproceedings{ushio2022named,
  author = {Asahi Ushio and Leonardo Neves and Vitor Silva and Francesco Barbieri and Jose Camacho-Collados},
  title = {{Named Entity Recognition in Twitter: A Dataset and Analysis on Short-Term Temporal Shifts}},
  booktitle = {AACL/IJCNLP},
  year = {2022},
  doi = {10.18653/v1/2022.aacl-main.25},
}
Figure