Skip to main content
QUICK REVIEW

[Paper Review] `Who would have thought of that!': A Hierarchical Topic Model for Extraction of Sarcasm-prevalent Topics and Sarcasm Detection

Aditya Joshi, Prayas Jain|arXiv (Cornell University)|Nov 14, 2016
Sentiment Analysis and Opinion MiningComputer Science20 references5 citations
TL;DR

This paper proposes a supervised hierarchical topic model that identifies sarcasm-prevalent topics by analyzing sentiment word distributions in tweets. By modeling topic, sentiment, and label-switching variables, it outperforms prior feature-based classifiers by 25% in F-score for sarcasm detection, with topics like 'work' and 'weather' emerging as highly sarcastic.

ABSTRACT

Topic Models have been reported to be beneficial for aspect-based sentiment analysis. This paper reports a simple topic model for sarcasm detection, a first, to the best of our knowledge. Designed on the basis of the intuition that sarcastic tweets are likely to have a mixture of words of both sentiments as against tweets with literal sentiment (either positive or negative), our hierarchical topic model discovers sarcasm-prevalent topics and topic-level sentiment. Using a dataset of tweets labeled using hashtags, the model estimates topic-level, and sentiment-level distributions. Our evaluation shows that topics such as `work', `gun laws', `weather' are sarcasm-prevalent topics. Our model is also able to discover the mixture of sentiment-bearing words that exist in a text of a given sentiment-related label. Finally, we apply our model to predict sarcasm in tweets. We outperform two prior work based on statistical classifiers with specific features, by around 25\%.

Motivation & Objective

  • To address the challenge of sarcasm detection in natural language by leveraging topic modeling, a technique not previously applied to sarcasm.
  • To discover topics that are inherently prone to sarcasm by analyzing the distribution of sentiment-bearing words in tweets.
  • To improve sarcasm detection performance by modeling the mixture of positive and negative sentiment words characteristic of sarcastic content.
  • To evaluate the model’s ability to extract meaningful sarcasm-prevalent topics and use them for downstream sarcasm classification.
  • To demonstrate that topic modeling can outperform traditional feature-based classifiers in sarcasm detection tasks.

Proposed method

  • The model extends supervised Latent Dirichlet Allocation (LDA) with three latent variables: topic (z), sentiment (s), and a switch variable (is) to model sentiment-bearing words.
  • It uses a chain of conditional distributions where the sentiment label is determined by the mixture of sentiment-bearing words within a topic.
  • The model estimates topic-level and sentiment-level distributions using a corpus of 166,955 labeled tweets (positive, negative, sarcastic).
  • Two inference methods are used: log-likelihood-based prediction (selecting the label with highest likelihood) and sampling-based prediction (using last sampled label during MCMC).
  • The model learns sentiment word proportions per topic and per tweet-level sentiment label, capturing the distinct sentiment mixture in sarcastic vs. literal tweets.
  • Evaluation includes qualitative analysis of sarcasm-prevalent topics and quantitative comparison with two prior feature-based sarcasm detection methods.

Experimental results

Research questions

  • RQ1Which topics are inherently more prone to sarcasm, as indicated by the distribution of sentiment-bearing words?
  • RQ2Can a topic model effectively capture the distinct sentiment mixture patterns in sarcastic tweets compared to literal positive or negative tweets?
  • RQ3To what extent can a topic model improve sarcasm detection performance compared to traditional feature-based classifiers?
  • RQ4How do the distributions of sentiment-bearing words vary across literal positive, literal negative, and sarcastic tweets according to the model?
  • RQ5Can the discovered sarcasm-prevalent topics be effectively leveraged for end-to-end sarcasm detection?

Key findings

  • The model successfully identifies sarcasm-prevalent topics such as 'work', 'gun laws', and 'weather', which exhibit high sentiment mixture.
  • Sarcastic tweets show a significantly different sentiment distribution—many contain high proportions of positive sentiment words, unlike literal positive or negative tweets.
  • The log-likelihood-based inference method achieved an F-score of 41.34%, outperforming two prior feature-based methods (F-scores ~18–19%) by approximately 25 percentage points.
  • The sampling-based method achieved an F-score of 21.42%, indicating that log-likelihood inference is more effective for this task.
  • The model’s qualitative results confirm that sentiment mixture is a key signal in sarcasm, with sarcastic tweets showing balanced or mixed sentiment word proportions.
  • The model demonstrates that topic modeling can effectively extract thematic and sentiment structures for sarcasm detection, offering a novel alternative to feature engineering.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.