[Paper Review] Uncertainty Estimation and Quantification for LLMs: A Simple Supervised Approach
The paper formulates uncertainty estimation for LLMs as a supervised task that leverages hidden activations and probability-related features, enabling improved uncertainty scoring across black-box, grey-box, and white-box regimes. It demonstrates transferability to out-of-distribution settings across NLP tasks.
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.
Motivation & Objective
- Formulate uncertainty estimation for LLMs and distinguish it from standard ML uncertainty calibration.
- Propose a simple supervised method that uses hidden activations and probability-based features to predict LLM response quality.
- Show that hidden-layer information enhances uncertainty estimation across NLP tasks and settings.
- Demonstrate the transferability and practicality of the approach across black-box, grey-box, and white-box regimes.
Proposed method
- Define an uncertainty function g that maps prompts and responses to an uncertainty score.
- Construct features from white-box (hidden-layer activations) and grey-box (entropy/probability) sources.
- Train a supervised model to predict the uncertainty score using labeled data with response quality z.
- Present three regimes (white-box, grey-box, black-box) for applying the approach depending on access to model internals.
- Provide an algorithmic post-hoc uncertainty estimation procedure that can leverage other LLMs for feature extraction in black-box settings.
Experimental results
Research questions
- RQ1How can uncertainty estimation for LLMs be framed as a supervised learning task?
- RQ2Do hidden activations from LLMs contain useful information for predicting response uncertainty?
- RQ3Can the proposed supervised approach generalize across black-box, grey-box, and white-box scenarios and across tasks?
- RQ4What is the relationship between improved uncertainty estimation and calibration performance?
Key findings
- Using hidden activations improves uncertainty estimation across question answering, multiple choice, and machine translation tasks.
- The approach remains effective across in-distribution and out-of-distribution data.
- White-box and grey-box regimes outperform black-box in terms of leveraging internal information and labeled data.
- A better uncertainty estimation model tends to yield better calibration performance.
- The method is practical to implement and adaptable to different levels of model transparency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.