Abstract
The increased use of large language models (LLMs) across real-world applications necessitates robust mechanisms to verify their factual accuracy. Evaluating free-form responses in open domains remains a significant challenge due to fragmented benchmarks and unverified automated evaluation pipelines. We propose OpenFactCheck, a unified framework for building customized fact-checking systems, benchmarking LLM factuality, and evaluating the reliability of automated fact-checkers. OpenFactCheck provides a modular infrastructure to standardize evaluation and accelerate progress in hallucination mitigation.
Introduction
Large Language Models (LLMs) are prone to generating "hallucinations"—content that is linguistically fluent but factually incorrect. In open-domain settings, evaluating these outputs is difficult because researchers often use disparate datasets and metrics, making cross-study comparisons nearly impossible. Furthermore, as researchers turn to automated LLM-based pipelines (e.g., FacTool, RARR) to scale evaluation, a new problem arises: these "graders" are themselves imperfect. OpenFactCheck addresses these bottlenecks by providing a unified, open-source framework to build, evaluate, and audit fact-checking systems.
The OpenFactCheck Framework
The core of OpenFactCheck is its modular architecture, which allows for the customization and evaluation of fact-checking pipelines.
The framework consists of three interconnected modules:
- CustChecker (Customized Fact-Checker): A plug-and-play pipeline for building automated fact-checkers. It abstracts the process into three steps: a Claim Processor (decomposing text into atomic claims), a Retriever (fetching evidence), and a Verifier (judging truthfulness).
- LLMEval: A unified evaluation module that assesses an LLM’s factuality across diverse scenarios using standardized questions and generating diagnostic reports on specific factual weaknesses.
- CheckerEval: A benchmarking tool for automated fact-checkers. It compares the judgments of a custom fact-checker against human-annotated ground truth, ranking systems on accuracy, latency, and cost.
Standardized Benchmarking Datasets
To support rigorous evaluation, OpenFactCheck aggregates existing benchmarks into two comprehensive meta-datasets.
- FactQA (for LLMEval): A collection of 6,480 questions designed to probe three error types: Knowledge errors (missing facts), Over-commitment errors (hallucinations based on false premises), and Disability errors (inability to access real-time info).
- FactBench (for CheckerEval): A collection of human-annotated factual labels for claims extracted from LLM responses, serving as the "gold standard" to evaluate the automated fact-checkers themselves.
Key Insights and Experimental Results
The authors' evaluation of state-of-the-art models and fact-checking pipelines yielded several critical findings:
- The "Snowballing" Phenomenon: LLMs often fail not due to a lack of knowledge, but because they over-commit to early mistakes in a sequence. GPT-4, for instance, could identify 87% of its own errors when asked to review its generated content, suggesting the generation process—not the internal knowledge base—is the primary bottleneck.
- Fact-Checker Reliability: Automated systems are generally proficient at verifying true claims but struggle significantly with false ones. This is often caused by "noisy" evidence; search queries based on hallucinated premises return irrelevant results that confuse the verifier LLM.
- Performance and Cost: GPT-4 remains the most factual model tested, though it still struggles with false premises. Among fact-checkers, Factcheck-GPT was the most accurate but also the most expensive and slowest. Evaluating just 100 responses with a basic GPT-3.5 setup costs approximately $30, highlighting the financial barriers to large-scale factuality testing.
Conclusion
OpenFactCheck provides a necessary foundation for standardized factuality research by unifying disparate benchmarks and providing tools to audit the evaluators themselves. Future work will focus on incorporating newer models and developing more granular diagnostic tools to pinpoint specific failures within fact-checking pipelines.
Summary updated