Introduction
Large Language Models (LLMs) frequently generate "hallucinations"—text that is fluent but factually incorrect. While common mitigation strategies involve Retrieval-Augmented Generation (RAG), these methods are often limited by the availability and verifiability of online data. This paper addresses a specific subset of these errors: self-contradictory hallucinations. These occur when a model generates logically inconsistent statements within a single context. Because logical contradictions imply that at least one statement is false, identifying them provides a pathway to catching hallucinations using the model's internal reasoning without external knowledge bases.
Methodology: The ChatProtect Framework
The authors introduce ChatProtect, a three-stage pipeline designed to trigger, detect, and mitigate self-contradictions in a black-box manner:
- Triggering: To expose latent contradictions, the framework forces the model to "double-check" its knowledge. By extracting the core subject and relation from a generated sentence and prompting the model to re-complete the fact, the system samples the model's internal knowledge a second time.
- Detection: An analyzer LM (aLM) evaluates the original and re-sampled sentences. Utilizing Chain-of-Thought (CoT) prompting, the analyzer determines if the pair is logically inconsistent.
- Mitigation: When a contradiction is confirmed, an iterative algorithm instructs the model to revise the text, removing conflicting information while maintaining fluency and context.
Experimental Setup
The study evaluated four prominent models—GPT-4, ChatGPT (GPT-3.5), Llama2-70B-Chat, and Vicuna-13B—across several datasets:
- MainTestSet & 2ndTestSet: Encyclopedic descriptions of 130 diverse entities.
- PopQA: A standard benchmark to test the framework's generality in question-answering.
- Human Annotation: Expert labeling was used to establish ground truth for factuality and verifiability.
Key Results and Insights
The framework demonstrates that modern LLMs possess a "reasoning brain" that is often more reliable than their "knowledge memory." Key findings include:
- Detection Accuracy: The system achieved high performance, with ChatGPT reaching an F1 score of approximately 80% in detecting contradictions across various generator models.
- Mitigation Success: The iterative mitigation process successfully removed up to 89.5% of triggered self-contradictions while retaining nearly 100% of non-conflicting informative facts.
- The Verifiability Gap: Notably, 35.2% of ChatGPT's self-contradictions were found to be unverifiable via standard search engines, highlighting the unique value of internal consistency checks over RAG alone.
Discussion and Limitations
While ChatProtect is highly effective at identifying internal logic failures, it is not a universal solution for all hallucinations. If a model is consistently incorrect (generating the same false claim twice), the framework will not flag the error. Additionally, the current implementation focuses on contradictions at the same text position; future work is required to address contradictions spanning long-form documents. Despite these limitations, the framework significantly improves factual consistency and offers a scalable, search-independent method for enhancing LLM reliability.
Summary updated