Self-Checker: Plug-and-Play Modules for Fact-Checking with Large Language Models

Miaoran Li, Baolin Peng, Zhu Zhang · DOI

Abstract

Large Language Models (LLMs) frequently generate fluent but factually incorrect text, a phenomenon known as hallucination. To address this, we introduce SELF-CHECKER, a modular, training-free framework that leverages the reasoning capabilities of LLMs to verify complex generated content. SELF-CHECKER decomposes long-form responses into atomic claims and retrieves external evidence through a pipeline of specialized modules. We also present BINGCHECK, a new dataset specifically designed to evaluate fact-checking on long-form LLM outputs. Experimental results show that SELF-CHECKER significantly outperforms standard prompting methods, achieving 63.4% accuracy on BINGCHECK, demonstrating the effectiveness of a modular, decomposition-based approach to fact-checking.

1. Introduction

The rapid advancement of LLMs like ChatGPT has enabled the generation of high-quality text, yet these models often produce "hallucinations"—plausible-sounding but false statements. Current fact-checking benchmarks, such as FEVER, primarily focus on short, human-authored claims that do not reflect the complexity of LLM-generated paragraphs. Furthermore, existing automated fact-checkers often require intensive fine-tuning, making them difficult to adapt to new domains. SELF-CHECKER addresses these issues by providing a "plug-and-play" framework that uses few-shot prompting to perform zero-shot fact-checking.

2. The SELF-CHECKER Framework

SELF-CHECKER is organized as a multi-module pipeline coordinated by a Policy Agent. Unlike monolithic approaches that ask a model to verify a whole paragraph at once, SELF-CHECKER breaks the task into manageable sub-tasks:

  • Claim Processor: Decomposes input text into independent, verifiable "atomic" claims.
  • Query Generator: Formulates search queries for external knowledge sources based on these claims.
  • Evidence Seeker: Identifies specific sentences within retrieved documents that support or refute the claims.
  • Verdict Counselor: Aggregates evidence to assign a final veracity label (Supported, Partially Supported, Refuted, or Not Enough Info).
The modular architecture of SELF-CHECKER, illustrating the interaction between the Policy Agent and specialized modules.

This modularity allows for high flexibility; each component can be implemented via few-shot prompting and optimized or swapped without retraining the entire system.

3. Datasets and Benchmarking

The primary evaluation is conducted on BINGCHECK, a novel dataset consisting of 396 long-form LLM responses from Bing Chat, manually annotated into 3,840 claims. BINGCHECK is significantly more challenging than traditional datasets like FEVER due to its increased input length and the nature of LLM-generated errors.

A comparison of BINGCHECK with existing fact-checking datasets, showcasing its significantly higher average input length and complexity.

4. Experimental Results

On the BINGCHECK dataset, SELF-CHECKER achieved an accuracy of 63.4%, a substantial improvement over standard prompting (19.4%) and the ReAct framework (21.0%). This performance gap highlights the necessity of claim decomposition. In contrast, on the simpler FEVER dataset, SELF-CHECKER reached 56.7% accuracy, outperforming other zero-shot methods but remaining behind state-of-the-art fine-tuned models.

Analysis indicates that the system's performance is currently limited by retrieval quality rather than reasoning ability. When provided with "gold" evidence, accuracy increases significantly, suggesting that future improvements should focus on the Query Generator and Evidence Seeker modules. Additionally, the system showed high recall (86.1%) in finding evidence, though precision was lower (30.5%), indicating a tendency to over-collect information to ensure coverage.

5. Conclusion

SELF-CHECKER demonstrates that a modular, decomposition-based approach can effectively verify the factual accuracy of LLM-generated text without the need for specialized training. While challenges remain regarding latency and the precision of evidence retrieval, the framework provides a robust foundation for building more reliable AI systems. Future work will explore optimizing the Policy Agent to reduce API calls and incorporating cross-claim memory to enhance efficiency and consistency.

Summary updated

BibTeX
@inproceedings{li2024self,
  author = {Miaoran Li and Baolin Peng and Zhu Zhang},
  title = {{Self-Checker: Plug-and-Play Modules for Fact-Checking with Large Language Models}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=EEbZnXaQAt},
}
Figure