NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Deep Think with Confidence

Yichao Fu, Xuewei Wang, Yuandong Tian, Jiawei Zhao

TL;DR

Deep Think with Confidence (DeepConf) optimizes test-time scaling for LLM reasoning by using internal token confidence signals to filter out low-quality reasoning paths. Operating in both offline and online modes, it boosts accuracy up to 99.9% on tough math benchmarks while slashing token costs by up to 84.7% via early stopping.

What Problem Does This Paper Address?

When tackled with complex reasoning tasks, Large Language Models (LLMs) perform significantly better when allowed to generate multiple reasoning paths, aggregating the results via majority voting (a technique known as self-consistency or parallel thinking). However, this approach scales computational costs linearly—generating hundreds of paths consumes massive amounts of tokens.

Furthermore, standard majority voting treats all generated paths equally, meaning low-quality or broken reasoning chains can dilute the correct answer, leading to diminishing returns or performance saturation. While some existing methods try to filter out bad paths using global confidence metrics, they require generating the entire text first (preventing early stopping) and often smooth over critical, localized logical breakdowns.

Methods

DeepConf introduces a simple, training-free framework that leverages model-intrinsic confidence signals to evaluate and prune reasoning paths either during or after generation.

  • Local Confidence Tracking: Instead of averaging confidence across an entire sequence, DeepConf calculates Group Confidence—averaging token log-probabilities over overlapping sliding windows (e.g., 2,048 tokens). This allows it to pinpoint exactly where a model's logic derails. It also utilizes Tail Confidence to focus heavily on the final steps of a solution.
  • Offline Mode (Filtering & Weighting): After generating a pool of traces, DeepConf filters out low-confidence paths (retaining either the top 10% or top 90%) and weights the remaining votes based on their confidence scores before final aggregation.
  • Online Mode (Early Stopping): To save compute, DeepConf runs a small "warmup" batch of generations (e.g., 16 traces) to dynamically establish a confidence threshold. During subsequent parallel generations, if a trace's local group confidence dips below this threshold, generation is aborted immediately. It also employs adaptive sampling, stopping the entire process early once a strong consensus is reached among the active paths.

Datasets

The authors evaluated DeepConf across five highly challenging mathematical competition and graduate-level STEM reasoning benchmarks:

  • AIME 24 & AIME 25 (American Invitational Mathematics Examination)
  • BRUMO25 (Brown University Math Olympiad)
  • HMMT25 (Harvard-MIT Mathematics Tournament)
  • GPQA-Diamond (Graduate-Level Google-Proof Q&A Benchmark)

These were tested using prominent open-source model families, including DeepSeek-8B, Qwen3-8B/32B, and GPT-OSS-20B/120B.

Key Insights and Ideas

  • The "Think Again" Trap: The authors observed that when an LLM gets stuck in a loop or encounters a logical error, it frequently outputs repetitive phrases like "wait", "however", or "think again". During these segments, internal token confidence plummets, providing a perfect signal for early termination.
  • Local Beats Global: A global average can easily mask critical intermediate errors if the rest of the sequence has high confidence. Tracking localized sliding windows is far more effective at catching specific reasoning breakdowns.
  • Aggressive vs. Conservative Trade-offs: The paper evaluates two online variants: DeepConf-low (retaining the top 10% of paths) and DeepConf-high (retaining the top 90%). DeepConf-low delivers the highest accuracy gains and token savings but can occasionally suffer if the model is "confidently wrong." DeepConf-high acts as a highly robust, conservative default that consistently matches or beats standard majority voting while still saving substantial compute.

Key Results

  • Saturating AIME 2025: In offline mode using GPT-OSS-120B, DeepConf@512 achieved an astounding 99.9% accuracy on AIME 2025, compared to 97.0% for standard majority voting and 91.8% for a single-trace pass@1.
  • Massive Token Savings: In online mode, DeepConf-low reduced generated tokens by 43% to 79% across most datasets while maintaining or improving accuracy. For GPT-OSS-120B on AIME 2025, it slashed token costs by 84.7%.
DeepConf Performance and Token Reduction on AIME 2025

Limitations and Future Work

The primary limitation of DeepConf is its vulnerability to overconfidence on incorrect paths. If a model hallucinates a flawed premise but remains internally confident about its subsequent tokens, DeepConf will fail to filter it out.

For future work, the authors propose:

  1. Integrating DeepConf's early-stopping mechanism into reinforcement learning (RL) pipelines to improve training sample efficiency.
  2. Exploring more robust confidence calibration and uncertainty quantification techniques to mitigate the issue of overconfident but erroneous predictions.

Summary updated

BibTeX
@inproceedings{fu2026deep,
  author = {Yichao Fu and Xuewei Wang and Yuandong Tian and Jiawei Zhao},
  title = {{Deep Think with Confidence}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=8LqHs0KIM7},
}
Figure