Utilizing Weak Supervision to Create S3D: A Sarcasm Annotated Dataset

Jordan Painter, Helen Treharne, Diptesh Kanojia2022

Abstract

Sarcasm is prevalent across social media, posing significant challenges for Natural Language Processing (NLP), particularly in sentiment analysis. Due to its contradictory and derogatory nature, sarcasm detection remains a largely unsolved problem. This paper evaluates the efficacy of multiple sarcasm detection datasets using machine and deep learning models. We introduce two new datasets: the manually annotated gold-standard Sarcasm Annotated Dataset (SAD) and the Silver-Standard Sarcasm-annotated Dataset (S3D). By training a social-media domain pre-trained model, BERTweet, on a combination of existing datasets and SAD, we achieved an F1-score of 78.29%. Furthermore, we utilized an ensemble model to label S3D, producing a weakly supervised dataset of over 100,000 tweets to facilitate further research.

The Challenge of Sarcasm in NLP

Sarcasm detection is often considered the "white whale" of sentiment analysis. Because sarcasm involves figurative language that flips literal meaning, standard classifiers often fail. For instance, a model might see the word "love" in the tweet, "I just love it when my flight gets delayed for 4 hours," and incorrectly categorize it as positive sentiment. For NLP systems to be effective in social media monitoring, they must recognize this "verbal irony."

Researchers face three primary hurdles:

  1. Data Decay: Many datasets provide only Tweet IDs. As users delete accounts or posts, the original text becomes inaccessible, hindering reproducibility.
  2. Label Noise: Datasets relying on self-annotation (e.g., #sarcasm) are noisy and allow models to "cheat" by identifying hashtags rather than linguistic nuances.
  3. Domain Gap: Models trained on one platform (like Reddit) often fail to generalize to others (like Twitter).

Datasets and Methodology

This study benchmarks traditional machine learning models (Decision Trees and Logistic Regression with Word2Vec/GloVe embeddings) against five transformer-based models: BERT, RoBERTa (Base and Large), Twitter-RoBERTa, and BERTweet.

Summary of dataset statistics, including the newly introduced SAD (Gold Standard) and the massive Combined corpus.

To address the data scarcity and decay issues, the authors introduced:

  • SAD (Sarcasm Annotated Dataset): A "Gold Standard" of 2,340 tweets. Quality was ensured by dual-annotation with a third-party tie-breaker, achieving a high Cohen’s Kappa of 0.83.
  • S3D (Silver-Standard Sarcasm-annotated Dataset): 100,000 tweets labeled via a weakly supervised ensemble model using a majority voting technique.

Key Results and Insights

The researchers found that domain-specific pre-training is highly effective. BERTweet, pre-trained on 850 million tweets, generally outperformed general-purpose BERT. However, RoBERTa-Large remained competitive, suggesting that model scale can sometimes compensate for a lack of domain-specific data.

Performance comparison (Precision, Recall, F1) of transformer-based models across various sarcasm datasets.

Key performance highlights include:

  • Top Performance: BERTweet trained on the "Combined" dataset achieved an F1-score of 78.29%.
  • Dataset Efficacy: On the SAD dataset, RoBERTa-base achieved an impressive 87.06% F1-score.
  • Weak Supervision Boost: Fine-tuning BERTweet on the S3D (silver) dataset combined with existing data pushed the F1-score to 78.87%, proving that weakly supervised data improves model generalization.

Qualitative analysis revealed that models still struggle with subtle sarcasm. For example, the phrase "i call them suckers" was incorrectly labeled as sarcastic, likely because the derogatory tone of "suckers" is statistically associated with sarcasm even when used literally.

Conclusion and Future Work

While transformer models show great promise, sarcasm detection remains limited by a lack of external context (e.g., current events or conversation history). Future research will focus on fine-grained sarcasm detection—categorizing types of irony like ridicule versus metaphor—and exploring multimodal detection that incorporates images and speech.

Summary updated

BibTeX
@misc{painter2022utilizing,
  author = {Jordan Painter and Helen Treharne and Diptesh Kanojia},
  title = {{Utilizing Weak Supervision to Create S3D: A Sarcasm Annotated Dataset}},
  year = {2022},
  doi = {10.18653/v1/2022.nlpcss-1.22},
}
Figure