Addressing Pitfalls in the Evaluation of Uncertainty Estimation Methods for Natural Language Generation

Mykyta Ielanskyi, Kajetan Schweighofer, Lukas Aichberger, Sepp Hochreiter

TL;DR

Evaluating uncertainty estimation (UE) in Large Language Models (LLMs) is currently flawed because it relies on noisy, biased "correctness" metrics like ROUGE or a single LLM-as-a-judge. This paper exposes how these metrics can be manipulated to inflate UE performance and proposes robust alternatives. These include a Mixture of Judges (MoJI), tasks with exact correctness (like code generation), and an Elo rating system to fairly rank UE methods across diverse benchmarks.

What Problem Does This Paper Address?

LLMs often hallucinate or "confabulate" when they lack knowledge, making predictive uncertainty estimation a critical area of research. To evaluate if a UE method works, researchers typically use Selective Prediction on Question-Answering (QA) datasets: if the model is highly uncertain, the generated answer should be incorrect.

But how do we automatically determine if an open-ended text answer is "correct"? The standard practice is to use approximate correctness functions—either n-gram matching (ROUGE, BLEU), embedding similarity (BERTScore), or prompting another model (LLM-as-a-judge).

The authors identify a massive pitfall here: these approximate metrics disagree wildly with each other and have high variance.

Agreement between different correctness metrics across QA datasets.

Because the Area Under the Receiver Operating Characteristic Curve (AUROC)—the standard metric for UE evaluation—is highly sensitive to label noise and bias, researchers can inadvertently (or intentionally) "correctness-hack." By simply swapping the correctness metric or tweaking a threshold, one can drastically change the apparent performance and ranking of different UE methods.

Methods for Robust Evaluation

To fix the fragile state of UE evaluation, the authors propose a multi-pronged approach:

  1. SP-MoJI (Selective Prediction using Mixture of Judges and Instructions): Instead of relying on a single LLM-as-a-judge (which is subject to sampling variance and model bias), the authors propose marginalizing over multiple judge models, prompts, and temperatures. By averaging the correctness scores, the variance and bias of the evaluation label are significantly reduced.
  2. Exact Correctness Tasks: To bypass approximate metrics entirely, the authors advocate evaluating UE on structured tasks where correctness is deterministic and non-parametric. Examples include code generation (verified by unit tests) or constrained text generation (verified by rule checkers).
  3. Alternative Risk Indicators: Moving beyond just QA correctness, they propose evaluating UE methods on Out-of-Distribution (OOD) detection (identifying unanswerable questions) and perturbation detection (detecting when the input prompt has been corrupted).
  4. Elo Rating for UE Methods: Because different UE methods excel on different tasks, looking at massive tables of AUROC scores is confusing. The authors adapt the Elo rating system (commonly used in chess and LLM arenas) to rank UE methods. Each dataset/model combination acts as a "game" where two UE methods compete, resulting in a single, probabilistically interpretable global score.

Datasets Evaluated

The paper evaluates models across a wide range of tasks:

  • QA (Approximate Correctness): CoQA, TriviaQA, SQuADv2.
  • Structured (Exact Correctness): BigCodeBench (code completion evaluated via unit tests), COLLIE (constrained text generation evaluated via rule fulfillment).
  • OOD / Perturbation: Known-Unknowns (KUQ) and SQuADv2 (specifically the unanswerable questions) for OOD. Perturbed versions of CoQA and SQuADv2 (created by randomly shuffling words in the context story) were used for perturbation detection.

Key Insights and Results

  • "Correctness-Hacking" is a real threat: The authors demonstrated that by adversarially selecting the correctness function (e.g., switching between ROUGE variants or LLM judges), a UE method's frequency of appearing in the "Top-3" could be artificially inflated by up to +37.5%.
  • Label noise breaks AUROC: The paper provides mathematical proofs showing that random Bernoulli noise in correctness labels biases the AUROC estimator. This means the stochastic nature of a single LLM-as-a-judge directly degrades the reliability of the UE evaluation.
  • Variance Reduction: Using SP-MoJI with an ensemble of just 4 diverse judge calls reduces the standard deviation of the UE performance estimator twofold compared to using a single judge. The benefits of adding more judges diminish after about 10 calls.
  • There is no "One-Size-Fits-All" UE method: The Elo ratings reveal that different tasks prefer different UE methods. Simple heuristics often perform competitively, especially outside of the QA domain.
Elo ratings of various uncertainty estimation methods across different task categories.

Across ~600 GPU hours of experiments, the Elo aggregation showed that methods like G-NLL and EigenScore perform particularly well for longer sequences in code generation, while Perplexity is a strong baseline for instruction-tuned models. Furthermore, length normalization—a common heuristic to prevent short answers from automatically seeming less uncertain—actually hurts UE performance in almost all settings except for perturbation detection.

Limitations and Future Work

  • Compute Overhead: SP-MoJI requires multiple API calls per generated answer. However, the authors note this is relatively cheap (~$40 for their entire experimental suite) because judge prompts are prefill-heavy and require generating only a few tokens (e.g., "Yes" or "No").
  • Perturbation Anomalies: The authors found that perturbation detection behaves very differently from other tasks. Investigating the underlying causes of this, and analyzing biases toward specific perturbation types, is left for future work.
  • Pretrained vs. Instruction-Tuned: All UE methods performed poorly on base pretrained models compared to instruction-tuned models, indicating that base models might need entirely separate evaluation paradigms.

Summary updated

BibTeX
@inproceedings{ielanskyi2026addressing,
  author = {Mykyta Ielanskyi and Kajetan Schweighofer and Lukas Aichberger and Sepp Hochreiter},
  title = {{Addressing Pitfalls in the Evaluation of Uncertainty Estimation Methods for Natural Language Generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=OxWnOV5q8w},
}
Figure