Command Palette
Search for a command to run...
自信は経験から生まれる:推論からエージェントまでの経験的自信推定
自信は経験から生まれる:推論からエージェントまでの経験的自信推定
Caiqi Zhang Xiaochen Zhu Chengzu Li Yulong Chen Dharshan Kumaran Nigel Collier
概要
信頼性の高い自信推定は、言語モデルの信頼できる展開においてますます中心的な役割を果たしている。出力が正しい確率の校正された推定値は、何を出荷し、何をエスカレーションし、何を再試行するかを決定するからである。しかし、既存の自信推定器は、ひとつの設計前提を共有している。それらは、現在の推論プロセスのみを読み取り、それを内省したり、そのトークン確率をスコアリングしたり、それを再サンプリングしたりする。我々は、現在の推論だけでは自信の十分な根拠にはならないと主張する。我々はXConf(経験的自信)を提案する。それは、モデルの蓄積された経験とともに自信を推定するものである。経験は、モデル自身の段階的な過去のエピソードの記録として保存され、各エピソードは、タスク、モデルの振り返り、表明された自信、結果、そして評価が届いたときに書かれた教訓を保持する。新しいタスクが与えられると、XConfの想起段階は、同様のタスクで同様の表明された自信に遭遇した過去のエピソードを取得し、それらの過去の成功率を読み取る。その熟考段階は、モデルにこの記録を示し、繰り返し発生する失敗モードを特定させ、自身の実績に基づいて自信を言い直させる。我々の推定器は形式に依存せず、ロジットアクセスや重みの更新を必要とせず、答えの生成を1回行うだけである。推論、コーディング、マルチモーダルQA、対話型エージェントにわたる9つのベンチマークと、3つのファミリーからの4つのモデルにおいて、XConfは、24の比較のうち23で、識別力(AUROC)において10サンプルの自己無撞着性に勝るか同等であり、校正誤差(ECE)ははるかに低く、生成コストは10分の1である。選択的予測に使用した場合、最も自信の低いエピソードの10%を棄権することで、エージェントタスクにおける提供成功率が最大8.7ポイント向上する。したがって、我々は、経験的自信推定を、将来の汎用自信推定のための新しいパラダイムと見なす。
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-sample self-consistency in AUROC on 23/24 benchmark comparisons at a tenth of the generation cost and improving delivered success rates by up to 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),where x is the task, ρ is the reasoning trace or rollout, a is the output, r is a short self-reflection written before grading, v∈ is the confidence stated at the end of the episode, and y∈{0,1} is the graded outcome. The experience bank 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),and the target is the calibrated probability P(y=1∣x,a). The key distinction is the dependence on B: existing estimators are trace-intrinsic, of the form 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)=[taskembeddingϕ(x);statedconfidencev],where ϕ 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 k bank episodes nearest in this space, Nk(e), and reads off their outcome hit rate,
RECALL(e)=k1j∈Nk(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 k 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)=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.