Variability Need Not Imply Error: The Case of Adequate but Semantically Distinct Responses

Evgenia Ilia, Wilker AzizarXiv 2024 · DOI · arXiv

Abstract

Current uncertainty metrics for Large Language Models (LLMs), such as Semantic Entropy, operate on the assumption that semantic diversity in generated responses indicates model error. However, for ambiguous or open-ended prompts, variability is often a sign of a knowledgeable model exploring valid interpretations. We introduce PROBAR (Probability of Adequate Responses), a metric that shifts the focus from internal consistency to external adequacy. By measuring the probability mass of responses judged as "adequate," PROBAR provides a more robust signal for selective prediction. Our results across benchmarks like Abg-COQA and AmbigQA show that PROBAR consistently outperforms entropy-based methods, especially in scenarios involving inherent linguistic ambiguity.

The Problem: Ambiguity vs. Ignorance

Reliable selective prediction—the ability of an AI to "abstain" when uncertain—is crucial for deploying LLMs in high-stakes environments. The current state-of-the-art, Semantic Entropy (SE), assumes that if a model samples multiple responses with different meanings, it is likely "struggling" or incorrect.

This assumption fails in the face of ambiguity. Consider the prompt: "What is a date?" A knowledgeable model might generate answers referring to the fruit, a calendar day, or a romantic meeting. Under SE, this model is penalized for its variability. Conversely, a model that only knows about the fruit appears "certain" but is less comprehensive.

Conceptual overview of how multiple semantically distinct responses can all be adequate for an ambiguous question.

The authors argue that we should stop measuring how much a model disagrees with itself and start measuring how much of its probability mass falls onto adequate answers.

Methodology: Introducing PROBAR

To address this, the researchers propose PROBAR (Probability of Adequate Responses). The estimation process involves three steps:

  1. Sampling: Generate $N$ independent samples for a given prompt.
  2. Adequacy Judging: Use an "adequacy classifier" (which can be a human, an NLI model, or another LLM) to determine if each response is a plausible answer.
  3. Estimation: Calculate the relative frequency of adequate responses. High PROBAR indicates high confidence that the model's output is "good," regardless of whether the samples are semantically identical.

This approach effectively separates "data uncertainty" (prompt ambiguity) from "knowledge uncertainty" (model ignorance).

Experimental Results

The researchers evaluated PROBAR against the OPT model family (2.7B to 30B parameters) across several datasets, including Abg-COQA (ambiguous reading comprehension) and the Provo Corpus (next-word prediction).

The primary evaluation metric was AUROC, measuring the ability to distinguish between correct and incorrect greedy decodings. PROBAR consistently outperformed Semantic Entropy and standard Shannon Entropy across almost all settings.

AUROC performance on the Abg-COQA dataset. PROBAR (red) consistently maintains higher reliability than Semantic Entropy (blue) across ambiguous, non-ambiguous, and mixed test sets.

Key Insights

  • Robustness to Ambiguity: In the Abg-COQA "Ambiguous" test set, PROBAR's performance remained high even as models grew larger and more expressive, whereas SE often struggled with the increased semantic spread.
  • The "Model F" Pitfall: PROBAR avoids the trap where a model is consistently wrong (e.g., repeating a specific error). SE would mark such a model as "certain," while PROBAR correctly identifies the lack of adequacy.
  • Scalability: While sampling-based, PROBAR remains effective even with as few as 5 samples, making it a viable alternative for real-world applications.

Conclusion

Variability in LLM outputs is not inherently an error; it is often a reflection of the richness of natural language. By rethinking uncertainty through the lens of adequacy rather than consistency, PROBAR provides a more accurate foundation for building trustworthy AI systems that know when they are—and aren't—providing a "good" answer.

Summary updated

Abstract

With the broader use of language models (LMs) comes the need to estimate their ability to respond reliably to prompts (e.g., are generated responses likely to be correct?). Uncertainty quantification tools (notions of confidence and entropy, i.a.) can be used to that end (e.g., to reject a response when the model is `uncertain'). For example, Kuhn et al. (semantic entropy; 2022b) regard semantic variation amongst sampled responses as evidence that the model `struggles' with the prompt and that the LM is likely to err. We argue that semantic variability need not imply error--this being especially intuitive in open-ended settings, where prompts elicit multiple adequate but semantically distinct responses. Hence, we propose to annotate sampled responses for their adequacy to the prompt (e.g., using a classifier) and estimate the Probability the model assigns to Adequate Responses (PROBAR), which we then regard as an indicator of the model's reliability at the instance level. We evaluate PROBAR as a measure of confidence in selective prediction with OPT models (in two QA datasets and in next-word prediction, for English) and find PROBAR to outperform semantic entropy across prompts with varying degrees of ambiguity/open-endedness.
BibTeX
@misc{ilia2024variability,
  author = {Evgenia Ilia and Wilker Aziz},
  title = {{Variability Need Not Imply Error: The Case of Adequate but Semantically Distinct Responses}},
  year = {2024},
  eprint = {2412.15683},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.15683},
}
Figure