On Subjective Uncertainty Quantification and Calibration in Natural Language Generation

Ziyu Wang, Chris Holmes
6/7/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: meta-inf/suq-nlg (1 star, MIT, last commit 2024-10-18).

Abstract

Applications of large language models often involve the generation of free-form responses, in which case uncertainty quantification becomes challenging. This is due to the need to identify task-specific uncertainties (e.g., about the semantics) which appears difficult to define in general cases. This work addresses these challenges from a perspective of Bayesian decision theory, starting from the assumption that our utility is characterized by a similarity measure that compares a generated response with a hypothetical true response. We discuss how this assumption enables principled quantification of the model's subjective uncertainty and its calibration. We further derive a measure for epistemic uncertainty, based on a missing data perspective and its characterization as an excess risk. The proposed methods can be applied to black-box language models. We illustrate the methods on question answering and machine translation tasks. Our experiments provide a principled evaluation of task-specific calibration, and demonstrate that epistemic uncertainty offers a promising deferral strategy for efficient data acquisition in in-context learning.

View on arXivView PDF

Code Implementations(1)

meta-inf/suq-nlgCommunity100%
MIT

Code for the paper "On Subjective Uncertainty Quantification and Calibration in Natural Language Generation".

11Shell, PythonOct 18, 20242 years agoMIT

Similar Papers

Cite this paper

@article{wang2024subjective,
  title  = {On Subjective Uncertainty Quantification and Calibration in Natural Language Generation},
  author = {Ziyu Wang and Chris Holmes},
  year   = {2024},
  eprint = {2406.05213},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.05213v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.05213.svg)](https://codeofpaper.com/paper/2406.05213)

Discussion