atlas

Research map / Large language models / Language, safety and interpretability

FactTest: Factuality Testing in Large Language Models with Finite-Sample and Distribution-Free Guarantees

ICML 2025 · Large language models › Language, safety and interpretability · approach: Uncertainty quantification for LLMs · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes FactTest, a hypothesis-testing framework that uses Neyman-Pearson-style threshold calibration on entropy-based certainty scores to give finite-sample, distribution-free Type I error guarantees for LLM factuality, letting the model abstain on uncertain questions.

Problem

LLMs hallucinate with high confidence, and existing detection methods give no formal Type I error guarantees for deciding when a model's answer can be trusted in high-stakes settings.

Approach

Frames factuality as a hypothesis test and selects a score threshold from a labeled calibration set via order statistics so the false positive rate (answering wrongly while deeming it certain) is bounded at alpha with probability 1-delta; extends to covariate shift via density-ratio rejection sampling and proves Type II error bounds.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply FactTest-KLE-15 instead of answering all questionsOpenLLaMA-13B · ParaRelaccuracy: 42.21 -> 83.84Helped
Apply FactTest-SE-15 instead of answering all questionsLLaMA-13B · HotpotQAaccuracy: 30.83 -> 60.69Helped
Apply FactTest-SE-10 instead of answering all questionsOpenLLaMA-7B · WiCEaccuracy: 72.96 -> 100.0Helped
Apply FactTest-SE-15 instead of answering all questionsOpenLLaMA-3B · FEVERaccuracy: 39.74 -> 83.90Helped
Use OpenLLaMA-13B-derived KLE certainty scores with FactTestGPT-4o mini · ParaRelaccuracy: 52.83 -> 85.84Helped
Use OpenLLaMA-13B-derived SE certainty scores with FactTestGPT-4o mini · WiCEaccuracy: 75.67 -> 86.95Helped
Use FactTest-t with half the training data instead of R-Tuning with all training dataLLaMA-7B · ParaRelaccuracy: 89.65 -> 92.76Helped
Use FactTest-t with half the training data instead of R-TuningOpenLLaMA-3B · FEVERaccuracy: 67.19 -> 97.82Helped
Vary certainty score function and number of generated outputs (ablation)FactTest · ParaRel, HotpotQA, WiCE, and FEVERaccuracyMixed
Increase significance level from α=0.05 to α=0.10 (ablation)FactTest · ParaRel, HotpotQA, WiCE, and FEVERaccuracyMixed

Surprising findings

Limitations

Experimental setup

Datasets: ParaRel HotpotQA WiCE FEVER ParaRel-OOD

Benchmarks: ParaRel HotpotQA WiCE FEVER ParaRel-OOD

Metrics: accuracy on willingly answered questions Type I error (FPR) Type II error (FNR) answer rate

Baselines: Pretrained R-Tuning Finetune-All Finetune-Half

Builds on: R-Tuning Semantic Entropy Kernel Language Entropy Neyman-Pearson umbrella algorithm

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy