HyperAIHyperAI

Command Palette

Search for a command to run...

La confiance vient de l'expérience : estimation de la confiance expérientielle, du raisonnement aux agents

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

Résumé

Une estimation fiable de la confiance est de plus en plus centrale pour le déploiement digne de confiance des modèles de langue : une estimation calibrée de la probabilité qu'une sortie soit correcte détermine ce qui doit être publié, ce qui doit être remonté, et ce qui doit être réessayé. Les estimateurs de confiance existants partagent cependant un postulat de conception : ils ne lisent que le processus d'inférence actuel, soit en l'introspectant, soit en scorant ses probabilités de jetons, soit en le rééchantillonnant. Nous soutenons que l'inférence actuelle ne constitue pas une base suffisante pour la confiance. Nous proposons XConf (eXperiential Confidence) : estimer la confiance en même temps que l'expérience accumulée du modèle. L'expérience est stockée comme un enregistrement des épisodes passés gradués du modèle, chacun contenant la tâche, la réflexion du modèle, sa confiance déclarée, le résultat, et une leçon rédigée une fois la note obtenue. Face à une nouvelle tâche, l'étape de Rappel de XConf récupère les épisodes passés sur des tâches similaires rencontrées avec une confiance déclarée similaire, et en lit le taux de succès historique ; son étape de Réflexion présente au modèle cet enregistrement, lui fait nommer son mode de défaillance récurrent, et reformuler une confiance désormais informée par ses propres antécédents. Notre estimateur est indépendant du format, ne requiert ni accès aux logits ni mises à jour de poids, et ne coûte qu'une seule génération de réponse. Sur neuf références couvrant le raisonnement, le codage, le QCM multimodal et les agents interactifs, et quatre modèles de trois familles, XConf bat ou égale la cohérence automatique à dix échantillons en discrimination (AUROC) dans 23 des 24 comparaisons, avec une erreur de calibration (ECE) bien plus faible, pour un dixième du coût de génération. Utilisé pour la prédiction sélective, le fait de s'abstenir sur les 10 % d'épisodes les moins confiants augmente le taux de succès délivré jusqu'à 8,7 points sur les tâches d'agent. Nous considérons donc l'estimation de la confiance expérientielle comme un nouveau paradigme pour la future estimation de confiance à usage général.

One-sentence Summary

Researchers at University of Cambridge and Google DeepMind propose XConf, an experiential confidence estimator that augments the current inference with graded past episodes via Recall and Reflect stages, matching 10-sample10\text{-sample}10-sample self-consistency in AUROC\text{AUROC}AUROC on 23/2423/2423/24 benchmark comparisons at a tenth of the generation cost and improving delivered success rates by up to 8.7 points8.7\text{ points}8.7 points in agent tasks.

Key Contributions

  • Introduces XConf (eXperiential Confidence), a training-free confidence estimator that grounds uncertainty in a stored experience bank of graded past episodes, using a Recall stage to retrieve similar episodes and a Reflect stage to reread historical success rates and named failure modes before restating confidence.
  • Requires no logit access or weight updates, costs only one answer generation, and remains format-general; across nine benchmarks (reasoning, coding, multimodal QA, interactive agents) and four models, XConf matches or beats ten-sample self-consistency in AUROC on 23 of 24 comparisons, with lower ECE and at one-tenth the generation cost.
  • Demonstrates the confidence signal derives from stored experience, as permuting stored outcomes destroys the estimate, removing the record eliminates the gain, and enlarging the record improves calibration; abstaining on the 10% least-confident episodes raises delivered success rate by up to 8.7 points on agent tasks.

Introduction

Large language models are increasingly deployed in high-stakes settings such as code generation, browser automation, and agentic decision making, where incorrect outputs can have severe consequences. This makes reliable confidence estimation critical: it determines when to ship, escalate to a human, or retry. Existing confidence estimators all rely solely on the current inference process, whether through verbalized introspection, token likelihood scoring, or consistency across resampled outputs. None of these methods consult the model's past experience, despite decades of human metacognition research showing that people calibrate judgments partly by recalling how similar tasks turned out before. A student trusts a determinant solution without rechecking because similar problems have always worked, and braces for failure on a combinatorial proof because such proofs often collapsed previously; neither judgment comes from re-inspecting the derivation itself.

The authors propose XConf, a black-box, training-free, and format-general confidence estimator that leverages the model's accumulated experience rather than the current inference alone. XConf maintains a record of graded past episodes, each storing the task, the model's reflection, its stated confidence, and the outcome. For a new task, Recall retrieves similar episodes and computes the observed frequency of success given similar confidence levels, correcting habitual miscalibration mechanically. Reflect then shows the model its own track record, asks it to identify recurring failure modes, and has it restate confidence accordingly. Evaluated on nine benchmarks covering reasoning, coding, multimodal QA, and interactive agents, XConf matches or beats ten-sample self-consistency in discrimination while achieving much lower calibration error, with the largest gains on coding and agentic tasks. The approach also shows that experience transfers across datasets and models, improves as the record grows, and yields selective prediction gains of up to 8.7 points when abstaining on the least confident episodes, highlighting a shift from reading current inference to learning from accumulated experience.

