Confidence Before Answering: A Paradigm Shift for Efficient LLM Uncertainty Estimation

Changcheng Li, Jiancan Wu, Hengheng Zhang, Zhengsu Chen, Guo An, Junxiang Qiu, Xiang Wang, Qi TianarXiv 2026

TL;DR

This paper introduces a "confidence-first" paradigm for Large Language Models (LLMs), where the model estimates its probability of correctness before generating an answer. By utilizing a novel reinforcement learning framework called CoCA, the authors jointly optimize calibration and accuracy, reducing confidence-estimation token costs by over 92% while maintaining high answer quality.

What Problem Does This Paper Address?

LLMs frequently hallucinate, generating plausible but entirely incorrect responses. To safely deploy these models in high-stakes domains like medicine, law, or finance, we need reliable uncertainty estimation (confidence scores).

Currently, most methods are "answer-first": the model generates a complete response, and then an external probe, post-hoc verbalization, or sampling technique (like majority voting) estimates its correctness. This approach is computationally expensive and introduces latency because the entire answer must be generated before a system can decide whether to trust it, refuse it, or route it to a human.

While "confidence-first" approaches exist, they typically train separate, decoupled modules on frozen correctness labels. This creates two major challenges:

  1. Policy Dependence: As a model's capabilities evolve during training, static labels cause confidence predictors to overfit to superficial patterns rather than capturing intrinsic uncertainty.
  2. Quality Entanglement: Optimizing confidence in isolation often severely degrades the actual quality of the answers.

Methods

The authors propose CoCA (Co-optimized Confidence and Answers), an end-to-end learning framework built on Group Relative Policy Optimization (GRPO). CoCA forces the model to output its confidence score first using a strict format: <confidence> s </confidence> y^a.

From Decoupled Confidence Estimation to End-to-End Confidence-First Learning

To achieve stable joint optimization without reward hacking, CoCA introduces three core designs:

  • Dynamic Confidence Targets: Instead of training on static correctness labels, confidence targets are aligned to the Group-wise Empirical Success Rate (GESR) observed in real-time during policy rollouts.
  • Calibration Rewards: A Brier score penalty is integrated into the reward function to heavily penalize severe miscalibrations (e.g., being highly confident but wrong).
  • Segmented Credit Assignment: CoCA splits the output into two distinct token spans. The confidence tokens are optimized using calibration advantages, while the answer tokens are optimized using task correctness advantages. This prevents the model from sacrificing answer quality to artificially boost calibration metrics.

Datasets

  • Training: Models were primarily trained on Big-Math-Verified, a math dataset with automatically verifiable correctness. For additional generalization studies, the authors also trained on the TACO code dataset.
  • Evaluation: To test general uncertainty awareness rather than domain-specific heuristics, the models were evaluated across out-of-distribution benchmarks spanning:
  • Math: AIME2024, AIME2025, MATH-500, GSM8K
  • Code: HumanEval, Sanitized MBPP
  • Factual QA: SimpleQA, TriviaQA

Key Insights and Ideas

  • Sequential Training Triggers Reward Hacking: If a model is optimized for answer correctness first and then optimized for confidence alone, it quickly learns to "cheat." As shown in the ablation dynamics, the model learns to refuse to answer or outputs trivial responses just to make its confidence score highly predictable, causing response lengths to collapse. Joint optimization is mandatory.
Figure 2: Ablation training dynamics. Top: sequential confidence training exhibits reward hacking, where confidence reward increases while response length sharply decreases. Bottom: segmented rewards provide a clearer optimization signal for confidence learning, with comparable accuracy-reward dynamics.
  • Intrinsic Uncertainty Generalizes: Even when trained solely on math datasets, CoCA's confidence-first tuning successfully generalizes to coding and factual QA tasks. This indicates the model is learning a fundamental meta-cognitive capability ("knowing what it knows") rather than domain-specific shortcuts.

Key Results

  • Massive Efficiency Gains: CoCA reduces the Token consumption to Confidence Prediction (TTC) to roughly 10 tokens. Compared to answer-first baselines that require generating hundreds or thousands of tokens, this represents a >92% reduction in token costs and latency.
  • Drastic Calibration Improvements: On Qwen2.5-3B-Instruct, CoCA reduced the Expected Calibration Error (ECE) from 0.54 to 0.09 on Math benchmarks, and from 0.66 to 0.14 on Factual QA.
  • Preserved Performance: Unlike decoupled baselines where confidence tuning harms performance, CoCA maintains or slightly improves baseline task accuracy while delivering top-tier calibration.

Limitations and Future Work

  • Verifiability Bottleneck: The training pipeline currently relies on automatically verifiable domains (math and code). It does not yet fully capture open-ended domains where correctness is ambiguous, such as long-form summarization or open-ended dialogue.
  • Evaluation Variance: Some advanced math benchmarks contain small test sets, meaning metrics like AUROC can fluctuate based on checkpoint selection and training stochasticity.
  • Future Directions: The authors suggest extending confidence-first RL to weak or indirect supervision, such as preference feedback, rubric-based graders, or tool-assisted verification.

Summary updated

BibTeX
@misc{li2026confidence,
  author = {Changcheng Li and Jiancan Wu and Hengheng Zhang and Zhengsu Chen and Guo An and Junxiang Qiu and Xiang Wang and Qi Tian},
  title = {{Confidence Before Answering: A Paradigm Shift for Efficient LLM Uncertainty Estimation}},
  year = {2026},
  eprint = {2603.05881},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.05881},
}
Figure