Pragmatic Metacognitive Prompting Improves LLM Performance on Sarcasm Detection

Joshua Lee, Wyatt Fong, Alexander Le, Sur Shah, Kevin Han +1 more
12/4/2024
cs.CL

No official code found. Best implementation: wyatt-fong/Pragmatic-Metacognitive-Prompting-Improves-LLM-Performance-on-Sarcasm-Detection (1 star, last commit 2024-12-17).

Abstract

Sarcasm detection is a significant challenge in sentiment analysis due to the nuanced and context-dependent nature of verbiage. We introduce Pragmatic Metacognitive Prompting (PMP) to improve the performance of Large Language Models (LLMs) in sarcasm detection, which leverages principles from pragmatics and reflection helping LLMs interpret implied meanings, consider contextual cues, and reflect on discrepancies to identify sarcasm. Using state-of-the-art LLMs such as LLaMA-3-8B, GPT-4o, and Claude 3.5 Sonnet, PMP achieves state-of-the-art performance on GPT-4o on MUStARD and SemEval2018. This study demonstrates that integrating pragmatic reasoning and metacognitive strategies into prompting significantly enhances LLMs' ability to detect sarcasm, offering a promising direction for future research in sentiment analysis.

View on arXivView PDF

Code Implementations(1)

Similar Papers

Cite this paper

@article{lee2024pragmatic,
  title  = {Pragmatic Metacognitive Prompting Improves LLM Performance on Sarcasm Detection},
  author = {Joshua Lee and Wyatt Fong and Alexander Le and Sur Shah and Kevin Han and Kevin Zhu},
  year   = {2024},
  eprint = {2412.04509},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.04509v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.04509.svg)](https://codeofpaper.com/paper/2412.04509)

Discussion