Confidence estimation improves by learning from past task experience

Confidence Comes from Experience: Experiential Confidence Estimation from Reasoning to Agents

Computation and LanguageArtificial Intelligence

Summary

Knowing how sure a language model is about its answers helps decide when to trust it or ask for help. The authors found that just looking at the current answer isn't enough to judge confidence well. They built a system called XConf that remembers past questions, the model's confidence then, and whether it was right or wrong. When facing a new question, XConf checks similar past experiences to give a better guess about how likely the answer is correct. This method works across different types of tasks and models while using fewer resources.

What this means in practice

  • For software developers: Improve AI-based coding assistants’ reliability by estimating confidence using past similar code-generation tasks to reduce errors and help decide when to ask for user guidance.
  • For customer support teams: Enhance chatbot trustworthiness by allowing systems to recall past similar conversations to better estimate when to escalate issues to human operators.

Authors

Caiqi Zhang, Xiaochen Zhu, Chengzu Li, Yulong Chen, Dharshan Kumaran, Nigel Collier

Abstract

Reliable confidence estimation is increasingly central to the trustworthy deployment of language models: a calibrated estimate of the probability that an output is correct decides what to ship, what to escalate, and what to retry. Existing confidence estimators, however, share one design premise: they only read the current inference process, either by introspecting on it, scoring its token probabilities, or resampling it. We argue that the current inference is not a sufficient basis for confidence. We propose XConf (eXperiential Confidence): estimating confidence together with the model's accumulated experience. The experience is stored as a record of the model's own graded past episodes, each holding the task, the model's reflection, its stated confidence, the outcome, and a lesson written once the grade arrived. Given a new task, XConf's Recall stage retrieves past episodes on similar tasks met with a similar stated confidence, and reads off their historical success rate; its Reflect stage shows the model this record, has it name its recurring failure mode, and restate a confidence now informed by its own track records. Our estimator is format-general, requiring no logit access or weight updates, and costs only one answer generation. Across nine benchmarks spanning reasoning, coding, multimodal QA, and interactive agents, and four models from three families, XConf beats or matches ten-sample self-consistency in discrimination (AUROC) on 23 of 24 comparisons, with much lower calibration error (ECE), at a tenth of the generation cost. Used for selective prediction, abstaining on the 10% least-confident episodes raises the delivered success rate by up to 8.7 points on agent tasks. We therefore see experiential confidence estimation as a new paradigm for future general-purpose confidence estimation.