Towards automatically generating summary comments for Java methods
The DOI matches its Crossref record; 33 of the 33 references it cites were found in a registry or an index.
Abstract
Studies have shown that good comments can help programmers quickly understand what a method does, aiding program comprehension and software maintenance. Unfortunately, few software projects adequately comment the code. One way to overcome the lack of human-written summary comments, and guard against obsolete comments, is to automatically generate them. In this paper, we present a novel technique to automatically generate descriptive summary comments for Java methods. Given the signature and body of a method, our automatic comment generator identifies the content for the summary and generates natural language text that summarizes the method's overall actions. According to programmers who judged our generated comments, the summaries are accurate, do not miss important content, and are reasonably concise.
Overview
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“Initially, template-based approaches were popular [17,26,27,56,61]; however, creating a list of templates with good coverage is very challenging.”
From Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization) (2024) · cites this paper as [61]
Citations
Cites
Refactoring: Improving the Design of Existing Code
Fowler, M. (2002) · Lecture Notes in Computer Science · doi:10.1007/3-540-45672-4_31 · Cited by 5,591
Knuth, D. E. (1984) · The Computer Journal · doi:10.1093/comjnl/27.2.97 · Cited by 1,467 · cited 1×
“Specifically, they use symbolic execution to identify under what conditions the exception is thrown, and then use a set of templates to generate the textual comment for these conditions.”
BackgroundBuilding Natural-Language Generation Systems
Reiter, E. (1996) · arXiv (Cornell University) · doi:10.48550/arxiv.cmp-lg/9605002 · Cited by 1,228 · cited 1×
“Similar to how an abstract provides a summary for a natural language document [18], a descriptive summary comment for a method can help programmers quickly understand what a method does, aiding program comprehension and software maintenance.”
BackgroundMani, I. (2001) · Natural Language Processing · doi:10.1075/nlp.3 · Cited by 834
A Survey on Shari’Ah Governance Practices in Malaysia, GCC Countries and the UKPreprint
Hasan, Z. (2011) · SSRN Electronic Journal · Cited by 452
A study of the documentation essential to software maintenance
de Souza, S. C. B., Anquetil, N., & de Oliveira, K. M. (2005) · Proceedings of the 23rd annual international conference on Design of communication: documenting & designing for pervasive information · doi:10.1145/1085313.1085331 · Cited by 305
Ball, T., & Larus, J. R. (1993) · Proceedings of the ACM SIGPLAN 1993 conference on Programming language design and implementation · doi:10.1145/155090.155119 · Cited by 289 · cited 1×
“In the future, we will improve content selection by excluding if blocks handling special cases and error return paths, by possibly leveraging branch execution frequency estimation [1].”
BackgroundPickerell, A. G., & Dornin, M. (1968) · University of California Press eBooks · doi:10.1525/9780520339668 · Cited by 266
A survey on Shari'ah governance practices in Malaysia, GCC countries and the UK: Critical appraisal
Hasan, Z. (2011) · International Journal of Islamic and Middle Eastern Finance and Management · doi:10.1108/17538391111122195 · Cited by 240
Using profile information to assist classic code optimizations
Chang, P. P., Mahlke, S. A., & Hwu, W. W. (1991) · Software: Practice and Experience · doi:10.1002/spe.4380211204 · Cited by 237 · cited 1×
“While useful in targeting optimization [4], these statements do not represent content for a summary.”
Background
Research works printed but not linked: 7
- Fowler M., 1999, Addison-Wesley
- 10.5555/882506.885157 · doi:10.5555/882506.885157
- Hill E., 2010, University of Delaware
- Marin D. P., 2005, University of California
- 10.5555/331955 · doi:10.5555/331955
- Seacord R. C., 2003, Inc.
- Takang A. A., 1996, J. Prog. Lang., 4
Cited by
Items 501–525 of 525
Mining Work Items to Streamline Software Maintenance Tasks
Perez-Rosero, S. (2024) · Lincoln (University of Nebraska)
Automatic comment generation using the source code
Yıldız, E. (2018) · Akademik Açık Erişim (Işık Üniversitesi)
Exploring The Use Of LLMs In Agile Technical Documentation Writing
Birru, H. (2024) · Doria (University of Helsinki) · Cited by 2
Leveraging informal documentation to automatically summarize the usage of code entities
Naghshzan, A. (2024) · Espace ÉTS (ETS)
A Fully Automated Agent for End-to-End Code Translation and Validation
Erer, E., Bozanta, A., Aytac, T., & Basar, A. (2025) · Proceedings of the ... ACM-IEEE International Symposium on Empirical Software Engineering and Measurement/International Symposium on Empirical Software Engineering and Measurement · doi:10.1109/esem64174.2025.00058
“Code comments and documentation play an important role in improving code comprehension by providing high-level descriptions of functionality and intent [16].”
A Fully Automated Agent for End-to-End Code Translation and Validation
Erer, E., Bozanta, A., Aytac, T., & Basar, A. (2025) · IEEE International Conference on Collaborative Advances in Software and Computing (CASCON) · doi:10.1109/cascon66301.2025.00128
“Code comments and documentation play an important role in improving code comprehension by providing high-level descriptions of functionality and intent [16].”
AppBDS: LLM-Powered Description Synthesis for Sensitive Behaviors in Mobile Apps
Liu, Z., & Xiao, X. (2025) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase63991.2025.00078 · Cited by 1
Automated Code Description: Practical Linguistic Systems for Agile Development Environments
Parekh, S. (2025) · International Conference for Advancement in Technology (ICONAT) · doi:10.1109/iconat66879.2025.11362875
KG-Code: A Knowledge Graph Guided Pre-Training Approach for Code Representation
Zhang, H., & Kishi, T. (2025) · Asia-Pacific Software Engineering Conference (APSEC) · doi:10.1109/apsec66846.2025.00095
Zhong, M., Huizhu, L., Ting, Y., Kang, C., Xi, C., Yi, J., & Cheng, Y. (2026) · International Journal of Machine Learning and Cybernetics · doi:10.1007/s13042-026-03045-0
Deen, R. A.-M. (2014) · theses.fr (ABES) · doi:10.70675/235bf006z076az4352zb551z5ff7bc753d13 · Cited by 5
Srinivas, G., Anala, L., Kalyani, G., Darshini, P., & Hanish, J. V. R. S. S. M. (2026) · International Conference on Intelligent Sustainable Systems (ICISS) · doi:10.1109/iciss67859.2026.11453513
“As engineering students and researchers in software engineering, this situation is familiar—rushing to meet a deadline and thinkin ”I’ll do that later; this must be recorded” [1].”
Optimizing Knowledge Utilization for Multi-Intent Comment Generation With Large Language Models
Li, S., Wang, Z., Du, X., Wu, Z., Yu, J., & Chen, J. (2026) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2026.3687241
“However, in real-world projects, code and comments are often mismatched, with comments frequently being either missing or outdated [3], [4].”
Xu, D., Liu, M., Wang, X., Zhong, J., & Zheng, Z. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2604.26523
Nazar, N., & Treude, C. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2605.21943
“Foundational systems produced descriptive comments for Java methods via templates and linguistic modelling, and subsequent work extended these ideas to class-level summaries and statement selection guided by programmer salience [35, 25, 33, 32].”
Чермалих, О., & Кузнєцов, М. (2026) · Наука і техніка сьогодні · doi:10.52058/2786-6025-2026-4(58)-4694-4708
Kumar, J., Tanguturi, M. R., Janapati, L. S., & Chimalakonda, S. (2026) · Journal of Systems and Software · doi:10.1016/j.jss.2026.113010 · Cited by 1
Karthik, S., Balasubramanyam, A., Ravish, R., & Narayan, S. (2024) · International Journal of AI BigData Computational and Management Studies · doi:10.63282/3050-9416.ijaibdcms-v5i4p127
Neves, J. P., & Barros, J.-P. (2026) · International Conference on Information Technology Based Higher Education and Training (ITHET) · doi:10.1109/ithet69978.2026.11585076
“…representations such as Abstract Syntax Tree (AST), Control Flow Graph (CFG), and Data Flow Graph (DFG) is valued for interpretability and formal guarantees; early work demonstrated that source code carries enough semantic signal to support automatic natural-language summaries of methods [5].”
A Grounded Theory Study to Guide AI‐Driven Code Comment Improvement
Dhakal, M., Su, C., Wallace, R., Fakhimi, C., Bansal, A., Li, T., Huang, Y., & McMillan, C. (2026) · Journal of Software Evolution and Process · doi:10.1002/smr.70157
CRACS: Question-Driven Assessment of Legacy Code Summaries in Industrial IBM-i Modernization
Kouadio, N. H., Acher, M., Barais, O., & Jezéquél, J. (2026) · IEEE International Working Conference on Source Code Analysis and Manipulation (SCAM) · doi:10.1109/scam71261.2026.00031
Hierarchical Code Abstraction via Unified GraphRAG on Multi-Grained Graphs
Bao, Z., Ding, W., Wang, J., Zhang, Y., Yang, Z., Sun, Z., & Cichocki, A. S. (2026) · International Joint Conference on Neural Networks (IJCNN) · doi:10.1109/ijcnn69854.2026.11729626
“Code summarization has evolved from early information retrieval and handcrafted templates [2], [3] to deep learning techniques employing recurrent neural networks [4].”
BRAD: Enhancing Code summarization with Bytecode Retrieval-Augmented Deliberation model
Wang, J., Zhang, W., Lan, P., & Liao, Z. (2026) · ACM International Conference on Information and Knowledge Management (CIKM) · doi:10.1145/3799682.3840812
Zhu, Y., Li, X., Zhao, X., Ma, Z., Li, K., Yuan, H., Zou, Y., & Xie, B. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3862475
Novices’ Code Comprehension Performance When Freely Prompting LLMs for Assistance
Sajib, M. I., Chapagain, J., Tamang, S., Kendeou, P., & Rus, V. (2026) · Lecture notes in computer science · doi:10.1007/978-3-032-31660-8_29
Metadata
- Authors
- Sridhara, G., Hill, E., Muppaneni, D., Pollock, L., & Vijay-Shanker, K.
- Affiliations
- University of Delaware (US)
- University of Delaware, Newark, DE, USA
- Venue
- Proceedings of the IEEE/ACM international conference on Automated software engineering
- Publisher
- ACM
- Published
- 2010-09-20
- Pages
- 43-52
- OpenAlex
- W2082160726
- Cited by
- 514
- References
- 32
- Citations by year
- 2026: 9 · 2025: 29 · 2024: 31 · 2023: 52 · 2022: 46 · 2021: 41 · 2020: 56 · 2019: 50 · 2018: 41 · 2017: 34 · 2016: 23 · 2015: 30 · 2014: 26 · 2013: 16 · 2012: 16
- FWCI
- 10.33
- Type
- conference paper
- Language
- en
- Open access
- closed
- Locations
- IEEE/ACM International Conference on Automated Software Engineering (ASE) (publishedVersion)
- Topics
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Physical Sciences › Computer Science › Information Systems › Software Engineering Techniques and Practices
- Physical Sciences › Computer Science › Software › Advanced Software Engineering Methodologies
- Keywords
- Java methods, program comprehension, software maintenance, natural language generation, source code documentation
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.