Abstract
Hallucinations in Large Language Models (LLMs) pose significant risks to factual integrity, often generating plausible but incorrect information. While retrieval-augmented verification helps mitigate this, existing methods typically rely on fixed, inefficient document retrieval counts. We present a framework developed by researchers from Fudan University and Alibaba Group that utilizes Bayesian sequential analysis to adaptively determine the necessary amount of evidence for claim verification. By treating evidence as a stream rather than a static set, our method achieves state-of-the-art accuracy with significantly fewer retrieved documents, effectively optimizing the trade-off between computational cost and factual reliability.
Introduction
Large Language Models like GPT-4 are prone to "hallucinations"—generating text that sounds confident but is factually incorrect. Current mitigation strategies generally fall into two categories: sampling-based (checking consistency across multiple outputs) and evidence-based (retrieving external documents for verification).
A major limitation of current evidence-based methods is their rigidity. They typically retrieve a predetermined number of documents (e.g., "always find 20 sources") for every claim. This approach is inefficient: simple claims are over-verified at a high cost, while complex, ambiguous claims may receive insufficient evidence. This paper addresses this efficiency-accuracy trade-off by introducing a dynamic decision-making process for document retrieval.
Methodology
The proposed framework treats hallucination detection as a sequential decision-making problem, operating in four distinct stages:
- Claim Decomposition: Complex sentences are broken down into atomic "subclaims" (e.g., "Giuseppe Mariani was born in Milan"). This allows for granular analysis where a single sentence might contain both true and false components.
- Sequential Retrieval: For each subclaim, the system retrieves documents one at a time from a search engine.
- Entailment Scoring: A DeBERTa-v3 model calculates how well each retrieved document supports or contradicts the subclaim. This score updates the probability that the claim is factual via a Naive Bayes Classifier.
- Bayesian Risk Decision: This is the core innovation. After each document is processed, the system calculates the Bayesian Risk, comparing the "cost" of a potential wrong decision (false alarm or missed hallucination) against the cost of retrieving one more document. If the risk of error is lower than the cost of more data, the system stops; otherwise, it continues searching.
Experimental Results
The framework was evaluated using the SelfCheckGPT dataset, which contains 1,908 sentences human-labeled for factual accuracy.
Efficiency and Accuracy
The results demonstrate superior efficiency without compromising performance. On average, the framework required only 3.05 to 6.22 documents per sentence to reach a high-confidence judgment, whereas baseline methods often required 20 or more. At the passage level, the framework showed a 6.43% improvement in Spearman’s correlation with human judgments compared to the previous state-of-the-art, SelfCheckGPT.
The Importance of Decomposition
Ablation studies confirmed that claim decomposition is vital. Without it, accuracy drops significantly because a single sentence often contains a mix of factual and non-factual information, which confuses models attempting to verify the entire block at once.
Discussion and Conclusion
By applying Wald’s sequential analysis to the problem of LLM hallucinations, this research provides a mathematically principled way to balance the literal dollar cost of API calls against the need for factual integrity. The "adaptive stopping" mechanism allows the model to be efficient when the truth is obvious and diligent when it is obscured.
While the sequential nature of the retrieval currently introduces some latency, future iterations could explore batch-sequential processing to improve speed. Ultimately, this framework represents a significant step toward making automated fact-checking both more accurate and commercially viable.
Summary updated