Statement-based Memory for Neural Source Code Summarization
Not on the map. Why?
Abstract (arXiv)
Source code summarization is the task of writing natural language descriptions of source code behavior. Code summarization underpins software documentation for programmers. Short descriptions of code help programmers understand the program quickly without having to read the code itself. Lately, neural source code summarization has emerged as the frontier of research into automated code summarization techniques. By far the most popular targets for summarization are program subroutines. The idea, in a nutshell, is to train an encoder-decoder neural architecture using large sets of examples of subroutines extracted from code repositories. The encoder represents the code and the decoder represents the summary. However, most current approaches attempt to treat the subroutine as a single unit. For example, by taking the entire subroutine as input to a Transformer or RNN-based encoder. But code behavior tends to depend on the flow from statement to statement. Normally dynamic analysis may shed light on this flow, but dynamic analysis on hundreds of thousands of examples in large datasets is not practical. In this paper, we present a statement-based memory encoder that learns the important elements of flow during training, leading to a statement-based subroutine representation without the need for dynamic analysis. We implement our encoder for code summarization and demonstrate a significant improvement over the state-of-the-art.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 35 of its 69 references that are in the map. First posted on arXiv 21 Jul 2023.
Builds on
35 of 69 references.
References · 35
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,303
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2018Universal Sentence Encodercited by 485
- 2019DM-GAN: Dynamic Memory Generative Adversarial Networks for Text-to-Image Synthesiscited by 308
- 2018code2vec: Learning Distributed Representations of Codecited by 249
- 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
- 2017Learning to Represent Programs with Graphscited by 219
- 2018code2seq: Generating Sequences from Structured Representations of Codecited by 177
- 2020A Transformer-based Approach for Source Code Summarizationcited by 129
23 more
- 2015Large-scale Simple Question Answering with Memory Networkscited by 127
- 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 123
- 2015Ask Me Anything: Dynamic Memory Networks for Natural Language Processingcited by 116
- 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 99
- 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNNcited by 89
- 2019Beyond BLEU: Training Neural Machine Translation with Semantic Similaritycited by 84
- 2020Improved Code Summarization via a Graph Neural Networkcited by 79
- 2019A Neural Model for Generating Natural Language Summaries of Program Subroutinescited by 76
- 2021Language-Agnostic Representation Learning of Source Code from Structure and Contextcited by 63
- 2018Learning Dynamic Memory Networks for Object Trackingcited by 58
- 2019Recommendations for Datasets for Source Code Summarizationcited by 46
- 2017Automatically Generating Commit Messages from Diffs using Neural Machine Translationcited by 42
- 2016A Survey of Symbolic Execution Techniquescited by 36
- 2020Improved Automatic Summarization of Subroutines via Attention to File Contextcited by 34
- 2021Code Structure Guided Transformer for Source Code Summarizationcited by 29
- 2020Code to Comment "Translation": Data, Metrics, Baselining & Evaluationcited by 28
- 2021Project-Level Encoding for Neural Source Code Summarization of Subroutinescited by 24
- 2017A Neural Architecture for Generating Natural Language Descriptions from Source Code Changescited by 23
- 2021CoCoSum: Contextual Code Summarization with Multi-Relational Graph Neural Networkcited by 22
- 2020A Multi-Perspective Architecture for Semantic Code Searchcited by 20
- 2018Automatic Generation of Text Descriptive Comments for Code Blockscited by 18
- 2021Ensemble Models for Neural Source Code Summarization of Subroutinescited by 12
- 2021Action Word Prediction for Neural Source Code Summarizationcited by 11
Built on by
Citing papers per year: 2025: 2.
2 papers.
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2025AI-Mediated Code Comment Improvementcited by 0
- 2025AI-Mediated Code Comment Improvement13 May 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025