Confidence Improves Self-Consistency in LLMs

Amir Taubenfeld, Tom Sheffer, Eran Ofek, Amir Feder, Ariel Goldstein, Zorik Gekhman, Gal Yona · DOI

TL;DR

Self-consistency decoding significantly boosts LLM reasoning performance by sampling multiple reasoning paths and picking the most frequent answer, but it is computationally expensive. This paper introduces Confidence-Informed Self-Consistency (CISC), a lightweight extension that weights the majority vote using the model's own self-assessed confidence scores. CISC reduces the required number of sampled reasoning paths by over 40% on average while maintaining or improving final accuracy.

What Problem Does This Paper Address?

When tackling complex math or logic problems, large language models (LLMs) perform much better when allowed to generate a "chain of thought" (CoT). A popular strategy called self-consistency samples multiple different CoT paths (often 30 or more) and selects the most common final answer.

The catch? Generating dozens of long reasoning paths is incredibly slow and computationally expensive. The authors set out to make self-consistency efficient. They hypothesized that if an LLM can evaluate its own generated reasoning paths, a weighted majority vote could identify the correct answer using far fewer samples.

Methods

The authors introduce Confidence-Informed Self-Consistency (CISC), which modifies the standard self-consistency pipeline with a lightweight self-assessment step:

  1. Generation: Sample multiple reasoning paths and answers from the LLM.
  2. Confidence Extraction: Prompt the model to evaluate its own generated output. The authors tested several methods, but the clear winner was $P(\text{True})$. This method prompts the model to give a binary (0 or 1) validity check on its answer and extracts the exact probability the model assigns to the "1" token.
  3. Confidence Normalization: Scale these raw confidence scores using a Softmax function with a tuned temperature parameter ($T$). This step is crucial; without proper temperature scaling, the confidence scores are often too similar to be useful.
  4. Aggregation: Select the final answer using a confidence-weighted majority vote.

To make this practical, the authors use a clever two-step prompting procedure. By appending the confidence prompt to the end of the already-generated answer, they can leverage prefix caching. This means the LLM doesn't have to reprocess the entire prompt and reasoning chain, adding virtually zero computational overhead.

The paper also introduces a new evaluation metric called Within-Question Discrimination (WQD). Traditional metrics look at how well a model calibrates confidence across different questions (e.g., knowing if Question A is harder than Question B). WQD specifically measures a model's ability to distinguish between a correct and an incorrect reasoning path for the exact same question.

Datasets

The approach was evaluated across nine instruction-tuned open-weights models (from the Gemma 2, Qwen 2.5, and Mistral families) using four major reasoning benchmarks:

  • GSM8K: Grade-school level math word problems.
  • MATH: Challenging high-school competition-level math problems.
  • MMLU-Pro: A more robust, difficult extension of the classic Multitask Language Understanding benchmark.
  • Big-Bench-Hard (BBH): A suite of complex algorithmic and commonsense reasoning tasks.

Key Insights and Ideas

  • The Calibration Paradox: Surprisingly, confidence methods that are highly "calibrated" by traditional standards (like asking the model to state its confidence on a scale of 0-100) performed the worst when integrated into CISC.
  • Within-Question vs. Between-Question: Traditional calibration metrics (like ECE and Brier score) are poor predictors of CISC success. A model might perfectly know which questions are hard or easy overall, but fail to distinguish which of its own paths is correct for a specific question. The authors' new WQD metric perfectly predicted CISC performance where traditional metrics failed.
  • LLMs as Competent Self-Critics: Through qualitative human analysis, the authors found that paths the LLM flagged with low confidence strongly correlated with actual logical flaws identified by human experts (such as missing calculation steps or realizing the calculated answer wasn't among the multiple-choice options).

Key Results

  • Substantial Cost Reductions: Across all configurations, CISC consistently outperformed standard self-consistency. Using the $P(\text{True})$ method, CISC achieved an average computational cost reduction of 41% at a budget of 5 samples, and 46% at a budget of 10 samples.
CISC Performance per Confidence Method
  • Fewer Samples, Higher Accuracy: In a striking showcase using Gemma2-9B on the MATH dataset, CISC achieved a 73% cost reduction. With just 8 samples, CISC surpassed the accuracy that standard self-consistency achieved with 30 samples.
Figure 1: Accuracy as a function of the number of sampled responses for self-consistency vs CISC, using Gemma2-9B on the MATH dataset. CISC achieves higher overall accuracy while significantly reducing computational costs. With just 8 samples, it surpasses the performance of 30-sample self-consistency.
  • Consistency Across Architectures: The performance gains held true across almost all tested model families and datasets, as shown in the cost reduction breakdown below.
Figure 3: Results breakdown for CISC using the P(True) method and a budget of 10 responses per question. Each cell is annotated with the Cost Reduction (Percentage; §4.4) of CISC compared to self-consistency. As can be seen, CISC improves performance across almost all model families and datasets. In many cases, even 30 samples are not enough for self-consistency to reach CISC performance, leading to Cost Reduction of over 67%.

Limitations and Future Work

  • Framework Dependencies: The highly efficient prefix-caching mechanism used for confidence extraction is readily implementable in frameworks like Hugging Face but may not be universally supported by all inference engines.
  • Probability Access: The best-performing method ($P(\text{True})$) requires access to token-level probabilities. While open-weights models and some commercial APIs expose this, closed frameworks that completely hide logprobs cannot utilize it.
  • Future Directions: The authors suggest exploring few-shot prompting to improve confidence extraction, training models explicitly to output better intrinsic confidence signals, and integrating CISC into advanced graph- or tree-based reasoning frameworks (like Tree-of-Thoughts).

Summary updated

BibTeX
@inproceedings{taubenfeld2025confidence,
  author = {Amir Taubenfeld and Tom Sheffer and Eran Ofek and Amir Feder and Ariel Goldstein and Zorik Gekhman and Gal Yona},
  title = {{Confidence Improves Self-Consistency in LLMs}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure