SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Models

AI-generated keywords: Generative Language Models

AI-generated Key Points

  • Generative Large Language Models (LLMs) such as GPT-3 can generate highly fluent and realistic responses to a wide range of user prompts.
  • However, LLMs have a tendency to hallucinate facts and make non-factual statements, which can undermine trust in their output.
  • Existing fact-checking approaches require access to token-level output probability distribution or external databases interfaced via separate modules, which may not always be available or feasible.
  • "SelfCheckGPT" is a simple sampling-based approach that can be used to fact-check black-box models in a zero-resource fashion without an external database.
  • The approach leverages the idea that if an LLM has knowledge of a given concept, sampled responses are likely to contain consistent facts. In contrast, for hallucinated facts, stochastically sampled responses are likely to diverge and contradict each other.
  • SelfCheckGPT can detect both factual and non-factual sentences and rank passages in terms of factuality.
  • Comparing with several existing baselines, SelfCheckGPT outperformed them in passage factuality assessment while having AUC-PR scores comparable to grey-box methods in sentence hallucination detection.
  • SelfCheckGPT offers a promising solution for detecting hallucinations in LLM-generated texts without relying on external databases or token-level probability distributions.
  • By providing a simple and effective approach for fact-checking, SelfCheckGPT can help improve the trustworthiness of LLM-generated texts in various applications including automatic report drafting, virtual assistants, and summarization systems.
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Potsawee Manakul, Adian Liusie, Mark J. F. Gales

License: CC BY 4.0

Abstract: Generative Large Language Models (LLMs) such as GPT-3 are capable of generating highly fluent responses to a wide variety of user prompts. However, LLMs are known to hallucinate facts and make non-factual statements which can undermine trust in their output. Existing fact-checking approaches either require access to token-level output probability distribution (which may not be available for systems such as ChatGPT) or external databases that are interfaced via separate, often complex, modules. In this work, we propose "SelfCheckGPT", a simple sampling-based approach that can be used to fact-check black-box models in a zero-resource fashion, i.e. without an external database. SelfCheckGPT leverages the simple idea that if a LLM has knowledge of a given concept, sampled responses are likely to be similar and contain consistent facts. However, for hallucinated facts, stochastically sampled responses are likely to diverge and contradict one another. We investigate this approach by using GPT-3 to generate passages about individuals from the WikiBio dataset, and manually annotate the factuality of the generated passages. We demonstrate that SelfCheckGPT can: i) detect non-factual and factual sentences; and ii) rank passages in terms of factuality. We compare our approach to several existing baselines and show that in sentence hallucination detection, our approach has AUC-PR scores comparable to grey-box methods, while SelfCheckGPT is best at passage factuality assessment.

Submitted to arXiv on 15 Mar. 2023

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

AI assistant instructions?

Results of the summarizing process for the arXiv paper: 2303.08896v1

Generative Large Language Models (LLMs) such as GPT-3 have shown impressive capabilities in generating highly fluent and realistic responses to a wide range of user prompts. However, one major concern with LLMs is their tendency to hallucinate facts and make non-factual statements, which can undermine trust in their output. Existing fact-checking approaches either require access to token-level output probability distribution or external databases interfaced via separate modules, which may not always be available or feasible. To address this issue, researchers have proposed "SelfCheckGPT," a simple sampling-based approach that can be used to fact-check black-box models in a zero-resource fashion without an external database. The approach leverages the idea that if an LLM has knowledge of a given concept, sampled responses are likely to contain consistent facts. In contrast, for hallucinated facts, stochastically sampled responses are likely to diverge and contradict each other. The researchers investigated the effectiveness of SelfCheckGPT by using GPT-3 to generate passages about individuals from the WikiBio dataset and manually annotating the factuality of the generated passages. They demonstrated that SelfCheckGPT can detect both factual and non-factual sentences and rank passages in terms of factuality. Comparing their approach with several existing baselines, they found that SelfCheckGPT outperformed them in passage factuality assessment while having AUC-PR scores comparable to grey-box methods in sentence hallucination detection. While uncertainty metrics such as token probability and perplexity can also be used for hallucination detection, they require access to full output token-level probability distribution information that may not always be available. Moreover, current uncertainty metrics only assess uncertainty relative to the model's training data rather than assessing whether generated outputs align with factual information outside the model's training data. Overall, SelfCheckGPT offers a promising solution for detecting hallucinations in LLM-generated texts without relying on external databases or token-level probability distributions. By providing a simple and effective approach for fact-checking, SelfCheckGPT can help improve the trustworthiness of LLM-generated texts in various applications, including automatic report drafting, virtual assistants, and summarization systems.
Created on 25 May. 2023

Assess the quality of the AI-generated content by voting

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.

Similar papers summarized with our AI tools

Navigate through even more similar papers through a

tree representation

Look for similar papers (in beta version)

By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.