Method

The authors introduce XConf, a confidence estimator that lets a model consult its own graded past before committing to a confidence. The central idea is that each piece of experience is read twice: a statistical read and a verbal read. The Recall stage treats the past as data, computing a confidence-conditioned hit rate over similar episodes, while the Reflect stage presents those episodes back to the model as text, so that the stated confidence is informed by the model's own track record rather than produced in isolation.

Problem formulation. The estimator operates on episodes collected during normal operation. Each episode is defined as

e=(x,ρ,a,r,v,y),e = (x, \rho, a, r, v, y),e=(x,ρ,a,r,v,y),

where xxx is the task, ρ\rhoρ is the reasoning trace or rollout, aaa is the output, rrr is a short self-reflection written before grading, vv \inv is the confidence stated at the end of the episode, and y{0,1}y \in \{0,1\}y{0,1} is the graded outcome. The experience bank B={e1,,en}B = \{ e_1, \ldots, e_n \}B={e1,,en} stores past episodes, with only those graded before the current one visible at test time. A confidence estimator is a map

c^=f(x,ρ,a,r,v;B),\hat{c} = f(x, \rho, a, r, v; B),c^=f(x,ρ,a,r,v;B),

and the target is the calibrated probability P(y=1x,a)P(y=1 \mid x, a)P(y=1x,a). The key distinction is the dependence on BBB: existing estimators are trace-intrinsic, of the form c^=g(x,ρ,a)\hat{c} = g(x, \rho, a)c^=g(x,ρ,a), whereas XConf consults the bank through retrieval.

The experience bank. Each stored episode has five fields: the task, the model's reflection on its own solution (written before the outcome is known), the stated confidence, the graded outcome, and a one-time lesson written by the model itself once the grade arrives. The lesson is quarantined to the bank and is never shown to the model while it reflects on an ungraded solution, since outcome knowledge biases self-judgment in ways that instructions alone do not remove. The bank is a by-product of running the system rather than a separate data collection effort: these episodes were going to be graded anyway, during development, evaluation, or deployment with delayed feedback, and embedding them is offline and amortized. The same five fields describe a multiple-choice answer, a program, or a thirty-step rollout alike.

Recall: a confidence-conditioned hit rate. The Recall stage answers a single question: among past episodes similar to this one, on which the model stated a similar confidence, how often was it actually right? Each episode is keyed by two fields,

F(e)=[ϕ(x)taskembedding;vstatedconfidence],F(e) = \big[ \underbrace{\phi(x)}_{\substack{\text{task}\\\text{embedding}}}; \underbrace{v}_{\substack{\text{stated}\\\text{confidence}}} \big],F(e)=[taskembeddingϕ(x);statedconfidencev],

where ϕ\phiϕ is a frozen off-the-shelf embedder. To ensure that "similar" means fails for the same reasons rather than shares a topic, similarity is measured in a correctness-supervised rescaling of this space, fit on the bank's own graded episodes. Recall retrieves the kkk bank episodes nearest in this space, Nk(e)N_k(e)Nk(e), and reads off their outcome hit rate,

RECALL(e)=1kjNk(e)yj,k=50,\mathrm{RECALL}(e) = \frac{1}{k} \sum_{j \in N_k(e)} y_j, \qquad k = 50,RECALL(e)=k1jNk(e)yj,k=50,

which is the model's historical accuracy on similar tasks met with a similar feeling. When the bank is sparse around the current task, the estimate degrades gracefully rather than failing: the kkk retrieved episodes are then only weakly similar, and the hit rate relaxes toward the model's base success rate at that stated confidence, a coarse but honest prior.

Reflect: reading one's own track record. The Reflect stage lets the model read its own past, lessons included. The episodes Recall retrieved are rendered as short in-context cards, one per episode: a task summary, the stated confidence at the time, the outcome, and the lesson. Shown the current task, its own reflection, and these cards, the model is asked first to name any recurring failure mode the record reveals, and only then to restate a calibrated confidence. Reflect is a short prompt that does not re-solve the task.

Final estimate. The final confidence averages the two readings of the same record, one statistical and one verbal:

Confidence(e)=12(RECALL(e)+REFLECT(e)).\mathrm{Confidence}(e) = \frac{1}{2} \bigl( \mathrm{RECALL}(e) + \mathrm{REFLECT}(e) \bigr).Confidence(e)=21(RECALL(e)+REFLECT(e)).

