Fine-grained Approaches for Confidence Calibration of LLMs in Automated Code Revision
Not on the map. Why?
Abstract (arXiv)
In today's AI-assisted software engineering landscape, developers increasingly depend on LLMs that are highly capable, yet inherently imperfect. The tendency of these models to produce incorrect outputs can reduce developer productivity. To this end, a canonical mitigation method is to provide calibrated confidence scores that faithfully reflect their likelihood of correctness at the instance-level. Such information allows users to make immediate decisions regarding output acceptance, abstain error-prone outputs, and better align their expectations with the model's capabilities. Since post-trained LLMs do not inherently produce well-calibrated confidence scores, researchers have developed post-hoc calibration methods, with global Platt-scaling of sequence-level confidence scores proving effective in many generative software engineering tasks but remaining unreliable or unexplored for automated code revision (ACR) tasks such as program repair, vulnerability repair, and code refinement. We hypothesise that the coarse-grained nature of this conventional method makes it ill-suited for ACR tasks, where correctness is often determined by local edit decisions and miscalibration can be sample-dependent, thereby motivating fine-grained confidence calibration. To address this, our study proposes local Platt-scaling applied separately to three different fine-grained confidence scores. Through experiments across 3 separate tasks and correctness metrics, as well as 14 different models of various sizes, we find that fine-grained confidence scores consistently achieve lower calibration error across a broader range of probability intervals, and this effect is further amplified when global Platt-scaling is applied. Our proposed approaches offer a practical solution to eliciting well-calibrated confidence scores, enabling more trustworthy and streamlined usage of imperfect models in ACR tasks.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 65 of its 86 references that are in the map. First posted on arXiv 8 Apr 2026.
Builds on
65 of 86 references.
References · 65
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2025Qwen3 Technical Reportcited by 8,820
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2017On Calibration of Modern Neural Networkscited by 4,960
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2022Language Models (Mostly) Know What They Knowcited by 1,856
- 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,261
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
- 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 819
- 2023Just Ask for Calibration: Strategies for Eliciting Calibrated Confidence Scores from Language Models Fine-Tuned with Human Feedbackcited by 812
- 2023SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Modelscited by 810
38 more
- 2020Quantifying Attention Flow in Transformerscited by 775
- 2022Teaching Models to Express Their Uncertainty in Wordscited by 751
- 2022MTEB: Massive Text Embedding Benchmarkcited by 640
- 2019Measuring Calibration in Deep Learningcited by 446
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
- 2019Verified Uncertainty Calibrationcited by 309
- 2020Effect of Confidence and Explanation on Accuracy and Trust Calibration in AI-Assisted Decision Makingcited by 281
- 2022Grounded Copilot: How Programmers Interact with Code-Generating Modelscited by 218
- 2021On Calibration and Out-of-domain Generalizationcited by 134
- 2023Keep the Conversation Going: Fixing 162 out of 337 bugs for 0.42 each using ChatGPTcited by 125
- 2020Mitigating Bias in Calibration Error Estimationcited by 101
- 2022Automating Code Review Activities by Large-Scale Pre-trainingcited by 98
- 2023Impact of Code Language Models on Automated Program Repaircited by 85
- 2023A Large-Scale Survey on the Usability of AI Programming Assistants: Successes and Challengescited by 75
- 2023On the Calibration of Large Language Models and Alignmentcited by 73
- 2023Who Should I Trust: AI or Myself? Leveraging Human and AI Correctness Likelihood to Promote Appropriate Trust in AI-Assisted Decision-Makingcited by 67
- 2020On the Inference Calibration of Neural Machine Translationcited by 61
- 2020Post-hoc Uncertainty Calibration for Domain Drift Scenarioscited by 61
- 2022A Close Look into the Calibration of Pre-trained Language Modelscited by 57
- 2023PanGu-Sigma: Towards Trillion Parameter Language Model with Sparse Heterogeneous Computingcited by 56
- 2023How Effective Are Neural Networks for Fixing Security Vulnerabilitiescited by 52
- 2023RepairLLaMA: Efficient Representations and Fine-Tuned Adapters for Program Repaircited by 50
- 2024Calibration and Correctness of Language Models for Codecited by 49
- 2022Sample-dependent Adaptive Temperature Scaling for Improved Calibrationcited by 48
- 2023LLaMA-Reviewer: Advancing Code Review Automation with Large Language Models through Parameter-Efficient Fine-Tuningcited by 47
- 2024Multicalibration for Confidence Scoring in LLMscited by 46
- 2023Exploring the Potential of ChatGPT in Automated Code Refinement: An Empirical Studycited by 44
- 2023LitCab: Lightweight Language Model Calibration over Short- and Long-form Responsescited by 44
- 2024Large Language Model for Vulnerability Detection and Repair: Literature Review and the Road Aheadcited by 42
- 2022Robust Calibration with Multi-domain Temperature Scalingcited by 39
- 2024Thermometer: Towards Universal Calibration for Large Language Modelscited by 38
- 2023Investigating and Designing for Trust in AI-powered Code Generation Toolscited by 34
- 2021NL-EDIT: Correcting semantic parse errors through natural language interactioncited by 33
- 2023Human-Aligned Calibration for AI-Assisted Decision Makingcited by 28
- 2023On Uncertainty Calibration and Selective Generation in Probabilistic Neural Summarization: A Benchmark Studycited by 25
- 2023Generation Probabilities Are Not Enough: Uncertainty Highlighting in AI Code Completionscited by 20
- 2024Code Review Automation: Strengths and Weaknesses of the State of the Artcited by 20
- 2024APPATCH: Automated Adaptive Prompting Large Language Models for Real-World Software Vulnerability Patchingcited by 19
50 most cited of 65 All 65 (JSON)
Built on by
Not cited yet.