Preprint
Large Language Models

Selfcheckgpt: Zero-resource black-box hallucination detection for generative large language models

January 1, 2023

0

Citations

0

Influential Citations

Venue

2023

Year

Abstract

… , and is the first zero-resource hallucination detection solution that can be applied to black-… SelfCheckGPT is a highly effective hallucination detection method that can even outperform …

Analysis

Why This Paper Matters

Hallucinations in large language models (LLMs) remain a critical barrier to their reliable deployment, especially in high-stakes domains like healthcare, law, and education. Existing detection methods often require access to internal model probabilities (white-box) or external knowledge bases, which are not always available or practical. SelfCheckGPT addresses this gap by introducing a zero-resource, black-box approach that only needs the model's own outputs, making it widely applicable to any generative LLM, including proprietary APIs.

The paper's significance lies in its simplicity and effectiveness. By leveraging the idea that hallucinated content is often inconsistent across multiple sampled responses, SelfCheckGPT turns the model's stochasticity into a signal for factuality. This aligns with the broader trend of using self-consistency for reasoning and verification, but applies it specifically to hallucination detection. The method's zero-resource nature means it can be used immediately on any existing LLM without additional training or external data, which is a major practical advantage.

Technical Contributions

  • Zero-resource black-box detection: SelfCheckGPT requires no external knowledge bases, no fine-tuning, and no access to internal model states, making it the first method of its kind.
  • Sampling-based consistency checking: The method generates multiple samples from the LLM and computes consistency between the original response and the samples, using natural language inference (NLI) or token-level probability comparisons.
  • Sentence-level hallucination scoring: It provides fine-grained, sentence-level hallucination scores, allowing users to identify specific hallucinated spans rather than just a whole-response score.
  • Versatility: The approach can be applied to any generative LLM, including black-box APIs, and can be adapted to different consistency measures (e.g., NLI, BERTScore, or token-level log-probabilities).

Results

The abstract indicates that SelfCheckGPT is "highly effective" and can "even outperform" existing methods, though specific numbers are not provided in the truncated abstract. The paper likely reports correlation with human judgments (e.g., Spearman or Pearson correlation) on datasets like WikiBio and other factuality benchmarks. The key result is that SelfCheckGPT achieves superior or comparable performance to methods that use external knowledge or white-box access, demonstrating that sampling-based consistency is a strong signal for hallucination detection.

Significance

SelfCheckGPT has broad implications for AI safety and reliability. By enabling hallucination detection without any additional resources, it lowers the barrier for practitioners to audit and trust LLM outputs. This is particularly important as LLMs are increasingly deployed via APIs where internal access is restricted. The method also opens up new research directions in self-verification and consistency-based factuality, potentially leading to more robust generation techniques that minimize hallucinations at the source. Overall, SelfCheckGPT is a timely and practical contribution that addresses a pressing need in the AI community.