Tracing Uncertainty in Language Model "Reasoning"

Nils Grünefeld, Bertram Højer, Philipp Mondorf, Barbara Plank, Anna Rogers, Christian Hardmeier, Stefan Heinrich, Jes Frellsen

TL;DR

This paper treats the "Chain-of-Thought" (CoT) reasoning process in Large Language Models (LLMs) as a time series of evolving model states. By analyzing the "shape" of uncertainty—how it rises, falls, and fluctuates during token generation—the authors can predict whether a model’s final answer will be correct with high accuracy (up to 0.807 AUROC), often hundreds of tokens before the generation even finishes.

What Problem Does This Paper Address?

While LLMs have become much better at "reasoning" through techniques like Chain-of-Thought and test-time scaling (e.g., OpenAI’s o1 or DeepSeek-R1), the internal dynamics of this process remain a "black box." We know that longer traces often lead to better answers, but we don't fully understand why or how to tell if a model is currently "on the right track" or just hallucinating a logical-sounding path to a wrong conclusion.

Existing methods for verifying LLM outputs often rely on "Self-Consistency" (sampling multiple answers and taking a majority vote) or "Self-Certainty" (looking at the average confidence of tokens). However, these methods aggregate data into a single number, discarding the rich temporal information—the "rhythm" of uncertainty—that occurs as the model "thinks" through a problem.

Methods

The authors propose a framework to quantify and "trace" three distinct types of uncertainty at every step of token generation:

  1. Epistemic Uncertainty: Reflects the model's lack of knowledge (i.e., "Have I seen something like this in my training data?").
  2. Aleatoric Uncertainty (Committal): Measures the model's struggle to commit to a specific token (Bernoulli variance).
  3. Aleatoric Uncertainty (Distributional): Measures how spread out the model's probability is across the entire vocabulary (entropy).

They track these uncertainties across two "channels":

  • Trace Uncertainty ($U^{Tr}$): Uncertainty about the next token in the reasoning chain.
  • Answer Uncertainty ($U^A$): Uncertainty about the eventual final answer, calculated by looking ahead.

By treating these as a time series, they extract an Uncertainty Trace Profile consisting of 30 features, including the mean uncertainty at different stages (early, middle, late), the linear slope of the uncertainty, and how well that slope fits a linear trend ($r^2$). They then train simple classifiers (Logistic Regression and Gradient Boosting) to predict answer correctness based on these profiles.

Datasets

The researchers evaluated five models (ranging from standard LMs like Llama-3.1 to "reasoning models" like DeepSeek-R1) across three benchmarks:

  • GSM8K: Grade school math word problems.
  • ProntoQA: Synthetic logic problems designed to use low-likelihood tokens.
  • GSM-Symbolic: A variant of GSM8K with controlled perturbations to ensure the model isn't just memorizing specific numbers or names.

Key Insights and Ideas

  • The "Dissociation" of Uncertainty: One of the most surprising findings is that on incorrect traces, the model shows high aleatoric uncertainty (it's confused by the task) but low epistemic uncertainty. Essentially, when a model fails, it often converges on a wrong answer that it "thinks" looks like something it saw in training, even though the local steps to get there were shaky.
  • Correctness has a "Shape": Correct reasoning traces aren't just "less uncertain." They typically show a steeper and less linear decline in uncertainty compared to incorrect ones.
  • Early Warning Signals: Errors aren't just found at the end of a trace. The "signals" of a future failure are often present in the first few hundred tokens.
  • Reasoning vs. Non-Reasoning Models: Models explicitly trained for reasoning (like DeepSeek-R1) show different uncertainty dynamics than standard LMs. In reasoning models, incorrect traces actually look more linear and "smooth" as they converge on a wrong answer, whereas standard LMs look more irregular when they fail.

Key Results

  • State-of-the-Art Prediction: The uncertainty profiles achieved an AUROC of 0.807 for predicting correctness on GSM8K, significantly outperforming previous methods like "Self-Certainty" (which hovered around 0.5 to 0.7).
  • Early Detection: The system reached an AUROC of 0.801 using only the first 300 tokens of a trace. This suggests we could potentially stop a model from wasting compute on a "dead-end" reasoning path very early in the process.
  • Robustness: The method worked across different model sizes (0.5B to 8B parameters) and different training styles, proving that uncertainty dynamics are a fundamental lens for studying LLM behavior.

Limitations and Future Work

  • Computational Cost: Calculating "Answer Uncertainty" ($U^A$) requires an additional forward and backward pass at every step, which is computationally expensive for real-time deployment.
  • Approximations: The epistemic uncertainty measure is based on a "first-order delta-method expansion," which is a mathematically grounded approximation but still an approximation.
  • Scope of Tasks: The study focused on math and logic. It remains to be seen if these uncertainty "rhythms" hold true for more subjective or creative tasks like creative writing or summarization.
  • Future Direction: The authors suggest this could lead to better "test-time scaling" strategies—using uncertainty to decide exactly when a model has "thought enough" to provide a correct answer.

Summary updated

BibTeX
@inproceedings{grunefeld2026tracing,
  author = {Nils Grünefeld and Bertram Højer and Philipp Mondorf and Barbara Plank and Anna Rogers and Christian Hardmeier and Stefan Heinrich and Jes Frellsen},
  title = {{Tracing Uncertainty in Language Model "Reasoning"}},
  booktitle = {FoGen @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=UnDRNyGnZp},
}
Figure