Listing 4.10: AUROC of three hesitation scores, overall and by mechanism.
An answer is unsupported when its cited span does not state it. If the generator is stochastic we can ask how much it hesitates. Two scores follow. The predictive entropy of the answer distribution is available when the model exposes probabilities. The consistency score uses only samples: the share of 10 samples that agree with the reported answer, and that share as a risk score. For each score the discrimination between unsupported and supported answers is measured by the AUROC, the probability that a random unsupported answer gets a higher risk score than a random supported one, with ties counted as one half.
Of 2160 answers, 253 (0.117) are unsupported. In 173 of them the context had no evidence and the prior decided; in 80 the evidence was present but the answer was wrong. Predictive entropy has AUROC 0.964 overall, 0.974 on the no-evidence cases and 0.943 on the evidence-present cases. The sample-based score is lower, 0.936, because 10 samples give a coarse estimate of a probability: the unanimous answers are 0.752 of the total, and among them 0.009 are unsupported. The extractive answerer’s overlap score does poorly as a detector, AUROC 0.633, against an error rate of 0.523, since overlap measures the match with the query, not the support for the answer.
These values are high because of how this generator hesitates. Its errors come from the prior and from partial-weight distractors, and both flatten the distribution. A generator that is confidently wrong breaks the detector. the companion book example constructs one by planting a passage in the corpus, and the AUROC of predictive entropy for detecting incorrect answers falls from 0.960 on the clean index to 0.043 on the poisoned one, a detector worse than a coin: the attacked answers are more confident than the clean ones. Consistency and entropy detect uncertainty; they do not detect a model that is certain and wrong.
Continue with the book
Explore the full treatment, worked examples, and exercises in Applied AI Under Uncertainty.
Companion article for Applied AI Under Uncertainty, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.
