Just rephrase it! Uncertainty estimation in closed-source language models via multiple rephrased queries
Adam Yang, Chen Chen, Konstantinos Pitas
TL;DR
The paper addresses uncertainty estimation for closed-source LLMs that do not disclose internal logits, proposing a practical approach based on querying multiple rephrasings of a base question to gauge answer consistency. It shows that simple rephrasings—notably synonym substitutions (reword) and expanded questions (expansion)—substantially improve calibration for top-1 decoding and can approach the calibration level achieved when access to last-layer logits is available. A theoretical framework links the rephrasing-affected uncertainty to the final-layer distribution via a logistic-noise model, with empirical validation demonstrating calibration gains and compatibility with white-box uncertainty. When extended to top-k decoding, rephrasings temper the top-class probability, further enhancing calibration across several datasets and models, offering a practical, model-agnostic tool for uncertainty estimation in real-world, black-box LLM deployments. The work also situates itself among prior uncertainty estimation methods, highlighting the practicality and adaptability of rephrasing strategies as a calibration mechanism for critical decision-making with closed-source models.
Abstract
State-of-the-art large language models are sometimes distributed as open-source software but are also increasingly provided as a closed-source service. These closed-source large-language models typically see the widest usage by the public, however, they often do not provide an estimate of their uncertainty when responding to queries. As even the best models are prone to ``hallucinating" false information with high confidence, a lack of a reliable estimate of uncertainty limits the applicability of these models in critical settings. We explore estimating the uncertainty of closed-source LLMs via multiple rephrasings of an original base query. Specifically, we ask the model, multiple rephrased questions, and use the similarity of the answers as an estimate of uncertainty. We diverge from previous work in i) providing rules for rephrasing that are simple to memorize and use in practice ii) proposing a theoretical framework for why multiple rephrased queries obtain calibrated uncertainty estimates. Our method demonstrates significant improvements in the calibration of uncertainty estimates compared to the baseline and provides intuition as to how query strategies should be designed for optimal test calibration.
