Introduction
Large Language Models (LLMs) have demonstrated remarkable capabilities across various domains, yet they frequently suffer from "confident hallucinations"—generating incorrect information with high perceived certainty. This overconfidence poses significant risks in high-stakes applications such as medicine and law. To mitigate this, models must be capable of "verbalized confidence," where they explicitly state their level of certainty (e.g., "I am 80% confident"). However, current LLMs are poorly calibrated, and existing calibration methods often rely on computationally expensive heuristics or noisy proxy labels. This paper introduces ConfTuner, a highly efficient fine-tuning method designed to teach LLMs to accurately verbalize their internal confidence.
The ConfTuner Framework
Unlike previous approaches that require sampling multiple responses to estimate ground-truth confidence, ConfTuner leverages the principle of "proper scoring rules" from classical machine learning. In traditional ML, classifiers naturally become calibrated if trained with a loss function like the Brier score, which mathematically incentivizes the model to output its true likelihood of being correct.
ConfTuner adapts this concept to autoregressive language models via a novel loss function called the tokenized Brier score. The training process involves two primary stages:
- Probability Distribution Extraction: The model is prompted to provide an answer followed by a confidence score (typically a token representing 0-100). The system then extracts the model's probability distribution over these specific confidence tokens.
- Fine-Tuning via Proper Scoring: The model is fine-tuned using the tokenized Brier score, which penalizes the discrepancy between the predicted probability distribution and the binary correctness (0 or 1) of the generated answer.
Mathematically, this objective incentivizes the model to shift its probability mass toward the token that accurately reflects its likelihood of being correct, theoretically guaranteeing calibration without the need for external proxy labels.
Experimental Results
The authors evaluated ConfTuner using LLaMA, Qwen, and Ministral models. Training was conducted on the HotpotQA dataset, with evaluation extending to several out-of-distribution (OOD) tasks, including GSM8K, TriviaQA, StrategyQA, and TruthfulQA.
Calibration Performance
ConfTuner significantly outperforms existing baselines in calibration metrics. It achieved up to a 54.7% improvement in Expected Calibration Error (ECE) and a 14.4% improvement in AUROC compared to the best baselines across the tested models.
Efficiency and Generalization
A standout feature of ConfTuner is its extreme efficiency. While competing methods like SaySelf require 90,000 samples and two hours of training, ConfTuner reaches optimal performance with only 2,000 training samples in approximately 4 minutes. Furthermore, the method generalizes well to different confidence formats, including linguistic descriptors (e.g., "High/Medium/Low") and implicit expressions of uncertainty.
Key Insights
The success of ConfTuner reveals several critical insights into LLM behavior. First, the authors found that prompting the model to generate an answer before the confidence score significantly improves calibration compared to the reverse order. This suggests that the hidden states generated during the answer's production contain rich, extractable information regarding the model's internal certainty. Second, the application of proper scoring rules to token generation represents a significant theoretical advancement, bypassing the need for expensive sampling-based proxy labels.
Downstream Applications: Model Cascading
The practical utility of improved calibration was demonstrated through a model cascading task. In this scenario, a smaller, calibrated model (LLaMA) handles initial queries. If its verbalized confidence is low, the query is routed to a more powerful but expensive model (GPT-4o). Using ConfTuner's accurate confidence scores, the overall system accuracy improved by up to 9.3% on HotpotQA within the same API budget, highlighting the economic and performance benefits of reliable uncertainty estimation.
Conclusion
ConfTuner provides a theoretically grounded and computationally efficient path toward calibrated LLMs. By aligning verbalized confidence with actual correctness through the tokenized Brier score, it enables models to "know what they don't know," making them safer and more effective for deployment in critical real-world applications.
Summary updated