Enhancing sarcasm detection on social media: A comprehensive study using LLMs and BERT with multi-headed attention on SARC
Lihong Zhang, Muhammad Faseeh, Syed Naqvi, Hu Liang, Anwar Ghani
Hunan First Normal University · COMSATS University Islamabad
Key points
From the paper's conclusion- This study addresses this challenge by leveraging transformer-based models, including BERT, GPT-3, Claude-2, and Llama-2, for sarcasm detection on a large dataset from the Self-Annotated Reddit Corpus (SARC).
Abstract
Sarcasm detection in natural language processing (NLP) remains a complex challenge, especially in social media, where contextual clues are often subtle. This study addresses this challenge by leveraging transformer-based models, including BERT, GPT-3, Claude-2, and Llama-2, for sarcasm detection on a large dataset from the Self-Annotated Reddit Corpus (SARC). The proposed method utilizes multi-head attention mechanisms to enhance model performance by capturing nuanced contextual relationships in the text. Fine-tuning of BERT, GPT-3, and Llama-2 was conducted to ensure a fair comparison and to provide a more detailed understanding of sarcasm in context. Our BERT-based model achieved state-of-the-art performance, with precision, recall, F1 score, and accuracy of 0.918, 0.917, 0.917, and 0.917, respectively, outperforming the other models. The effectiveness of our approach is demonstrated through rigorous statistical validation, ablation studies, and error analysis, providing robust evidence of its superiority. This study also highlights the significance of fine-tuning, machine translation, and multi-head attention in improving sarcasm detection.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- On the Impact of Language Nuances on Sentiment Analysis With Large Language Models: Paraphrasing, Sarcasm, and EmojisIEEE Access · 2026
- InterARM: Interpretable Affective Reasoning Model for Multimodal Sarcasm DetectionIEEE Transactions on Affective Computing · 2026
- Enhanced multimodal transformer framework for sarcasm detection with particle swarm optimization based feature fusion.Frontiers in artificial intelligence · 2026
- SEAF: Selective Semantic Enrichment and Visual Evidence Fusion for Multimodal Sarcasm DetectionarXiv · 2026
- Modeling context-induced prediction shift for Chinese sarcasm detectionITM Web of Conferences · 2026
- Context-Aware Political Misinformation Detection Across Claims and News Headlines: Multi-Seed Evaluation, Cross-Dataset Transfer, and Few-Shot AdaptationFuture Internet · 2026