With the widespread application of large language models (LLMs) in the field of code intelligence, increasing attention has been paid to the reliability and controllability of their outputs in code reasoning tasks. Confidence estimation serves as an effective and convenient approach for evaluating these aspects. This paper proposes a confidence analysis and enhancement framework for LLMs tailored to code reasoning tasks. We conduct a comprehensive empirical study on the confidence reliability of mainstream LLMs across different tasks, and further evaluate the effectiveness of techniques such as prompt strategy optimisation and mathematical calibration (e.g., Platt Scaling) in improving confidence reliability. Our results show that DeepSeek-Reasoner achieves the best performance across various tasks, outperforming other models by up to $0.680$, $0.636$, and $13.652$ in terms of ECE, Brier Score, and Performance Score, respectively. The hybrid strategy combining the reassess prompt strategy and Platt Scaling achieves improvements of up to $0.541$, $0.628$, and $15.084$ over the original performance in the aforementioned three metrics. These results indicate that models with reasoning capabilities demonstrate superior confidence reliability, and that the hybrid strategy is the most effective in enhancing the confidence reliability of various models. Meanwhile, we elucidate the impact of different task complexities, model scales, and strategies on confidence performance, and highlight that the confidence of current LLMs in complex reasoning tasks still has considerable room for improvement. This study not only provides a research foundation and technical reference for the application of confidence in LLM-assisted software engineering, but also points the way for future optimisation and engineering deployment of confidence mechanisms.
DREAM: Domain-aware Reasoning for Efficient Autonomous Underwater Monitoring
Electrical Engineering, University of South Florida(佛罗里达州立大学电气工程系);Maryland Robotics Center (MRC), University of Maryland(马里兰大学机器人中心);Woods Hole Oceanographic Institution (WHOI)(伍兹霍尔海洋研究所);Mechanical Engineering, University of Delaware(德雷克塞尔大学机械工程系)
Escaping Confidence Trap: Evolutionary Decoding for Mathematical Reasoning in Diffusion LLMs
Australian National University(澳大利亚国立大学);Nanyang Technological University(南洋理工大学);National University of Singapore(新加坡国立大学);Amazon(亚马逊);University of Technology Sydney(悉尼科技大学)
C$^2$GSPG: Confidence-calibrated Group Sequence Policy Gradient towards Self-aware Reasoning
Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高陵人工智能学院);Tsinghua University(清华大学);Beijing Key Laboratory of Research on Large Models(北京大模型研究关键实验室);Engineering Research Center of Next-Generation Intelligent Search(下一代智能搜索工程研究中心)
Seeing and Reasoning with Confidence: Supercharging Multimodal LLMs with an Uncertainty-Aware Agentic Framework
University College London(伦敦大学学院);National Health Service(英国国家医疗服务体系);University of Surrey(萨里大学);Samsung AI Centre(三星人工智能中心);Queen Mary University of London(伦敦玛丽女王大学)
Beyond Correctness: Confidence-Aware Reward Modeling for Enhancing Large Language Model Reasoning
Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Shanghai Key Laboratory of Data Science, School of Computer Science, Fudan University(上海数据科学关键实验室,计算机科学学院,复旦大学)
Double-Calibration: Towards Reliable LLMs via Calibrating Knowledge and Reasoning Confidence
School of Computer Science and Engineering, Sun Yat-sen University, Guangzhou, China(中山大学计算机科学与工程学院,广州,中国);Department of Computing, The Hong Kong Polytechnic University, Hong Kong SAR(香港理工大学计算机系,香港特别行政区);School of Science and Technology, Hong Kong Metropolitan University, Hong Kong SAR(香港 Metropolitan 大学科技学院,香港特别行政区)
PACR: Progressively Ascending Confidence Reward for LLM Reasoning
Korea Advanced Institute of Science and Technology (KAIST)(韩国科学技术院);Microsoft Research Asia (MSRA)(微软亚洲研究院);University of Illinois at Urbana-Champaign (UIUC)(伊利诺伊大学厄巴纳-香槟分校)
Efficient Test-Time Scaling via Temporal Reasoning Aggregation
School of Computer Science and Engineering, Beihang University(北航计算机科学与工程学院);Qingdao Research Institute, Beihang University(北航青岛研究院);Hangzhou Innovation Institute, Beihang University(北航杭州创新研究院)
CURE: Confidence-driven Unified Reasoning Ensemble Framework for Medical Question Answering
School of Information Technology and Computer Science, Nile University(信息科技与计算机科学学院,尼罗大学);Graduate School of Information Science, University of Hyogo(信息科学研究生院,播磨大学);Advanced Medical Engineering Research Institute, University of Hyogo(先进医疗工程研究所,播磨大学)
Confidence as a Reward: Transforming LLMs into Reward Models
Fudan University(复旦大学);Shanghai AI Laboratory(上海人工智能实验室);Xidian University(西安电子科技大学);The Chinese University of Hong Kong(香港中文大学);Nanyang Technological University(南洋理工大学)
Probability is Not Enough: Exploring and Counting Divergent Tokens for Reasoning Uncertainty Quantification in LLMs
College of Computer Science and Software Engineering, Shenzhen University(深圳大学计算机与软件学院);Tsinghua University(清华大学);Behavioral and Spatial AI Lab, Peking University & Tongji University(北京大学与同济大学行为与空间人工智能实验室)
SeLaR: Selective Latent Reasoning in Large Language Models
Guangdong Provincial Key Laboratory of Ultra High Definition Immersive Media Technology(广东省超高清沉浸式媒体技术重点实验室);Shenzhen Graduate School, Peking University(北京大学深圳研究生院)