Abstract
Sarcasm detection remains a significant hurdle in sentiment analysis, acting as a "polarity flipper" that reverses the surface-level meaning of text. This paper introduces a modular deep learning framework that leverages pre-trained Convolutional Neural Networks (CNNs) to extract sentiment, emotion, and personality features. By integrating these specialized vectors with a task-specific baseline CNN, the proposed model achieves state-of-the-art performance across multiple benchmark datasets. Our findings suggest that sarcasm is deeply intertwined with the speaker's emotional state and personality traits, and that automatic feature extraction significantly outperforms traditional hand-crafted methods.
Introduction
Sarcasm is a linguistic phenomenon where the intended meaning of a statement is the opposite of its literal interpretation. In the context of Twitter, where brevity is key, sarcasm often involves a contradiction between a positive sentiment and a negative underlying situation. Traditional text categorization methods, which often rely on n-gram frequencies, struggle to capture these nuances. This research addresses three primary challenges: incongruity between stated and objective polarity, contextual dependency on the speaker's background, and the generalizability of models across evolving topics.
Modular CNN Architecture
The core of the proposed framework is a multi-stage feature extraction process using Deep CNNs. Rather than training a monolithic model, the authors utilize three pre-trained CNNs focused on auxiliary tasks: sentiment analysis (positive/negative/neutral), emotion recognition (six basic emotions), and personality trait identification (the "Big Five").
Features are extracted from the fully-connected (FC) layers of these pre-trained models. These high-level vectors are then combined with features from a fourth baseline CNN trained specifically on sarcasm data. The final classification is performed using a Support Vector Machine (SVM) fed by these concatenated features, a hybrid approach that the authors found superior to standard softmax output.
Experimental Evaluation
The model was tested on three distinct datasets: a balanced set of 100,000 tweets, an imbalanced set of 100,000 tweets (reflecting real-world distribution), and a separate test dataset from "The Sarcasm Detector." To capture the informal language of Twitter, the researchers employed non-static word embeddings (word2vec), allowing the model to adapt word representations during the training process.
Generalizability and Dataset Analysis
A key insight of this work is the "Generalizability Gap." While models often perform well on data similar to their training set, they struggle with unseen topics. The authors used Principal Component Analysis (PCA) to visualize the feature space of the three datasets.
As shown in the visualizations, different datasets occupy distinct regions of the feature space, explaining why cross-dataset performance can vary. Despite this, the inclusion of personality and emotion features provides a more robust "user profile" that aids in detection across different contexts.
Results
The framework established new state-of-the-art results across all benchmarks. On the balanced Dataset 1, it achieved a 97.71% F1-score. On the imbalanced Dataset 2, it reached 94.80%. Most notably, on the complex Dataset 3, the model achieved 93.30%, a significant improvement over previous methods that often failed to exceed 60% on this specific data. Ablation studies confirmed that while sentiment and emotion features are the most influential, the combination of all three auxiliary models yields the highest accuracy.
Conclusion
This research demonstrates that deep learning can effectively capture the subtle cues of sarcasm by looking beyond surface text to the emotional and psychological context of the speaker. While the model currently lacks a "commonsense" knowledge base and struggles with complex historical reasoning, it represents a major step forward in automated sarcasm detection. Future work will focus on anaphora resolution and deeper user history analysis to further refine personality profiles.
Summary updated