Abstract
Sarcasm detection is a challenging task in natural language processing due to the inherent incongruity between literal and intended meanings. This paper proposes the Affective Dependency Graph Convolutional Network (ADGCN), a novel model that leverages both grammatical structure and emotional contradictions through interconnected graphs. By utilizing Graph Convolutional Networks (GCNs) to integrate affective knowledge and syntactic dependencies, ADGCN effectively captures long-range incongruities. Experimental results across six benchmark datasets demonstrate that ADGCN outperforms state-of-the-art methods, achieving significant improvements in accuracy and F1-score.
Introduction
Sarcasm is a sophisticated form of communication where the intended meaning is the opposite of the literal words used. For instance, in the sentence "I love when people ignore me," the positive sentiment of "love" contradicts the negative context of "ignore." Detecting such irony is difficult for traditional NLP models because the contradictory elements may be separated by numerous "noise" words. Current sequence-based models often fail to capture these long-range dependencies and can be distracted by irrelevant contextual information.
Methodology: The ADGCN Framework
To address these challenges, the researchers developed the Affective Dependency Graph Convolutional Network (ADGCN). The model shifts the focus from purely sequential processing to a structural and emotional analysis of sentences.
The framework operates in three primary stages:
- Graph Construction: For each sentence, two distinct graphs are generated:
- Affective Graph: Utilizing SenticNet, an external knowledge base, the model calculates emotional distances between words. A strong link is established between words with high emotional disparity (e.g., "love" vs. "ignore").
- Dependency Graph: Standard syntax parsing (via spaCy) is used to link words based on their grammatical relationships, bridging the gap between distant but related terms.
- Contextual Representation: The model employs Bi-LSTMs (or BERT in enhanced versions) to capture the sequential meaning and word order.
- Graph Convolutional Networks (GCNs): The GCN serves as the core processing unit, interactively analyzing the affective and dependency graphs. This allows the model to "highlight" sarcastic patterns by facilitating information flow between contradictory nodes.
- Attention Mechanism: An attention layer identifies the most critical "linchpin" clues to inform the final classification.
Experimental Setup
The ADGCN model was rigorously tested on six established benchmark datasets representing diverse social media environments:
- Internet Argument Corpus (IAC): V1 and V2, featuring forum-style debates.
- Twitter: Datasets from Riloff and Ptáček, characterized by short, hashtag-rich posts.
- Reddit: Subsets from /r/movies and /r/technology.
Results and Discussion
The ADGCN consistently established a new state-of-the-art performance across all datasets. Compared to previous top-tier models like MIARN, ADGCN demonstrated improvements of up to 7.65% in Accuracy and 7.78% in F1-score. Integrating a BERT-base model (ADGCN-BERT) further boosted performance, achieving over 90% accuracy on the Twitter-2 dataset.
A key finding was the "3-layer sweet spot" for GCNs. As shown in the figure above, performance generally peaks at three layers. Fewer layers fail to capture sufficient complexity, while exceeding this depth leads to "over-smoothing," where word-specific features become indistinguishable. Ablation studies further confirmed that the inclusion of the Affective Graph is vital, as its removal led to a significant decline in detection capabilities.
Conclusion
The ADGCN model successfully demonstrates that treating sentiment as a structural feature—rather than just a label—is highly effective for sarcasm detection. By fusing syntactic dependencies with affective knowledge, the model can navigate the complexities of irony more accurately than sequence-only approaches. Future work will explore refining graph construction and applying this structural methodology to other forms of figurative language, such as metaphors and humor.
Reference: Lou, C., Liang, B., Gui, L., He, Y., Dang, Y., & Xu, R. (2021). Affective Dependency Graph for Sarcasm Detection. Proceedings of SIGIR ’21.
Summary updated