arrow
返回

READSUM: Retrieval-Augmented Adaptive Transformer for Source Code Summarization

delete2023-01-01
delete4
delete
OA
AI
Y
YunSeok Choi
C
CheolWon Na
H
Hyojun Kim
J
Jee-Hyong Lee *
DOI:10.1109/ACCESS.2023.3271992delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
Code summarization is the process of automatically generating brief and informative summaries of source code to aid in software comprehension and maintenance. In this paper, we propose a novel model called READSUM, REtrieval-augmented ADaptive transformer for source code SUMmarization, that combines both abstractive and extractive approaches. Our proposed model generates code summaries in an abstractive manner, taking into account both the structural and sequential information of the input code, while also utilizing an extractive approach that leverages a retrieved summary of similar code to increase the frequency of important keywords. To effectively blend the original code and the retrieved similar code at the embedding layer stage, we obtain the augmented representation of the original code and the retrieved code through multi-head self-attention. In addition, we develop a self-attention network that adaptively learns the structural and sequential information for the representations in the encoder stage. Furthermore, we design a fusion network to capture the relation between the original code and the retrieved summary at the decoder stage. The fusion network effectively guides summary generation based on the retrieved summary. Finally, READSUM extracts important keywords using an extractive approach and generates high-quality summaries using an abstractive approach that considers both the structural and sequential information of the source code. We demonstrate the superiority of READSUM through various experiments and an ablation study. Additionally, we perform a human evaluation to assess the quality of the generated summary.
Keyword:
Codes
Transformers
Source coding
Syntactics
Data mining
Task analysis
Adaptive systems
Shortest path problem
Abstract syntax tree
adaptive transformer
source code summarization
fusion network
shortest path
Esale: Enhancing Code-Summary Alignment Learning for Source Code SummarizationEsale: 用于源代码摘要的增强代码摘要对齐学习
err2024-08-01
err2
PREAI
errFang, Chunrong; Sun, Weisong; Chen, Yuchen; Chen, Xiao; Wei, Zhao; Zhang, Quanjun; You, Yudu; Luo, Bin; Liu, Yang; Chen, Zhenyu
err分享
err收藏
An Extractive-and-Abstractive Framework for Source Code Summarization用于源代码摘要的提取和抽象框架
err2024-03-14
err5
errOAAI
errSun, Weisong; Fang, Chunrong; Chen, Yuchen; Zhang, Quanjun; Tao, Guanhong; You, Yudu; Han, Tingxu; Ge, Yifei; Hu, Yuling; Luo, Bin; Chen, Zhenyu
err分享
err收藏
Transforming MPI source code based on communication patterns
err2010-01-01
err15
PREAI
errPreissl, Robert; Schulz, Martin; Kranzlmueller, Dieter; de Supinski, Bronis R.; Quinlan, Daniel J.
err分享
err收藏
Fret: Functional Reinforced Transformer With BERT for Code Summarization
err2020-01-01
err31
errOAAI
errWang, Ruyun; Zhang, Hanwen; Lu, Guoliang; Lyu, Lei; Lyu, Chen
err分享
err收藏
A review of automatic source code summarization源代码自动摘要综述
err2024-10-07
err1
PREAI
errZhang, Xuejun; Hou, Xia; Qiao, Xiuming; Song, Wenfeng
err分享
err收藏

期刊

IEEE Access 封面图
IEEE Access
IF:
3.6
论文数:
10.1W
被引数:
36.3W

机构

S
sungkyunkwan university(skku)
学者数:
24
论文数: 8
被引数: 2.1W
引用论文

引用论文

SCALING WITH KNOWN UNCERTAINTY: A SYNTHESIS
err2006-01-01
err0
PREAI
errJIANGUO WU; HARBIN LI; K. BRUCE JONES; ORIE L. LOUCKS
err分享
err收藏
Caveolin-1 and -2 regulate cell motility in castration-resistant prostate cancer
err2018-10-01
err0
errOAAI
errToyoharu Kamibeppu; Koji Yamasaki; Kozue Nakahara; Takahiro Nagai; Naoki Terada; Hiromasa Tsukino; Shoichiro Mukai; Toshiyuki Kamoto
err分享
err收藏
Molecular carcinogenesis in equine penile cancer: A potential animal model for human penile cancer
err2018-12-01
err0
PREAI
errAlejandro Suárez-Bonnet; Claire Willis; Rachel Pittaway; Ken Smith; Tim Mair; Simon L. Priestnall
err分享
err收藏
Establishment and characterization of a new triple-negative canine mammary cancer cell line
err2018-10-01
err0
PREAI
errHong Zhang; Shimin Pei; Bin Zhou; Huanan Wang; Hongchao Du; Di Zhang; Degui Lin
err分享
err收藏
Anthelmintic efficacy of cranberry vine extracts on ovine Haemonchus contortus
err2018-04-01
err0
errOAAI
errCarly D. Barone; Anne M. Zajac; Laura A. Manzi-Smith; Amy B. Howell; Jess D. Reed; Christian G. Krueger; Katherine H. Petersson
err分享
err收藏
Is pain relief after vaginal mesh and/or sling removal durable long term?
err2017-07-10
err0
PREAI
errKaren Jong; Shreeya Popat; Alana Christie; Philippe E. Zimmern
err分享
err收藏
Are we estimating the adverse effects of shock-wave lithotripsy on a faulty scale?
err2014-06-01
err0
PREAI
errDavor Eterović; Marijan Šitum; Vinko Marković; Krunoslav Kuna; Ante Punda
err分享
err收藏
学者 查看更多内容