Lune

EMNLP Findings2025

This is not a Disimprovement: Improving Negation Reasoning in Large Language Models via Prompt Engineering

Joshua Jose Dias Barreto, Abhik Jana

Abstract

Negation reasoning remains a challenge for large language models (LLMs), often causing incorrect interpretations of negated statements.

In this study, we analyze various LLMs for their handling of negation and propose two genres of prompts (Warning-based and Persona-based), which improve overall absolute accuracy by up to 3.17% and distractor negation accuracy by up to 25.14% over most competitive baselines. Next, we assess the robustness of LLMs by reordering prompts while preserving meaning, observing instability linked to positional encoding schemes. Further, we introduce a negative token attention score (NTAS) to quantify attention to negation words. From the comprehensive analysis, we point out that within a specific LLM family, the performance of a model (measured using accuracy) correlates more with NTAS than with model size. The code is publicly available: https://github.com/Joshua-Dias- Barreto/This-is-not-a-Disimprovement Figure 1: Improvement of Negation Reasoning using Warning-based prompt for Qwen2.5-14B, 'Default Approach' represents the Baseline Prompt and the 'Proposed Approach' represents the concatenation of Warning-based prompt and Baseline Prompt.

Ask Lune

Ask anything. The answer quotes the paper.

Lune reads all of it and the papers around it, then shows you the passages behind every answer.

Questions to start from

Lune answers from

the full paper · related work

Get the answer

Free to start. No credit card required.

Builds on9

  1. Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
  2. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra et al.NeurIPS 2022 · 5,493 citations
  3. Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingMelanie Sclar, Yejin Choi, Yulia Tsvetkov, Alane SuhrICLR 2024 · 682 citations
  4. Two Tales of Persona in LLMs: A Survey of Role-Playing and PersonalizationYu-Min Tseng, Yu-Chao Huang, Teng-Yun Hsiao, Wei-Lin Chen et al.EMNLP Findings 2024 · 87 citations
  5. An Analysis of Natural Language Inference Benchmarks through the Lens of NegationMd Mosharaf Hossain, Venelin Kovatchev, Pranoy Dutta, Tiffany Kao et al.EMNLP 2020 · 61 citations

Related papers

  1. Towards the Roots of the Negation Problem: A Multilingual NLI Dataset and Model Scaling AnalysisTereza Vrabcová, Marek Kadlcík, Petr Sojka, Michal Stefánik et al.EMNLP Findings 2025 · 1 citation
  2. How Language Models Process NegationZhejian Zhou, Tianyi Zhou, Robin Jia, Jonathan MayICML 2026
  3. This is not a Dataset: A Large Negation Benchmark to Challenge Large Language ModelsIker García-Ferrero, Begoña Altuna, Javier Álvez, Itziar Gonzalez-Dios et al.EMNLP 2023 · 8 citations
  4. NegVQA: Can Vision Language Models Understand Negation?Yuhui Zhang, Yuchang Su, Yiming Liu, Serena Yeung-LevyACL Findings 2025 · 7 citations
  5. NDAD: Negative-Direction Aware Decoding for Large Language Models via Controllable Hallucination Signal InjectionPanjia Qiu, Mingyuan Fan, Cen Chen, Daixin WangICLR 2026
Dusk over the sea between two cliffs drawn in fine vertical lines