English

Uncertainty in Language Models: Assessment through Rank-Calibration

Computation and Language 2024-09-17 v2 Artificial Intelligence Machine Learning Machine Learning

Abstract

Language Models (LMs) have shown promising performance in natural language generation. However, as LMs often generate incorrect or hallucinated responses, it is crucial to correctly quantify their uncertainty in responding to given inputs. In addition to verbalized confidence elicited via prompting, many uncertainty measures (e.g.e.g., semantic entropy and affinity-graph-based measures) have been proposed. However, these measures can differ greatly, and it is unclear how to compare them, partly because they take values over different ranges (e.g.e.g., [0,)[0,\infty) or [0,1][0,1]). In this work, we address this issue by developing a novel and practical framework, termed RankRank-CalibrationCalibration, to assess uncertainty and confidence measures for LMs. Our key tenet is that higher uncertainty (or lower confidence) should imply lower generation quality, on average. Rank-calibration quantifies deviations from this ideal relationship in a principled manner, without requiring ad hoc binary thresholding of the correctness score (e.g.e.g., ROUGE or METEOR). The broad applicability and the granular interpretability of our methods are demonstrated empirically.

Keywords

Cite

@article{arxiv.2404.03163,
  title  = {Uncertainty in Language Models: Assessment through Rank-Calibration},
  author = {Xinmeng Huang and Shuo Li and Mengxin Yu and Matteo Sesia and Hamed Hassani and Insup Lee and Osbert Bastani and Edgar Dobriban},
  journal= {arXiv preprint arXiv:2404.03163},
  year   = {2024}
}
R2 v1 2026-06-28T15:43:40.425Z