FactTest: Factuality Testing in Large Language Models with Finite-Sample and Distribution-Free Guarantees
Not on the map. Why?
Abstract (arXiv)
The propensity of Large Language Models (LLMs) to generate hallucinations and non-factual content undermines their reliability in high-stakes domains, where rigorous control over Type I errors (the conditional probability of incorrectly classifying hallucinations as truthful content) is essential. Despite its importance, formal verification of LLM factuality with such guarantees remains largely unexplored. In this paper, we introduce FactTest, a novel framework that statistically assesses whether a LLM can confidently provide correct answers to given questions with high-probability correctness guarantees. We formulate factuality testing as hypothesis testing problem to enforce an upper bound of Type I errors at user-specified significance levels. Notably, we prove that our framework also ensures strong Type II error control under mild conditions and can be extended to maintain its effectiveness when covariate shifts exist. Our approach is distribution-free and works for any number of human-annotated samples. It is model-agnostic and applies to any black-box or white-box LM. Extensive experiments on question-answering (QA) and multiple-choice benchmarks demonstrate that FactTest effectively detects hallucinations and improves the model's ability to abstain from answering unknown questions, leading to an over 40% accuracy improvement.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 31 of its 47 references that are in the map. First posted on arXiv 4 Nov 2024.
Builds on
31 of 47 references.
References · 31
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2022Survey of Hallucination in Natural Language Generationcited by 2,056
- 2018FEVER: a large-scale dataset for Fact Extraction and VERificationcited by 1,362
- 2023Can LLMs Express Their Uncertainty? An Empirical Evaluation of Confidence Elicitation in LLMscited by 946
- 2020On Faithfulness and Factuality in Abstractive Summarizationcited by 895
- 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 795
- 2023Just Ask for Calibration: Strategies for Eliciting Calibrated Confidence Scores from Language Models Fine-Tuned with Human Feedbackcited by 788
- 2023SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Modelscited by 787
- 2021A Gentle Introduction to Conformal Prediction and Distribution-Free Uncertainty Quantificationcited by 777
- 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquingcited by 751
- 2023The Internal State of an LLM Knows When It's Lyingcited by 644
- 2021Measuring and Improving Consistency in Pretrained Language Modelscited by 361
19 more
- 2022Conformal prediction beyond exchangeabilitycited by 348
- 2023Generating with Confidence: Uncertainty Quantification for Black-box Large Language Modelscited by 286
- 2023Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2cited by 227
- 2023Conformal Language Modelingcited by 163
- 2024Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic Similaritiescited by 156
- 2023Shifting Attention to Relevance: Towards the Predictive Uncertainty Quantification of Free-Form Large Language Modelscited by 147
- 2023Conformal Prediction with Large Language Models for Multi-Choice Question Answeringcited by 131
- 2024Language Models with Conformal Factuality Guaranteescited by 128
- 2023Complex Claim Verification with Evidence Retrieved in the Wildcited by 110
- 2018The Fact Extraction and VERification (FEVER) Shared Taskcited by 108
- 2024SaySelf: Teaching LLMs to Express Confidence with Self-Reflective Rationalescited by 102
- 2023LMFlow: An Extensible Toolkit for Finetuning and Inference of Large Foundation Modelscited by 58
- 2024Multicalibration for Confidence Scoring in LLMscited by 44
- 2019Calibration, Entropy Rates, and Memory in Language Modelscited by 32
- 2024Calibrating Long-form Generations from Large Language Modelscited by 31
- 2024C-RAG: Certified Generation Risks for Retrieval-Augmented Language Modelscited by 27
- 2023TRAQ: Trustworthy Retrieval Augmented Question Answering via Conformal Predictioncited by 23
- 2016Neyman-Pearson (NP) classification algorithms and NP receiver operating characteristics (NP-ROC)cited by 18
- 2023Defining a New NLP Playgroundcited by 4
Built on by
Citing papers per year: 2025: 2; 2026: 4.
6 papers.
- 2025TraceDet: Hallucination Detection from the Decoding Trace of Diffusion Large Language Modelscited by 7
- 2026TDGNet: Hallucination Detection in Diffusion Language Models via Temporal Dynamic Graphscited by 7
- 2025Reasoning-CV: Fine-tuning Powerful Reasoning LLMs for Knowledge-Assisted Claim Verificationcited by 5
- 2026Meet Dynamic Individual Preferences: Resolving Conflicting Human Value with Paired Fine-Tuningcited by 2
- 2026No-Worse Context-Aware Decoding: Preventing Neutral Regression in Context-Conditioned Generationcited by 1
- 2026Metadata Predictability Is Not Evidence Dependence: An Intervention-Based Audit for Weak-Label Benchmarkscited by 0
- 2026Metadata Predictability Is Not Evidence Dependence: An Intervention-Based Audit for Weak-Label Benchmarks22 May 2026
- 2026No-Worse Context-Aware Decoding: Preventing Neutral Regression in Context-Conditioned Generation17 Apr 2026
- 2026Meet Dynamic Individual Preferences: Resolving Conflicting Human Value with Paired Fine-Tuning14 Apr 2026
- 2026TDGNet: Hallucination Detection in Diffusion Language Models via Temporal Dynamic Graphs8 Feb 2026
- 2025TraceDet: Hallucination Detection from the Decoding Trace of Diffusion Large Language Models30 Sep 2025
- 2025Reasoning-CV: Fine-tuning Powerful Reasoning LLMs for Knowledge-Assisted Claim Verification18 May 2025