mlsanityData to 14 Oct 2026

Fine-grained Approaches for Confidence Calibration of LLMs in Automated Code Revision

arXiv 2604.06723 ↗First posted 8 Apr 2026cs.SE cs.AIcited by 0

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

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  3. 2025Qwen3 Technical Reportcited by 8,820
  4. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  5. 2017On Calibration of Modern Neural Networkscited by 4,960
  6. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
  7. 2022Language Models (Mostly) Know What They Knowcited by 1,856
  8. 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,261
  9. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
  10. 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 819
  11. 2023Just Ask for Calibration: Strategies for Eliciting Calibrated Confidence Scores from Language Models Fine-Tuned with Human Feedbackcited by 812
  12. 2023SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Modelscited by 810
38 more
  1. 2020Quantifying Attention Flow in Transformerscited by 775
  2. 2022Teaching Models to Express Their Uncertainty in Wordscited by 751
  3. 2022MTEB: Massive Text Embedding Benchmarkcited by 640
  4. 2019Measuring Calibration in Deep Learningcited by 446
  5. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
  6. 2019Verified Uncertainty Calibrationcited by 309
  7. 2020Effect of Confidence and Explanation on Accuracy and Trust Calibration in AI-Assisted Decision Makingcited by 281
  8. 2022Grounded Copilot: How Programmers Interact with Code-Generating Modelscited by 218
  9. 2021On Calibration and Out-of-domain Generalizationcited by 134
  10. 2023Keep the Conversation Going: Fixing 162 out of 337 bugs for 0.42 each using ChatGPTcited by 125
  11. 2020Mitigating Bias in Calibration Error Estimationcited by 101
  12. 2022Automating Code Review Activities by Large-Scale Pre-trainingcited by 98
  13. 2023Impact of Code Language Models on Automated Program Repaircited by 85
  14. 2023A Large-Scale Survey on the Usability of AI Programming Assistants: Successes and Challengescited by 75
  15. 2023On the Calibration of Large Language Models and Alignmentcited by 73
  16. 2023Who Should I Trust: AI or Myself? Leveraging Human and AI Correctness Likelihood to Promote Appropriate Trust in AI-Assisted Decision-Makingcited by 67
  17. 2020On the Inference Calibration of Neural Machine Translationcited by 61
  18. 2020Post-hoc Uncertainty Calibration for Domain Drift Scenarioscited by 61
  19. 2022A Close Look into the Calibration of Pre-trained Language Modelscited by 57
  20. 2023PanGu-Sigma: Towards Trillion Parameter Language Model with Sparse Heterogeneous Computingcited by 56
  21. 2023How Effective Are Neural Networks for Fixing Security Vulnerabilitiescited by 52
  22. 2023RepairLLaMA: Efficient Representations and Fine-Tuned Adapters for Program Repaircited by 50
  23. 2024Calibration and Correctness of Language Models for Codecited by 49
  24. 2022Sample-dependent Adaptive Temperature Scaling for Improved Calibrationcited by 48
  25. 2023LLaMA-Reviewer: Advancing Code Review Automation with Large Language Models through Parameter-Efficient Fine-Tuningcited by 47
  26. 2024Multicalibration for Confidence Scoring in LLMscited by 46
  27. 2023Exploring the Potential of ChatGPT in Automated Code Refinement: An Empirical Studycited by 44
  28. 2023LitCab: Lightweight Language Model Calibration over Short- and Long-form Responsescited by 44
  29. 2024Large Language Model for Vulnerability Detection and Repair: Literature Review and the Road Aheadcited by 42
  30. 2022Robust Calibration with Multi-domain Temperature Scalingcited by 39
  31. 2024Thermometer: Towards Universal Calibration for Large Language Modelscited by 38
  32. 2023Investigating and Designing for Trust in AI-powered Code Generation Toolscited by 34
  33. 2021NL-EDIT: Correcting semantic parse errors through natural language interactioncited by 33
  34. 2023Human-Aligned Calibration for AI-Assisted Decision Makingcited by 28
  35. 2023On Uncertainty Calibration and Selective Generation in Probabilistic Neural Summarization: A Benchmark Studycited by 25
  36. 2023Generation Probabilities Are Not Enough: Uncertainty Highlighting in AI Code Completionscited by 20
  37. 2024Code Review Automation: Strengths and Weaknesses of the State of the Artcited by 20
  38. 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.