On Sarcasm Detection with OpenAI GPT-based Models

Montgomery Gole, Williams-Paul Nwadiugwu, Andriy Miranskyy
12/7/2023
cs.CLcs.LG

No confident code implementation found for this paper.

Abstract

Sarcasm is a form of irony that requires readers or listeners to interpret its intended meaning by considering context and social cues. Machine learning classification models have long had difficulty detecting sarcasm due to its social complexity and contradictory nature. This paper explores the applications of the Generative Pretrained Transformer (GPT) models, including GPT-3, InstructGPT, GPT-3.5, and GPT-4, in detecting sarcasm in natural language. It tests fine-tuned and zero-shot models of different sizes and releases. The GPT models were tested on the political and balanced (pol-bal) portion of the popular Self-Annotated Reddit Corpus (SARC 2.0) sarcasm dataset. In the fine-tuning case, the largest fine-tuned GPT-3 model achieves accuracy and $F_1$-score of 0.81, outperforming prior models. In the zero-shot case, one of GPT-4 models yields an accuracy of 0.70 and $F_1$-score of 0.75. Other models score lower. Additionally, a model's performance may improve or deteriorate with each release, highlighting the need to reassess performance after each release.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{gole2023sarcasm,
  title  = {On Sarcasm Detection with OpenAI GPT-based Models},
  author = {Montgomery Gole and Williams-Paul Nwadiugwu and Andriy Miranskyy},
  year   = {2023},
  eprint = {2312.04642},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.04642v1}
}

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/2312.04642.svg)](https://codeofpaper.com/paper/2312.04642)

Discussion