mlsanityData to 7 Oct 2026

Enhancing Sentiment Classification and Irony Detection in Large Language Models through Advanced Prompt Engineering Techniques

arXiv 2601.08302 ↗First posted 13 Jan 2026cs.CL cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

This study investigates the use of prompt engineering to enhance large language models (LLMs), specifically GPT-4o-mini and gemini-1.5-flash, in sentiment analysis tasks. It evaluates advanced prompting techniques like few-shot learning, chain-of-thought prompting, and self-consistency against a baseline. Key tasks include sentiment classification, aspect-based sentiment analysis, and detecting subtle nuances such as irony. The research details the theoretical background, datasets, and methods used, assessing performance of LLMs as measured by accuracy, recall, precision, and F1 score. Findings reveal that advanced prompting significantly improves sentiment analysis, with the few-shot approach excelling in GPT-4o-mini and chain-of-thought prompting boosting irony detection in gemini-1.5-flash by up to 46%. Thus, while advanced prompting techniques overall improve performance, the fact that few-shot prompting works best for GPT-4o-mini and chain-of-thought excels in gemini-1.5-flash for irony detection suggests that prompting strategies must be tailored to both the model and the task. This highlights the importance of aligning prompt design with both the LLM's architecture and the semantic complexity of the task.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 11 of its 31 references that are in the map. First posted on arXiv 13 Jan 2026.

Builds on

11 of 31 references.

References · 11

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  2. 2024GPT-4o System Cardcited by 4,467
  3. 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 612
  4. 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applicationscited by 428
  5. 2023Sentiment Analysis in the Era of Large Language Models: A Reality Checkcited by 262
  6. 2025Transformers Learn to Implement Multi-step Gradient Descent with Chain of Thoughtcited by 32
  7. 2024SarcasmBench: Towards Evaluating Large Language Models on Sarcasm Understandingcited by 20
  8. 2024Is Sarcasm Detection A Step-by-Step Reasoning Process in Large Language Models?cited by 14
  9. 2024Pre-trained Large Language Models for Financial Sentiment Analysiscited by 5
  10. 2024A Comprehensive Evaluation of Large Language Models on Aspect-Based Sentiment Analysiscited by 5
  11. 2024LLMs for Targeted Sentiment in News Headlines: Exploring the Descriptive-Prescriptive Dilemmacited by 3

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2023Enhance Multi-domain Sentiment Analysis of Review Texts through Prompting Strategies
  2. 2023Prompt Space Optimizing Few-shot Reasoning Success with Large Language Models
  3. 2026Evaluating Prompt Engineering Strategies for Sentiment Control in AI-Generated Texts
  4. 2025Evaluating Prompting Strategies and Large Language Models in Systematic Literature Review Screening: Relevance and Task-Stage Classification
  5. 2026Evaluating Advanced Prompting on Gemini Flash for Multi-Hop Biomedical QA
  6. 2025Irony Detection, Reasoning and Understanding in Zero-shot Learning
  7. 2025A Systematic Evaluation of LLM Strategies for Mental Health Text Analysis: Fine-tuning vs. Prompt Engineering vs. RAG
  8. 2024Evaluating Zero-Shot Multilingual Aspect-Based Sentiment Analysis with Large Language Models