Abstract: Recent studies on hallucination in large language models (LLMs) have been actively progressing in natural language processing. However, the impact of negated text on hallucination with LLMs remains largely unexplored. In this paper, we set three important yet unanswered research questions and aim to address them. To derive the answers, we investigate whether LLMs can recognize contextual shifts caused by negation and still reliably distinguish hallucinations comparable to affirmative cases. We also design the NegHalu dataset by reconstructing existing hallucination detection datasets with negated expressions. Our experiments demonstrate that LLMs struggle to detect hallucinations in negated text effectively, often producing logically inconsistent or unfaithful judgments. Moreover, we trace the internal state of LLMs as they process negated inputs at the token level and reveal the challenges of mitigating their unintended effects.
1. Introduction
Hallucination detection—the ability of a model to determine if a generated output is factually grounded—is a cornerstone of AI safety. While most research in this area focuses on affirmative statements, negation is a fundamental part of human language that flips the truth value of a sentence. This study identifies a critical gap: the inability of LLMs to reliably distinguish between a "faithful negation" (correctly stating something is not true) and a "hallucinated negation" (incorrectly stating something is not true). If a model treats "not" as a simple lexical marker rather than a logical operator, it fails to understand the contextual shift, leading to unreliable fact-checking in real-world applications.
2. Methodology and the NegHalu Dataset
To investigate this phenomenon, we introduced NegHalu, a specialized benchmark created by reconstructing three prominent hallucination detection datasets: HaluEval (QA, Dialogue, Summarization), BamBoo (long-context tasks), and SelfCheckGPT-WikiBio (biographical data).
The reconstruction process involved a "Negation Flip" strategy. Using GPT-4o, we systematically modified existing samples: if a factual statement was labeled "True," we negated it to make it "Hallucinated," and vice versa. The final NegHalu dataset consists of 1,950 high-quality, human-verified samples where negation either introduces or resolves a hallucination.
3. Internal Dynamics: The Negation Bias
Our analysis reveals a pervasive "Negation Bias" within LLMs. Models exhibit a strong tendency to classify negated text as a hallucination, regardless of the actual factual grounding. For instance, if a model encounters the phrase "The team does not play football," it is significantly more likely to flag it as a hallucination even if the underlying knowledge base confirms the team is a baseball team.
Internal analysis via the "logit lens" technique suggests that LLMs do not treat negation as a logical flip. Instead, the "not" token acts as a noise signal that increases model uncertainty or pushes the internal state toward a default "hallucination" judgment. Surprisingly, when models make mistakes on negated text, they often do so with higher internal probability (confidence) than when they are correct.
4. Experimental Results
Performance degradation was nearly universal across all tested models, including Llama-2, Llama-3, Mistral, and Qwen. In 17 out of 18 tested scenarios, models performed significantly worse on negated text than on affirmative text.
As shown in the results, the performance drop is particularly acute in long-context tasks. On the BamBoo AbsHallu task, Llama-3-8B’s F1 score plummeted from 72.7 on affirmative text to 52.4 on negated text. Furthermore, in the HaluEval subset, the number of "Hallucination = YES" predictions increased by 21.0% upon introducing negation, while correct "Faithful" judgments dropped by 74.8%.
5. Conclusion and Future Work
Our findings suggest that standard mitigation strategies like Chain-of-Thought (CoT) reasoning or In-Context Learning (ICL) are insufficient "band-aids" that fail to address the underlying architectural inability to process logical negation. Future research must focus on deeper architectural refinements to ensure LLMs can internally represent logical negation as a truth-value flipper. Until models can reliably handle these linguistic shifts, they remain vulnerable in high-stakes fact-checking environments.
Summary updated