The equal weighting follows the long-standing finding that an equal-weight blend of two imperfectly correlated judges is hard to beat.

Experiment

The evaluation spans four models across nine benchmarks covering reasoning, multimodal QA, code, and interactive agent tasks, using a frozen embedder as a model-agnostic retrieval key. The proposed method, XConf, outperforms or matches ten-sample self-consistency on nearly all comparisons at a tenth of the generation cost, with consistently lower calibration error, and transfers effectively across task families without modification. Gains are largest where introspective signals fail, such as agent rollouts with silent failures, where XConf beats even a trained verifier without any training. The method scales with experience, improves selective prediction by allowing reliable abstention on low-confidence episodes, and remains robust across model sizes and bank transfers, though it degrades when outcome labels are self-generated rather than externally graded.

The table compares estimator families by their operational properties, showing that the proposed experiential estimator uniquely combines single-generation, black-box, training-free, and experience-scaling capabilities while remaining format-general. Experiment excerpts validate this design, demonstrating that experience-based estimates remain effective beyond difficulty controls, are robust to model size reductions, and require only independent outcome labels rather than model self-judgments. The experiential estimator is the only family that is single-generation, black-box, training-free, scales with experience, and works across formats. With question difficulty held constant, the experience-based estimate still separates correct from incorrect attempts at 0.79 AUROC, above chance in 35 of 36 cells. The estimate remains stable across model sizes, while only the self-reflective verbal reading degrades on smaller models. Using an independent judge's labels preserves most of the method's value, but using the model's own self-generated labels fails entirely. Stated confidence and reflective state are the most important elements for retrieval, with semantic retrieval greatly outperforming random neighbors.

The table evaluates four models across nine benchmarks in reasoning, code, and multimodal tasks, with accuracy varying notably between Gemini generations and across model families. Grading relies on task-specific verifiers, ranging from exact match to unit tests, while the cited text highlights the importance of objective external grading for confidence estimation. Gemini 3.5 Flash substantially outperforms Gemini 2.5 Flash on all benchmarks, showing a clear capability gap. Claude Sonnet 4.6 and Qwen3.5-397B generally fall between the two Gemini models, with Claude often closer to the stronger Gemini. Reasoning benchmarks show the widest accuracy spread across models, while code and multimodal tasks also display consistent ordering. The verifier choice is task-specific: exact match for multiple-choice, LLM verifiers for free-form reasoning, and unit tests for code.

The proposed confidence estimation method consistently matches or outperforms existing approaches across reasoning, code, and multimodal tasks while operating at a fraction of the cost. Its gains are robust to difficulty confounds, model size reductions, and imperfect external grading labels, though it degrades when labels come from the model itself. The method beats or matches self-consistency on almost all evaluated combinations, with lower calibration error. Confidence estimates remain discriminative even when question difficulty is held constant, outperforming verbalized confidence. The approach is nearly unaffected by shrinking model size, except for the reflective component which degrades in smaller models. Replacing ground-truth labels with an independent weak grader preserves most of the benefit, while self-generated labels cause performance to drop below unlabeled baselines.

The proposed method consistently achieves the best or on-par AUROC and ECE across all tested agentic benchmarks and model backbones, outperforming both verbalized confidence and trained verifier baselines. The method's advantage persists even when controlling for question difficulty, and its performance is robust to the underlying model's size, although it relies on an independent outcome signal rather than the model's own self-judgment. The method achieves top AUROC and lowest or tied ECE in all twelve model-benchmark cells. It outperforms verbalized confidence and the HTC trained verifier on nearly every model. Even with question difficulty held constant, it separates correct from incorrect attempts at 0.79 AUROC, above chance in 35 of 36 cells. The estimate is nearly invariant to model size, except the verbal reflective component degrades below 27B parameters. Performance relies on an independent grading signal: replacing ground truth with an LLM judge preserves most value, while self-generated labels degrade performance below having no labels.

The proposed confidence estimation method consistently matches or outperforms baselines across reasoning, code, multimodal, and agentic benchmarks at lower cost, remaining discriminative when question difficulty is controlled and robust to model size reductions. Its effectiveness depends on independent outcome labels, as using an independent judge preserves most of the benefit while self-generated labels degrade performance below unlabeled baselines. The method also relies on semantic retrieval of reflective states, which are key for separating correct from incorrect attempts.


Créer de l'IA avec l'IA

De l'idée au lancement — accélérez votre développement IA avec le co-codage IA gratuit, un environnement prêt à l'emploi et le meilleur prix pour les GPU.

Codage assisté par IA
GPU prêts à l’emploi
Tarifs les plus avantageux

HyperAI Newsletters

Abonnez-vous à nos dernières mises à jour
Nous vous enverrons les dernières mises à jour de la semaine dans votre boîte de réception à neuf heures chaque lundi matin
Propulsé par MailChimp