Sarcasm-GPT: advancing sarcasm detection with large language models
Abstract Sarcasm detection is a nuanced challenge in natural language processing, requiring deep understanding of textual and contextual cues. We present Sarcasm-GPT, a large language model-based model that integrates four key components: prompt template generation, retrieval-augmented generation, chain-of-thought generation, and a context fusion module. Together, these modules enrich contextual modeling, enable systematic reasoning, and seamlessly incorporate multimodal information, significantly boosting sarcasm detection accuracy. Extensive experiments, including ablation studies, confirm the complementary contributions of each module and demonstrate substantial performance gains over baselines. Additionally, our findings highlight the importance of context length in balancing interpretive accuracy and computational efficiency. The code is available at Sarcasm-GPT.
Authors
- Zuhe Li (ORCID: https://orcid.org/0000-0002-2511-3226)
- Yushan Pan (ORCID: https://orcid.org/0000-0002-6877-3937)
- Qiuyu Li (ORCID: https://orcid.org/0009-0002-3383-7416)
- Weihua Liu (ORCID: https://orcid.org/0000-0002-1967-6583)
- Xianfei He (ORCID: https://orcid.org/0009-0003-9401-8040)
Institutions
- China Mobile (China) (CN)
- Zhengzhou University of Light Industry (CN)
- Xi’an Jiaotong-Liverpool University (CN)
Publication Details
- Journal
- The Computer Journal
- Published
- 2025-04-26
- DOI
- https://doi.org/10.1093/comjnl/bxaf055
- Citations
- 1
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 2.48
Funders
- National Natural Science Foundation of China
- Natural Science Foundation of Henan Province