arrow
Return

Function Call Graph Context Encoding for Neural Source Code Summarization

delete2023-09-01
delete5
PRE
AI
A
Aakash Bansal *
Z
Zachary Eberhart
Z
Zachary Karas
Y
Yu Huang
C
Collin McMillan
DOI:10.1109/TSE.2023.3279774delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Source code summarization is the task of writing natural language descriptions of source code. The primary use of these descriptions is in documentation for programmers. Automatic generation of these descriptions is a high value research target due to the time cost to programmers of writing these descriptions themselves. In recent years, a confluence of software engineering and artificial intelligence research has made inroads into automatic source code summarization through applications of neural models of that source code. However, an Achilles' heel to a vast majority of approaches is that they tend to rely solely on the context provided by the source code being summarized. But empirical studies in program comprehension are quite clear that the information needed to describe code much more often resides in the context in the form of Function Call Graph surrounding that code. In this paper, we present a technique for encoding this call graph context for neural models of code summarization. We implement our approach as a supplement to existing approaches, and show statistically significant improvement over existing approaches. In a human study with 20 programmers, we show that programmers perceive generated summaries to generally be as accurate, readable, and concise as human-written summaries.
Keywords:
Codes
Source coding
Context modeling
Decoding
Algorithms
Software engineering
Machine translation
Automatic documentation generation
context-aware models
neural networks
source code summarization
A review of automatic source code summarization
err2024-10-07
err1
PREAI
errZhang, Xuejun; Hou, Xia; Qiao, Xiuming; Song, Wenfeng
errShare
errSave
Automatic source code summarization with graph attention networks
err2022-06-01
err26
errOAAI
errZhou, Yu; Shen, Juanjuan; Zhang, Xiaoqing; Yang, Wenhua; Han, Tingting; Chen, Taolue
errShare
errSave
Autofolding for Source Code Summarization
err2017-12-01
err37
errOAAI
errFowkes, Jaroslav; Chanthirasegaran, Pankajan; Ranca, Razvan; Allamanis, Miltiadis; Lapata, Mirella; Sutton, Charles
errShare
errSave
Learning to Generate Structured Code Summaries From Hybrid Code Context
err2024-10-01
err0
PREAI
errZhou, Ziyi; Li, Mingchen; Yu, Huiqun; Fan, Guisheng; Yang, Penghui; Huang, Zijie
errShare
errSave
Project-specific code summarization with in-context learning
err2024-10-01
err1
PREAI
errYun, Shangbo; Lin, Shuhuai; Gu, Xiaodong; Shen, Beijun
errShare
errSave
Context-Aware Surveillance Video Summarization
err2016-11-01
err56
errOAAI
errZhang, Shu; Zhu, Yingying; Roy-Chowdhury, Amit K.
errShare
errSave

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
3.0K
Citations:
1.3W

Organization

U
University of Notre Dame
Scholars:
1.4K
Papers: 389
Citations: 8.3K
Cited Papers

Cited Papers

err
IF0
err
err0
errOAAI
err
errShare
errSave
Ninety-six suspected transfusion related acute lung injury cases: Investigation findings and clinical outcome
err2013-09-04
err0
errOAAI
errNay Win; Edwin Massey; Geoff Lucas; Deborah Sage; Colin Brown; Ann Green; Marcela Contreras; Cristina Navarrete
errShare
errSave
Digital Optical Card
err1995-01-01
err0
PREAI
errMathias Langer; C. H. Buitrago-Téllez; C. Schulze; H. Gufler; A. Mundinger; F. Kommos
errShare
errSave
Homeobox Gene Involvement in Normal Hematopoiesis and in the Pathogenesis of Childhood Leukemias
err2017-01-01
err0
PREAI
errMaria Adamaki; Maria Goulielmaki; Ioannis Christodoulou; Spiros Vlahopoulos; Vassilis Zoumpourlis
errShare
errSave
errShare
errSave
Unusual Photoisomerization Pathway in a Near-Infrared Light Absorbing Enzymerhodopsin
err2022-10-06
err0
PREAI
errMasahiro Sugiura; Kazuki Ishikawa; Kota Katayama; Yuji Sumii; Rei Abe-Yoshizumi; Satoshi P. Tsunoda; Yuji Furutani; Norio Shibata; Leonid S. Brown; Hideki Kandori
errShare
errSave
Investigation of coal fueled chemical looping combustion using Fe3O4 as oxygen carrier: Influence of variables
err2010-05-16
err0
PREAI
errXiaoyan Sun; Wenguo Xiang; Sha Wang; Wendong Tian; Xiang Xu; Yanji Xu; Yunhan Xiao
errShare
errSave
errShare
errSave
researcher View more