Detecting and Reasoning of Deleted Tweets before they are Posted

Hamdy Mubarak, Samir Abdaljalil, Azza Nassar, Firoj AlamarXiv 2023

TL;DR

Researchers have developed a proactive moderation system that predicts whether an Arabic tweet will be deleted—and why—before the user even hits "post." By analyzing a large dataset of deleted tweets, the study demonstrates that these "ghost" posts are a rich source of harmful content, and that Transformer-based models can effectively identify potential policy violations like hate speech or rumors with high accuracy.

What Problem Does This Paper Address?

Social media moderation is typically reactive: a post goes up, it’s reported or flagged, and then it’s removed. While previous research has looked at what gets deleted, there is a significant gap in understanding the fine-grained reasoning behind these deletions, especially in non-English contexts like Arabic.

The authors argue that understanding why tweets disappear—whether due to user regret or platform policy enforcement—is crucial for building better safety tools. By identifying the characteristics of content that eventually gets deleted, we can empower users with real-time feedback, potentially preventing the spread of disinformation and hate speech at the source.

Methods

The researchers employed a multi-stage approach combining manual data curation with state-of-the-art Natural Language Processing (NLP):

  1. Data Collection: They used the Twarc package to collect 18.8M Arabic tweets containing the word "Corona" from early 2020. They then re-checked these tweets in 2022 to identify which were still active and which had been deleted or came from suspended accounts.
  2. Annotation: A subset of 22,000 tweets was manually labeled by fluent Arabic speakers into five categories: Hate Speech (HS), Offensive (Off), Rumor, Spam, and Not-disinformative.
  3. Modeling: They trained and compared two types of models:
  4. Classical Machine Learning: Random Forest (RF) and Support Vector Machines (SVM).
  5. Transformers: AraBERT (a monolingual Arabic model) and XLM-R (a multilingual model).
  6. Task Formulation: The models were tested on three tasks: binary deletion prediction (will it be deleted?), binary disinformation detection (is it harmful?), and multiclass fine-grained classification (why is it harmful?).

Datasets

The study introduces a manually labeled dataset of 40,000 Arabic tweets (20K deleted, 20K non-deleted).

  • Phase 1: 20,000 deleted tweets were manually annotated.
  • Phase 2: 2,000 non-deleted tweets were manually annotated, with the remaining 18,000 weakly labeled as "not-disinformative" for training purposes.

This dataset is particularly valuable because it focuses on the Arabic language and the specific, highly polarized context of the COVID-19 pandemic.

Examples of the fine-grained categories used for annotation, including Hate Speech and Rumors.

Key Insights and Ideas

  • Deleted Tweets as a "Goldmine": The study found that deleted tweets contain nearly three times more disinformation (20%) than non-deleted tweets (7%). This suggests that studying deleted content is a more efficient way to collect training data for harmful content detection than random sampling or keyword filtering, which often introduces bias.
  • Hate Speech Targets: The manual analysis revealed that hate speech in this context was frequently directed at specific countries and political/religious groups, as shown in the word cloud below.
Figure 2. Word cloud for most frequent hate-speech targeted topics/entities.
  • Twitter's Enforcement Efficiency: By tracking account statuses, the authors found that Twitter is remarkably efficient at catching spam; over 62% of users who posted spam were eventually suspended. However, for hate speech, the suspension rate was lower (around 34%), with many users either deleting the posts themselves or remaining active.
  • Metadata Matters: Disinformative tweets showed distinct behavioral patterns: they had double the number of URLs and significantly fewer retweets (12% vs ~80%) compared to normal tweets, suggesting they struggle to gain "organic" traction before being removed.

Key Results

The Transformer models significantly outperformed classical baselines across all tasks:

  • Deletion Prediction: AraBERT achieved the best performance with an F1-score of 0.902, proving that the model can highly accurately predict if a tweet is headed for deletion based solely on its text.
  • Disinformation Detection: XLM-R led the binary classification task (Disinfo vs. Not-disinfo) with an F1 of 0.895.
  • Fine-grained Reasoning: For the multiclass task (identifying HS, Rumor, etc.), AraBERT again performed best with an F1 of 0.752.
Figure 3. Distribution of users’ account status corresponding to each disinformative category. This status is based on the time of our analysis period (August, 2022)

Limitations and Future Work

The authors acknowledge several areas for improvement:

  • Platform Specificity: The study is limited to Twitter; it remains to be seen if these patterns hold on platforms like Facebook or TikTok.
  • Topic Constraint: The data is centered on COVID-19. Future work should explore if these models generalize to other high-stakes topics like elections.
  • Granularity: The researchers plan to include more specific categories, such as "racism," and explore multitask learning to reduce the computational cost of running these models in real-time production environments.
  • Account-level Analysis: Future models could benefit from considering whether an entire account was suspended versus an individual tweet being deleted by a user.

Summary updated

BibTeX
@misc{mubarak2023detecting,
  author = {Hamdy Mubarak and Samir Abdaljalil and Azza Nassar and Firoj Alam},
  title = {{Detecting and Reasoning of Deleted Tweets before they are Posted}},
  year = {2023},
  eprint = {2305.04927},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.04927},
}
Figure