Skip to main content
QUICK REVIEW

[Paper Review] Ever: Mitigating Hallucination in Large Language Models through Real-Time Verification and Rectification

Haoqiang Kang, Juntong Ni|arXiv (Cornell University)|Nov 15, 2023
Topic ModelingComputer Science5 citations
TL;DR

Ever is a real-time verification and rectification framework that detects and corrects intrinsic and extrinsic hallucinations in large language models during step-by-step text generation, significantly reducing error propagation. It improves factuality across short-form QA, biography generation, and multi-hop reasoning tasks by integrating concept-level validation and iterative correction, outperforming both retrieval-based and non-retrieval baselines with minimal runtime overhead.

ABSTRACT

Large Language Models (LLMs) have demonstrated remarkable proficiency in generating fluent text. However, they often encounter the challenge of generating inaccurate or hallucinated content. This issue is common in both non-retrieval-based generation and retrieval-augmented generation approaches, and existing post-hoc rectification methods may not address the accumulated hallucination errors that may be caused by the "snowballing" issue, especially in reasoning tasks. To tackle these challenges, we introduce a novel approach called Real-time Verification and Rectification (Ever). Instead of waiting until the end of the generation process to rectify hallucinations, Ever employs a real-time, step-wise generation and hallucination rectification strategy. The primary objective is to detect and rectify hallucinations as they occur during the text generation process. When compared to both retrieval-based and non-retrieval-based baselines, Ever demonstrates a significant improvement in generating trustworthy and factually accurate text across a diverse range of tasks, including short-form QA, biography generation, and multi-hop reasoning.

Motivation & Objective

  • To address the persistent problem of hallucination in large language models, particularly the 'snowballing' effect where initial errors propagate through sequential generation.
  • To reduce both intrinsic hallucinations (contradictions to reference) and extrinsic hallucinations (unverifiable or fabricated claims) during text generation.
  • To develop a real-time, step-wise verification and rectification mechanism that prevents error accumulation before final output is produced.
  • To enhance the trustworthiness of LLM outputs by flagging remaining extrinsic hallucinations with user warnings.
  • To ensure compatibility with existing retrieval-augmented generation (RAG) pipelines without requiring model fine-tuning.

Proposed method

  • Ever employs a three-stage pipeline: generation, validation, and rectification, applied iteratively per sentence during generation.
  • In the validation stage, the model checks each sentence for concept-level accuracy, distinguishing between intrinsic and extrinsic hallucinations using few-shot or zero-shot prompting.
  • For rectification, detected errors are corrected based on the hallucination type, with revised sentences re-validated to ensure accuracy.
  • The framework supports both non-retrieval and retrieval-augmented generation, integrating external knowledge when available.
  • Persistent extrinsic hallucinations are flagged with user warnings to improve output trustworthiness.
  • Efficiency is maintained through simplified, parallelizable prompts and minimal computational overhead, comparable to baseline retrieval methods.

Experimental results

Research questions

  • RQ1Can real-time verification and rectification reduce hallucination in large language models more effectively than post-hoc or pre-generation methods?
  • RQ2How does Ever mitigate the 'snowballing' effect of hallucinations in sequential reasoning and long-form generation?
  • RQ3To what extent can Ever improve factual consistency across diverse tasks such as short-form QA, biography generation, and multi-hop reasoning?
  • RQ4How does Ever's performance compare to state-of-the-art retrieval-based and non-retrieval baselines in terms of factuality and runtime?
  • RQ5Can Ever be effectively combined with existing RAG frameworks without requiring model fine-tuning?

Key findings

  • Ever significantly reduces hallucinations across all evaluated tasks, including short-form QA, long-form biography generation, and multi-hop reasoning, outperforming both retrieval-based and non-retrieval baselines.
  • The runtime of Ever variants (e.g., RAG+ER) is comparable to baselines, with average inference times of 115.4s on biography and 62.8s on HotpotQA using GPT-3.5 Turbo.
  • The Ever (nrg+er) variant achieved a 141.8s average runtime on biography generation, demonstrating efficiency despite real-time validation and correction.
  • In biography generation, Ever reduced misclassified examples to 11%, indicating strong factual consistency.
  • The framework effectively mitigates the 'snowballing' effect by catching and correcting errors at each step, preventing cumulative error propagation.
  • User warnings for persistent extrinsic hallucinations enhance trustworthiness by alerting users to potentially unverifiable claims.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.