Skip to main navigation Skip to search Skip to main content

An Unsupervised Method for Sarcasm Detection with Prompts

  • Qihui Lin
  • , Chenwei Lou
  • , Bin Liang
  • , Qianlong Wang
  • , Zhiyuan Wen
  • , Ruibin Mao
  • , Ruifeng Xu*
  • *Corresponding author for this work
  • Harbin Institute of Technology
  • Chinese University of Hong Kong
  • Shenzhen Stock Exchange

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Sarcasm detection is challenging in natural language processing since its peculiar linguistic expression. Thanks in part to the availability of considerable annotated resources for some datasets, current supervised learning-based approaches can achieve promising performance in sarcasm detection. In real-world scenarios, annotating data for the peculiar language expression of sarcasm proves challenging. Consequently, recent studies have delved into unsupervised learning approaches for sarcasm detection, seeking to mitigate the labor-intensive process of annotation. In this paper, we present a novel unsupervised sarcasm detection method leveraging abundant unlabeled social media data. Our approach revolves around employing prompts as a cornerstone. Initially, we gathered approximately 3 million texts from Twitter through targeted hashtag-based searches, segregating them into sarcasm and non-sarcasm categories based on associated hashtags. Subsequently, these collected texts undergo training using a pre-trained BERT model, customized for masked language modeling and coined as SarcasmBERT. This step aims to enhance the model’s grasp of sarcastic cues within the text. Finally, we devise prompts tailored for the unlabeled data to execute unsupervised sarcasm detection effectively. Our experimental findings across six benchmark datasets highlight the superiority of our method over state-of-the-art unsupervised baselines. Additionally, the integration of our SarcasmBERT into established BERT-based sarcasm detection methods showcases a direct avenue for enhancing performance, thereby illustrating its potential for immediate and substantial improvements.

Original languageEnglish
Title of host publicationCognitive Computing – ICCC 2023 - 7th International Conference Held as Part of the Services Conference Federation, SCF 2023, Proceedings
EditorsXiuqin Pan, Ting Jin, Liang-Jie Zhang
PublisherSpringer Science and Business Media Deutschland GmbH
Pages34-46
Number of pages13
ISBN (Print)9783031516702
DOIs
StatePublished - 2024
Externally publishedYes
Event7th International Conference on Cognitive Computing, ICCC 2023, Held as Part of the Services Conference Federation, SCF 2023 - Shenzhen, China
Duration: 17 Dec 202318 Dec 2023

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume14207
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference7th International Conference on Cognitive Computing, ICCC 2023, Held as Part of the Services Conference Federation, SCF 2023
Country/TerritoryChina
CityShenzhen
Period17/12/2318/12/23

Keywords

  • pre-trained language model
  • prompt
  • sentiment analysis
  • unsupervised sarcasm detection

Fingerprint

Dive into the research topics of 'An Unsupervised Method for Sarcasm Detection with Prompts'. Together they form a unique fingerprint.

Cite this