Manuscript Offprint

arXiv:2609.05284

GUT: Quantifying and Optimizing the Reasoning Uncertainty of LLMs via Graph Complexity

Shuang Liang, Xin-Yu Hu, Xiang-Jun Ou, Shao-Qun Zhang

Abstract

Recent years have witnessed great advances in the reasoning ability of Large Language Models (LLMs). However, the reasoning processes of LLMs often exhibit uncertainty, where LLMs often produce a proliferation of divergent branches at each reasoning step even when fed the same prompting inputs, and certain branches exhibit evidently incredible, even nonsensical, reasoning chains and results. In this paper, we propose the Graph-complexity-based UncerTainty (GUT) method for investigating the reasoning uncertainty of LLMs. The key idea of GUT is to characterize the potential branches of each reasoning chain with a directed acyclic graph, thereby ensuring that all potential branches are comprehensively covered within the graph space. Building upon this recognition, we further build two modules of GUT, that is, a Quantification (GUT-Q) module and an Optimization (GUT-O) module, for quantifying and reducing the reasoning uncertainty of LLMs, respectively. GUT-Q measures LLM reasoning uncertainty by approximating the reasoning space complexity with graph complexity. GUT-O implements uncertainty optimization by treating negative uncertainty as the reward function in reinforcement learning. Experimental results conducted on four LLMs and five datasets validate the effectiveness of GUT.

Key words: Large Language Models, Reasoning Uncertainty Quantification, Reasoning Uncertainty Optimization, Graph Complexity

1. Introduction

Uncertainty arises when the intrinsic stochasticity of the system results in the variability in its outputs or decisions [33]. In particular, when developers employ Large Language Models (LLMs) for reasoning, they frequently encounter the reasoning uncertainty originating from temperature-based stochastic sampling over token probability distributions, which in turn induces variability in the generated reasoning chains [24]. Thus, it is necessary and significant to quantify and optimize the reasoning uncertainty

Preprint

September 7, 2026

Figure

Figure 1: Illustration of our proposed GUT. A real-world case study of GUT is provided in Appendix E.

of LLMs, which has been widely deployed in fields of medical care [1], autonomous driving [44], and quantitative trading [29].

There have been lots of efforts on quantifying the reasoning uncertainty of LLMs. An intuitive way is to prompt the LLM to judge its own reasoning uncertainty [20, 47]. However, the effectiveness of this manner is fundamentally limited by the inherent stochasticity of the prompt-based generation process, induced by the token-level distribution and stochastic sampling, thus recursively amplifying the uncertainty in LLM reasoning. Subsequent studies modeled the reasoning chain as a sequence, based on which researchers quantified the reasoning uncertainty of LLMs by exploiting either the statistical information of a single sampled sequence [22, 25] or the diversity of multiple sampled sequences [12, 23]. Nevertheless, modeling reasoning chains as simple sequences fails to accurately capture the inherent uncertainty in LLM reasoning, as it overlooks the potential branches emerging at each individual reasoning step. Recent studies [8, 27, 54] constructed graphs to explicitly model potential branches of reasoning steps and quantified the reasoning uncertainty by the topological information of graphs. The graph-based methods achieve a considerably precise modeling of reasoning branches, but rely heavily on self-prompting. Therefore, achieving a precise and effective characterization of the reasoning branches induced by both token-level distributions and stochastic sampling is necessary and challenging for quantifying the LLM reasoning uncertainty.

We implement graph modeling by performing multiple sampling and merging equivalent reasoning steps with a Natural Language Inference (NLI) model, thereby precisely characterizing potential branches in each reasoning step and overcoming effectiveness bottlenecks of self-prompting. Since the collection of all potential branches, that is, the reasoning space [5], covers all possible reasoning chains induced by stochastic sampling, we can exploit the graph complexity to approximate reasoning space complexity.

We construct the graph complexity by integrating statistics over token-level distributions and topological information. The constructed graph complexity is a more comprehensive estimator for quantifying LLM reasoning uncertainty than those of existing UQ methods, since one can trace the reasoning uncertainty back to the stochasticity in both token-level distributions and sampling. By taking the graph-complexity-based uncertainty with a simple proxy approximation as a reward function, we can build the optimization problem within Reinforcement Learning (RL) for reducing the LLM reasoning uncertainty. Figure 1 illustrates our key ideas of quantifying and optimizing the reasoning uncertainty of LLMs.

Based on the above recognition, we propose the Graph-complexity-based UncerTainty (GUT) for quantifying and reducing the reasoning uncertainty, comprising a Quantification (GUT-Q) module and an Optimization (GUT-O) module. Our contributions are summarized as follows. Firstly, we propose the GUT-Q for UQ in LLM reasoning that operates by estimating the reasoning space complexity with graph complexity. Empirical evidence across 4 LLMs and 5 datasets shows that the GUT-Q outperforms 45 UQ contenders in the downstream task of selective generation, measured by AUROC, AUPRC, and PRR. Secondly, we propose the GUT-O for Uncertainty Optimization (UO) in LLM reasoning that operates by setting the negative uncertainty proxy as the reward in the RL framework. Empirical evidence across 4 LLM scales and 5 datasets shows that GUT-O effectively reduces the reasoning uncertainty and improves the accuracy.

The rest of this paper is organized as follows. Section 2 reviews related work. Section 3 and Section 4 formally introduce the GUT-Q and GUT-O modules, respectively. Section 5 conducts experiments to validate the effectiveness of our proposed GUT. Section 6 concludes this work.

References (55)