2020 · 29 citations · 43 references
ComputingComputer ScienceComputational LinguisticsMachine LearningNatural Language ProcessingAbstract Syntax TreesGraph-based LearningNatural Language GenerationText GenerationText SummarizationAutomatic Summarization EvaluationGraph Neural NetworksGraph-based SummarizationGraph-to-text GenerationNeural SummarizationSource Code StructureSummarizationSummary Generation Models
Automatic source code summarization is the task of generating natural language descriptions for source code. Automatic code summarization is a rapidly expanding research area, especially as the community has taken greater advantage of advances in neural network and AI technologies. In general, source code summarization techniques use the source code as input and outputs a natural language description. Yet a strong consensus is developing that using structural information as input leads to improved performance. The first approaches to use structural information flattened the AST into a sequence. Recently, more complex approaches based on random AST paths or graph neural networks have improved on the models using flattened ASTs. However, the literature still does not describe the using a graph neural network together with source code sequence as separate inputs to a model. Therefore, in this paper, we present an approach that uses a graph-based neural architecture that better matches the default structure of the AST to generate these summaries. We evaluate our technique using a data set of 2.1 million Java method-comment pairs and show improvement over four baseline techniques, two from the software engineering literature, and two from machine learning literature.
43
Kishore Papineni, Salim Roukos, Todd J. Ward et al. · 2001 · 21.5K citations · Full text
ROUGE: A Package for Automatic Evaluation of Summaries
Chin-Yew Lin · 2004 · 8.3K citations
Generating Text with Recurrent Neural Networks
Ilya Sutskever, James Martens, Geoffrey E. Hinton · 2011 · 1.2K citations
Summarizing Source Code using a Neural Attention Model
Srinivasan Iyer, Ioannis Konstas, Alvin Cheung et al. · 2016 · 725 citations · Full text