Uncertainty Estimation and Quantification for LLMs: A Simple Supervised Approach

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Liu, Linyu, Pan, Yu, Li, Xiaocheng, Chen, Guanting
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866914985073967104
author Liu, Linyu
Pan, Yu
Li, Xiaocheng
Chen, Guanting
author_facet Liu, Linyu
Pan, Yu
Li, Xiaocheng
Chen, Guanting
contents In this paper, we study the problem of uncertainty estimation and calibration for LLMs. We begin by formulating the uncertainty estimation problem, a relevant yet underexplored area in existing literature. We then propose a supervised approach that leverages labeled datasets to estimate the uncertainty in LLMs' responses. Based on the formulation, we illustrate the difference between the uncertainty estimation for LLMs and that for standard ML models and explain why the hidden neurons of the LLMs may contain uncertainty information. Our designed approach demonstrates the benefits of utilizing hidden activations to enhance uncertainty estimation across various tasks and shows robust transferability in out-of-distribution settings. We distinguish the uncertainty estimation task from the uncertainty calibration task and show that better uncertainty estimation leads to better calibration performance. Furthermore, our method is easy to implement and adaptable to different levels of model accessibility including black box, grey box, and white box.
format Preprint
id arxiv_https___arxiv_org_abs_2404_15993
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Uncertainty Estimation and Quantification for LLMs: A Simple Supervised Approach
Liu, Linyu
Pan, Yu
Li, Xiaocheng
Chen, Guanting
Machine Learning
Computation and Language
68T07, 68T50
In this paper, we study the problem of uncertainty estimation and calibration for LLMs. We begin by formulating the uncertainty estimation problem, a relevant yet underexplored area in existing literature. We then propose a supervised approach that leverages labeled datasets to estimate the uncertainty in LLMs' responses. Based on the formulation, we illustrate the difference between the uncertainty estimation for LLMs and that for standard ML models and explain why the hidden neurons of the LLMs may contain uncertainty information. Our designed approach demonstrates the benefits of utilizing hidden activations to enhance uncertainty estimation across various tasks and shows robust transferability in out-of-distribution settings. We distinguish the uncertainty estimation task from the uncertainty calibration task and show that better uncertainty estimation leads to better calibration performance. Furthermore, our method is easy to implement and adaptable to different levels of model accessibility including black box, grey box, and white box.
title Uncertainty Estimation and Quantification for LLMs: A Simple Supervised Approach
topic Machine Learning
Computation and Language
68T07, 68T50
url https://arxiv.org/abs/2404.15993