A Neural Architecture for Generating Natural Language Descriptions from Source Code Changes
Open accessThe DOI matches its Crossref record; 32 of the 32 references it cites were found in a registry or an index.
Abstract
We propose a model to automatically describe changes introduced in the source code of a program using natural language.Our method receives as input a set of code commits, which contains both the modifications and message introduced by an user.These two modalities are used to train an encoder-decoder architecture.We evaluated our approach on twelve real world open source projects from four different programming languages.Quantitative and qualitative results showed that the proposed approach can generate feasible and semantically sound descriptions not only in standard in-project settings, but also in a cross-project setting.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“Additionally, we do not explore the performance of ICL with small pre-trained models, because it is hard for small pre-trained models to comply with instructional prompts without parameter updates [57, 64].”
From Exploring the Capabilities of LLMs for Code-Change-Related Tasks (2025) · cites this paper as [64]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
BLEU: a method for automatic evaluation of machine translation
Papineni, K., Roukos, S., Ward, T., & Zhu, W.-J. (2001) · Proceedings of the 40th Annual Meeting on Association for Computational Linguistics - ACL '02 · doi:10.3115/1073083.1073135 · Cited by 21,344 · cited 2×
“To evaluate the quality of our generated descriptions we use both METEOR (Lavie and Agarwal, 2007) and sentence level BLEU-4 (Papineni et al., 2002).”
MethodNeural Machine Translation by Jointly Learning to Align and Translate
Bahdanau, D., Cho, K., & Bengio, Y. (2014) · arXiv · doi:10.48550/arxiv.1409.0473 · Cited by 16,213 · cited 2×
“Both approaches share the use of attention mechanisms (Bahdanau et al., 2014) to overcome the natural disparity be-tween the modalities when finding relevant token alignments.”
BackgroundEffective Approaches to Attention-based Neural Machine Translation
Luong, T., Pham, H., & Manning, C. D. (2015) · Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/d15-1166 · Cited by 8,382 · cited 2×
“The decoder is a RNN that reads this representation and generates NL words one at a time based on its current hidden state and guided by a global attention model (Luong et al., 2015).”
BackgroundMethodBuilding a Large Annotated Corpus of English: The Penn Treebank
Marcus, M. (1993) · doi:10.21236/ada273556 · Cited by 7,405
Minimum error rate training in statistical machine translation
Och, F. J. (2003) · Proceedings of the 41st Annual Meeting on Association for Computational Linguistics - ACL '03 · doi:10.3115/1075096.1075117 · Cited by 2,725 · cited 1×
“For validation, we use minimum error rate training (Bertoldi et al., 2009; Och, 2003) in our validation set.”
MethodRecurrent Neural Network Regularization
Zaremba, W., Sutskever, I., & Vinyals, O. (2014) · arXiv (Cornell University) · doi:10.48550/arxiv.1409.2329 · Cited by 2,123 · cited 2×
“…a i is defined as , where c j ∈ C t is a source code token, F is the source code token embedding matrix and α i,j is: We use a dropout-regularized LSTM cell for the decoder (Zaremba et al., 2015) and also add dropout at the NL embeddings and at the output softmax layer, to prevent over-fitting.”
MethodMoses : open source toolkit for statistical machine translation
Koehn, P., Hoang, H., Birch, A., Callison-Burch, C., Federico, M., Bertoldi, N., Cowan, B., Shen, W., Moran, C., Zens, R., et al. (2007) · Edinburgh Research Explorer (University of Edinburgh) · Cited by 1,547
Meteor: an automatic metric for MT evaluation with high levels of correlation with human judgments
Lavie, A., & Agarwal, A. (2007) · Proceedings of the Second Workshop on Statistical Machine Translation - StatMT '07 · doi:10.3115/1626355.1626389 · Cited by 1,047 · cited 1×
“To evaluate the quality of our generated descriptions we use both METEOR (Lavie and Agarwal, 2007) and sentence level BLEU-4 (Papineni et al., 2002).”
MethodSummarizing Source Code using a Neural Attention Model
Iyer, S., Konstas, I., Cheung, A., & Zettlemoyer, L. (2016) · Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/p16-1195 · Cited by 701 · cited 6×
“, API suggestion (Gu et al., 2016) and code completion (Raychev et al., 2014).”
BackgroundMethodResultInfluentialConvolutional Neural Networks over Tree Structures for Programming Language Processing
Mou, L., Li, G., Zhang, L., Wang, T., & Jin, Z. (2016) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v30i1.10139 · Cited by 675 · cited 2×
“Examples of this are approaches for learning program representations (Mou et al., 2016), bug localization (Huo et al.”
BackgroundScalable Modified Kneser-Ney Language Model Estimation
Heafield, K., Pouzyrevsky, I., Clark, J. H., & Koehn, P. (2013) · Cited by 647
An exploratory study of the pull-based software development model
Gousios, G., Pinzger, M., & Deursen, A. V. (2014) · Proceedings of the 36th International Conference on Software Engineering · doi:10.1145/2568225.2568260 · Cited by 628 · cited 3×
“lions of lines code are written in a distributed and asynchronous way (Gousios et al., 2014).”
BackgroundMethodInfluentialCode completion with statistical language models
Raychev, V., Vechev, M., & Yahav, E. (2014) · Proceedings of the 35th ACM SIGPLAN Conference on Programming Language Design and Implementation · doi:10.1145/2594291.2594321 · Cited by 555 · cited 1×
“, API suggestion (Gu et al., 2016) and code completion (Raychev et al., 2014).”
BackgroundOn the naturalness of software
Hindle, A., Barr, E. T., Su, Z., Gabel, M., & Dévanbu, P. (2012) · doi:10.5555/2337223.2337322 · Cited by 541
Gu, X., Zhang, H., Zhang, D., & Kim, S. (2016) · Proceedings of the 2016 24th ACM SIGSOFT International Symposium on Foundations of Software Engineering · doi:10.1145/2950290.2950334 · Cited by 485 · cited 2×
“), API suggestion (Gu et al., 2016) and code completion (Raychev et al.”
BackgroundOn the naturalness of software
Hindle, A., Barr, E. T., Su, Z., Gabel, M., & Devanbu, P. (2012) · 2012 34th International Conference on Software Engineering (ICSE) · doi:10.1109/icse.2012.6227135 · Cited by 425 · cited 3×
“plicitly relate programming and natural languages in distributional terms (Hindle et al., 2012) and the availability of large corpus mainly from open source software opened the door for the use of language modeling for several tasks (Raychev et al.”
BackgroundMethodCognitive processes in program comprehension
Letovsky, S. (1987) · Journal of Systems and Software · doi:10.1016/0164-1212(87)90032-x · Cited by 327 · cited 1×
“The scale and complexity of software systems these days has naturally led to explore automated ways to support developers’ code comprehension (Letovsky, 1987) from a linguistic perspective.”
BackgroundSoftware traceability with topic modeling
Asuncion, H. U., Asuncion, A. U., & Taylor, R. N. (2010) · Proceedings of the 32nd ACM/IEEE International Conference on Software Engineering - Volume 1 · doi:10.1145/1806799.1806817 · Cited by 321
Predicting Program Properties from "Big Code"
Raychev, V., Vechev, M., & Krause, A. (2015) · Proceedings of the 42nd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages · doi:10.1145/2676726.2677009 · Cited by 296
Supporting program comprehension with source code summarization
Haiduc, S., Aponte, J., & Marcus, A. (2010) · Proceedings of the 32nd ACM/IEEE International Conference on Software Engineering - Volume 2 · doi:10.1145/1810295.1810335 · Cited by 291 · cited 1×
“One of these attempts is automatic summarization, which aims to generate a compact representation of the source code in a portion of natural language (Haiduc et al., 2010).”
BackgroundAutomatically documenting program changes
Buse, R. P. L., & Weimer, W. R. (2010) · Proceedings of the IEEE/ACM international conference on Automated software engineering · doi:10.1145/1858996.1859005 · Cited by 219
Panichella, A., Dit, B., Oliveto, R., Di Penta, M., Poshynanyk, D., & De Lucia, A. (2013) · 2013 35th International Conference on Software Engineering (ICSE) · doi:10.1109/icse.2013.6606598 · Cited by 216 · cited 1×
“The use natural language processing to support software engineering tasks has increased consistently over the years, mainly in terms of source code search, traceability and program feature location (Panichella et al., 2013; Asuncion et al., 2010).”
MethodPanichella, A., Dit, B., Oliveto, R., Penta, M. D., Poshynanyk, D., & Lucia, A. D. (2013) · Archivio Istituzionale della Ricerca - Università degli Studi del Molise · Cited by 205
Improving automated source code summarization via an eye-tracking study of programmers
Rodeghero, P., McMillan, C., McBurney, P. W., Bosch, N., & D'Mello, S. (2014) · Proceedings of the 36th International Conference on Software Engineering · doi:10.1145/2568225.2568247 · Cited by 198 · cited 2×
“Source code summarization has received special attention, ranging from the use of information retrieval techniques to the addition of physiological features such as eye tracking (Rodeghero et al., 2014).”
BackgroundResultLearning unified features from natural and programming languages for locating buggy source code
Huo, X., Li, M., & Zhou, Z.-H. (2016) · International Joint Conference on Artificial Intelligence · Cited by 198
Code completion with statistical language models
Raychev, V., Vechev, M., & Yahav, E. (2014) · ACM SIGPLAN Notices · doi:10.1145/2666356.2594321 · Cited by 189
On Automatically Generating Commit Messages via Summarization of Source Code Changes
Cortes-Coy, L. F., Linares-Vasquez, M., Aponte, J., & Poshyvanyk, D. (2014) · 2014 IEEE 14th International Working Conference on Source Code Analysis and Manipulation · doi:10.1109/scam.2014.14 · Cited by 164 · cited 2×
“In terms of specifically working on code change summarization, Cort´es-Coy et al. (2014); Linares-V´asquez et al. (2015) propose a method based on a set of rules that considers the type and impact of the changes, and (Buse and Weimer, 2010) combines summarization with symbolic execution.”
MethodResultPredicting Program Properties from "Big Code"
Raychev, V., Vechev, M., & Krause, A. (2015) · ACM SIGPLAN Notices · doi:10.1145/2775051.2677009 · Cited by 161 · cited 1×
“The emergence of unifying paradigms that explicitly relate programming and natural languages in distributional terms (Hindle et al., 2012) and the availability of large corpus mainly from open source software opened the door for the use of language modeling for several tasks (Raychev et al., 2015).”
BackgroundA Convolutional Attention Network for Extreme Summarization of Source Code
Allamanis, M., Peng, H. M., & Sutton, C. A. (2016) · arXiv (Cornell University) · doi:10.48550/arxiv.1602.03001 · Cited by 126 · cited 1×
“In recent years several representation learning approaches have been proposed, such as (Allamanis et al., 2016), where the authors employ a convolutional architecture embedded inside an attention mechanism to learn an efficient mapping”
BackgroundChangeScribe: A Tool for Automatically Generating Commit Messages
Linares-Vasquez, M., Cortes-Coy, L. F., Aponte, J., & Poshyvanyk, D. (2015) · 2015 IEEE/ACM 37th IEEE International Conference on Software Engineering · doi:10.1109/icse.2015.229 · Cited by 96 · cited 1×
“In terms of specifically working on code change summarization, Cort´es-Coy et al. (2014); Linares-V´asquez et al. (2015) propose a method based on a set of rules that considers the type and impact of the changes, and (Buse and Weimer, 2010) combines summarization with symbolic execution.”
MethodChangeScribe: A tool for automatically generating commit messages
Linares‐Vásquez, M., Fern, L., Cortés-coy, O., Aponte, J., & Poshyvanyk, D. (2015) · Cited by 75
Improved Minimum Error Rate Training in Moses
Bertoldi, N., Haddow, B., & Fouet, J.-B. (2009) · The Prague Bulletin of Mathematical Linguistics · doi:10.2478/v10108-009-0011-9 · Cited by 67 · cited 1×
“For validation, we use minimum error rate training (Bertoldi et al., 2009; Och, 2003) in our validation set.”
Method
Cited by
Hu, X., Li, G., Xia, X., Lo, D., & Jin, Z. (2018) · Proceedings of the 26th Conference on Program Comprehension · doi:10.1145/3196321.3196334 · Cited by 621
“Several subsequent studies have developed various probabilistic models for different software tasks [12, 23, 40, 41].”
BackgroundImproved Code Summarization via a Graph Neural Network
LeClair, A., Haque, S., Wu, L., & McMillan, C. (2020) · Proceedings of the 28th International Conference on Program Comprehension · doi:10.1145/3387904.3389268 · Cited by 312
“coder model. LeClair Improved Code Summarization via a Graph Neural Network Conference’17, July 2017, Washington, DC, USA Src Code AST API FlatAST GNN Paths 2016 Iyer et al. [25] x 2017 Loyola et al. [34] x 2017 Lu et al. [35] x x 2018 Hu et al. [24] x x 2018 Liang et al. [31] x x 2018 Hu et al. [23] x x x 2018 Wan et…”
MethodA Neural Model for Generating Natural Language Summaries of Program Subroutines
LeClair, A., Jiang, S., & McMillan, C. (2019) · 2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE) · doi:10.1109/icse.2019.00087 · Cited by 294
“Jiang et al. [20] and Loyola et al. [29] generate descriptions of code changes (i.e. commit messages).”
BackgroundDeep code comment generation with hybrid lexical and syntactical information
Hu, X., Li, G., Xia, X., Lo, D., & Jin, Z. (2020) · Empirical Software Engineering · doi:10.1007/s10664-019-09730-9 · Cited by 278
“Several subsequent studies have developed various probabilistic models for different software tasks (Gu et al. 2016; Loyola et al. 2017; Wang et al. 2016; White et al. 2016).”
BackgroundA Survey of Machine Learning for Big Code and Naturalness
Allamanis, M., Barr, E. T., Devanbu, P., & Sutton, C. (2019) · ACM Computing Surveys · doi:10.1145/3212695 · Cited by 150
“[124] Tokens (Diff) Natural Language Distributed Explain code changes”
Background
Metadata
- Authors
- Loyola, P., Marrese-Taylor, E., & Matsuo, Y.
- Affiliations
- The University of Tokyo (JP)
- Corresponding author
- Matsuo, Yutaka
- Venue
- Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)
- Published
- 2017
- Pages
- 287-292
- ISSN
- 0736-587X (ISSN-L)
- OpenAlex
- W2963958373
- Cited by
- 128
- References
- 32
- Citations by year
- 2026: 2 · 2025: 9 · 2024: 16 · 2023: 19 · 2022: 19 · 2021: 25 · 2020: 15 · 2019: 12 · 2018: 10 · 2017: 1
- FWCI
- 7.98
- Type
- conference paper
- Language
- en
- Open access
- hybrid
- doi.org
- Licence
- cc-by
- Locations
- Proceedings of the conference - Association for Computational Linguistics. Meeting (publishedVersion, cc-by)
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Topics
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Software › Model-Driven Software Engineering Techniques
- Keywords
- natural language generation, code editing, commit messages, encoder-decoder architecture, open source software, programming languages
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.
