We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
Home/e-Resources/Mathematics/Hallucination Detection and Confidence Calibration for Large Language Model Outputs: Reproducible Experiments on HaluEval
PeriodicalsMathematics

Hallucination Detection and Confidence Calibration for Large Language Model Outputs: Reproducible Experiments on HaluEval

Checking your access to this record.

Abstract & Overview

Large language models (LLMs) can generate fluent yet unsupported content (“hallucinations”), which undermines trust and complicates downstream decision making. Beyond detection accuracy, practical systems require calibrated confidence so that thresholds, abstention, and verification policies behave predictably. This paper reports fully reproducible experiments on the HaluEval benchmark [1] using the provided snapshot containing 64,507 labeled examples across four domains (QA, dialogue, summarization, and general user queries). We formulate hallucination recognition as binary classification given an input context (e.g., knowledge snippet or source document), a user query (when available), and a model-generated answer. We evaluate several lightweight detectors based on TF-IDF and linear models, and we study post-hoc calibration using temperature scaling and (global and domain-conditional) Platt scaling. Our best system uses a linear SVM on 30k unigram TF-IDF features augmented with 11 overlap/length features, followed by domain-conditional Platt scaling trained on a held-out validation set. On the test split, it achieves AUROC 0.835 and F1 0.751 (threshold tuned on validation), while attaining an expected calibration error (ECE) of 0.009 with 15 bins. By contrast, applying a simple sigmoid to raw SVM scores attains AUROC 0.822 but yields substantially worse calibration (ECE 0.080). Across domains, we observe clear prior shifts—most notably in the general subset with only 18.1% hallucinated responses—which motivates domain-aware calibration and domain-specific operating points.

Cite this record

Thomas Reed, George Mason (2025). Hallucination Detection and Confidence Calibration for Large Language Model Outputs: Reproducible Experiments on HaluEval. Artificial Intelligence and Machine Learning Review, 6(4), 1–17. https://doi.org/10.69987/aimlr.2025.60401

Copy in another style

Reed, T., & Mason, G. (2025). Hallucination Detection and Confidence Calibration for Large Language Model Outputs: Reproducible Experiments on HaluEval. Artificial Intelligence and Machine Learning Review, 6(4), 1–17. https://doi.org/10.69987/aimlr.2025.60401
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.