SAC3: Reliable Hallucination Detection in Black-Box Language Models via Semantic-aware Cross-check Consistency

Jiaxin Zhang, Zhuohang Li, Kamalika Das, Bradley A. Malin, Sricharan Kumar
11/3/2023
cs.CL

No official code found. Best implementation: intuit/sac3 (39 stars, Apache-2.0, last commit 2025-01-18).

Abstract

Hallucination detection is a critical step toward understanding the trustworthiness of modern language models (LMs). To achieve this goal, we re-examine existing detection approaches based on the self-consistency of LMs and uncover two types of hallucinations resulting from 1) question-level and 2) model-level, which cannot be effectively identified through self-consistency check alone. Building upon this discovery, we propose a novel sampling-based method, i.e., semantic-aware cross-check consistency (SAC3) that expands on the principle of self-consistency checking. Our SAC3 approach incorporates additional mechanisms to detect both question-level and model-level hallucinations by leveraging advances including semantically equivalent question perturbation and cross-model response consistency checking. Through extensive and systematic empirical analysis, we demonstrate that SAC3 outperforms the state of the art in detecting both non-factual and factual statements across multiple question-answering and open-domain generation benchmarks.

View on arXivView PDF

Code Implementations(1)

intuit/sac3Community100%
Apache-2.0

Official repo for SAC3: Reliable Hallucination Detection in Black-Box Language Models via Semantic-aware Cross-check Consistency

398Python, Jupyter NotebookOct 24, 20231 years agoApache-2.0
blackboxconsistencyhallucinationslarge-language-modelsllm+2 more

Similar Papers

Cite this paper

@article{zhang2023sac,
  title  = {SAC3: Reliable Hallucination Detection in Black-Box Language Models via Semantic-aware Cross-check Consistency},
  author = {Jiaxin Zhang and Zhuohang Li and Kamalika Das and Bradley A. Malin and Sricharan Kumar},
  year   = {2023},
  eprint = {2311.01740},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.01740v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.01740.svg)](https://codeofpaper.com/paper/2311.01740)

Discussion