RefChecker: Reference-based Fine-grained Hallucination Checker and Benchmark for Large Language Models
Xiangkun Hu, Dongyu Ru, Lin Qiu, Qipeng Guo, Tianhang Zhang, Yang Xu, Yun Luo, Pengfei Liu, Yue Zhang, Zheng Zhang
TL;DR
This work tackles the challenge of hallucinations in large language models by introducing claim-triplets as fine-grained checking units and the RefChecker framework, which comprising a claim extractor and a verifier that compare triplets against references. It builds a comprehensive benchmark across Zero, Noisy, and Accurate Context settings, annotated with 11k triplets from 2.1k responses across seven LLMs, and demonstrates superior detection performance over previous granularities and methods. The study also provides a practical, open-source pipeline that supports both proprietary and open-source extractors and checkers, with robust correlations to human judgments. Overall, RefChecker advances reliable hallucination detection and offers actionable guidance for deploying fine-grained verification in real-world NLP tasks.
Abstract
Large Language Models (LLMs) have shown impressive capabilities but also a concerning tendency to hallucinate. This paper presents RefChecker, a framework that introduces claim-triplets to represent claims in LLM responses, aiming to detect fine-grained hallucinations. In RefChecker, an extractor generates claim-triplets from a response, which are then evaluated by a checker against a reference. We delineate three task settings: Zero, Noisy and Accurate Context, to reflect various real-world use cases. We curated a benchmark spanning various NLP tasks and annotated 11k claim-triplets from 2.1k responses by seven LLMs. RefChecker supports both proprietary and open-source models as the extractor and checker. Experiments demonstrate that claim-triplets enable superior hallucination detection, compared to other granularities such as response, sentence and sub-sentence level claims. RefChecker outperforms prior methods by 6.8 to 26.1 points on our benchmark and the checking results of RefChecker are strongly aligned with human judgments. This work is open sourced at https://github.com/amazon-science/RefChecker
