RAPRSUM: Retrieval-Augmented Code Summarization with Advanced Prototype Refinement

Code summarization aims to automatically generate natural language descriptions for code snippets, thereby enhancing programmers’ comprehension of the code and significantly improving code maintainability and development efficiency. Code reuse is a prevalent practice in software development, and information retrieval approaches, which leverage similar summaries from a corpus, have shown promising results. However, these approaches often heavily rely on the quality of the corpus, and discrepancies between retrieved and target summaries may result in inaccuracies or incomplete descriptions. In this paper, we propose RAPRSUM, a retrieval-augmented code summarization framework that integrates information retrieval and deep learning techniques. Specifically, RAPRSUM refines retrieved summary prototypes using a deep learning model to preserve essential information while eliminating redundancy. A pretrained large language model is then employed to generate the final summary by jointly considering the input code and the refined prototype. We evaluated RAPRSUM on three public datasets, demonstrating its significant improvement over existing baseline methods. Additional ablation studies confirm the effectiveness of the proposed modules. Finally, through case analysis and robustness verification, we highlight RAPRSUM’s superior performance in generating high-quality code summaries.

Authors

Institutions

Publication Details

Journal
International Journal of Software Engineering and Knowledge Engineering
Published
2025-06-27
DOI
https://doi.org/10.1142/s0218194025500317
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

RAPRSUM: Retrieval-Augmented Code Summarization with Advanced Prototype Refinement

X. J. Wang, Yangbo Lin, Bin Chen, Shanggui Zhan et al.
International Journal of Software Engineering and Knowledge Engineering
Natural Language Processing Techniques
article

RAPRSUM: Retrieval-Augmented Code Summarization with Advanced Prototype Refinement

X. J. Wang, Yangbo Lin, Bin Chen, Shanggui Zhan, Dan Wei
article en

Abstract

Code summarization aims to automatically generate natural language descriptions for code snippets, thereby enhancing programmers’ comprehension of the code and significantly improving code maintainability and development efficiency. Code reuse is a prevalent practice in software development, and information retrieval approaches, which leverage similar summaries from a corpus, have shown promising results. However, these approaches often heavily rely on the quality of the corpus, and discrepancies between retrieved and target summaries may result in inaccuracies or incomplete descriptions. In this paper, we propose RAPRSUM, a retrieval-augmented code summarization framework that integrates information retrieval and deep learning techniques. Specifically, RAPRSUM refines retrieved summary prototypes using a deep learning model to preserve essential information while eliminating redundancy. A pretrained large language model is then employed to generate the final summary by jointly considering the input code and the refined prototype. We evaluated RAPRSUM on three public datasets, demonstrating its significant improvement over existing baseline methods. Additional ablation studies confirm the effectiveness of the proposed modules. Finally, through case analysis and robustness verification, we highlight RAPRSUM’s superior performance in generating high-quality code summaries.

International Journal of Software Engineering and Knowledge EngineeringVol. 35(08)
Hangzhou Dianzi University (CN), Zhejiang University of Technology (CN)
Openalex Percentile: Top 93%
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

RAPRSUM: Retrieval-Augmented Code Summarization with Advanced Prototype Refinement — X. J. Wang, Yangbo Lin, et al. · International Journal of Software Engineering and Knowledge Engineering (2025) | TGRS Research Map | TGRS