Introduction
Sarcasm is a sophisticated linguistic "pattern-breaker" that often requires contextual understanding to decode. While humans naturally compare a statement against conversational expectations or real-world facts, most automated sarcasm detection systems treat sentences as isolated units. This approach fails to capture "conversation-dependent" sarcasm, where a response appears literal unless viewed alongside the preceding comment.
Researchers at Oregon State University have developed the Attentional Multi-Reading (AMR) model to address these challenges. AMR is an end-to-end deep learning architecture that combines an "utterance-only" view with a "conversation-dependent" view through a novel re-reading mechanism. This allows the model to achieve state-of-the-art performance on large-scale datasets without requiring external metadata like user profiles.
The AMR Framework
The AMR framework is designed to identify both obvious sarcasm (utterance-sufficient) and subtle sarcasm (conversation-dependent). Its architecture is divided into two parallel paths that eventually merge for final classification.
Architecture Components
- Input Encoding: The model processes both the "Comment" (context) and the "Response" (target) through Bidirectional LSTMs (BiLSTMs) to capture word dependencies in both directions.
- Attention Mechanism: A soft alignment method identifies which words in the context relate to specific words in the response, calculating "matching vectors" based on their differences and products.
- The Re-Reading Phase: A key innovation of this model is the use of a second set of BiLSTMs to "re-read" the sequences after the attention step. This helps the model retain the sequential flow of the conversation that might otherwise be lost.
- Dual-Path Classification: The model analyzes the response in isolation (Path A) and its interaction with the context (Path B). The final prediction is a weighted combination of these paths, allowing the model to dynamically decide how much it needs to rely on context for any given sample.
Experimental Setup and Datasets
The study utilized the SARC (Self-Annotated Reddit Corpus) dataset, the largest available sarcasm dataset with over a million samples. Unlike third-party annotated sets, SARC is self-labeled by authors using the /s tag, providing a highly reliable ground truth. The authors evaluated the model on SARC V2.0 and the $SARC_{csd}$ subset to ensure fair comparison with existing literature.
Analysis and Key Results
On the $SARC_{csd}$ dataset, the AMR model achieved an F1-score of 68% and an accuracy of 70%, outperforming previous text-only models. While some models using "Personality Features" (user history) score higher, AMR is more versatile as it relies purely on the linguistic content of the conversation.
The Role of Context and Re-Reading
Ablation studies revealed that for short comments, the utterance-only path was often more accurate. However, for longer, complex interactions, the conversation-dependent path was essential. Interestingly, the "Re-Reading" stage had a more significant impact on performance than the attention mechanism itself, suggesting that capturing the sequence of interaction is as vital as finding word-level links.
Interpretability and Saliency
One of the strengths of the AMR model is its interpretability. By visualizing "attention saliency"—the gradient of the prediction with respect to attention weights—the researchers could pinpoint exactly which word pairs triggered a sarcasm alert.
Limitations and Future Work
The current model primarily struggles with External Knowledge Dependent (E.K.D.) sarcasm, which requires facts not present in the text (e.g., specific political events). Future work aims to incorporate world knowledge databases into the disambiguation procedure. Additionally, while the authors avoided user profiling to maintain generality, they acknowledge that integrating linguistic analysis with user history could further enhance accuracy.
Summary updated