Dual-Encoder Incongruity Transformer for Context-Aware Sarcasm Detection with Data Augmentation

Authors

  • Arti Verma
  • Rakesh Shivhare

DOI:

https://doi.org/10.24113/njp2nr34

Keywords:

Sarcasm Detection, Context-Aware Classification, Transformer Models, Semantic Incongruity, Data Augmentation.

Abstract

Sarcasm is hard for NLP systems because people rarely announce it directly—its meaning usually comes from how a sentence fits (or clashes) with what was said before. Many existing sarcasm detectors still rely on surface cues such as sentiment words, punctuation, or handcrafted lexical statistics, which often miss this “context vs. utterance” mismatch that drives sarcasm. In this paper, we introduce a Dual-Encoder Incongruity Transformer (DEIT) that treats sarcasm as an incongruity problem: the context and the target utterance are encoded separately using a shared Transformer, and their relationship is modeled using simple but effective interaction signals such as the absolute difference and element-wise product of their embeddings. Because sarcasm datasets are typically small, we also enlarge the training set to about 2000 samples through a hybrid augmentation strategy that mixes lightweight lexical edits with masked language model substitutions while keeping the class distribution balanced. On the evaluated dataset, DEIT achieves 98.33% accuracy, 98.33% F1-score, and an MCC of 0.9667, showing that explicitly modeling context–utterance incongruity leads to more reliable sarcasm detection.

Downloads

Download data is not yet available.

Author Biographies

  • Arti Verma

    M.Tech Scholar

    Department of Computer Science & Engineering

    Radharaman Engineering College  

    Bhopal, Madhya Pradesh, India.

  • Rakesh Shivhare

    Assistant Professor

    Department of Computer Science & Engineering

    Radharaman Engineering College

    Bhopal, Madhya Pradesh, India

References

1. Senthilkumar, K. K., et al. "Twitter Sarcasm Detection using Natural Language Processing and Deep Learning Techniques." 2024 Global Conference on Communications and Information Technologies (GCCIT). IEEE, 2024.

2. Pawar, Neha, and Sukhada Bhingarkar. "Machine learning based sarcasm detection on Twitter data." 2020 5th international conference on communication and electronics systems (ICCES). IEEE, 2020.

3. Sarsam, Samer Muthana, et al. "Sarcasm detection using machine learning algorithms in Twitter: A systematic review." International Journal of Market Research 62.5 (2020): 578-598.

Downloads

Published

01/24/2026

Issue

Section

Articles

How to Cite

Dual-Encoder Incongruity Transformer for Context-Aware Sarcasm Detection with Data Augmentation. (2026). SMART MOVES JOURNAL IJOSCIENCE, 12(1), 8-13. https://doi.org/10.24113/njp2nr34

Similar Articles

11-20 of 153

You may also start an advanced similarity search for this article.