{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,20]],"date-time":"2026-11-20T19:43:03Z","timestamp":1795203783991,"version":"4.10.3"},"reference-count":55,"publisher":"Association for Computing Machinery (ACM)","issue":"FSE","license":[{"start":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T00:00:00Z","timestamp":1750291200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"funder":[{"DOI":"10.13039\/100000001","name":"NSF","doi-asserted-by":"publisher","award":["2107592"],"award-info":[{"award-number":["2107592"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Softw. Eng."],"published-print":{"date-parts":[[2025,6,19]]},"abstract":"<jats:p>A brief, fluent, and relevant summary can be helpful during program comprehension; however, such a summary does require significant human effort to produce. Often, good summaries are unavailable in software projects, which makes maintenance more difficult. There has been a considerable body of research into automated AI-based methods, using Large Language models (LLMs), to generate summaries of code; there also has been quite a bit of work on ways to measure the performance of such summarization methods, with special attention paid to how closely these AI-generated summaries resemble a summary a human might have produced. Measures such as BERTScore and BLEU have been suggested and evaluated with human-subject studies.<\/jats:p>\n                  <jats:p>\n                    However, LLM-generated summaries can be inaccurate, incomplete,\n                    <jats:italic toggle=\"yes\">etc.<\/jats:italic>\n                    ; generally, too dissimilar to one that a good developer might write. Given an LLM-generated code summary, how can a user rationally judge if a summary is sufficiently good and reliable? Given just some input source code, and an LLM-generated summary, existing approaches can help judge brevity, fluency and relevance of the summary; however, it\u2019s difficult to gauge whether an LLM-generated summary sufficiently resembles what a human might produce, without a \u201cgolden\u201d human-produced summary to compare against. We study this resemblance question as a\n                    <jats:italic toggle=\"yes\">calibration<\/jats:italic>\n                    problem: given just the code &amp; the summary from an LLM, can we compute a\n                    <jats:italic toggle=\"yes\">confidence<\/jats:italic>\n                    measure, that provides a reliable indication of whether the summary sufficiently resembles what a human would have produced in this situation? We examine this question using several LLMs, for several languages, and in several different settings. Our investigation suggests approaches to provide reliable predictions of the likelihood that an LLM-generated summary would sufficiently resemble a summary a human might write for the same code.\n                  <\/jats:p>","DOI":"10.1145\/3729400","type":"journal-article","created":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T11:15:34Z","timestamp":1750331734000},"page":"2944-2964","source":"Crossref","is-referenced-by-count":18,"title":["Calibration of Large Language Models on Code Summarization"],"prefix":"10.1145","volume":"2","author":[{"ORCID":"https:\/\/orcid.org\/0009-0006-8748-4889","authenticated-orcid":false,"given":"Yuvraj","family":"Virk","sequence":"first","affiliation":[{"name":"University of California at Davis, Davis, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-0818-2430","authenticated-orcid":false,"given":"Premkumar","family":"Devanbu","sequence":"additional","affiliation":[{"name":"University of California at Davis, Davis, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4427-1350","authenticated-orcid":false,"given":"Toufique","family":"Ahmed","sequence":"additional","affiliation":[{"name":"University of California at Davis, Davis, USA"},{"name":"IBM Research, Yorktown Heights, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,6,19]]},"reference":[{"key":"e_1_3_1_2_1","unstructured":"Wetter und Klima - Deutscher Wetterdienst. 2024. Our Services - Skill Measure: Brier Skill Score. https:\/\/www.dwd.de\/EN\/ourservices\/seasonals_forecasts\/forecast_reliability.html."},{"key":"e_1_3_1_3_1","doi-asserted-by":"crossref","unstructured":"Saima Afrin Joseph Call Khai-Nguyen Nguyen Oscar Chaparro Antonio Mastropaolo. 2025. Resource-Efficient & Effective Code Summarization. arXiv:2502.03617 [cs.SE]. https:\/\/arxiv.org\/abs\/2502.03617.","DOI":"10.1109\/Forge66646.2025.00032"},{"key":"e_1_3_1_4_1","doi-asserted-by":"publisher","unstructured":"Wasi Ahmad Saikat Chakraborty Baishakhi Ray Kai-Wei Chang. 2021. Unified Pre-training for Program Understanding and Generation. arXiv. doi:10.18653\/v1\/2021.naacl-main.211.","DOI":"10.18653\/v1\/2021.naacl-main.211"},{"key":"e_1_3_1_5_1","doi-asserted-by":"publisher","unstructured":"Toufiq Ahmed Premkumar Devanbu. 2022. Few-shot training LLMs for project-specific code-summarization. Proceedings of the 37th IEEE\/ACM International Conference on Automated Software Engineering 1\u20135. doi:10.1145\/3555139.3555955.","DOI":"10.1145\/3555139.3555955"},{"key":"e_1_3_1_6_1","doi-asserted-by":"publisher","unstructured":"Toufiq Ahmed Premkumar Devanbu. 2022. Multilingual training for software engineering. Proceedings of the 44th International Conference on Software Engineering (ICSE) 1443\u20131455. doi:10.1145\/3510003.3510049.","DOI":"10.1145\/3510003.3510049"},{"key":"e_1_3_1_7_1","doi-asserted-by":"publisher","unstructured":"Toufiq Ahmed Kunal Suresh Pai Premkumar Devanbu Earl Barr. 2024. Automatic Semantic Augmentation of Language Model Prompts for Code Summarization. Proceedings of the 46th International Conference on Software Engineering. doi:10.1145\/3597503.3639183.","DOI":"10.1145\/3597503.3639183"},{"key":"e_1_3_1_8_1","unstructured":"Satya Banerjee Jan Adon. 2005. METEOR: An Automatic Metric for MT Evaluation with Improved Correlation with Human Judgments. Proceedings of the ACL Workshop on Intrinsic and Extrinsic Evaluation Measures for Machine Translation and\/or Summarization 65\u201372. https:\/\/aclanthology.org\/W05-0909\/."},{"key":"e_1_3_1_9_1","doi-asserted-by":"publisher","DOI":"10.1175\/1520-0493(1950)078<0001:VOFEIT>2.0.CO;2"},{"key":"e_1_3_1_10_1","unstructured":"Tom Brown Benjamin Mann Nick Ryder et al. 2020. Language models are few-shot learners. Proceedings of the 34th International Conference on Neural Information Processing Systems (NeurIPS). Curran Associates Inc.."},{"key":"e_1_3_1_11_1","doi-asserted-by":"publisher","unstructured":"Angela Fan Beliz Gokaky Mark Harman et al. 2023. Large Language Models for Software Engineering: Survey and Open Problems. arXiv preprint. doi:10.1109\/ICSE-FoSE59343.2023.00008.","DOI":"10.1109\/ICSE-FoSE59343.2023.00008"},{"key":"e_1_3_1_12_1","doi-asserted-by":"publisher","unstructured":"Zhangyin Feng et al. 2020. CodeBERT: A Pre-Trained Model for Programming and Natural Languages. Findings of the Association for Computational Linguistics: EMNLP 2020. Association for Computational Linguistics. 1536\u20131547. doi:10.18653\/v1\/2020.findings-emnlp.139.","DOI":"10.18653\/v1\/2020.findings-emnlp.139"},{"key":"e_1_3_1_13_1","doi-asserted-by":"publisher","unstructured":"Beat Fluri Michael Wursch Harald Gall. 2007. Do Code and Comments Co-Evolve? On the Relation between Source Code and Comment Changes. Proceedings of the 14th Working Conference on Reverse Engineering (WCRE). 70\u201379. doi:10.1109\/WCRE.2007.21.","DOI":"10.1109\/WCRE.2007.21"},{"key":"e_1_3_1_14_1","doi-asserted-by":"publisher","unstructured":"Mingyang Geng et al. 2024. Large Language Models are Few-shot Summarizers: Multi-Intent Comment Generation via In-Context Learning. Proceedings of the IEEE\/ACM 46th International Conference on Software Engineering (ICSE). 39\u201343. doi:10.1145\/3597503.3608134.","DOI":"10.1145\/3597503.3608134"},{"key":"e_1_3_1_15_1","unstructured":"Chuan Guo Geoff Pleiss Yu Sun Kilian Weinberger. 2017. On Calibration of Modern Neural Networks. Proceedings of the 34th International Conference on Machine Learning (ICML). 1321\u20131330."},{"key":"e_1_3_1_16_1","doi-asserted-by":"publisher","unstructured":"Daya Guo et al. 2024. The Large Language Model Meets Programming: The Rise of Code Intelligence. arXiv preprint. doi:10.48550\/arXiv.2401.14196.","DOI":"10.48550\/arXiv.2401.14196"},{"key":"e_1_3_1_17_1","doi-asserted-by":"publisher","unstructured":"Sakib Haque Zachary Eberhart Aakash Bansal Colin McMillan. 2022. Semantic similarity metrics for evaluating source code summarization. Proceedings of the 30th IEEE\/ACM International Conference on Program Comprehension (ICPC). 36\u201347. doi:10.1145\/3524610.3527909.","DOI":"10.1145\/3524610.3527909"},{"key":"e_1_3_1_18_1","unstructured":"Myles Hollander Douglas A. Wolfe Eric Chicken. 2013. Nonparametric Statistical Methods. John Wiley & Sons."},{"issue":"8","key":"e_1_3_1_19_1","article-title":"Large language models for software engineering","volume":"33","author":"Hou Xinyi","year":"2024","unstructured":"Xinyi Hou, et al. 2024. Large language models for software engineering. ACM Transactions on Software Engineering and Methodology, 33, 8,101.","journal-title":"ACM Transactions on Software Engineering and Methodology"},{"key":"e_1_3_1_20_1","doi-asserted-by":"publisher","unstructured":"Xing Hu Xin Xia David Lo et al. 2022. Practitioners\u2019 expectations on automated code comment generation. Proceedings of the 44th International Conference on Software Engineering (ICSE). 1693\u20131705. doi:10.1145\/3510003.3510152.","DOI":"10.1145\/3510003.3510152"},{"key":"e_1_3_1_21_1","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2024.3519464"},{"key":"e_1_3_1_22_1","doi-asserted-by":"publisher","unstructured":"Kevin Jesse Toufiq Ahmed Premkumar Devanbu Emily Morgan. 2023. Large Language Models and Simple Stupid Bugs. Proceedings of the 2023 IEEE\/ACM 20th International Conference on Mining Software Repositories (MSR). 563\u2013575. doi:10.1109\/MSR59073.2023.00082.","DOI":"10.1109\/MSR59073.2023.00082"},{"key":"e_1_3_1_23_1","unstructured":"Daniel Johnson Daniel Tarlow Christian Walder. 2023. RU-SURE: Uncertainty-aware code suggestions by maximizing utility across random user intents. Proceedings of the 40th International Conference on Machine Learning. 15251\u201315263."},{"key":"e_1_3_1_24_1","unstructured":"Lorenz Kuhn Yarin Gal Sebastian Farquhar. 2023. Semantic Uncertainty: Linguistic Invariances for Uncertain Estimation in Neural Language Generation. Proceedings of the Eleventh International Conference on Learning Representations. https:\/\/openreview.net\/forum?id=VD-AYtPOdve."},{"key":"e_1_3_1_25_1","unstructured":"Chin-Yew Lin. 2004. ROUGE: A Package for Automatic Evaluation of Summaries. Text Summarization Branches Out. Association for Computational Linguistics. 74\u201381."},{"key":"e_1_3_1_26_1","unstructured":"Shuai Lu et al. 2021. A machine learning benchmark dataset for code understanding and generation. arXiv preprint. https:\/\/arxiv.org\/abs\/2102.04664."},{"key":"e_1_3_1_27_1","unstructured":"Andre Malinin Mark Gales. 2021. Uncertainty Estimation in Autoregressive Structured Prediction. International Conference on Learning Representations. https:\/\/openreview.net\/forum?id=JNyS-zb5Q7m."},{"key":"e_1_3_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/3597503.3639174"},{"key":"e_1_3_1_29_1","doi-asserted-by":"crossref","unstructured":"Mahdi Pakdaman Naeini Gregory F. Cooper Milos Hauskrecht. 2015. Obtaining Well Calibrated Probabilities Using Bayesian Binning. Proceedings of the Twenty-Ninth AAAI Conference on Artificial Intelligence. AAAI Press. 2901\u20132907.","DOI":"10.1609\/aaai.v29i1.9602"},{"key":"e_1_3_1_30_1","doi-asserted-by":"publisher","unstructured":"Noor Nashid Mifta Sintaha Adli Mesbah. 2023. Retrieval-Based Prompt Selection for Code-Related Few-Shot Learning. Proceedings of the 38th IEEE\/ACM International Conference on Software Engineering. 2450\u20132462. doi:10.1109\/ICSE48619.2023.00205.","DOI":"10.1109\/ICSE48619.2023.00205"},{"key":"e_1_3_1_31_1","unstructured":"Myle Ott Michael Auli David Grangier Marc'Aurelio Ranzato. 2018. Analyzing Uncertainty in Neural Machine Translation. CoRR abs\/1803.00047 (2018). arXiv:1803.00047. https:\/\/arxiv.org\/abs\/1803.00407."},{"key":"e_1_3_1_32_1","unstructured":"R.L. Ott M.T. Longnecker. 2015. An Introduction to Statistical Methods and Data Analysis. Cengage Learning."},{"key":"e_1_3_1_33_1","doi-asserted-by":"publisher","unstructured":"Kishen Perera Salim Roukos Todd Ward Eugene Charniak. 2002. Modelling the Translation of Machine Translation. Proceedings of the 40th Annual Meeting on Association for Computational Linguistics. 311\u2013318. doi:10.3115\/1073083.1073135.","DOI":"10.3115\/1073083.1073135"},{"key":"e_1_3_1_34_1","first-page":"61","article-title":"Probabilistic Outputs for Support Vector Machines","author":"Platt John","year":"1999","unstructured":"John Platt. 1999. Probabilistic Outputs for Support Vector Machines. Advances in Large Margin Classifiers. 61\u201374.","journal-title":"Advances in Large Margin Classifiers"},{"key":"e_1_3_1_35_1","doi-asserted-by":"publisher","DOI":"10.1561\/1500000019"},{"key":"e_1_3_1_36_1","doi-asserted-by":"publisher","unstructured":"Devjeet Roy Sarah Fakhoury Venera Arnaoudova. 2021. Reassessing Automatic Evaluation Metrics for Code Summarization Tasks. Proceedings of the 29th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering. 1106\u20131116. doi:10.1145\/3468264.3468588.","DOI":"10.1145\/3468264.3468588"},{"key":"e_1_3_1_37_1","unstructured":"Baptiste Roziere et al. 2023. Code Llama: Open Foundation Models for Code. arXiv preprint. https:\/\/arxiv.org\/abs\/2308.12950."},{"key":"e_1_3_1_38_1","doi-asserted-by":"publisher","unstructured":"Ensheng Shi et al. 2022. On the Evaluation of Neural Code Summarization. Proceedings of the 44th International Conference on Software Engineering. 1197\u20131208. doi:10.1145\/3510003.3510060.","DOI":"10.1145\/3510003.3510060"},{"key":"e_1_3_1_39_1","doi-asserted-by":"publisher","unstructured":"Claudio Spies et al. 2025. Calibration and Correctness of Language Models for Code. Proceedings of the IEEE\/ACM 47th International Conference on Software Engineering. 495\u2013507. doi:10.1109\/ICSE55347.2025.00040.","DOI":"10.1109\/ICSE55347.2025.00040"},{"key":"e_1_3_1_40_1","doi-asserted-by":"publisher","unstructured":"Giriprasad Shridara Emily Hill Divya Muppaneni Lori Pollock K. Vijay-Shanker. 2010. Towards Automatically Generating Summary Comments for Java Methods. Proceedings of the 25th IEEE\/ACM International Conference on Automated Software Engineering. 43\u201352. doi:10.1145\/1858996.1859006.","DOI":"10.1145\/1858996.1859006"},{"key":"e_1_3_1_41_1","doi-asserted-by":"publisher","unstructured":"Sean Stapleton Yashmeet Gambhir Alexander LeClair et al. 2020. A Human Study of Comprehension and Code Summarization. Proceedings of the 28th International Conference on Program Comprehension. 1\u201313. doi:10.1145\/3387904.3389258.","DOI":"10.1145\/3387904.3389258"},{"key":"e_1_3_1_42_1","unstructured":"Chia-Yi Su Aakash Bansal Yu Huang Toby Jia-Jun Li Collin McMillan. 2024. Context-aware Code Summary Generation. arXiv:2408.09006 [cs.SE]. https:\/\/arxiv.org\/abs\/2408.09006."},{"key":"e_1_3_1_43_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10515-024-00421-1"},{"key":"e_1_3_1_44_1","doi-asserted-by":"publisher","unstructured":"Weisong Sun Yun Miao Yuekang Li Hongyu Zhang Chunrong Fang Yi Lin Gelei Deng Yong Liu Steven C.H. Hoi. 2025. Source Code Summarization in the Era of Large Language Models. IEEE Transactions on Software Engineering 419\u2013431. doi:10.1109\/ICSE55347.2025.00034.","DOI":"10.1109\/ICSE55347.2025.00034"},{"key":"e_1_3_1_45_1","unstructured":"Pearu Peterson Warren Weckesser et al. 2023. SciPy 1.0 Contributors. SciPy. https:\/\/docs.scipy.org\/doc\/scipy\/reference\/generated\/scipy.stats.false_discovery_control.html."},{"key":"e_1_3_1_46_1","doi-asserted-by":"publisher","unstructured":"Shuo Wang Zhaopeng Tu Shuming Shi Yang Liu. 2020. On the Inference Calibration of Neural Machine Translation. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics 3070\u20133079. doi:10.18653\/v1\/2020.acl-main.278.","DOI":"10.18653\/v1\/2020.acl-main.278"},{"key":"e_1_3_1_47_1","doi-asserted-by":"crossref","unstructured":"Yue Wang Weishi Wang ShangJoty and Steven C.H. Hoi. 2021. CodeT5: Identifier-aware unified pre-trained encoder-decoder models for code understanding and generation. arXiv preprint. https:\/\/arxiv.org\/abs\/2109.00859.","DOI":"10.18653\/v1\/2021.emnlp-main.685"},{"key":"e_1_3_1_48_1","doi-asserted-by":"publisher","DOI":"10.52202\/068431-1800"},{"key":"e_1_3_1_49_1","unstructured":"Jay Biocic. 2023. How Good Are FiveThirtyEight Forecasts?. https:\/\/projects.fivethirtyeight.com\/checking-our-work\/."},{"key":"e_1_3_1_50_1","doi-asserted-by":"crossref","first-page":"640","DOI":"10.1175\/1520-0434(1990)005<0640:OTCOFP>2.0.CO;2","article-title":"On the Combination of Forecast Probabilities for Consecutive Precipitation Periods","volume":"5","author":"Wilks Daniel S.","year":"1990","unstructured":"Daniel S. Wilks. 1990. On the Combination of Forecast Probabilities for Consecutive Precipitation Periods. Weather and Forecasting, 5, 640\u2013650.","journal-title":"Weather and Forecasting"},{"key":"e_1_3_1_51_1","unstructured":"Bianca Zadrozny Charles Elkan. 2001. Obtaining calibrated probability estimates from decision trees and naive Bayesian classifiers. Proceedings of the Eighteenth International Conference on Machine Learning (ICML) 609\u2013616. Morgan Kaufmann."},{"key":"e_1_3_1_52_1","doi-asserted-by":"publisher","DOI":"10.1145\/775047.775151"},{"key":"e_1_3_1_53_1","doi-asserted-by":"publisher","DOI":"10.3390\/sym14030471"},{"key":"e_1_3_1_54_1","first-page":"388","article-title":"LLM-PACE: Confidence Estimation by Large Language Models for Effective Root Causing of Cloud Incidents","author":"Zhang Dylan","year":"2024","unstructured":"Dylan Zhang, Xuchao Zhang, Chetan Bansal, Pedro Las-Casas, Rodrigo Fonseca, Arda Saravan Rajmohan. 2024. LLM-PACE: Confidence Estimation by Large Language Models for Effective Root Causing of Cloud Incidents. ACM SIGMETRICS Performance Evaluation Review, 388\u2013398.","journal-title":"ACM SIGMETRICS Performance Evaluation Review"},{"key":"e_1_3_1_55_1","doi-asserted-by":"publisher","unstructured":"Zhenhao Zhou Chaofeng Sha Xin Peng. 2024. On Calibration of Pre-trained Code Models. Proceedings of the IEEE\/ACM 46th International Conference on Software Engineering 1\u201313. doi:10.1145\/3597503.3639126.","DOI":"10.1145\/3597503.3639126"},{"key":"e_1_3_1_56_1","unstructured":"Yuxiang Zhu Minxue Pan. 2019. Automatic code summarization: A systematic literature review. arXiv preprint. https:\/\/arxiv.org\/abs\/1909.04352."}],"container-title":["Proceedings of the ACM on Software Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3729400","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3729400","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,23]],"date-time":"2026-08-23T10:58:56Z","timestamp":1787482736000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3729400"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,6,19]]},"references-count":55,"journal-issue":{"issue":"FSE","published-print":{"date-parts":[[2025,6,19]]}},"alternative-id":["10.1145\/3729400"],"URL":"https:\/\/doi.org\/10.1145\/3729400","relation":{},"ISSN":["2994-970X"],"issn-type":[{"value":"2994-970X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,6,19]]}}}