Are deep neural networks the best choice for modeling source code?
The DOI matches its Crossref record; 44 of the 44 references it cites were found in a registry or an index.
Abstract
Current statistical language modeling techniques, including deep-learning based models, have proven to be quite effective for source code. We argue here that the special properties of source code can be exploited for further improvements. In this work, we enhance established language modeling approaches to handle the special challenges of modeling source code, such as: frequent changes, larger, changing vocabularies, deeply nested scopes, etc. We present a fast, nested language modeling toolkit specifically designed for software, with the ability to add & remove text, and mix & swap out many models. Specifically, we improve upon prior cache-modeling work and present a model with a much more expansive, multi-level notion of locality that we show to be well-suited for modeling software. We present results on varying corpora in comparison with traditional N-gram, as well as RNN, and LSTM deep-learning language models, and release all our source code for public use. Our evaluations suggest that carefully adapting N-gram models for source code can yield performance that surpasses even RNN and LSTM based deep-learning models.
Overview
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
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
“Vocabularies of a project are highly local, and functions from the same projects are likely to share same set of identifiers [10,22].”
From Few-shot training LLMs for project-specific code-summarization (2022) · cites this paper as [10]
In the citing paper
“It's been well-known right from the outset that language modeling for code has to deal with project-specific phenomena [10,11,22].”
From Few-shot training LLMs for project-specific code-summarization (2022) · cites this paper as [10]
In the citing paper
“Several methods have been proposed to incorporate repository context into the training of language models, including n-grams (Tu et al., 2014), LSTMs (Hellendoorn and Devanbu, 2017), and Transformers (Svyatkovskiy et al., 2020;Liu et al., 2022;Ding et al., 2022).”
From RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generation (2023) · cites this paper as Hellendoorn and Devanbu, 2017
Citations
Cites
Hochreiter, S., & Schmidhuber, J. (1997) · Neural Computation · doi:10.1162/neco.1997.9.8.1735 · Cited by 102,318
Recurrent neural network based language model
Mikolov, T., Karafiát, M., Burget, L., Černocký, J., & Khudanpur, S. (2010) · Interspeech 2010 · doi:10.21437/interspeech.2010-343 · Cited by 5,390 · cited 2×
“We replicate their experiments using the Recurrent Neural Network LanguageModel toolkit (RNNLM6) [25], which includes a hidden layer size of 300 and 1,000 direct connections.”
BackgroundMethodNeural Word Embedding as Implicit Matrix Factorization
Levy, O., & Goldberg, Y. (2014) · neural information processing systems · Cited by 1,582
Character-Aware Neural Language Models
Kim, Y., Jernite, Y., Sontag, D., & Rush, A. M. (2015) · arXiv · doi:10.48550/arxiv.1508.06615 · Cited by 1,530
Character-Aware Neural Language Models
Kim, Y., Jernite, Y., Sontag, D., & Rush, A. (2016) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v30i1.10362 · Cited by 1,491
One Billion Word Benchmark for Measuring Progress in Statistical Language Modeling
Chelba, C., Mikolov, T., Schuster, M., Ge, Q., Brants, T., Koehn, P., & Robinson, T. (2013) · arXiv · doi:10.48550/arxiv.1312.3005 · Cited by 1,051 · cited 1×
“Of these, MKN is best suited for natural language, followed by ADM which we found performed nearly as well as MKN on a one-billion token corpus from [11], as well as on several small corpora.”
MethodVisualizing and Understanding Recurrent Networks
Karpathy, A., Johnson, J., & Fei-Fei, L. (2015) · arXiv · doi:10.48550/arxiv.1506.02078 · Cited by 845 · cited 1×
“Character-LSTM models [21, 22] deal with this issue by modeling one character at the time instead and may provide a solution to this problem in the long term, possibly in a hybrid form, since these models at present cannot compete with word-level models [19].”
BackgroundExploring the Limits of Language Modeling
Józefowicz, R., Vinyals, O., Schuster, M., Shazeer, N., & Wu, Y. (2016) · arXiv (Cornell University) · doi:10.48550/arxiv.1602.02410 · Cited by 823 · cited 3×
“Finally, The confidence scores can be 3This applies particularly when using normal SoftMax output layers, but also when using NCE or CNN SoftMax[19] derived from various sources, such as the language models themselves or even as parameters learned by an LSTM.”
BackgroundMethodAn empirical study of smoothing techniques for language modeling
Chen, S. F., & Goodman, J. (1996) · Proceedings of the 34th annual meeting on Association for Computational Linguistics - · doi:10.3115/981863.981904 · Cited by 770
Research works printed but not linked: 7
- 10.5555/2487085.2487127 · doi:10.5555/2487085.2487127
- Stanley F. Chen and Joshua Goodman . 1996 . Stanley F. Chen and Joshua Goodman. 1996.
- Hoa Khanh Dam , Truyen Tran , and Trang Pham . 2016. A deep language model for software code. arXiv preprint arXiv:1608.02715 ( 2016 ). Hoa Khanh Dam, Truyen Tran, and Trang Pham. 2016. A deep language model for software code. arXiv preprint arXiv:1608.02715 (2016). · arXiv
- 10.5555/2819009.2819143 · doi:10.5555/2819009.2819143
- 10.5555/2818754.2818858 · doi:10.5555/2818754.2818858
- Anh Tuan Nguyen , Tung Thanh Nguyen, and Tien N Nguyen . 2013 . Anh Tuan Nguyen, Tung Thanh Nguyen, and Tien N Nguyen. 2013.
- Thanh Nguyen , Peter C Rigby , Anh Tuan Nguyen , Mark Karanfil, and Tien N Nguyen. 2016 . Thanh Nguyen, Peter C Rigby, Anh Tuan Nguyen, Mark Karanfil, and Tien N Nguyen. 2016.
Cited by
Deep Learning for IoT Big Data and Streaming Analytics: A Survey
Mohammadi, M., Al-Fuqaha, A., Sorour, S., & Guizani, M. (2018) · IEEE Communications Surveys & Tutorials · doi:10.1109/comst.2018.2844341 · Cited by 1,471
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
“Hellendoorn and Devanbu [16] have demonstrated that it is unreasonable for source code to use such a vocabulary.”
Unified Pre-training for Program Understanding and Generation
Ahmad, W., Chakraborty, S., Ray, B., & Chang, K.-W. (2021) · Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies · doi:10.18653/v1/2021.naacl-main.211 · Cited by 642
CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generation
Lu, S., Guo, D., Ren, S., Huang, J., Svyatkovskiy, A., Blanco, A., Clement, C., Drain, D., Jiang, D., Tang, D., et al. (2021) · arXiv · doi:10.48550/arxiv.2102.04664 · Cited by 536
A systematic evaluation of large language models of code
Xu, F. F., Alon, U., Neubig, G., & Hellendoorn, V. J. (2022) · Proceedings of the 6th ACM SIGPLAN International Symposium on Machine Programming · doi:10.1145/3520312.3534862 · Cited by 540
Self-citationSEQUENCER: Sequence-to-Sequence Learning for End-to-End Program Repair
Chen, Z., Kommrusch, S. J., Tufano, M., Pouchet, L.-N., Poshyvanyk, D., & Monperrus, M. (2021) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2019.2940179 · Cited by 396
“commits that focus on a clear task; 2) contrary to natural language, misuse of rare words (identifiers, numbers, etc) is often fatal in programming languages [7]; in natural”
BackgroundCoCoNuT: combining context-aware neural translation models using ensemble for program repair
Lutellier, T., Pham, H. V., Pang, L., Li, Y., Wei, M., & Tan, L. (2020) · Proceedings of the 29th ACM SIGSOFT International Symposium on Software Testing and Analysis · doi:10.1145/3395363.3397369 · Cited by 344
“Deep Learning in Software Engineering: The software engineering community had applied deep learning to perform various tasks such as defects prediction [40, 79, 81], source code representation [6, 7, 66, 80], source code summarization [4, 22] source code modeling [5, 11, 26, 83], code clone detection [41, 84], and pro…”
MethodCURE: Code-Aware Neural Machine Translation for Automatic Program Repair
Jiang, N., Lutellier, T., & Tan, L. (2021) · 2021 IEEE/ACM 43rd International Conference on Software Engineering (ICSE) · doi:10.1109/icse43902.2021.00107 · Cited by 290
Improved 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
“But evidence is accumulating that the metaphor to NMT has major limits [21].”
BackgroundA 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
“As mentioned, there is reasonable doubt [23] that neural-based techniques are even appropriate for software engineering data; a recent workshop at AAAI’18 [26] focused heavily on this debate.”
BackgroundThe adverse effects of code duplication in machine learning models of code
Allamanis, M. (2019) · Proceedings of the 2019 ACM SIGPLAN International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software · doi:10.1145/3359591.3359735 · Cited by 284
“Language models have been used for autocompletion [14, 15, 20, 24] and it would be unreasonable to assume that the true distribution of this particular use cases contains duplicate code.”
BackgroundMethodDeep 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
“Vocabulary is another challenge to model source code (Hellendoorn and Devanbu 2017).”
BackgroundInfluentialSummarizing Source Code with Transferred API Knowledge
Hu, X., Li, G., Xia, X., Lo, D., Lu, S., & Jin, Z. (2018) · Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence · doi:10.24963/ijcai.2018/314 · Cited by 263
Few-shot training LLMs for project-specific code-summarization
Ahmed, T., & Devanbu, P. (2022) · Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering · doi:10.1145/3551349.3559555 · Cited by 240
“Vocabularies of a project are highly local, and functions from the same projects are likely to share same set of identifiers [10, 22].”
BackgroundCode Prediction by Feeding Trees to Transformers
Kim, S., Zhao, J., Tian, Y., & Chandra, S. (2021) · 2021 IEEE/ACM 43rd International Conference on Software Engineering (ICSE) · doi:10.1109/icse43902.2021.00026 · Cited by 209
“We present MRR as a percentage, in keeping with prior work [7], [32].”
BackgroundResultMulti-task Learning based Pre-trained Language Model for Code Completion
Liu, F., Li, G., Zhao, Y., & Jin, Z. (2020) · Proceedings of the 35th IEEE/ACM International Conference on Automated Software Engineering · doi:10.1145/3324884.3416591 · Cited by 188
“v assumption is proposed to address this challenge, where the probability of a token is dependent only on the �−1most recent tokens. N-gram based models have been generally applied to code completion [17, 19, 46]. These models have been proved to capture the repetitive regularities in the source code effectively. In r…”
BackgroundMethodInfluentialBig code != big vocabulary: open-vocabulary models for source code
Karampatsis, R.-M., Babii, H., Robbes, R., Sutton, C., & Janes, A. (2020) · Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering · doi:10.1145/3377811.3380342 · Cited by 182
“Tu et al. [81] and Hellendoorn and Devanbu [41] use n -gram caches.”
BackgroundMethodInfluentialSorting and Transforming Program Repair Ingredients via Deep Learning Code Similarities
White, M., Tufano, M., Martinez, M., Monperrus, M., & Poshyvanyk, D. (2019) · 2019 IEEE 26th International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner.2019.8668043 · Cited by 163
“l) language model is a probability distribution over sentences (e.g., lines of code) in a language [48]. Recently, language modeling has been used for software engineering tasks [3], [11], [15], [49]–[62]. We require a neural network to learn representations for each term in the file-level corpus [63], and recurrent ne…”
MethodRepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generation
Zhang, F., Chen, B., Zhang, Y., Keung, J., Liu, J., Zan, D., Mao, Y., Lou, J.-G., & Chen, W. (2023) · Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2023.emnlp-main.151 · Cited by 173
On the Robustness of Code Generation Techniques: An Empirical Study on GitHub Copilot
Mastropaolo, A., Pascarella, L., Guglielmi, E., Ciniselli, M., Scalabrino, S., Oliveto, R., & Bavota, G. (2023) · 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE) · doi:10.1109/icse48619.2023.00181 · Cited by 138
Towards Automating Code Review Activities
Tufano, R., Pascarella, L., Tufano, M., Poshyvanyk, D., & Bavota, G. (2021) · 2021 IEEE/ACM 43rd International Conference on Software Engineering (ICSE) · doi:10.1109/icse43902.2021.00027 · Cited by 141
“a few years before by Hellendoorn and Devanbu [41] on the usage of DL models for modeling code.”
MethodCode smell detection by deep direct-learning and transfer-learning
Sharma, T., Efstathiou, V., Λουρίδας, Π., & Spinellis, D. D. (2021) · Journal of Systems and Software · doi:10.1016/j.jss.2021.110936 · Cited by 186
“Consequently, results against traditional baseline techniques are very limited [22, 30].”
BackgroundDeep learning similarities from different representations of source code
Tufano, M., Watson, C., Bavota, G., Di Penta, M., White, M., & Poshyvanyk, D. (2018) · Proceedings of the 15th International Conference on Mining Software Repositories · doi:10.1145/3196398.3196431 · Cited by 158
“While the number of applications of DL to SE tasks is growing [4, 5, 15, 25, 29–32, 41, 42, 42, 51, 53, 70, 73], one recent example by White et al.”
BackgroundJITLine: A Simpler, Better, Faster, Finer-grained Just-In-Time Defect Prediction
Pornprasit, C., & Tantithamthavorn, C. K. (2021) · International Conference on Mining Software Repositories (MSR) · doi:10.1109/msr52588.2021.00049 · Cited by 185
Neural Detection of Semantic Code Clones Via Tree-Based Convolution
Yu, H., Lam, W., Chen, L., Li, G., Xie, T., & Wang, Q. (2019) · 2019 IEEE/ACM 27th International Conference on Program Comprehension (ICPC) · doi:10.1109/icpc.2019.00021 · Cited by 128
“The vocabulary size of tokens is a special challenge to modeling source code [17].”
BackgroundInfluentialPredicting Defective Lines Using a Model-Agnostic Technique
Wattanakriengkrai, S., Thongtanunam, P., Tantithamthavorn, C., Hata, H., & Matsumoto, K. (2022) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2020.3023177 · Cited by 137
“We use a standard n-gram order of 6 with the Jelinek-Mercer smoothing function as prior work demonstrates that this configuration works well for source code [31].”
MethodA Systematic Literature Review on the Use of Deep Learning in Software Engineering Research
Watson, C., Cooper, N., Palacio, D. N., Moran, K., & Poshyvanyk, D. (2022) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3485275 · Cited by 137
“SE Task Papers Code Comprehension [9, 10, 16, 64, 73, 77, 93, 97, 119, 121, 130, 144, 180, 185] Source Code Generation [26, 37, 57, 63, 74, 84, 124, 136, 151, 173] Source Code Retrieval & Traceability [10, 27, 29, 41, 62, 65, 92, 175, 179] Source Code Summarization [11, 29, 77, 95, 162, 179] Bug-fixing Process [41, 67…”
MethodDeepLineDP: Towards a Deep Learning Approach for Line-Level Defect Prediction
Pornprasit, C., & Tantithamthavorn, C. K. (2022) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2022.3144348 · Cited by 168
“However, there exists only few approaches for prioritizing defective lines [11], [16], [54], [69].”
BackgroundIs GitHub’s Copilot as bad as humans at introducing vulnerabilities in code?
Asare, O., Nagappan, M., & Asokan, N. (2023) · Empirical Software Engineering · doi:10.1007/s10664-023-10380-1 · Cited by 128
“(Hellendoorn and Devanbu 2017) even suggests that carefully adapted N-grams can outperform RNN-LMs (with LSTMs).”
BackgroundGlobal Relational Models of Source Code
Hellendoorn, V. J., Sutton, C. A., Singh, R., & Maniatis, P. (2020) · International Conference on Learning Representations · Cited by 220
Self-citationThe Effectiveness of Supervised Machine Learning Algorithms in Predicting Software Refactoring
Aniche, M. F., Maziero, E. G., Durelli, R. S., & Durelli, V. H. S. (2020) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2020.3021736 · Cited by 155
CODIT: Code Editing With Tree-Based Neural Models
Chakraborty, S., Ding, Y., Allamanis, M., & Ray, B. (2022) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2020.3020502 · Cited by 114
“Generating source code using machine learning models has been explored in the past [31], [32], [33], [34].”
MethodImproved Automatic Summarization of Subroutines via Attention to File Context
Haque, S., LeClair, A., Wu, L., & McMillan, C. (2020) · Proceedings of the 17th International Conference on Mining Software Repositories · doi:10.1145/3379597.3387449 · Cited by 102
“is not merely an application of off-the-shelf technology borrowed from the NLP domain [17].”
BackgroundTypeWriter: neural type prediction with search-based validation
Pradel, M., Gousios, G., Liu, J., & Chandra, S. (2020) · Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3368089.3409715 · Cited by 102
“The out-of-vocabulary problem is well know in software engineering research [16].”
BackgroundNatGen: generative pre-training by “naturalizing” source code
Chakraborty, S., Ahmed, T., Ding, Y., Devanbu, P. T., & Ray, B. (2022) · Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3540250.3549162 · Cited by 105
Allamanis, M., Barr, E. T., Ducousso, S., & Gao, Z. (2020) · UCL Discovery (University College London) · Cited by 103
Fast and Memory-Efficient Neural Code Completion
Svyatkovskiy, A., Lee, S., Hadjitofi, A., Riechert, M., Franco, J. V., & Allamanis, M. (2021) · 2021 IEEE/ACM 18th International Conference on Mining Software Repositories (MSR) · doi:10.1109/msr52588.2021.00045 · Cited by 95
Learning-Based Recursive Aggregation of Abstract Syntax Trees for Code Clone Detection
Buch, L., & Andrzejak, A. (2019) · 2019 IEEE 26th International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner.2019.8668039 · Cited by 93
“Others are trained with graph embedding algorithms [13], derived from training token-level Recurrent Neural Networks as language models for code [13], [17], [25], [26].”
BackgroundMethodAn Empirical Study on the Usage of Transformer Models for Code Completion
Ciniselli, M., Cooper, N., Pascarella, L., Mastropaolo, A., Aghajani, E., Poshyvanyk, D., Di Penta, M., & Bavota, G. (2021) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2021.3128234 · Cited by 94
“nism as proposed byHellendoorn andDevanbu [36].”
BackgroundMethodResultInfluentialAllamanis, M., Barr, E. T., Ducousso, S., & Gao, Z. (2020) · Proceedings of the 41st ACM SIGPLAN Conference on Programming Language Design and Implementation · doi:10.1145/3385412.3385997 · Cited by 92
“Code completion [32, 34, 36, 52] is one of the most widely explored topics.”
BackgroundRabin, M. R. I., Bui, N. D. Q., Wang, K., Yu, Y., Jiang, L., & Alipour, M. A. (2021) · Information and Software Technology · doi:10.1016/j.infsof.2021.106552 · Cited by 142
“However, it is still unknown if neural networks are the best way to process programs [24] vs.”
BackgroundAn Empirical Study on the Usage of BERT Models for Code Completion
Ciniselli, M., Cooper, N., Pascarella, L., Poshyvanyk, D., Di Penta, M., & Bavota, G. (2021) · 2021 IEEE/ACM 18th International Conference on Mining Software Repositories (MSR) · doi:10.1109/msr52588.2021.00024 · Cited by 78
A 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
Just-In-Time Defect Identification and Localization: A Two-Phase Framework
Yan, M. L., Xia, X., Fan, Y., Hassan, A. E., Lo, D., & Li, S. (2020) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2020.2978819 · Cited by 105
“Not only does smoothing generally prevent zero probabilities, but it also improves the accuracy of the model as a whole [24], [31].”
BackgroundMethodInfluentialCodeFill: multi-token code completion by jointly learning from structure and naming sequences
Izadi, M., Gismondi, R., & Gousios, G. (2022) · Proceedings of the 44th International Conference on Software Engineering · doi:10.1145/3510003.3510172 · Cited by 86
“The authors show that the combination of an n-gram and LSTM-based model outperforms the rest of their models.”
BackgroundMethodInfluentialSyntax and sensibility: Using language models to detect and correct syntax errors
Santos, E. A., Campbell, J. C., Patel, D., Hindle, A., & Amaral, J. N. (2018) · 2018 IEEE 25th International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner.2018.8330219 · Cited by 83
“Hellendoorn and Devanbu [39] discuss the effectiveness of deep learning (specifically RNNs and LSTMs) on the task of suggesting the next token in a file.”
BackgroundGenerative Code Modeling with Graphs
Brockschmidt, M., Allamanis, M., Gaunt, A. L., & Polozov, O. (2018) · arXiv (Cornell University) · doi:10.48550/arxiv.1805.08490 · Cited by 67
“…(as in, e.g. , semantic parsing), input-output examples ( e.g. , inductive program synthesis), partial program sketches, etc. Early methods used natural language processing techniques to generate source code as a sequence of tokens [11, 12], which often fail to produce syntactically correct code.”
MethodWhen Code Completion Fails: A Case Study on Real-World Completions
Hellendoorn, V. J., Proksch, S., Gall, H. C., & Bacchelli, A. (2019) · 2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE) · doi:10.1109/icse.2019.00101 · Cited by 76
“In source code, these models were shown to be highly effective at mixing many kinds of dynamically available information (such as tokens in neighboring files) [14].”
BackgroundMethodResultInfluentialSelf-citationLearning How to Mutate Source Code from Bug-Fixes
Tufano, M., Watson, C., Bavota, G., Di Penta, M., White, M., & Poshyvanyk, D. (2019) · 2019 IEEE International Conference on Software Maintenance and Evolution (ICSME) · doi:10.1109/icsme.2019.00046 · Cited by 69
Assessing the Generalizability of Code2vec Token Embeddings
Kang, H. J., Bissyandé, T. F., & Lo, D. (2019) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2019.00011 · Cited by 90
“Hellendoorn and Devanbu have raised this issue before [55], and in their work, suggested that deep learning techniques struggle with the large vocabulary of source code.”
BackgroundA Survey of Automatic Generation of Source Code Comments: Algorithms and Techniques
Song, X., Sun, H., Wang, X., & Yan, J. (2019) · IEEE Access · doi:10.1109/access.2019.2931579 · Cited by 70
“Additionally, several studies are related to source code analysis and processing, such as code suggestion [28], generating natural language summaries for code defect [63], crosscutting source code concerns [62], class diagram [16] and source code commit [34], [44] etc.”
BackgroundGenerating Commit Messages from Diffs using Pointer-Generator Network
Liu, Q., Liu, Z., Zhu, H., Fan, H., Du, B., & Qian, Y. (2019) · 2019 IEEE/ACM 16th International Conference on Mining Software Repositories (MSR) · doi:10.1109/msr.2019.00056 · Cited by 64
“However, these deep neural machine translation models are difficult to deal with out-of-vocabulary (OOV) words, because they can only generate words from a pre-defined vocabulary [12].”
BackgroundEvaluating how developers use general-purpose web-search for code retrieval
Rahman, M. M., Barson, J., Paul, S., Kayani, J., Lois, F. A., Quezada, S. F., Parnin, C., Stolee, K. T., & Ray, B. (2018) · Proceedings of the 15th International Conference on Mining Software Repositories · doi:10.1145/3196398.3196425 · Cited by 62
“) are different from general documents, such as news,Wikipedia articles, or other non-code information sources [14].”
BackgroundMachine Learning Based Recommendation of Method Names: How Far are We
Jiang, L. C., Liu, H., & Jiang, H. (2019) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2019.00062 · Cited by 72
“A possible reason for the significant reduction is that file-based validation leverages the nature of source code: local repetitiveness [28], [29].”
BackgroundMethodDuplicate Question Detection With Deep Learning in Stack Overflow
Wang, L., Zhang, L., & Jiang, J. (2020) · IEEE Access · doi:10.1109/access.2020.2968391 · Cited by 73
“They have been proven to be effective for some software engineering tasks [11].”
BackgroundOn the Reproducibility and Replicability of Deep Learning in Software Engineering
Liu, C., Gao, C., Xia, X., Lo, D., Grundy, J., & Yang, X. (2022) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3477535 · Cited by 61
“However, the vocabulary built from training data usually suffers from the OOV issue on dynamic and growing size of testing data [8, 52, 54, 95, 146].”
AutoTransform: automated code transformation to support modern code review process
Thongtanunam, P., Pornprasit, C., & Tantithamthavorn, C. (2022) · Proceedings of the 44th International Conference on Software Engineering · doi:10.1145/3510003.3510067 · Cited by 59
“(Step 1) Code Abstraction: Since NMT models are likely to be inaccurate and slow when dealing with a large vocabulary size [26], Tufano et al.”
BackgroundCommentFinder: a simpler, faster, more accurate code review comments recommendation
Hong, Y., Tantithamthavorn, C., Thongtanunam, P., & Aleti, A. (2022) · Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3540250.3549119 · Cited by 57
“For example, Hellendoorn et al. [20] found that a careful implementation of natural language process approaches like N-gram could outperform the deep learning approaches.”
BackgroundMethodResultInfluentialExploring Software Naturalness through Neural Language Models
Buratti, L., Pujar, S., Bornea, M. A., McCarley, S., Zheng, Y., Rossiello, G., Morari, A., Laredo, J., Thost, V., Zhuang, Y., et al. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2006.12641 · Cited by 51
“The application of language models to represent the source code has shown convincing results on code completion and bug detection [11, 18].”
BackgroundA Survey on Machine Learning Techniques for Source Code AnalysisPreprint
Sharma, T., Kechagia, M., Georgiou, S., Tiwari, R. K., Vats, I., Moazen, H., & Sarro, F. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2110.09610 · Cited by 56
“Among them, some of the studies [21, 53, 133, 333, 339] employed lstm-based models; while others [54, 135, 152, 348, 360] used gru-based models.”
MethodResultLearning to Fix Build Errors with Graph2Diff Neural Networks
Tarlow, D., Moitra, S., Rice, A., Chen, Z., Manzagol, P.-A., Sutton, C., & Aftandilian, E. (2020) · Proceedings of the IEEE/ACM 42nd International Conference on Software Engineering Workshops · doi:10.1145/3387940.3392181 · Cited by 54
“ficult problem [21]. Using pointers, the machine learning component can predict both where and how to fix. Finally, thecopy mechanism addresses the well-known out-of-vocabulary problem of source code [5, 16, 17]: source code projects often include projectspecific identifiers that do not occur in the training set of a…”
BackgroundDetecting false alarms from automatic static analysis tools: how far are we?
Kang, H. J., Aw, K. L., & Lo, D. (2022) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3510003.3510214 · Cited by 80
“Some papers [10, 17, 30, 34, 61] study the limitations of existing tools, and others [21, 31, 37] assess the applicability of the tools when applied to situations with”
Patching as translation: the data and the metaphor
Ding, Y., Ray, B., Dévanbu, P., & Hellendoorn, V. J. (2020) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3324884.3416587 · Cited by 88
“, isNullOrEmpty) [12].”
BackgroundInfluentialSelf-citationZhou, P., Liu, J., Liu, X., Yang, Z., & Grundy, J. (2019) · Information and Software Technology · doi:10.1016/j.infsof.2019.01.002 · Cited by 56
Rahman, M., Palani, D., & Rigby, P. C. (2019) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse.2019.00022 · Cited by 62
“Model Limitations: There are many natural language models that deal with sequences of tokens: n-grams, skip-grams, RNN, LSTM [17, 20, 53, 55].”
BackgroundAutomatic query reformulation for code search using crowdsourced knowledge
Rahman, M. M., Roy, C. K., & Lo, D. (2019) · Empirical Software Engineering · doi:10.1007/s10664-018-9671-0 · Cited by 51
“Source code inherently has a smaller vocabulary than regular texts (Hellendoorn and Devanbu 2017).”
BackgroundA survey on machine learning techniques applied to source code
Sharma, T., Kechagia, M., Georgiou, S., Tiwari, R., Vats, I., Moazen, H., & Sarro, F. (2023) · Journal of Systems and Software · doi:10.1016/j.jss.2023.111934 · Cited by 172
Code Search is All You Need? Improving Code Suggestions with Code Search
Chen, J., Hu, X., Li, Z., Gao, C., Xia, X., & Lo, D. (2024) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3597503.3639085 · Cited by 101
“Since the naturalness of software is introduced [21], many prior studies leverage language models (LMs) [18, 57] to improve the quality of code suggestions.”
MethodSeCNN: A semantic CNN parser for code comment generation
Li, Z., Wu, Y., Peng, B., Chen, X., Sun, Z., Liu, Y., & Yu, D. (2021) · Journal of Systems and Software · doi:10.1016/j.jss.2021.111036 · Cited by 48
Meaningful variable names for decompiled code: a machine translation approach
Jaffe, A., Lacomis, J., Schwartz, E. J., Goues, C. L., & Vasilescu, B. (2018) · IEEE International Conference on Program Comprehension (ICPC) · doi:10.1145/3196321.3196330 · Cited by 61
“By adding this older code to the training corpus, it should be possible to improve the performance of our approach by exploiting the localness of source code [27, 28].”
MethodBilateral Dependency Neural Networks for Cross-Language Algorithm Classification
Bui, N. D. Q., Yu, Y., & Jiang, L. (2019) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner.2019.8667995 · Cited by 47
“For example, Hellendoorn et al. [17] employed both n-grams (with and without cache) and LSTM NN to train statistical models and demonstrated that such straight application of NN to sequences do not necessarily enhance the accuracy greatly compared to the cached n-gram models.”
BackgroundResultInfluentialMaybe Deep Neural Networks are the Best Choice for Modeling Source Code
Karampatsis, R.-M., & Sutton, C. A. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1903.05734 · Cited by 39
“Althoughthese languages are related, they also have differences that might be hypothesized to affect the performance of LMs. Java was an obvious choice since it has extensively been used in related work [6, 22, 37, 40, 58, 69].”
BackgroundMethodResultInfluentialUnified Pre-training for Program Understanding and GenerationPreprint
Ahmad, W. U., Chakraborty, S., Ray, B., & Chang, K.-W. (2021) · North American Chapter of the Association for Computational Linguistics · doi:10.48550/arxiv.2103.06333 · Cited by 1,002
“Code Summarization (MovshovitzAttias and Cohen, 2013; Allamanis et al., 2016; Iyer et al., 2016; Alon et al., 2019a; Hu et al., 2018; Harer et al., 2019; Ahmad et al., 2020), Bug Detection (Ray et al., 2016; Li et al., 2018b; Russell et al., 2018; Zhou et al., 2019; Chakraborty et al., 2020),…”
Deep Representation Learning for Code Smells Detection using Variational Auto-Encoder
Hadj-Kacem, M., & Bouassida, N. (2019) · International Joint Conference on Neural Networks (IJCNN) · doi:10.1109/ijcnn.2019.8851854 · Cited by 45
“Inspired by the promising results reached so far in different software engineering tasks [21, 22, 23], we propose in this paper a semantic-based approach using a deep learning algorithm.”
MethodAutomatic source code summarization with graph attention networks
Zhou, Y., Shen, J., Zhang, X., Yang, W., Han, T., & Chen, T. (2022) · Journal of Systems and Software · doi:10.1016/j.jss.2022.111257 · Cited by 48
Adapting Neural Text Classification for Improved Software Categorization
LeClair, A., Eberhart, Z., & McMillan, C. (2018) · IEEE International Conference on Software Maintenance (ICSM) · doi:10.1109/icsme.2018.00056 · Cited by 40
Building Language Models for Text with Named Entities
Parvez, M. R., Chakraborty, S., Ray, B., & Chang, K.-W. (2018) · Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/p18-1221 · Cited by 36
Learning to Generate Corrective Patches using Neural Machine TranslationPreprint
Hata, H., Shihab, E., & Neubig, G. (2018) · arXiv (Cornell University) · doi:10.48550/arxiv.1812.07170 · Cited by 65
The growing cost of deep learning for source code
Hellendoorn, V. J., & Sawant, A. A. (2021) · Communications of the ACM · doi:10.1145/3501261 · Cited by 46
“…that their future scales align as well; as the AI+SE field has evolved, the application domain of AI models has grown from relatively simple objectives, like token-level code completion, 9,11 to more semantically challenging tasks, such as type inference, 8 bug detection, 21 and program repair.”
BackgroundSelf-citationCodeGRU: Context-aware deep learning with gated recurrent unit for source code modeling
Hussain, Y., Huang, Z., Zhou, Y., & Wang, S. (2020) · Information and Software Technology · doi:10.1016/j.infsof.2020.106309 · Cited by 43
Detecting Duplicate Questions in Stack Overflow via Deep Learning Approaches
Wang, L., Zhang, L., & Jiang, J. (2019) · Asia-Pacific Software Engineering Conference (APSEC) · doi:10.1109/apsec48747.2019.00074 · Cited by 34
“These deep learning models have their own application scenarios, so choosing an appropriate model and balancing the effectiveness are an important challenge to apply deep learning successfully for a software engineering problem [7], [10].”
BackgroundLoGenText: Automatically Generating Logging Texts Using Neural Machine Translation
Ding, Z., Li, H., & Shang, W. (2022) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner53432.2022.00051 · Cited by 45
“A potential challenge is the out-of-vocabulary (OOV) tokens of the source code and logging texts [26], [27].”
BackgroundLearning Autocompletion from Real-World Datasets
Aye, G. A., Kim, S., & Li, H. (2021) · 2021 IEEE/ACM 43rd International Conference on Software Engineering: Software Engineering in Practice (ICSE-SEIP) · doi:10.1109/icse-seip52600.2021.00022 · Cited by 29
“Earlier attempts at modeling software languages and completion ranking were based on n-gram language models [18]–[20] or probabilistic models using the information from ASTs [21].”
MethodPerceived language complexity in GitHub issue discussions and their effect on issue resolution
Kavaler, D., Sirovica, S., Hellendoorn, V. J., Aranovich, R., & Filkov, V. (2017) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2017.8115620 · Cited by 37
“2) Choice of a model: RNN/LSTM models [33] are some of the most powerful language models available, but our cross-project setting is such that it would be computationally infeasible to use these models.”
BackgroundSelf-citationAC-Net: Assessing the Consistency of Description and Permission in Android Apps
Feng, Y., Chen, L., Zheng, A., Gao, C., & Zheng, Z. (2019) · IEEE Access · doi:10.1109/access.2019.2912210 · Cited by 37
“Then, as shown in previous studies [44], [45], deep neural models can consume much processing time practically in spite of the good performance.”
ResultLearning Code-Query Interaction for Enhancing Code Searches
Li, W., Qin, H., Yan, S., Shen, B., & Chen, Y. (2020) · IEEE International Conference on Software Maintenance (ICSM) · doi:10.1109/icsme46990.2020.00021 · Cited by 37
“For instance, 6,000 high frequency words can cover 89.9% of natural language words in the Brown corpus [13], while 74,046 tokens may only cover 85% of identifiers in a training set and 20% of identifiers in a test set [14].”
BackgroundInfluentialRLCoder: Reinforcement Learning for Repository-Level Code Completion
Wang, Y., Wang, Y., Guo, D., Chen, J., Zhang, R., Ma, Y., & Zheng, Z. (2025) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse55347.2025.00014 · Cited by 143
Leveraging Small Software Engineering Data Sets with Pre-Trained Neural Networks
Robbes, R., & Janes, A. (2019) · IEEE/ACM International Conference on Software Engineering: New Ideas and Emerging Results (ICSE-NIER) · doi:10.1109/icse-nier.2019.00016 · Cited by 27
“For instance, Hellendoorn and Devanbu observed that the vocabulary in source code can grow much larger than in NL, as programmers are free to create arbitrarily long and complex identifiers [21]; careful modelling choices (such as identifier splitting) are needed to address these issues in order to maintain vocabulary…”
BackgroundLancer: Your Code Tell Me What You Need
Zhou, S., Shen, B., & Zhong, H. (2019) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2019.00137 · Cited by 37
BugSum: Deep Context Understanding for Bug Report Summarization
Liu, H., Yu, Y., Li, S., Guo, Y., Wang, D., & Mao, X. (2020) · International Conference on Program Comprehension · doi:10.1145/3387904.3389272 · Cited by 34
“While deep learning is an exciting new technique, it is still debatable as to whether this method can be implemented in a way that benefits SE [12, 14].”
A unified multi-task learning model for AST-level and token-level code completion
Liu, F., Li, G., Wei, B., Xia, X., Fu, Z., & Jin, Z. G. (2022) · Empirical Software Engineering · doi:10.1007/s10664-022-10140-7 · Cited by 37
“Accuracy is a classical evaluation measures for code completion and have been used in many the previous code completion work (Hindle et al. 2012; Tu et al. 2014; Raychev et al. 2016; Hellendoorn and Devanbu 2017; Li et al. 2018; Karampatsis et al. 2020).”
BackgroundMethodInfluentialRepository-Level Prompt Generation for Large Language Models of Code
Shrivastava, D., Larochelle, H., & Tarlow, D. (2022) · arXiv · doi:10.48550/arxiv.2206.12839 · Cited by 27
“We operate under the line-level maintenance setting [37, 15] that reflects the scenario where a user is editing an existing file.”
BackgroundMethodSAR: learning cross-language API mappings with little knowledge
Bui, N. D. Q., Yu, Y., & Jiang, L. (2019) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3338906.3338924 · Cited by 26
“Hellendoorn et al. [14] showed that simpler code learning models (e.g., n-gram) with caches of code locality and hierarchy may outperform complex deep neural network models.”
Deep Transfer Learning for Source Code Modeling
Hussain, Y., Huang, Z., Zhou, Y., & Wang, S. (2020) · International Journal of Software Engineering and Knowledge Engineering · doi:10.1142/s0218194020500230 · Cited by 28
Predictive Mutation Analysis via the Natural Language Channel in Source Code
Kim, J.-H., Jeon, J., Hong, S., & Yoo, S. (2022) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3510417 · Cited by 31
“This means that we will be less affected by the Out-of-Vocabulary (OOV) problem [13].”
StagedVulBERT: Multigranular Vulnerability Detection With a Novel Pretrained Code Model
Jiang, Y., Zhang, Y., Su, X., Treude, C., & Wang, T. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3493245 · Cited by 38
“Numerous studies also demonstrate that neural networks achieve superior results with source code, similar to their performance with natural language [20], [21].”
BackgroundCHRONOS: Time-Aware Zero-Shot Identification of Libraries from Vulnerability Reports
Lyu, Y., Le-Cong, T., Kang, H. J., Widyasari, R., Zhao, Z., Le, X.-B. D., Li, M., & Lo, D. (2023) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse48619.2023.00094 · Cited by 30
“Caches of identifier names have been used to improve language models for source code [64]–[66].”
MethodDeep Learning in Software EngineeringPreprint
Li, X., Jiang, H., Ren, Z., Li, G., & Zhang, J. (2018) · arXiv (Cornell University) · doi:10.48550/arxiv.1805.04825 · Cited by 25
“malware detection, etc. E. Concerns to use deep learning in SE Despite the prevalence of improving SE tasks with deep learning, many concerns emerge on the practicability of using deep learning in SE [6]. As a complex and almost opaque model, several factors limit the practicability of deep learning, including the eff…”
BackgroundInfluentialDeep learning the semantics of change sequences for query expansion
Huang, Q. Y., Yang, Y., & Cheng, M. (2019) · Software Practice and Experience · doi:10.1002/spe.2736 · Cited by 25
Modeling programs hierarchically with stack-augmented LSTM
Liu, F., Zhang, L., & Jin, Z. G. (2020) · Journal of Systems and Software · doi:10.1016/j.jss.2020.110547 · Cited by 27
“We adopt MRR as another metric for code completion task, and this matric has been used in previous code completion models [13, 20].”
BackgroundMethodInfluential
Metadata
- Authors
- Hellendoorn, V. J., & Devanbu, P.
- Affiliations
- University of California, Davis (US)
- University of California at Davis, USA
- Venue
- Proceedings of the 2017 11th Joint Meeting on Foundations of Software Engineering
- Publisher
- ACM
- Published
- 2017-08-21
- Pages
- 763-773
- OpenAlex
- W2740130862
- Cited by
- 292
- References
- 42
- Citations by year
- 2026: 7 · 2025: 20 · 2024: 25 · 2023: 32 · 2022: 33 · 2021: 54 · 2020: 50 · 2019: 47 · 2018: 22 · 2017: 2
- FWCI
- 25.41
- Type
- conference paper
- Language
- en
- Open access
- closed
- Locations
- ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) (publishedVersion)
- Funders
- NSF (1414172)
- Topics
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Keywords
- cache model, n-gram language models, deep neural network, recurrent neural networks, LSTM
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.