Introduction
Sarcasm and sentiment are two sides of the same linguistic coin, yet Natural Language Processing (NLP) models often treat them as isolated problems. Sarcasm is inherently tied to sentiment; it typically involves a "sentiment shift" where a literally positive statement masks a negative intended meaning. This research introduces a multi-task learning (MTL) framework that uses a Neural Tensor Network to fuse these tasks, outperforming previous state-of-the-art methods by 3–4% while relying solely on plain text.
Proposed Methodology
The researchers propose an MTL framework where a single neural network is trained to predict both sentiment and sarcasm labels simultaneously. This approach leverages shared information between the two related signals.
The architecture consists of several key components:
- The Backbone: GloVe word embeddings are fed into a Gated Recurrent Unit (GRU) to capture the sequential context of the sentence.
- Task-Specific Attention: The model splits into two branches—one for sentiment and one for sarcasm. Each branch employs its own attention mechanism, allowing the model to focus on different linguistic cues (e.g., focusing on "love" for sentiment but "spilt water" for sarcasm).
- Neural Tensor Network (NTN) Fusion: This is the core innovation. Rather than simple concatenation, an NTN fuses the task-specific vectors to capture complex, non-linear interactions between the two tasks.
Experimental Setup
The study utilizes a benchmark dataset from Mishra et al. (2016) containing 994 text snippets labeled for both sentiment and sarcasm. Notably, while the original dataset included eye-tracking (gaze) data, this study intentionally ignores it. The goal was to prove that a sophisticated MTL architecture could exceed state-of-the-art (SOTA) performance using text alone, making the model more practical for real-world applications like social media analysis.
Key Results and Discussion
The MTL model consistently outperformed standalone classifiers and the previous SOTA. The results suggest that sarcasm detection acts as an effective sub-task for sentiment analysis, providing natural regularization that prevents overfitting on small datasets.
As shown in the performance table, the "Multi-Task with fusion and shared attention" variant achieved the highest average F-score of 86.66%. This represents a significant improvement over standalone classifiers. The ablation study confirms that even simple MTL (without advanced fusion) outperforms independent models, but the Neural Tensor Network provides the best results by effectively modeling the "sentiment shift" inherent in sarcasm.
Conclusion and Future Work
While the model shows strong performance, the small dataset size remains a limitation for broad generalization. Future research will focus on building larger datasets and exploring how multimodal information, such as images in memes or audio in speech, can be integrated into the existing MTL framework to further enhance classification accuracy.
Summary updated