TL;DR
When an LLM says it is "95% certain," does that match its actual internal token probability? Usually, no. This paper introduces Direct Confidence Alignment (DCA), a fine-tuning method using Direct Preference Optimization (DPO) that trains language models to verbalize their internal softmax probabilities rather than hallucinating arbitrary confidence values.
What Problem Does This Paper Address?
Confidence calibration in LLMs typically focuses on matching confidence to ground-truth correctness (e.g., if a model says it is 80% confident, it should be correct 80% of the time). However, an LLM expresses confidence in two fundamentally distinct ways:
- Internal Confidence ($C_i$): The output softmax probability of the generated answer token (e.g., tokens
A,B,C, orD). - Verbalized Confidence ($C_v$): The numeric certainty percentage the model explicitly writes out in text (e.g., "Probability: 90%").
In instruction-tuned models, $C_v$ and $C_i$ are frequently misaligned—models often present themselves as verbally overconfident even when their internal logits reflect high uncertainty. The authors address this disconnect by aligning verbalized confidence directly with internal confidence, treating $C_i$ as the internal ground-truth signal of uncertainty to improve honesty and interpretability.
Methods
The authors introduce Direct Confidence Alignment (DCA) using Direct Preference Optimization (DPO):
- Data Generation: For a given question, the instruct model is prompted to answer and output its confidence score $C_v$ via a standard template. Meanwhile, its internal logit-derived softmax probability $C_i$ for the predicted answer token is extracted.
- Preference Pairs: Pairwise DPO data is constructed where the original response (containing the original $C_v$) serves as the rejected response, and a cloned version with $C_v$ replaced by $C_i$ serves as the chosen response.
- Training: Low-Rank Adaptation (LoRA) is trained using the Identity Preference Optimization (
ipo) loss function to prevent overfitting. - Metrics Introduced: To evaluate alignment beyond rank correlation (Spearman’s $\rho$), the authors evaluate the calibration error $\epsilon = C_v - C_i$ using:
- Mean Absolute Calibration Error ($|\epsilon|$): Average absolute discrepancy between verbalized and internal confidence.
- Standard Deviation of Calibration Error ($\sigma_\epsilon$): Spread/variability of the error.
- Standard Error of Calibration Error ($\sigma_M$): Sampling uncertainty of the mean error.
Datasets
- Preference Training Data (9,348 instances): Drawn from the training split of CosmosQA and the test split of MMLU (using an equal sampling across subjects).
- In-Distribution (ID) Evaluation: Validation splits of CosmosQA and MMLU.
- Out-of-Distribution (OOD) Evaluation: Test split of OpenBookQA and the validation split of TruthfulQA (multiple-choice).
- Total evaluation instances: 4,379. No new benchmark datasets were created, but the authors constructed a novel preference-tuning pair dataset based on these tasks.
Key Insights and Ideas
- Model Architecture Matters Greatly: DCA is not universally effective across model families. While Gemma-2-9B responded well, Mistral-7B and Llama-3.2-3B exhibited pathological shifts (such as severe verbal underconfidence).
- Mode Collapse to Skewed Confidence: Gemma-2-9B’s apparent success (low $|\epsilon|$) may be partly driven by its baseline distribution: both its internal and verbalized confidences were already concentrated heavily in the 90–100% range, making it easier for DPO to reinforce high confidence outputs.
- Predictable Failure Modes (Hedging): After DCA, Mistral-7B shifted its verbalized confidence into a narrow 40–50% band across almost all questions despite internal probabilities remaining high, demonstrating an extreme "safe hedging" behavior rather than true fine-grained calibration.
- Surprising Accuracy Side Effects: Even though DCA does not optimize for answer correctness, training on preference pairs that overwrite confidence scores noticeably altered downstream task accuracy. Llama-3.2-3B saw broad accuracy gains, whereas Mistral-7B suffered sharp drops.
Key Results
Evaluated across three open-weight models (Mistral-7B-Instruct, Gemma-2-9B-Instruct, and Llama-3.2-3B-Instruct):
- Gemma-2-9B-Instruct (Success Case):
- Mean Spearman’s $\rho$ rose from 0.34 to 0.42 (and reached 0.51 on TruthfulQA).
- Mean absolute calibration error $|\epsilon|$ was halved from 9.91 to 5.03.
- Task accuracy remained essentially unchanged (e.g., 86.06% vs. 86.21% on OpenBookQA).
- Mistral-7B-Instruct (Degradation Case):
- Calibration error $|\epsilon|$ worsened severely, increasing its mean from 22.96 to 48.93 (jumping to 52.47 on CosmosQA).
- Accuracy dropped sharply, especially on TruthfulQA (32.84% down to 20.98%).
- Llama-3.2-3B-Instruct (Mixed Case):
- Calibration error spread ($\sigma_\epsilon$) decreased dramatically (from 41.19 to 22.88), but mean absolute error $|\epsilon|$ increased from 38.67 to 44.03.
- Accuracy increased significantly across all benchmarks (e.g., OpenBookQA surged from 47.14% to 64.00%, MMLU from 39.92% to 49.77%).
Limitations and Future Work
- Requires White-Box Logit Access: Because extracting $C_i$ depends on output token probabilities, DCA cannot be applied to proprietary, black-box APIs that conceal logits.
- Assumption of Calibrated Token Probabilities: If a model’s internal logits are themselves uncalibrated or misleading, DCA simply forces verbalized outputs to replicate flawed internal signals.
- Accuracy Degradation Risks: The preference dataset pairs the model's actual answers—including incorrect choices—with their internal probabilities. The authors note this may inadvertently reinforce wrong answers during preference learning.
- Future Directions: Developing model-aware alignment techniques that prevent mode collapse/hedging and exploring joint objectives that preserve response correctness while enforcing confidence consistency.
Summary updated