CoCoA: A Generalized Approach to Uncertainty Quantification by Integrating Confidence and Consistency of LLM Outputs

Roman Vashurin, Maiya Goloburda, Preslav Nakov, Artem Shelmanov, Maxim Panov · OpenReview

Abstract

Uncertainty quantification (UQ) methods for Large Language Models (LLMs) encompass a variety of approaches, with two major types being particularly prominent: information-based, which focus on model confidence expressed as token probabilities, and consistency-based, which assess the semantic relationship between multiple outputs generated using repeated sampling. Several recent methods have combined these two approaches and shown impressive performance in various applications. However, they sometimes fail to outperform much simpler baseline methods. Our investigation reveals distinctive characteristics of LLMs as probabilistic models, which help to explain why these UQ methods underperform in certain tasks. Based on these findings, we propose a new way of synthesizing model confidence and output consistency that leads to a family of efficient and robust UQ methods. We evaluate our approach across a variety of tasks such as question answering, abstractive summarization, and machine translation, demonstrating sizable improvements over state-of-the-art UQ approaches.

Introduction

As Large Language Models (LLMs) are increasingly deployed in high-stakes domains, the ability to quantify the reliability of their outputs becomes critical. Traditional UQ methods generally fall into two categories:

  1. Information-based methods rely on raw token probabilities. While direct, these are often sensitive to surface-level phrasing variations (e.g., "Rome" vs. "The capital of Italy"), leading to inconsistent estimates.
  2. Consistency-based methods measure semantic agreement across multiple sampled outputs. Although more robust to phrasing, these methods are computationally expensive and ignore the model's internal confidence signals.

The CoCoA (Confidence and Consistency-based Approaches) framework addresses these limitations by unifying both paradigms through a theoretically grounded decision-theoretic lens.

Methodology: The CoCoA Framework

CoCoA is built upon Minimum Bayes Risk (MBR) decoding, where uncertainty is framed as the minimum achievable risk relative to the model's distribution. The core innovation is a multiplicative synthesis of signals:

$$U_{CoCoA}(y_* | x) = u(y_* | x) \cdot U_{cons}(y_* | x)$$

Here, $u(y_* | x)$ represents the intrinsic model-based uncertainty (e.g., sequence probability), while $U_{cons}(y_* | x)$ captures semantic inconsistency relative to alternative sampled answers.

The CoCoA framework integrates model-based uncertainty and semantic consistency to derive a final uncertainty score.

CoCoA Light

To mitigate the high inference cost of consistency-based sampling, the authors propose CoCoA Light. This variant utilizes a small auxiliary Multi-Layer Perceptron (MLP) to predict the consistency score ($U_{cons}$) directly from the LLM’s internal hidden states. This allows for high-quality uncertainty estimation using only a single greedy generation pass, making it viable for real-time applications.

Evaluation and Results

The framework was evaluated across diverse benchmarks, including Question Answering (TriviaQA, CoQA, MMLU, GSM8k), Machine Translation (WMT), and Summarization (XSUM), using models like LLaMA 3.1, Mistral, and Gemma.

The primary metric for evaluation is the Prediction Rejection Ratio (PRR). This metric assesses how effectively an uncertainty score can identify and reject incorrect model outputs.

The Prediction Rejection Ratio (PRR) measures UQ performance by comparing the accuracy-rejection curve of an estimator against an oracle and a random baseline.

Key Findings

  • Superior Performance: CoCoA consistently achieves state-of-the-art PRR, outperforming established methods like Semantic Entropy and SAR.
  • Multiplicative Synergy: The multiplicative interaction between confidence and consistency is more effective than additive methods, as it significantly amplifies uncertainty only when both signals indicate potential error.
  • Efficiency and Robustness: CoCoA Light maintains performance levels comparable to sampling-based methods while being significantly more efficient. The approach proved robust across different model architectures and diverse NLP tasks.

Conclusion

CoCoA provides a unified, theoretically motivated framework for LLM uncertainty quantification. By combining internal model confidence with external semantic consistency—and offering an efficient "Light" implementation—it bridges the gap between theoretical robustness and practical deployment. Future work will focus on refining similarity functions for specialized domains like code generation and complex reasoning.

Summary updated

BibTeX
@inproceedings{vashurin2025cocoa,
  author = {Roman Vashurin and Maiya Goloburda and Preslav Nakov and Artem Shelmanov and Maxim Panov},
  title = {{CoCoA: A Generalized Approach to Uncertainty Quantification by Integrating Confidence and Consistency of LLM Outputs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=H1NGlLNaVC},
}
Figure