Introduction
Hallucination detection—the ability of a model to determine if an output is factually incorrect or contextually unfaithful—is a cornerstone of AI safety. While Large Language Models (LLMs) have become increasingly adept at identifying factual errors in affirmative statements, they possess a significant blind spot: negation. In human language, negation is a "small token with a big impact"; adding "not" to a sentence fundamentally alters its truth value. This research investigates whether LLMs can recognize the contextual shifts caused by negation, probing their internal states and testing common intervention strategies.
Methods and the NegHalu Dataset
To systematically study this phenomenon, the researchers introduced NegHalu, a benchmark consisting of 1,950 manually and automatically validated samples. NegHalu was constructed by "flipping" existing hallucination benchmarks including HaluEval, BamBoo, and SelfCheckGPT-WikiBio. Using GPT-4o, affirmative statements were transformed into negated ones, and hallucination labels were reassigned accordingly (e.g., a factual statement becomes a hallucination when negated).
Beyond dataset construction, the study employed Logit Lens analysis to track the model’s internal hidden states at each layer. This allowed researchers to observe when and where a model decides a statement is true or false during processing. Additionally, mitigation strategies such as In-Context Learning (ICL), Chain-of-Thought (CoT), and Knowledge Editing (AlphaEdit) were evaluated to see if they could resolve the observed performance gaps.
Key Insights: The Hallucination Bias
The analysis revealed a persistent "Hallucination Bias" in LLMs. When faced with negated text, models exhibit a strong tendency to label the text as a "hallucination," regardless of its actual faithfulness. They appear to treat negation as a signal of unreliability rather than a logical operator.
Logit Lens analysis further showed that LLMs do not fundamentally shift their internal representation of truth upon encountering a negation token. Instead of "flipping" the logic, the model treats "not" like a simple descriptive adjective. This leads to overgeneralized judgments where models often show higher confidence in their incorrect predictions for negated text than in their correct ones, suggesting the logic of negation is deeply "mis-wired" in their latent space.
Experimental Results
Performance evaluations across Llama-2, Llama-3, Mistral, and Qwen showed a near-universal collapse when negation was introduced. Performance dropped in 17 out of 18 tested scenarios across various tasks including QA, summarization, and dialogue.
As illustrated in the results, Llama-3-8B’s accuracy on HaluEval-QA plummeted from 76.5% on affirmative text to just 55.2% on negated text. Notably, common mitigation techniques like Chain-of-Thought (CoT) failed to provide consistent improvements. In many instances, CoT led to worse performance as the model's "reasoning" simply reinforced its initial biased judgment. While Knowledge Editing via AlphaEdit helped models retain affirmative knowledge while learning negated facts, it failed to resolve the systematic architectural bias in processing the "not" token.
Conclusion
The findings suggest that negation handling is a fundamental architectural or training weakness in current LLMs. Simply increasing the volume of training data may be insufficient to overcome the hallucination bias. Future work should focus on deeper architectural refinements to help LLMs treat negation as a formal logical operator and explore more complex forms of implicit or morphological negation.
Summary updated