[Paper Review] Self-contradictory Hallucinations of Large Language Models: Evaluation, Detection and Mitigation
The paper analyzes self-contradictory hallucinations in instruction-tuned LMs, proposing a prompting-based pipeline to trigger, detect, and iteratively mitigate contradictions, achieving strong detection and substantial reduction of contradictions without external retrieval.
Large language models (large LMs) are susceptible to producing text that contains hallucinated content. An important instance of this problem is self-contradiction, where the LM generates two contradictory sentences within the same context. In this work, we present a comprehensive investigation into self-contradiction for various instruction-tuned LMs, covering evaluation, detection, and mitigation. Our primary evaluation task is open-domain text generation, but we also demonstrate the applicability of our approach to shorter question answering. Our analysis reveals the prevalence of self-contradictions, e.g., in 17.7% of all sentences produced by ChatGPT. We then propose a novel prompting-based framework designed to effectively detect and mitigate self-contradictions. Our detector achieves high accuracy, e.g., around 80% F1 score when prompting ChatGPT. The mitigation algorithm iteratively refines the generated text to remove contradictory information while preserving text fluency and informativeness. Importantly, our entire framework is applicable to black-box LMs and does not require retrieval of external knowledge. Rather, our method complements retrieval-based methods, as a large portion of self-contradictions (e.g., 35.2% for ChatGPT) cannot be verified using online text. Our approach is practically effective and has been released as a push-button tool to benefit the public at https://chatprotect.ai/.
Motivation & Objective
- Motivate the study by highlighting self-contradiction as a key, verifiable form of non-factuality in LLM outputs.
- Define a triggering-detection-mitigation pipeline that relies only on prompting and internal reasoning, avoiding external knowledge retrieval.
- Empirically evaluate the framework across multiple modern LMs (GPT-4, ChatGPT, Llama2-70B-Chat, Vicuna-13B) and tasks (open-domain generation and QA).
- Quantify detection accuracy and effect of mitigation on text fluency and informativeness, and release a usable tool for practitioners.
Proposed method
- Define self-contradiction as two sentences about the same context that are logically inconsistent.
- Trigger contradictions by generating context-constrained candidate sentences with a gLM.
- Detect contradictions using an analyzer LM via prompting and a natural language inference-like setup.
- Mitigate by iteratively revising conflicting sentences with the analyzer LM while preserving fluency and informativeness.
- Instantiate the pipeline with prompts tailored for open-domain generation and QA, usable against black-box LMs.
- Provide an open-source tool (chatprotect.ai) and datasets for reproducibility.
Experimental results
Research questions
- RQ1How prevalent are self-contradictions across state-of-the-art instruction-tuned LLMs in open-domain generation?
- RQ2How accurately can a detector identify self-contradictions using only prompts and internal reasoning (no external retrieval)?
- RQ3To what extent can iterative mitigation reduce self-contradictions while preserving fluency and informativeness?
- RQ4Does the framework generalize to shorter question-answering tasks and retrieval-augmented setups?
- RQ5How does performance vary across different gLMs and aLMs (open-source vs proprietary)?
Key findings
- Self-contradictions are common, e.g., ChatGPT exhibits 17.7% of sentences containing self-contradictions in open-domain generation.
- A substantial portion (35.2% for ChatGPT) of self-contradictions cannot be verified using online text, limiting retrieval-based remedies.
- Using ChatGPT as the analyzer, the detection F1 reaches about 80% across gLMs, and mitigation can remove up to 89.5% of self-contradictions while maintaining informativeness.
- Mitigation preserves fluency with modest increases in perplexity across models (e.g., 0.44–1.78 in Table 3).
- The approach is effective across both proprietary and open-source LMs, though open-source models show more variability in detection/removal performance.
- The framework also adapts to retrieval-augmented QA, detecting significant self-contradictions even with retrieval.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.