Skip to main content
QUICK REVIEW

[Paper Review] Sarcasm Detection using Hybrid Neural Network

Rishabh Misra, Prahal Arora|arXiv (Cornell University)|Jan 1, 2018
Sentiment Analysis and Opinion MiningComputer Science8 references77 citations
TL;DR

This paper proposes a hybrid neural network combining CNN, BiLSTM, and attention mechanisms for sarcasm detection, using a high-quality news headline dataset from The Onion and HuffPost. The model improves classification accuracy by 4.82% over a strong baseline and provides interpretability by highlighting incongruent word phrases that signal sarcasm.

ABSTRACT

Sarcasm Detection has enjoyed great interest from the research community, however the task of predicting sarcasm in a text remains an elusive problem for machines. Past studies mostly make use of twitter datasets collected using hashtag based supervision but such datasets are noisy in terms of labels and language. To overcome these shortcoming, we introduce a new dataset which contains news headlines from a sarcastic news website and a real news website. Next, we propose a hybrid Neural Network architecture with attention mechanism which provides insights about what actually makes sentences sarcastic. Through experiments, we show that the proposed model improves upon the baseline by ~ 5% in terms of classification accuracy.

Motivation & Objective

  • To address the limitations of noisy Twitter-based datasets for sarcasm detection by creating a high-quality, formal-language news headline dataset.
  • To develop an interpretable deep learning model that captures both local n-gram patterns and sequential context for sarcasm detection.
  • To provide qualitative insights into what linguistic cues the model learns as indicators of sarcasm, particularly incongruent sentiment co-occurrences.
  • To improve upon existing baselines by integrating attention mechanisms that highlight semantically contradictory phrases in headlines.

Proposed method

  • The model uses pre-trained word2vec embeddings for input representation, with out-of-vocabulary words initialized randomly and fine-tuned during training.
  • A convolutional neural network (CNN) extracts local n-gram features from the headline text.
  • A bidirectional LSTM (BiLSTM) encodes sequential context by capturing forward and backward hidden states for each word.
  • An attention mechanism computes context vectors by weighting BiLSTM hidden states, focusing on semantically incongruent phrases like 'civic engagement' and 'oppressing other people'.
  • The context vector from attention and the CNN output are concatenated and fed into a multilayer perceptron (MLP) for binary classification of sarcasm.
  • The entire model is trained end-to-end using cross-entropy loss and the AdaDelta optimization algorithm.

Experimental results

Research questions

  • RQ1Can a hybrid neural network architecture combining CNN, BiLSTM, and attention improve sarcasm detection accuracy compared to a strong baseline on a high-quality dataset?
  • RQ2What linguistic cues does the model learn to identify sarcasm, particularly in terms of semantic incongruence?
  • RQ3How do attention weights correlate with human intuition about sarcasm, such as the co-occurrence of contrasting sentiments?
  • RQ4To what extent does the model's interpretability help in understanding the underlying mechanisms of sarcasm detection?
  • RQ5Can transfer learning from this model to smaller, noisier datasets like Semeval improve performance?

Key findings

  • The proposed hybrid model achieves a test accuracy of 89.7%, representing a 4.82% improvement over the baseline model's 84.88% accuracy.
  • The attention mechanism successfully highlights semantically incongruent word phrases—such as 'civic engagement' and 'oppressing other people'—which are key indicators of sarcasm.
  • Qualitative analysis confirms that the model focuses on phrases with contrasting sentiment, aligning with human perception of sarcasm.
  • The model demonstrates robustness and interpretability, with attention weights clearly indicating insincere or satirical expressions like 'bald man' or 'stopped paying attention'.
  • The high-quality news headline dataset significantly reduces vocabulary sparsity and label noise compared to Twitter-based datasets, enabling better model performance.

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.