Out of the Black Box: Uncertainty Quantification for LLMs via Conditional Probabilities
Hui Chen,
Antoine Didisheim and
Luciano A. Somoza
No 34965, NBER Working Papers from National Bureau of Economic Research, Inc
Abstract:
Autoregressive LLMs generate text by sampling from estimated probability distributions over the next token, conditional on prior context. We use these probabilities to construct an entropy-based measure of prediction uncertainty, termed inner confidence. In news classification, LLM predictions with higher inner confidence are systematically more accurate. To evaluate the measure's economic relevance, we form long-short portfolios based on LLM predictions. The portfolio based on high-confidence predictions achieves a Sharpe ratio about 20\% higher than the unconditional benchmark, while the one based on low-confidence predictions yields no excess returns. In contrast, self-declared confidence exhibits significant decoding biases and provides no comparable performance gains.
JEL-codes: C45 C55 G11 G14 (search for similar items in EconPapers)
Date: 2026-03
New Economics Papers: this item is included in nep-cmp
Note: AP
References: Add references at CitEc
Citations:
Downloads: (external link)
http://www.nber.org/papers/w34965.pdf (application/pdf)
Access to the full text is generally limited to series subscribers, however if the top level domain of the client browser is in a developing country or transition economy free access is provided. More information about subscriptions and free access is available at http://www.nber.org/wwphelp.html. Free access is also available to older working papers.
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:nbr:nberwo:34965
Ordering information: This working paper can be ordered from
http://www.nber.org/papers/w34965
The price is Paper copy available by mail.
Access Statistics for this paper
More papers in NBER Working Papers from National Bureau of Economic Research, Inc National Bureau of Economic Research, 1050 Massachusetts Avenue Cambridge, MA 02138, U.S.A.. Contact information at EDIRC.
Bibliographic data for series maintained by ().