본문 바로가기

쓰기

 
저자 YunSeok Choi, Cheolwon Na, Hyojun Kim, Jee-Hyong Lee 
논문지 IEEE Access 
Vol. 11 
No.  
pp. 51155 - 51165 
게재일 2023-05-01 
Code summarization is the process of automatically generating brief and informative sum-maries 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.

    2023

    2022

    2021

    2019

      Adversarial Detection with Gaussian Process Regression-based Detector
      2019.09.02
      저자: Sangheon Lee, Noo-ri Kim, Youngwha Cho, Jae-Young Choi, Suntae Kim, Jeong-Ah Kim, Jee-Hyong Lee     논문지: KSII Transactions on Internet and Information Systems     Vol.: 13     No.: 8     pp.: 4285-4299     게재일: 2019-08-01    

    2018

    2017

    2016