Exploring Author Context for Detecting Intended vs Perceived Sarcasm

Silviu Oprea, Walid MagdyACL 2019

Abstract

Sarcasm detection in Natural Language Processing (NLP) is notoriously difficult because the linguistic cues are often absent from the text itself. This paper investigates the role of author context—specifically historical social media activity—in predicting whether a post is sarcastic. We distinguish between "intended sarcasm" (self-labeled by authors) and "perceived sarcasm" (labeled by external annotators). Our results demonstrate that author history is a powerful predictor, with "exclusive" models achieving high accuracy by analyzing user disposition alone. We find a significant divergence between intention and perception, suggesting that effective sarcasm detection requires models to account for the socio-cultural gap between authors and their audience.

Introduction

Sarcasm is a linguistic "moving target" that relies on a discrepancy between literal and intended meaning. While traditional models focus on "local" features within a single tweet, sarcasm is inherently contextual, depending on the speaker's identity and history. This research addresses two primary gaps: the utility of author-specific historical profiles and the discrepancy between intended and perceived sarcasm.

Methods

The researchers proposed several neural architectures to generate "user embeddings"—mathematical representations of an author's historical behavior. These embeddings are integrated into two main frameworks:

  • Exclusive Models: These predict sarcasm based solely on the author's history, without analyzing the target tweet.
  • Inclusive Models: These combine features from the current tweet with the author's historical embedding.
Figure 1: Architecture of Exclusive and Inclusive models, showing the integration of historical tweets (h^t) and current tweets (t).

To construct these embeddings, the authors tested several approaches, including CASCADE (personality and document vectors), W-CASCADE (applying temporal weighting to recent tweets), ED (Encoder-Decoder using LSTMs), and SUMMARY (pre-trained on text summarization).

Experimental Setup

The study utilized two distinct datasets to highlight the difference between intention and perception:

  1. Ptacek Dataset (Intended Sarcasm): Approximately 27,000 tweets where authors self-labeled their intent using hashtags like #sarcasm.
  2. Riloff Dataset (Perceived Sarcasm): A smaller set of 701 tweets manually labeled by third-party human annotators who lacked personal context regarding the authors.

Key Results

The experiments revealed that author history is a dominant factor in intended sarcasm. Notably, the Exclusive EX-W-CASCADE model achieved an F1 score of 0.922 on the Ptacek dataset without even reading the tweet being classified. This suggests that certain users have a strong "sarcastic disposition" that is highly predictable.

Figure 4: Performance comparison (F1 scores) of various models against the SIARN baseline on the Riloff and Ptacek datasets.

As shown in the results table, the IN-W-CASCADE model established a new state-of-the-art for intended sarcasm with an F1 of 0.934. However, improvements on the Riloff (perceived) dataset were more modest (0.739 vs. 0.711 baseline), indicating that external observers often fail to capture the author's intended irony due to a lack of shared socio-cultural context.

Discussion and Conclusion

The findings highlight a significant "intent-perception gap." Models that excel at identifying what an author thinks is sarcastic struggle to identify what an audience perceives as sarcastic. The success of the W-CASCADE model further proves that recency matters; a user's latest posts are more indicative of their current sarcastic style than older history.

Future work should treat intended and perceived sarcasm as distinct tasks. While intended sarcasm detection is vital for understanding author intent, perceived sarcasm detection is more critical for applications like sentiment analysis and hate speech monitoring. Incorporating "audience context"—the history of the reader—remains a promising next step for the field.

Summary updated

BibTeX
@inproceedings{oprea2019exploring,
  author = {Silviu Oprea and Walid Magdy},
  title = {{Exploring Author Context for Detecting Intended vs Perceived Sarcasm}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1275},
}
Figure