Organizations: National Key Laboratory for Novel Software Technology, Nanjing University, China. · School of Intelligent Science and Technology, Nanjing University, China.
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.
Figures & tables
Figure 1: Illustration of our proposed GUT. A real-world case study of GUT is provided in Appendix E .
UQ
GSM8K
MATH-500
AMC2022-2024
GUT-Q-W
0.1909 ± 0.0207
0.2364 ± 0.0315
0.3603 ± 0.0592
GUT-Q-H
0.1365 ± 0.0229
0.1945 ± 0.0318
0.3197 ± 0.0602
GUT-Q-UP
0.2110 ± 0.0213
0.2069 ± 0.0334
0.2586 ± 0.0600
Table 1: PCCs between MTLP and complexity-based uncertainty metrics across investigated mathematical reasoning datasets, averaged across 4 Qwen3 LLMs.
UQ
GSM8K
MATH-500
AMC2022-2024
PRR
AUROC
AUPRC
PRR
AUROC
AUPRC
PRR
AUROC
AUPRC
MSP
-33.66 ± 1.22
58.89 ± 0.97
86.84 ± 0.80
-8.09 ± 2.46
58.76 ± 1.67
60.85 ± 2.04
-37.65 ± 4.97
67.35 ± 3.70
52.35 ± 4.27
Ppl
-33.66 ± 1.22
58.89 ± 0.98
86.84 ± 0.79
-8.09 ± 2.46
58.76 ± 1.65
60.85 ± 2.01
-37.65 ± 4.97
67.35 ± 3.77
52.35 ± 4.41
MTE
47.45 ± 0.86
28.89 ± 1.73
74.56 ± 1.26
31.08 ± 2.36
36.22 ± 1.99
44.79 ± 2.13
37.77 ± 4.71
26.06 ± 3.79
28.18 ± 3.57
MTLP
-27.77 ± 1.13
57.30 ± 1.52
84.56 ± 0.91
2.10 ± 2.40
55.29 ± 1.95
62.99 ± 2.53
27.33 ± 5.00
28.86 ± 3.86
26.17 ± 3.20
MPMI
-28.86 ± 1.13
59.13 ± 1.58
87.55 ± 0.86
4.67 ± 2.37
57.56 ± 2.01
63.94 ± 2.56
-12.39 ± 4.79
48.12 ± 4.37
43.94 ± 5.05
Table 2: Comparisons of UQ performance for Qwen3-4B across partial contenders and datasets, where bold and underline denote the group best and second-best results, respectively.
Figure 2: Ablation and sensitivity analyses of the GUT-Q for Qwen3-4B.
Models
Accuracy
MTLP
Mean Uncertainty
GUT-Q-W
GUT-Q-H
GUT-Q-UP
Qwen3-0.6B
18.00±1.31
−7.55±0.04
0.77±0.01
1.86±0.03
1.14±0.01
+ GRPO
23.40±1.51
−7.67±0.04
0.74±0.01 (-3.9%)
1.88±0.03 (+1.1%)
1.17±0.02 (+2.6%)
+ GUT-O
21.40±1.43
−8.94±0.04
0.64±0.01 (-16.9%)
1.51±0.03 (-18.8%)
0.88±0.01 (-22.8%)
Qwen3-1.7B
42.20±1.79
−13.45±0.06
0.43±0.01
2.03±0.05
0.47±0.01
+ GRPO
46.40±1.81
−13.56±0.07
0.42±0.01 (-2.3%)
1.89±0.05 (-6.9%)
0.46±0.01 (-2.1%)
Table 3: Comparisons of UO performance for 4 Qwen3 LLMs on the MATH-500 dataset, where ‘+’ in column “Models” indicates the applied fine-tuning method, and values in parentheses denote the percentage change in mean uncertainty.
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
Scale
UQ
GSM8K
MATH-500
AMC2022-2024
PRR
AUROC
AUPRC
PRR
AUROC
AUPRC
PRR
AUROC
AUPRC
8B
GUT-Q-UP
72.01 ± 4.34
83.72 ± 1.55
97.01 ± 0.50
53.28 ± 4.34
75.93 ± 1.90
81.59 ± 1.87
72.85 ± 4.89
81.83 ± 3.02
84.53 ± 2.88
GUT-Q-UP-W
73.91 ± 4.19
84.42 ± 1.60
97.39 ± 0.46
52.77 ± 4.57
76.64 ± 1.76
79.34 ± 2.11
74.68 ± 6.32
87.35 ± 2.54
82.27 ± 4.55
4B
GUT-Q-UP
81.68 ± 1.83
86.61 ± 1.02
96.93 ± 0.36
61.93 ± 3.59
80.13 ± 1.57
79.45 ± 2.07
80.82 ± 4.24
89.48 ± 2.19
84.60 ± 3.39
GUT-Q-UP-W
81.76 ± 1.79
86.63 ± 1.00
96.94 ± 0.35
62.13 ± 3.60
80.23 ± 1.58
79.56 ± 2.15
79.07 ± 4.50
88.72 ± 2.19
83.24 ± 3.72
1.7B
GUT-Q-UP
77.50 ± 1.83
85.48 ± 0.86
92.83 ± 0.67
63.39 ± 3.36
80.68 ± 1.50
74.08 ± 2.45
68.00 ± 6.93
82.90 ± 3.72
68.00 ± 6.30
Appendix
Table 4: Comparisons of UQ performance between the GUT-Q implemented with Algorithms 2 (GUT-Q-UP) or 4 (GUT-Q-UP-W).
Scale
Mathematical Reasoning
First-Order Logic Reasoning
Reasoning QA
GSM8K
MATH-500
AMC2022-2024
FOLIO
MMLU-Pro
8B
89.61
64.20
49.59
72.41
69.58
4B
84.08
53.80
38.02
68.47
60.83
1.7B
71.11
42.20
22.31
43.84
43.33
0.6B
28.89
18.00
0 9.09
44.83
29.17
Appendix
Table 5: Accuracy of the evaluated LLMs on the concerned datasets.
Hyperparameter
Setting
Token-level UQ
Avg Log Prob
Selection Strategy
Top-3%
Window Size w
6
Weight ω in Algorithm 2
0.2
Appendix
Table 6: Configuration of hyperparameters in step-level uncertainty calculation.
Figure 3: Complete generation rate.
Category
UQ
Number of LLM Inferences
Auxiliary Model Execution
Other Computation
Model
Scale
Number of Execution
Information- based
Ppl
1
-
-
-
Token-level statistics computation
MCSE
K
-
-
-
Token-level statistics computation
Reflexive- based
P(True)
2
-
-
-
-
Reasoning- enhanced
CoT-UQ-ME
2
-
-
-
Token-level statistics computation
CoT-UQ-SP
3
-
-
-
-
Appendix
Table 8: Runtime complexity comparison of GUT-Q and its contenders.
Figure 4: Average wall-clock time comparison of GUT-Q and its contenders on the MATH-500 dataset using Qwen3-4B.
Hyperparameter
Value
Hyperparameter
Value
Batch Size
128
Max New Tokens
3072
Group Size M
7
Learning Rate
3×10−6
KL Penalty β
0.0005
Learning Rate Scheduler
Cosine
Temperature T
1.0
Warmup Ratio
0.1
Clip Ratio ϵ
0.2
Optimizer
AdamW
Training Steps
60
Appendix
Table 13: Configuration of hyperparameters for GUT-O.
Dataset
Models
Accuracy
MTLP
Mean Uncertainty
GUT-Q-W
GUT-Q-H
GUT-Q-UP
GSM8K
Qwen3-0.6B
28.89±0.97
−7.11±0.02
3.10±0.02
5.93±0.04
4.14±0.04
+GRPO
38.97±1.05
−7.38±0.02
3.03±0.02 (-2.3%)
5.77±0.04 (-2.7%)
3.99±0.04 (-3.6%)
+GUT-O
38.06±1.07
−8.54±0.02
2.78±0.02 (-10.3%)
5.27±0.04 (-11.1%)
3.32±0.03 (-19.8%)
Qwen3-1.7B
71.11±1.00
−14.54±0.03
1.68±0.02
5.51±0.06
1.58±0.03
+GRPO
72.93±0.95
−14.28±0.04
1.69±0.02 (+0.6%)
5.41±0.06 (-1.8%)
1.62±0.03 (+2.5%)
Appendix
Table 14: Comparisons of UO performance for Qwen3 families across 5 reasoning datasets, where ‘+’ indicates the applied fine-tuning method, and values in parentheses indicate the percentage change in mean uncertainty.
Model
UQ
GSM8K
MATH-500
AMC2022-2024
FOLIO
MMLU-Pro
Qwen3-0.6B
GUT-Q-W
0.2755 ± 0.0203
0.1611 ± 0.0314
0.3310 ± 0.0646
0.2397 ± 0.0548
0.2566 ± 0.0432
GUT-Q-H
0.2033 ± 0.0220
0.1718 ± 0.0345
0.0724 ± 0.0690
0.1917 ± 0.0484
0.2542 ± 0.0449
GUT-Q-UP
0.2980 ± 0.0207
0.0734 ± 0.0337
0.1034 ± 0.0695
0.2450 ± 0.0495
0.2243 ± 0.0470
Qwen3-1.7B
GUT-Q-W
0.2961 ± 0.0206
0.3874 ± 0.0308
0.3462 ± 0.0601
0.3145 ± 0.0539
0.3521 ± 0.0406
GUT-Q-H
0.2199 ± 0.0227
0.3213 ± 0.0291
0.3297 ± 0.0604
0.2773 ± 0.0594
0.3191 ± 0.0382
GUT-Q-UP
0.3302 ± 0.0238
0.3260 ± 0.0366
0.1531 ± 0.0637
0.3952 ± 0.0512
0.2042 ± 0.0544
Appendix
Table 15: PCCs between the MTLP optimization target and GUT-Q-derived uncertainties across 4 LLMs and 5 datasets.
Figure 5: Ablation comparisons of UQ performance.
Figure 6: Impact of the number of samples K on UQ performance.
Figure 7: Impact of the temperature T on UQ performance.
Figure 8: Impact of the number of shots F on UQ performance.
Figure 9: Impact of the criterion for determining equivalence with the NLI model.
Figure 10: Application of our proposed GUT to two test instances from the MATH-500 dataset using Qwen3-4B. For illustrative purposes, the width and height are obtained by removing the node uncertainty in GUT-Q-W and GUT-Q-H, respectively.
National Key Laboratory for Novel Software Technology, Nanjing University, China. · School of Intelligent Science and Technology, Nanjing University, China.