TL;DR
CoCal (Companion Confidence Calibration) introduces a "shared experience, separate learning" paradigm for LLMs, training a lightweight companion model to estimate confidence using the internal states generated during reinforcement learning. By decoupling confidence estimation from task optimization, CoCal achieves superior calibration and discrimination without the accuracy trade-offs seen in coupled methods or the high sampling costs of post-hoc approaches.
What Problem Does This Paper Address?
Large Language Models (LLMs) are notoriously overconfident, often asserting incorrect answers with the same certainty as correct ones. To fix this, researchers use confidence calibration—tuning the model to ensure its predicted probability of being right matches its actual success rate.
Current approaches generally fall into two camps:
- Post-hoc Calibration: Training a calibrator after the model is fully trained. This is effective but expensive, requiring a massive new round of response sampling and evaluation.
- Concurrent Calibration: Learning confidence during the main training phase (like Reinforcement Learning from Verifiable Rewards, or RLVR). While efficient, existing methods typically use the same model parameters for both tasks. This creates a "capability-calibration trade-off" where the two objectives interfere, often hurting the model's primary reasoning performance.
The authors aim to capture the efficiency of concurrent learning without the performance penalty of parameter coupling.
Methods
The authors propose CoCal, based on the principle of Shared Experience, Separate Learning.
During the RLVR process, the policy model ($\pi_t$) generates thousands of reasoning trajectories (rollouts) to improve its problem-solving skills. CoCal reuses these exact same rollouts to train a separate, lightweight companion calibrator ($\phi_t$), which is a simple four-layer MLP.
Key technical details include: * Input Representation: The companion doesn't just look at the final answer. It takes the hidden states from the LLM's final Transformer layer, concatenating the final-token state with a mean-pooled representation of the entire response. * Supervision: The companion is trained using the ground-truth rewards already provided by the RLVR verifier. The authors tested two strategies: Binary (did it get it right?) and Group (how often does the model get this specific question right across multiple attempts?). * Decoupled Optimization: Because the companion is a separate module, its gradients never touch the main LLM's weights. This allows the LLM to focus entirely on task performance while the companion focuses on self-assessment.
Datasets
- Training: DeepScaleR, containing ~40k mathematical problems with reference answers.
- Mathematical Evaluation: Five benchmarks of varying difficulty: MATH500, AMC 2023/2024, and AIME 2024/2025.
- Out-of-Distribution (OOD) Evaluation: HonestyBench, a factual QA benchmark including datasets like SQuAD, WebQuestions, and PopQA, used to test how well a math-trained companion transfers to general knowledge.
Key Insights and Ideas
- Early Errors are Gold: In RLVR, the model makes many mistakes early on. These "failures" are actually high-quality training data for a calibrator. Post-hoc methods miss this because they only sample from a high-performing, final-stage model where errors are scarce.
- Internal States are Predictive: The paper reinforces the idea that an LLM's internal activations contain "signals of doubt" that aren't always reflected in the final text output.
- Zero Interference: By using a separate MLP, CoCal avoids the accuracy degradation seen in methods like RLCR and DCPO. In fact, CoCal maintained a 9.9 percentage point lead in accuracy over RLCR while providing better confidence estimates.
- Cross-Domain Generalization: Surprisingly, a companion trained on math reasoning internal states generalizes well to factual QA. This suggests that the "feeling of being right" encoded in hidden states might be somewhat universal across tasks.
Key Results
Experiments were conducted on Qwen3-8B and Qwen3-14B.
- Superior Calibration: CoCal (binary) achieved the lowest Expected Calibration Error (ECE) of 0.096, significantly better than RL-based concurrent methods like DCPO (0.139).
- Efficiency: While post-hoc calibration requires roughly 14 hours of extra GPU sampling, CoCal's companion trains in just 15 seconds. At inference time, the companion adds a negligible 0.199 ms of latency.
- Robustness to Policy Shift: The companion remains effective even if the underlying LLM policy evolves or changes significantly after the companion was trained.
Limitations and Future Work
- White-Box Requirement: CoCal requires access to the model's internal hidden states. This makes it unusable for black-box API models (like GPT-4 or Claude) unless the providers expose these states.
- Externalized Confidence: The confidence is "external" to the model. The LLM itself doesn't "know" it's uncertain in its verbalized output; only the companion knows. Integrating this back into the model's verbal reasoning (e.g., making the model say "I'm not sure") remains a challenge.
- Future Directions: The authors suggest exploring pre-generation confidence, where the companion predicts failure before the model even starts typing, potentially saving massive amounts of inference compute by triggering an early "abstain" or "retrieve info" action.
Summary updated