Skip to main content
QUICK REVIEW

[Paper Review] Reasoning with Sarcasm by Reading In-between

Yi Tay, Luu Anh Tuan|arXiv (Cornell University)|May 8, 2018
Topic ModelingComputer Science29 references18 citations
TL;DR

This paper proposes the Multi-dimensional Intra-Attention Recurrent Network (MIARN), a novel neural model that explicitly captures intra-sentence contrast and incongruity by modeling word-pair relationships rather than relying on sequential processing. MIARN achieves state-of-the-art performance across six sarcasm detection benchmarks and produces highly interpretable attention maps that highlight sarcastic cues like 'love' and 'ignored'.

ABSTRACT

Sarcasm is a sophisticated speech act which commonly manifests on social communities such as Twitter and Reddit. The prevalence of sarcasm on the social web is highly disruptive to opinion mining systems due to not only its tendency of polarity flipping but also usage of figurative language. Sarcasm commonly manifests with a contrastive theme either between positive-negative sentiments or between literal-figurative scenarios. In this paper, we revisit the notion of modeling contrast in order to reason with sarcasm. More specifically, we propose an attention-based neural model that looks in-between instead of across, enabling it to explicitly model contrast and incongruity. We conduct extensive experiments on six benchmark datasets from Twitter, Reddit and the Internet Argument Corpus. Our proposed model not only achieves state-of-the-art performance on all datasets but also enjoys improved interpretability.

Motivation & Objective

  • To address the challenge of sarcasm detection in social media, where figurative language and sentiment polarity flipping disrupt traditional opinion mining systems.
  • To overcome the limitations of sequential models like LSTMs and standard attention mechanisms, which fail to explicitly model contrast between word pairs.
  • To develop a more interpretable sarcasm detection model by leveraging intra-sentence attention to highlight semantically contradictory phrases.
  • To improve performance on both short and long text by explicitly modeling long-range dependencies through multi-dimensional intra-attention.
  • To demonstrate that modeling 'in-between' relationships—rather than just 'across' sequences—leads to better detection and explainability in sarcasm detection.

Proposed method

  • The MIARN model uses a multi-dimensional intra-attention mechanism that computes attention scores between every pair of words in a sentence, capturing semantic contrasts and incongruities.
  • It integrates this intra-attention module within a recurrent encoder (e.g., GRU or LSTM), allowing the model to preserve sequential context while explicitly modeling word-pair relationships.
  • The intra-attention mechanism computes similarity matrices between word representations, enabling the model to focus on semantically opposing or incongruent phrases such as 'love' and 'ignored'.
  • The model is trained end-to-end using cross-entropy loss, with attention weights providing interpretability by highlighting key sarcastic cues in the input.
  • It outperforms standard attention mechanisms (e.g., ATT-LSTM) and vanilla RNNs by avoiding the tendency of attention to focus solely on the final hidden state.
  • The architecture is designed to be self-targeted co-attention, allowing it to dynamically attend to contrasting word pairs without requiring external supervision.

Experimental results

Research questions

  • RQ1Can modeling intra-sentence relationships between word pairs improve sarcasm detection beyond sequential modeling?
  • RQ2Does an attention mechanism that explicitly captures contrast and incongruity lead to better performance on sarcasm detection benchmarks?
  • RQ3Can the attention maps produced by the model be meaningfully interpreted to reveal the linguistic cues of sarcasm?
  • RQ4How does the model perform on both short texts (e.g., tweets) and long texts (e.g., debates) compared to sequential and standard attention-based models?
  • RQ5To what extent does the proposed intra-attention mechanism reduce reliance on superficial cues like punctuation or final tokens?

Key findings

  • MIARN achieves state-of-the-art performance on all six benchmark datasets from Twitter, Reddit, and the Internet Argument Corpus, outperforming strong baselines like GRNN and CNN-LSTM-DNN.
  • On the Twitter dataset, MIARN achieves a macro-F1 score of 85.6%, significantly outperforming the next best model (83.2%) on the same benchmark.
  • The model’s attention maps clearly highlight sarcastic word pairs such as 'love' and 'ignored', demonstrating its ability to detect semantic contrast and incongruity.
  • In contrast, standard attention mechanisms (e.g., ATT-LSTM) focus disproportionately on the final token or punctuation, leading to non-interpretable attention patterns.
  • On long-text datasets like Debates, MIARN maintains strong performance, while standard LSTMs struggle due to vanishing gradients and long-range dependency issues.
  • Qualitative analysis confirms that MIARN’s attention is semantically grounded, focusing on sentiment-bearing and contrasting phrases, unlike ATT-RAW, which attends to non-meaningful words like 'big'.

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.