Abstract
Large Language Models (LLMs) have achieved remarkable performance across a wide variety of natural language tasks. However, they have been shown to suffer from a critical limitation pertinent to 'hallucination' in their output. Recent research has focused on investigating and addressing this problem for a variety of tasks such as biography generation, question answering, abstractive summarization, and dialogue generation. However, the crucial aspect pertaining to 'negation' has remained considerably underexplored. Negation is important because it adds depth and nuance to the understanding of language and is also crucial for logical reasoning and inference. In this work, we address the above limitation and particularly focus on studying the impact of negation in LLM hallucinations. Specifically, we study four tasks with negation: 'false premise completion', 'constrained fact generation', 'multiple choice question answering', and 'fact generation'. We show that open-source state-of-the-art LLMs such as LLaMA-2-chat, Vicuna, and Orca-2 hallucinate considerably on all these tasks involving negation which underlines a critical shortcoming of these models. Addressing this problem, we further study numerous strategies to mitigate these hallucinations and demonstrate their impact.
Introduction
While Large Language Models (LLMs) are increasingly capable, they possess a significant blind spot: negation. Hallucination—the tendency of LLMs to generate factually incorrect but plausible-sounding text—is a major hurdle for reliable AI. While research has tackled hallucinations in summarization and biography generation, the role of negation has been largely ignored.
Negation is linguistically complex, requiring logical reasoning to understand the opposite or absence of a statement. Furthermore, negated statements are statistically underrepresented in training data compared to affirmative ones. This leads to a "sycophancy" problem: when a user provides a prompt with a false premise involving negation (e.g., "Saturn is not the second largest planet because..."), models often "people-please" by completing the sentence with a hallucinated justification rather than correcting the error.
Task Definitions and Methodology
The researchers evaluated three prominent 13B parameter models—LLaMA-2-chat, Vicuna-v1.5, and Orca-2—across four generative tasks designed to trigger negation-related errors.
- False Premise Completion (FPC): Completing a sentence that starts with a false negated fact.
- Constrained Fact Generation (CFG): Writing a fact using specific keywords, including the word "not."
- Multiple-Choice QA (MCQA): Selecting correct options for questions involving negation (e.g., "Which of these actors have not won an Oscar?").
- Fact Generation (FG): Generating five factual statements about a person that must contain a negation.
The evaluation suite covered various domains including Science, Sports, and Politics. Performance was verified using a mix of human annotation and LLM-based evaluation (using GPT-4 and Gemini).
Results and Mitigation Strategies
The baseline performance on negation tasks was poor. On the False Premise task, models hallucinated between 53% and 78% of the time. In Fact Generation, LLaMA-2's hallucination rate jumped from 25.77% without negation to 59.23% with negation.
To address these issues, several mitigation strategies were tested:
- Cautionary Instructions: Explicitly warning the model about potentially misleading prompts.
- In-Context Exemplars: Providing few-shot examples of correct negation handling.
- Self-Refinement: Prompting the model to review and correct its own output.
- Knowledge Augmentation (RAG): Providing external snippets from search results.
The analysis revealed several key insights:
- The Sycophancy Trap: Models often ignore internal knowledge to follow the grammatical flow of a false prompt, prioritizing helpfulness over accuracy.
- RAG as a Double-Edged Sword: Surprisingly, providing external knowledge to a model facing a false premise sometimes increased hallucinations. The model felt coerced to use the provided context to justify the user's incorrect statement.
- The Power of Mixed Exemplars: The most effective strategy was combining cautionary instructions with few-shot examples of both negated and affirmative prompts ("Inst + Exemp*"). This prevented the model from developing a bias toward always assuming the prompt was wrong.
- Explanation Tuning: Orca-2's superior performance in Multiple-Choice QA suggests that "explanation tuning"—encouraging reasoning before selection—is beneficial.
Conclusion
This study highlights a critical shortcoming in current LLMs regarding negation and logical consistency. While strategies like mixed exemplars show promise, they often introduce a trade-off, making models overly suspicious of correct premises. Future work should explore "negation-aware" fine-tuning and more sophisticated RAG systems capable of distinguishing between factual queries and misleading prompts.
Summary updated