Large Language Models (LLMs) frequently exhibit "confident hallucinations," providing factually incorrect information with high authority. In critical domains like medicine or law, this lack of reliability is a significant barrier. While researchers have attempted to elicit model confidence, existing methods typically suffer from high computational costs (post-generation evaluation) or poor calibration (verbalized confidence).
To address these issues, researchers from Queen Mary University of London have developed GrACE (Generative cAlibrated Confidence Elicitation). GrACE allows LLMs to generate a reliable, calibrated confidence score in real-time as part of the standard inference process.
The Challenge of Confidence Elicitation
The primary goal is to obtain a score between 0 and 1 that accurately reflects the probability of an answer's correctness. Current approaches fall into two categories:
- Post-generation methods: These require additional model passes to evaluate a generated answer, doubling the computational overhead and increasing latency.
- Verbalized confidence: Models are prompted to state their confidence (e.g., "I am 95% sure"). However, LLMs often mimic human overconfidence and fail to map internal uncertainty to numerical outputs accurately.
GrACE aims to be discriminative, calibrated, and efficient, providing a score with negligible overhead.
Methodology: From Verbalization to Representation
GrACE shifts the confidence task from a linguistic output to a representation-based calculation.
The <CNF> Token and Similarity Scoring
GrACE introduces a special token, <CNF>, to the model's vocabulary. The model is fine-tuned to append this token to the end of its responses. Rather than using the token's output probability, GrACE calculates confidence by measuring the similarity between the model's final hidden state and the learned embedding of the <CNF> token. This leverages the rich uncertainty information present in the model's latent space.
Target Smoothing via K-fold Binning
To improve calibration, GrACE avoids training on simple binary labels (0 or 1). Instead, it uses a "linear probe" to group training samples into bins based on internal signals. The average accuracy of each bin serves as the training target, "smoothing" the labels and teaching the model to target realistic probabilities.
Efficient Fine-tuning
The implementation utilizes Low-Rank Adaptation (LoRA), ensuring that only a small fraction of parameters are updated. This makes the training process lightweight and accessible.
Experimental Results
The authors evaluated GrACE using various backbone models, including Phi-3, Llama 2, Llama 3.1, and Qwen 2.5, across datasets such as TriviaQA, SciQ, MathQA, and ARC-Challenge.
- Performance: GrACE consistently outperformed competitors like Apricot and P(True). On Llama 3.1, it improved AUROC by 4.4% and significantly reduced Expected Calibration Error (ECE).
- Generalization: GrACE demonstrated robust domain generalization. When trained on general knowledge (TriviaQA) and tested on scientific queries (SciQ), performance remained stable, unlike auxiliary models that often fail outside their training distribution.
- Efficiency in Test-Time Scaling: GrACE enables Early Stopping (GrACE-ES). In complex reasoning tasks where multiple paths are typically sampled, GrACE can terminate the process early if the first sample's confidence is sufficiently high. For the ARC-Challenge, 80.1% of queries could stop after a single sample without compromising accuracy.
Conclusion and Future Work
GrACE provides a scalable solution for real-time confidence elicitation without the latency of post-hoc methods or the unreliability of verbalized scores. While it currently provides a single score for an entire generation, future work may extend this to "Chain-of-Thought" reasoning, allowing for step-by-step confidence assessments in complex tasks.
Citation: Zhang, Z., Liu, Z., & Patras, I. (2025). GrACE: A Generative Approach to Better Confidence Elicitation in Large Language Models. arXiv:2509.09438v1 [cs.CL].
Summary updated