Abstract
Sarcasm detection is a complex NLP task where literal meaning often contradicts intended sentiment, necessitating deep contextual understanding. This paper presents a winning approach for the FigLang2020 Sarcasm Detection challenge. The authors introduce Contextual Response Augmentation (CRA), a method to utilize large-scale unlabeled data, and a hybrid model architecture integrating BERT, BiLSTM, and NeXtVLAD pooling. Their system achieved first place on both Twitter and Reddit tracks, demonstrating the effectiveness of intelligent data augmentation and sophisticated feature aggregation in capturing subtle sarcastic cues.
Introduction
Detecting sarcasm is notoriously difficult for automated systems because the true meaning of a statement is often the opposite of its literal interpretation. A phrase like "That's just what I needed!" can be sincere or sarcastic depending entirely on the preceding context. Current research faces three primary hurdles: the scarcity of high-quality labeled datasets, the high variability in conversation length, and the limitations of standard pooling methods in capturing temporal nuances.
Proposed Methodology
Model Architecture
The core model employs a stacked architecture designed to extract and refine linguistic features. It begins with BERT (Large-Cased) to capture deep bidirectional representations. These representations are passed through a BiLSTM layer to model temporal dependencies across the sequence of tokens. Finally, the model uses NeXtVLAD, a differentiable pooling layer originally developed for video classification. Unlike standard mean or max pooling, NeXtVLAD clusters features to highlight the most salient parts of the conversation, effectively acting as an attention mechanism for sarcastic triggers.
Contextual Response Augmentation (CRA)
To overcome data scarcity, the authors developed Contextual Response Augmentation (CRA). This technique allows the model to learn from unlabeled conversational data by following a four-step process:
- Extracting a response from an unlabeled dataset.
- Retrieving similar responses from a labeled database.
- Ranking these candidates against the actual conversation context using BERT’s Next Sentence Prediction (NSP) head.
- Transferring the label of the most "contextually conforming" candidate to the new sample.
Context Ensemble
To address varying conversation lengths, the researchers implemented a Context Ensemble strategy. Rather than truncating history to a fixed length, they trained multiple model versions on different context window sizes (e.g., the last turn vs. the last three turns). Ensembling these models allows the system to remain robust across both short exchanges and longer threads.
Experimental Setup and Results
The models were evaluated on the FigLang2020 Sarcasm Challenge datasets, consisting of approximately 5,000 Twitter samples and 4,400 Reddit samples. To power the CRA method, the authors also crawled 100,000 unlabeled texts from both platforms.
The proposed system, submitted under the team name miroblog, dominated the competition:
- Twitter Track: Ranked 1st out of 35 teams with an F1 score of 0.931.
- Reddit Track: Ranked 1st out of 34 teams with an F1 score of 0.834.
A key finding was the impact of CRA; on the Twitter validation set, the F1 score jumped from 0.854 to 0.897 when unlabeled data was included, proving that intelligent augmentation can significantly enhance performance.
Discussion and Future Work
The success of the NeXtVLAD pooling suggests that sarcasm detection benefits from mechanisms that can isolate specific sarcastic cues, such as exaggerated adjectives or specific hashtags (e.g., #NotReally), from neutral text. However, the model still faces challenges with external knowledge and niche community jargon. Future research will focus on integrating common-sense reasoning and external knowledge bases to better interpret cultural contexts and specialized slang.
Summary updated