arrow
Return

Automatic source code summarization with graph attention networks

delete2022-06-01
delete26
delete
OA
AI
周
周余 (Yu Zhou)
X
Xiaoqing Zhang
W
Wenhua Yang
T
Tingting Han
T
Taolue Chen *
DOI:10.1016/j.jss.2022.111257delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Source code summarization aims to generate concise descriptions for code snippets in a natural language, thereby facilitates program comprehension and software maintenance. In this paper, we propose a novel approach-GSCS-to automatically generate summaries for Java methods, which leverages both semantic and structural information of the code snippets. To this end, GSCS utilizes Graph Attention Networks to process the tokenized abstract syntax tree of the program, which employ a multi-head attention mechanism to learn node features in diverse representation sub-spaces, and aggregate features by assigning different weights to its neighbor nodes. GSCS further harnesses an additional RNN-based sequence model to obtain the semantic features and optimizes the structure by combining its output with a transformed embedding layer. We evaluate our approach on two widely adopted Java datasets; the experiment results confirm that GSCS outperforms the state-of-the-art baselines. (c) 2022 Elsevier Inc. All rights reserved.
Keywords:
Source code summarization
Recurrent neural network
Graph neural network
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Journal of Systems and Software cover
Journal of Systems and Software
IF:
4.1
Papers:
5.5K
Citations:
8.4K

Organization

U
university of london
Scholars:
21.5W
Papers: 19.7W
Citations: 305
Cited Papers

Cited Papers

err
IF0
err
err0
errOAAI
err
errShare
errSave
errShare
errSave
On the Naturalness of Software
err2016-04-26
err164
PREAI
errHindle, Abram; Barr, Earl T.; Gabel, Mark; Su, Zhendong; Devanbu, Premkumar
errShare
errSave
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
errShare
errSave
Data on RNA-seq analysis of the cocoa pod borer pest Conopomorpha cramerella (Snellen) (Lepidoptera: Gracillariidae)
err2021-02-01
err0
errOAAI
errNor Azlan Nor Muhammad; Intan Azlinda Ramlee; Diana Mohd Nor; Mahasakthy Vijeyasri Satyavenathan; Nur Lina Rahmat; Alias Awang; Maizom Hassan
errShare
errSave
Acid catalysis in hydrolytic reactions
err1929-01-01
err0
PREAI
errJ. N. Brönsted; W. F. K. Wynne-Jones
errShare
errSave
researcher View more