Skip to content
Open access

Enhancing Transformers with Polarity Encoders to Detect Sarcasm

Aug 2026 · International journal of computer information systems and industrial management applications · Vol 18, pp. 662-678 · 0 citations

TL;DR

A polarity-sensitive transformer model that explicitly incorporates sentiment data in representation learning is presented, indicating that embedding-level sentiment improvement offers a sound theoretical and practical guideline in the process of expanding sarcasm detection beyond implicit contextual modeling.

Abstract

Sarcasm detection is a complex task in natural language processing because it depends on implicit mood variations, contextual comparison, and the congruence of polarity between the literal form of expression and its intended meaning. Although the transformer-based models, including BERT and DeBERTa, have been taking a great leap in performance by introducing contextual self-attention, they mainly learn sarcasm patterns with an implicit hypothesis of sentiment polarity contradictions, which define the discourse of sarcasm. In this paper, a polarity-sensitive transformer model that explicitly incorporates sentiment data in representation learning is presented to detect sarcasm. In contrast to traditional fine-tuning methods, which treat sarcasm as a generic classification problem, the methodology adds sentiment-polarity cues to the embedding space, enabling the model to fine-tune contextual representations in a polarity-sensitive way. The proposed method will improve the ability of semantic representations of a context to reflect incongruity patterns in contextual segments. The positive results of experiments on benchmark sarcasm datasets indicate that explicit polarity integration is more robust and generalizes better than traditional transformer baselines, particularly in context-specific situations. The findings indicate that embedding-level sentiment improvement offers a sound theoretical and practical guideline in the process of expanding sarcasm detection beyond implicit contextual modeling.

Read PDF

Similar papers

Review Open access Aug 2026

Sarcasm Detection Using Learning Techniques in a Social Engineering Context: A PRISMA-Based Systematic Review

A precision-aware, context-integrating sarcasm-prediction algorithm, an evaluation protocol for validation against the state of the art, and a clear methodological progression from feature-engineered classifiers, through CNN/RNN and attention hybrids, to transformer and multimodal graph architectures are presented.

Yuvraj G. Nikam, V. Singh, D. A. Shinde · 0 citations
Review Open access Sep 2026

"Sentiment Analysis: Four-Class Classification Models (Positive, Negative, Neutral, and Sarcastic) and Artificial Intelligence Challenges"

 Sentiment Analysis (SA) is a fundamental application of Natural Language Processing (NLP), historically relying on a three-way classification (positive, negative, neutral) to evaluate public opinion trends. However, sarcasm poses a critical challenge to these systems due to "polarity inversion," leading to misleading...

Abeiad Abulqasim Al-Taqazi, Mourad Hussein Kaib, Sulaiman Abduljalil Al-Moudi · 0 citations
Sep 2026

A DoubleBERT-based Multi-model for Sarcasm Prediction from Text, Emoji, and Numbers

Sarcasm detection remains a challenging task in Natural Language Processing (NLP) because sarcasm often conveys a negative meaning with positive words. Furthermore, the extensive use of social media has significantly transformed the way people communicate, making automatic sarcasm detection gradually important. Tra...

Ranganath Kanakam, Kranthi Kiran B · 0 citations
Conference Aug 2026

Detecting Explicit Hate Comment and Sarcasm in Multilingual Indonesian-English Tweets Using mDeBERTaV3

Detecting hate comment on Indonesian social media is challenging due to rapid digitalization and code-switching texts. Traditional machine learning and standard transformer models often struggle because they rely on word counts without understanding context, or entangle word meaning with positional context, often misca...

Karnelia Lengkong, Jovanna Jovanna, Stefanus Benhard et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.