Sarcasm Analysis Using Conversation Context
Summary
Most sarcasm detectors judge a message on its own. Yet the ironic intent of a reply often becomes clear only when you see what it answers. This work treats the current message (C TURN) as the unit to label. It uses the preceding message (P TURN) and, when available, the following reply (S TURN) as conversational context. The authors compare SVM classifiers with linguistically motivated features against several LSTM architectures that encode both the context and the current turn. These include a conditional LSTM and models with sentence-level attention. Experiments cover Twitter and two discussion-forum corpora, IAC v2 and Reddit, which differ in post length and in how gold labels were produced. The context-aware LSTMs outperform an LSTM that sees only the current turn, with the prior turn being especially useful. The authors also analyse attention weights qualitatively and compare them with crowdsourced human judgments. The judgments cover which context sentences provoke the sarcasm and which sentence of a reply carries it. The study argues that context modelling matters for reading speaker intent in online dialogue.
Key points
- Three research questions:
- Whether context helps classification.
- Which part of the P TURN triggers a sarcastic reply.
- Which sentence in a multi-sentence sarcastic C TURN is the sarcastic one.
- Data and labels:
- Twitter and Reddit are self-labeled by their authors.
- IAC v2 (Oraby et al. 2016) is labeled through crowdsourcing, so its labels reflect perceived rather than intended sarcasm.
- A cross-corpus experiment trains on Reddit and tests on IAC v2.
- Models:
- The baselines are SVMs with discrete features.
- The neural models are LSTM variants: a conditional LSTM (Rocktäschel et al. 2016) and LSTMs with sentence-level attention over context and current turn.
- The models receive as context the preceding turn, the following turn, or a combination of the two.
- Human comparison: Two crowdsourcing tasks on forum posts asked annotators to:
- Mark the trigger sentences in the previous post.
- Pick the single sarcastic sentence in the reply.
- Resources: The experiments use Theano. Data and code are released on GitHub (debanjanghosh/sarcasm_context, Alex-Fabbri/deep_learning_nlp_sarcasm). The paper appeared in Computational Linguistics (2018) under CC BY-NC-ND 4.0.
Cited by
- Sarcasm Identification and Detection in Conversion Context using BERT
- Applying Transformers and Aspect-based Sentiment Analysis approaches on Sarcasm Detection
- Detecting Sarcasm in Conversation Context Using Transformer-Based Models
- Context-Aware Sarcasm Detection Using BERT
- R^3: Reverse, Retrieve, and Rank for Sarcasm Generation with Commonsense Knowledge
- Transformer-based Context-aware Sarcasm Detection in Conversation Threads from Social Media
- Linguistic Features in Automatic Sarcasm Detection
- Interpreting Verbal Irony: Linguistic Strategies and the Connection to the Type of Semantic Incongruity
- A Report on the 2020 Sarcasm Detection Shared Task
- Generalizable Sarcasm Detection is Just Around the Corner, of Course!
- C-Net: Contextual Network for Sarcasm Detection
- When did you become so smart, oh wise one?! Sarcasm Explanation in Multi-modal Multi-party Dialogues
- Is Sarcasm Detection A Step-by-Step Reasoning Process in Large Language Models?
Cite
@article{ghosh2018sarcasm,
title = {{Sarcasm Analysis Using Conversation Context}},
author = {Ghosh, Debanjan and Fabbri, Alexander R. and Muresan, Smaranda},
journal = {Computational Linguistics},
year = {2018},
doi = {10.1162/coli\_a\_00336},
eprint = {1808.07531},
archivePrefix = {arXiv},
url = {https://doi.org/10.1162/coli_a_00336}
}References
- Amir, Silvio, Byron C. Wallace, Hao Lyu, Paula Carvalho, and Mario J. Silva. 2016. Modelling context with user embeddings for sarcasm detection in social media. In Proceedings of the 20th SIGNLL Conference on Computational Natural Language Learning, pages 167–177, Berlin. find our card
- Attardo, Salvatore. 2000. Irony markers and functions: Towards a goal-oriented theory of irony and its processing. Rask, 12(1):3–20. find
- Bamman, David and Noah A. Smith. 2015. Contextualized sarcasm detection on Twitter. In Ninth International AAAI Conference on Web and Social Media, pages 574–577, Oxford. find
- Bharti, Santosh Kumar, Korra Sathya Babu, and Sanjay Kumar Jena. 2017. Harnessing online news for sarcasm detection in Hindi tweets. In International Conference on Pattern Recognition and Machine Intelligence, pages 679–686. find
- Bird, Steven, Ewan Klein, and Edward Loper. 2009. Natural Language Processing with Python: Analyzing Text with the Natural Language Toolkit. O’Reilly Media, Inc. find
- Bowman, Samuel R., Gabor Angeli, Christopher Potts, and Christopher D. Manning. 2015. A large annotated corpus for learning natural language inference. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 632–642, Lisbon. ↗
- Burfoot, Clint and Timothy Baldwin. 2009. Automatic satire detection: Are you having a laugh? In Proceedings of the ACL-IJCNLP 2009 Conference, pages 161–164, Singapore. find
- Burgers, Christian, Margot Van Mulken, and Peter Jan Schellens. 2012. Verbal irony differences in usage across written genres. Journal of Language and Social Psychology, 31(3):290–310. find
- Burgers, Christian Frederik. 2010. Verbal Irony: Use and Effects in Written Discourse. Ipskamp, Nijmegen, The Netherlands. find
- Camp, Elisabeth. 2012. Sarcasm, pretense, and the semantics/pragmatics distinction*. Noûs, 46(4):587–634. ↗
- Chang, Chih-Chung and Chih-Jen Lin. 2011. LIBSVM: A library for support vector machines. ACM Transactions on Intelligent Systems and Technology, 2:27:1–27:27. find
- Cortes, Corinna and Vladimir Vapnik. 1995. Support-vector networks. Machine Learning, 20(3):273–297. ↗
- Davidov, Dmitry, Oren Tsur, and Ari Rappoport. 2010. Semi-supervised recognition of sarcasm in Twitter and Amazon. In Proceedings of the Fourteenth Conference on Computational Natural Language Learning, pages 107–116, Uppsala. find our card
- Ekman, Paul. 1992. An argument for basic emotions. Cognition & Emotion, 6(3-4):169–200. ↗ our card
- Frank, Jane. 1990. You call that a rhetorical question?: Forms and functions of rhetorical questions in conversation. Journal of Pragmatics, 14(5):723–738. ↗
- Ghosh, Aniruddha and Tony Veale. 2016. Fracking sarcasm using neural network. In Proceedings of the 7th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis, pages 161–169, San Diego, CA. ↗ our card
- Ghosh, Aniruddha and Tony Veale. 2017. Magnets for sarcasm: Making sarcasm detection timely, contextual and very personal. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 482–491, Copenhagen. find our card
- Ghosh, Debanjan, R. Alexander Fabbri, and Smaranda Muresan. 2017. The role of conversation context for sarcasm detection in online interactions. In Proceedings of the 18th Annual SIGdial Meeting on Discourse and Dialogue, pages 186–196, Saarbrücken. find our card
- Ghosh, Debanjan, Weiwei Guo, and Smaranda Muresan. 2015. Sarcastic or not: Word embeddings to predict the literal or sarcastic meaning of words. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 1003–1012, Lisbon. find our card
- Ghosh, Debanjan and Smaranda Muresan. 2018. “With 1 follower I must be AWESOME : P.” Exploring the role of irony markers in irony recognition. In Proceedings of the Twelfth International Conference on Web and Social Media, ICWSM 2018, pages 588–591, Stanford, CA. find
- Gimpel, Kevin, Nathan Schneider, Brendan O’Connor, Dipanjan Das, Daniel Mills, Jacob Eisenstein, Michael Heilman, Dani Yogatama, Jeffrey Flanigan, and Noah A. Smith. 2011. Part-of-speech tagging for Twitter: Annotation, features, and experiments. In Proceedings of the 49th Annual Meeting of the ACL, pages 42–47, Portland, OR. ↗
- González-Ibáñez, Roberto, Smaranda Muresan, and Nina Wacholder. 2011. Identifying sarcasm in twitter: A closer look. In ACL (Short Papers), pages 581–586, Portland, OR. find our card
- Grice, H. Paul, Peter Cole, and Jerry L. Morgan. 1975. Syntax and semantics. Logic and Conversation, 3:41–58. find
- Haverkate, Henk. 1990. A speech act analysis of irony. Journal of Pragmatics, 14(1):77–109. ↗
- Hochreiter, Sepp and Jürgen Schmidhuber. 1997. Long short-term memory. Neural Computation, 9(8):1735–1780. ↗
- Hu, Minqing and Bing Liu. 2004. Mining and summarizing customer reviews. In Proceedings of the Tenth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pages 168–177, Seattle, WA. find
- Huang, Yu-Hsiang, Hen-Hsen Huang, and Hsin-Hsi Chen. 2017. Irony detection with attentive recurrent neural networks. In European Conference on Information Retrieval, pages 534–540, Aberdeen. find
- Joshi, Aditya, Pushpak Bhattacharyya, and Mark J. Carman. 2017. Automatic sarcasm detection: A survey. ACM Computing Surveys, 50(5):73:1–73:22. ↗ our card
- Joshi, Aditya, Vinita Sharma, and Pushpak Bhattacharyya. 2015. Harnessing context incongruity for sarcasm detection. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 2: Short Papers), pages 757–762, Beijing. find our card
- Joshi, Aditya, Vaibhav Tripathi, Pushpak Bhattacharyya, and Mark J. Carman. 2016a. Harnessing sequence labeling for sarcasm detection in dialogue from TV series ‘Friends.’ In Proceedings of The 20th SIGNLL Conference on Computational Natural Language Learning, pages 146–155, Berlin. find our card
- Joshi, Aditya, Vaibhav Tripathi, Kevin Patel, Pushpak Bhattacharyya, and Mark Carman. 2016b. Are word embedding-based features useful for sarcasm detection? In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 1006–1011, Austin, TX. ↗ our card
- Justo, Raquel, Thomas Corcoran, Stephanie M. Lukin, Marilyn Walker, and M. Inés Torres. 2014. Extracting relevant knowledge for the detection of sarcasm and nastiness in the social web. Knowledge-Based Systems, 69:124–133. ↗
- Khattri, Anupam, Aditya Joshi, Pushpak Bhattacharyya, and Mark Carman. 2015. Your sentiment precedes you: Using an author’s historical tweets to predict sarcasm. In Proceedings of the 6th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis, pages 25–30, Lisboa. ↗ our card
- Khodak, Mikhail, Nikunj Saunshi, and Kiran Vodrahalli. 2018. A large self-annotated corpus for sarcasm. In Proceedings of the 11th edition of the Language Resources and Evaluation Conference (LREC 2018), pages 641–646, Miyazaki. find our card
- Krippendorff, Klaus. 2012. Content Analysis: An Introduction to Its Methodology. Sage. find
- Liebrecht, Christine, Florian Kunneman, and Antal Van den Bosch. 2013. The perfect solution for detecting sarcasm in tweets #not. In Proceedings of the 4th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis, pages 29–37, Atlanta, GA. find our card
- Liu, Peng, Wei Chen, Gaoyan Ou, Tengjiao Wang, Dongqing Yang, and Kai Lei. 2014. Sarcasm detection in social media based on imbalanced classification. In International Conference on Web-Age Information Management, pages 459–471. find
- Maynard, Diana and Mark Greenwood. 2014. Who cares about sarcastic tweets? Investigating the impact of sarcasm on sentiment analysis. In Proceedings of the Ninth International Conference on Language Resources and Evaluation (LREC-2014), pages 4238–4243, Reykjavik. find our card
- Mikolov, Tomas, Kai Chen, Greg Corrado, and Jeffrey Dean. 2013. Efficient estimation of word representations in vector space. CoRR, abs/1301.3781. ↗
- Mishra, Abhijit, Diptesh Kanojia, Seema Nagar, Kuntal Dey, and Pushpak Bhattacharyya. 2016. Harnessing cognitive features for sarcasm detection. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, pages 1095–1104, Berlin. ↗ our card
- Muresan, Smaranda, Roberto Gonzalez-Ibanez, Debanjan Ghosh, and Nina Wacholder. 2016. Identification of nonliteral language in social media: A case study on sarcasm. Journal of the Association for Information Science and Technology, 67(11):2725–2737. ↗
- Oraby, Shereen, Vrindavan Harrison, Amita Misra, Ellen Riloff, and Marilyn Walker. 2017. Are you serious?: Rhetorical questions and sarcasm in social media dialog. In Proceedings of the 18th Annual SIGdial Meeting on Discourse and Dialogue, pages 310–319, Saarbrücken. find our card
- Oraby, Shereen, Vrindavan Harrison, Lena Reed, Ernesto Hernandez, Ellen Riloff, and Marilyn Walker. 2016. Creating and characterizing a diverse corpus of sarcasm in dialogue. In Proceedings of the 17th Annual Meeting of the Special Interest Group on Discourse and Dialogue, pages 31–41, Los Angeles, CA. find our card
- Parikh, Ankur, Oscar Täckström, Dipanjan Das, and Jakob Uszkoreit. 2016. A decomposable attention model for natural language inference. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 2249–2255, Austin, TX. ↗ our card
- Pennebaker, James W., Roger J. Booth, R. L. Boyd, and Martha E. Francis. 2015. Linguistic inquiry and word count: LIWC 2015. Austin, TX: Pennebaker Conglomerates (www.LIWC.net). find
- Ptáček, Tomáš, Ivan Habernal, and Jun Hong. 2014. Sarcasm detection on Czech and English twitter. In Proceedings of COLING 2014, the 25th International Conference on Computational Linguistics: Technical Papers, pages 213–223, Dublin. find our card
- Rajadesingan, Ashwin, Reza Zafarani, and Huan Liu. 2015. Sarcasm detection on Twitter: A behavioral modeling approach. In Proceedings of the Eighth ACM International Conference on Web Search and Data Mining, pages 97–106, Shanghai. find
- Riloff, Ellen, Ashequl Qadir, Prafulla Surve, Lalindra De Silva, Nathan Gilbert, and Ruihong Huang. 2013. Sarcasm as contrast between a positive sentiment and negative situation. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, pages 704–714, Seattle, WA. find our card
- Rocktäschel, Tim, Edward Grefenstette, Karl Moritz Hermann, Tomáš Kočiskỳ, and Phil Blunsom. 2016. Reasoning about entailment with neural attention. In International Conference on Learning Representations (ICLR), San Juan. ↗ our card
- Schifanella, Rossano, Paloma de Juan, Joel Tetreault, and Liangliang Cao. 2016. Detecting sarcasm in multimodal social platforms. In Proceedings of the 2016 ACM on Multimedia Conference, pages 1136–1145, Amsterdam. find our card
- Sha, Lei, Baobao Chang, Zhifang Sui, and Sujian Li. 2016. Reading and thinking: Re-read LSTM unit for textual entailment recognition. In COLING, pages 2870–2879. find
- Srivastava, Nitish, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. 2014. Dropout: A simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(1):1929–1958. find
- Strapparava, Carlo and Alessandro Valitutti. 2004. Wordnet affect: An affective extension of Wordnet. In LREC, pages 1083–1086, Lisbon. find our card
- Sutskever, Ilya, Oriol Vinyals, and Quoc V. Le. 2014. Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pages 3104–3112, Montreal. ↗
- Tai, Kai Sheng, Richard Socher, and Christopher D. Manning. 2015. Improved semantic representations from tree-structured long short-term memory networks. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 1556–1566, Beijing. find
- Tchokni, Simo, Diarmuid O. Séaghdha, and Daniele Quercia. 2014. Emoticons and phrases: Status symbols in social media. In Eighth International AAAI Conference on Weblogs and Social Media, pages 485–494, Ann Arbor, MI. find
- Veale, Tony and Yanfen Hao. 2010. Detecting ironic intent in creative comparisons. In European Conference on Artificial Intelligence, 215:765–770. ↗
- Vinyals, Oriol, Łukasz Kaiser, Terry Koo, Slav Petrov, Ilya Sutskever, and Geoffrey Hinton. 2015. Grammar as a foreign language. In Advances in Neural Information Processing Systems, pages 2773–2781, Montreal. ↗
- Walker, Marilyn A., Jean E. Fox Tree, Pranav Anand, Rob Abbott, and Joseph King. 2012. A corpus for research on deliberation and debate. In LREC, pages 812–817, Istanbul. find our card
- Wallace, Byron C., Laura Kertz Do Kook Choe, Laura Kertz, and Eugene Charniak. 2014. Humans require context to infer ironic intent (so computers probably do, too). In ACL (2), pages 512–516, Baltimore, MD. find
- Wang, Zelin, Zhijian Wu, Ruimin Wang, and Yafeng Ren. 2015. Twitter sarcasm detection exploiting a context-based model. In International Conference on Web Information Systems Engineering, pages 77–91, Miami, FL. find
- Wilson, Theresa, Janyce Wiebe, and Paul Hoffmann. 2005. Recognizing contextual polarity in phrase-level sentiment analysis. In Proceedings of the Conference on Human Language Technology and Empirical Methods in Natural Language Processing, pages 347–354, Vancouver. find
- Xu, Kelvin, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. 2015. Show, attend and tell: Neural image caption generation with visual attention. In International Conference on Machine Learning, pages 2048–2057, Lille. ↗ our card
- Yang, Zichao, Diyi Yang, Chris Dyer, Xiaodong He, Alex Smola, and Eduard Hovy. 2016. Hierarchical attention networks for document classification. In Proceedings of NAACL-HLT, pages 1480–1489, San Diego, CA. find our card
- Yin, Wenpeng, Hinrich Schütze, Bing Xiang, and Bowen Zhou. 2016. ABCNN: Attention-based convolutional neural network for modeling sentence pairs. Transactions of the Association for Computational Linguistics, 4:259–272. ↗ our card
- Zaremba, Wojciech, Ilya Sutskever, and Oriol Vinyals. 2014. Recurrent neural network regularization. arXiv preprint arXiv:1409.2329. ↗ our card
- Zayats, Victoria and Mari Ostendorf. 2018. Conversation modeling on Reddit using a graph-structured LSTM. Transactions of the Association for Computational Linguistics, 6:121–132. ↗
This page in Markdown → https://md.research.elamur.ai/free/en/papers/ghosh-2018-sarcasm-analysis-conversation-context/