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
Items 101–200 of 294
Simpler Hyperparameter Optimization for Software Analytics: Why, How, When?
Agrawal, A., Yang, X., Agrawal, R., Yedida, R., Shen, X., & Menzies, T. (2021) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2021.3073242 · Cited by 30
Generation-based Code Review Automation: How Far Are We?
Zhou, X., Kim, K., Xu, B., Han, D., He, J., & Lo, D. (2023) · IEEE International Conference on Program Comprehension (ICPC) · doi:10.1109/icpc58990.2023.00036 · Cited by 58
“A large vocabulary size will hinder the learning process and lead to inaccurate generation [37].”
BackgroundBug Localization by Learning to Rank and Represent Bug Inducing Changes
Loyola, P., Gajananan, K., & Satoh, F. (2018) · ACM International Conference on Information and Knowledge Management (CIKM) · doi:10.1145/3269206.3271811 · Cited by 23
“That is the case of the work of [9] and [10] which compares the programming language modeling techniques, focusing on the differences between n-grams methods and recurrent models, showing that fine-tuned ngram models can achieve a better performance than deep models.”
BackgroundGenerative API usage code recommendation with parameter concretization
Chen, C., Peng, X., Sun, J., Xing, Z., Wang, X., Zhao, Y., Zhang, H., & Zhao, W. (2019) · Science China Information Sciences · doi:10.1007/s11432-018-9821-9 · Cited by 23
Software engineering meets deep learning: a mapping study
Ferreira, F., Silva, L. L., & Valente, M. T. (2021) · ACM Symposium on Applied Computing · doi:10.1145/3412841.3442029 · Cited by 28
“Other research problems: Other important research problems handled using DL are code search [44–47], security [48–51], and software language modelling [52–55].”
Non-Autoregressive Line-Level Code Completion
Liu, F., Fu, Z., Li, G., Jin, Z., Liu, H., Hao, Y., & Zhang, L. (2024) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3649594 · Cited by 22
“…into a training set of 100,000 files and test set of 50,000 files, GitHub-Java [2] contains 14,317 projects, we follow Hellendoorn and Devanbu [19] and Karampat-sis et al. [22] to split validation and test set, and randomly sample 1,000 projects from the rest of the projects as the training…”
MethodModeling Vocabulary for Big Code Machine LearningPreprint
Babii, H., Janes, A., & Robbes, R. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1904.01873 · Cited by 24
“observe that in general, source code is more repetitive than natural language [33], Hellendoorn and Devanbu notice that NLMs trained on a software corpus would struggle due to vocabulary size [32].”
BackgroundMethodResultInfluentialZhang, J., Wang, X., Zhang, H., Sun, H., Pu, Y., & Liu, X. (2020) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3324884.3416568 · Cited by 33
“Hellendoorn et al. [26] performed an extensive comparison between N-gram and LSTM-based LMs for source code, and concluded that N-gram models can outperform LSTM models if carefully adapted.”
BackgroundMethodInfluentialClone-Slicer: Detecting Domain Specific Binary Code Clones through Program Slicing
Xue, H., Venkataramani, G., & Lan, T. (2018) · doi:10.1145/3273045.3273047 · Cited by 27
“The output, O t ∈ R m , is a vector of probabilities predicting the distribution of the next term in the code corpus [18].”
BackgroundTree2Tree Neural Translation Model for Learning Source Code Changes.Preprint
Chakraborty, S., Allamanis, M., & Ray, B. (2018) · arXiv (Cornell University) · Cited by 27
Thinking Like a Developer? Comparing the Attention of Humans with Neural Models of Code
Paltenghi, M., & Pradel, M. (2021) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase51524.2021.9678712 · Cited by 39
Transformers in source code generation: A comprehensive survey
Ghaemi, H., Alizadehsani, Z., Shahraki, A., & Corchado, J. M. (2024) · Journal of Systems Architecture · doi:10.1016/j.sysarc.2024.103193 · Cited by 31
Line-Level Defect Prediction by Capturing Code Contexts With Graph Convolutional Networks
Yin, S., Guo, S., Li, H., Li, C., Chen, R., Li, X., & Jiang, H. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3503723 · Cited by 25
“…results of LineDef with five SOTA file-level defect detection approaches [18], [20], [26], [44], [50], and the line-level prediction results are compared with four SOTA line-level defect detection approaches [26], [30], [35], [41], [42], [46], [47] to explore whether LineDef outperforms them.”
Faseeh, M., Khan, M., Iqbal, N., Qayyum, F., Mehmood, A., & Kim, J. (2024) · IEEE Access · doi:10.1109/access.2024.3358422 · Cited by 21
“These DL models have unique application scenarios; therefore, selecting an appropriate model and balancing effectiveness are essential challenges in successfully applying DL for this type of problem [9], [16].”
MethodA Source Code Similarity Based on Siamese Neural Network
Xie, C., Wang, X., Qian, C., & Mengqi, W. (2020) · Applied Sciences · doi:10.3390/app10217519 · Cited by 23
Toward a Theory of Causation for Interpreting Neural Code Models
Nader Palacio, D., Velasco, A., Cooper, N., Rodriguez, A., Moran, K., & Poshyvanyk, D. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3379943 · Cited by 18
“Since then, NCMs have been used for a number of SE tasks such as code completion [3], [15], [39], [40], [41], [42], [43], [44] and translation [4], [9], [45], [46], [47], [48], [49].”
MethodNatural language-guided programming
Heyman, G., Huysegems, R., Justen, P., & Cutsem, T. V. (2021) · ACM SIGPLAN International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software (Onward!) · doi:10.1145/3486607.3486749 · Cited by 24
“Hindle et al. ’s work was based on (adapted versions of) n-gram models and in recent years there has been an ongoing debate about what type of language models (based on n-grams or deep learning) is best for modeling source code [15, 21].”
MethodDing, Z., Tang, Y., Cheng, X., Li, H., & Shang, W. (2023) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3624740 · Cited by 31
“A potential challenge is the out-of-vocabulary (OOV) tokens of the source code and logging texts [30, 32].”
BackgroundDeep Just-In-Time Defect Localization
Qiu, F., Gao, Z., Xia, X., Lo, D., Grundy, J., & Wang, X. (2021) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2021.3135875 · Cited by 27
“Previous studies [15] suggest that such OOV problems may greatly hinder the learning performance of the model.”
Big Code Search: A Bibliography
Kim, K., Ghatpande, S., Kim, D., Zhou, X., Liu, K., Bissyandé, T. F., Klein, J., & Traon, Y. L. (2023) · ACM Computing Surveys · doi:10.1145/3604905 · Cited by 21
LSTM-based argument recommendation for non-API methods
Li, G., Liu, H., Li, G., Shen, S., & Tang, H. (2020) · Science China Information Sciences · doi:10.1007/s11432-019-2830-8 · Cited by 17
Hierarchical semantic-aware neural code representation
Jiang, Y., Su, X., Treude, C., & Wang, T. (2022) · Journal of Systems and Software · doi:10.1016/j.jss.2022.111355 · Cited by 25
DeepClone: Modeling Clones to Generate Code Predictions
Hammad, M., Babur, Ö., Basit, H. A., & van den Brand, M. (2020) · Lecture notes in computer science · doi:10.1007/978-3-030-64694-3_9 · Cited by 18
Islam, M. A., Ali, M. E., & Parvez, M. R. (2025) · arXiv · doi:10.48550/arxiv.2502.05664 · Cited by 17
Where Should I Look at? Recommending Lines that Reviewers Should Pay Attention To
Hong, Y., Tantithamthavorn, C. K., & Thongtanunam, P. (2022) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner53432.2022.00121 · Cited by 28
Gong, L., Zhang, J., Wei, M., Zhang, H., & Huang, Z. (2023) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3569934 · Cited by 27
“, source code generation [36], bug-ixing process [13], clone detection [56], and program repair [58]).”
BackgroundCode-line-level Bugginess Identification: How Far have We Come, and How Far have We Yet to Go?
Guo, Z., Liu, S., Liu, X., Lai, W., Ma, M., Zhang, X., Ni, C., Yang, Y., Li, Y., Chen, L., et al. (2023) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3582572 · Cited by 23
“[20], which has been used in previous study [73].”
BackgroundMethodLineFlowDP: A Deep Learning-Based Two-Phase Approach for Line-Level Defect Prediction
Yang, F., Zhong, F., Zeng, G., Xiao, P., & Zheng, W. (2024) · Empirical Software Engineering · doi:10.1007/s10664-023-10439-z · Cited by 21
“In previous studies on line-level defect prediction(Pornprasit & Tantithamthavorn, 2022; Ray et al., 2016; Wang et al., 2016; Hellendoorn & Devanbu, 2017), researchers calculated the entropy value of lines of code by using the entropy of code tokens or the attention score Fig.”
Neural-augmented static analysis of Android communication
Zhao, J., Albarghouthi, A., Rastogi, V., Jha, S., & Octeau, D. (2018) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3236024.3236066 · Cited by 20
“Hellendoorn and Devanbu [19] proposed modeling techniques for source code understanding, which they test with n-grams and rnn s .”
Experience report: investigating bug fixes in machine learning frameworks/libraries
Sun, X., Zhou, T., Wang, R., Duan, Y., Bo, L., & Chang, J. (2021) · Frontiers of Computer Science · doi:10.1007/s11704-020-9441-1 · Cited by 14
JITO: a tool for just-in-time defect identification and localization
Qiu, F., Yan, M. L., Xia, X., Wang, X., Fan, Y., Hassan, A. E., & Lo, D. (2020) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3368089.3417927 · Cited by 14
“and Devanbu’s study [6], we set N to be 6 and adopt the JM smoothing method [2] for modeling source code.”
MethodAutomated variable renaming: are we there yet?
Mastropaolo, A., Aghajani, E., Pascarella, L., & Bavota, G. (2023) · Empirical Software Engineering · doi:10.1007/s10664-022-10274-8 · Cited by 19
“On the same line, Hellendoorn and Devanbu [58] further exploit the cached models considering specific characteristics of code ( e.g., unlimited, nested, and scoped vocabulary).”
BackgroundMethodARist: An effective API argument recommendation approach
Nguyen, S., Tran, C., Tran, K. T., Nguyen, T. M., Nguyen, T.-T., Ngo, K.-T., & Vo, H. D. (2023) · Journal of Systems and Software · doi:10.1016/j.jss.2023.111786 · Cited by 18
Evaluation of Generalizability of Neural Program Analyzers under Semantic-Preserving TransformationsPreprint
Rabin, M. R. I., & Alipour, M. A. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2004.07313 · Cited by 24
“However, it is still unknown if neural networks are the best way to process programs [15] vs. [20].”
Can Neural Clone Detection Generalize to Unseen Functionalitiesƒ
Liu, C., Lin, Z., Lou, J., Wen, L., & Zhang, D. (2021) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase51524.2021.9678907 · Cited by 24
“Common wisdom suggests that vocabulary is a key factor that may impact the effectiveness of neural networks, especially for source code modeling ([16], [24], [25]).”
BackgroundReview4Repair: Code review aided automatic program repairing
Huq, F., Hasan, M., Haque, M. M. A., Mahbub, S., Iqbal, A., & Ahmed, T. (2021) · Information and Software Technology · doi:10.1016/j.infsof.2021.106765 · Cited by 46
ENCORE: Ensemble Learning using Convolution Neural Machine Translation for Automatic Program RepairPreprint
Lutellier, T., Pang, L., Pham, V. H., Wei, M., & Tan, L. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1906.08691 · Cited by 24
“…community had applied deep learning to performing various tasks such as defects prediction [19, 60, 61], source code representation [62, 63, 64, 65], source code summarization [66, 67] source code modeling [68, 69, 70, 71], code clone detection [72, 73], and program synthesis [74, 75, 76, 8].”
MethodAutomated WebAssembly Function Purpose Identification With Semantics-Aware Analysis
Romano, A., & Wang, W. (2023) · International World Wide Web Conference (WWW) · doi:10.1145/3543507.3583235 · Cited by 17
“Other works have compared the used of traditional NLP methods with machine learning-based techniques for source code modeling [13].”
Hierarchical learning of cross-language mappings through distributed vector representations for code
Bui, N. D. Q., & Jiang, L. (2018) · IEEE/ACM International Conference on Software Engineering: New Ideas and Emerging Results (ICSE-NIER) · doi:10.1145/3183399.3183427 · Cited by 12
“Hellendoorn and Devanbu [6] point out that simpler models (e.g., n-gram) with caches of code locality and hierarchy may even outperform complex models (e.g., deep neural networks).”
BackgroundDeep Learning to Detect Redundant Method CommentsPreprint
Louis, A. P., Dash, S. K., Barr, E. T., & Sutton, C. A. (2018) · arXiv (Cornell University) · doi:10.48550/arxiv.1806.04616 · Cited by 20
“Standard n -gram models do not perform as well as the deep language models that we describe next, although for code, the extension of cache language models [22, 53] are considerably better, and competitive with deep models.”
BackgroundAssessing and Analyzing the Correctness of GitHub Copilot's Code Suggestions
Mo, R., Wang, D., Zhan, W., Jiang, Y., Wang, Y., Zhao, Y., Li, Z., & Ma, Y. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3715108 · Cited by 11
“Karampatsis et al. [20] leveraged deep network modeling of source code to overcome the limitations of the OOV problem [15].”
PragFormer: Data-Driven Parallel Source Code Classification with Transformers
Harel, R., Kadosh, T., Hasabnis, N., Mattson, T. G., Pinter, Y., & Oren, G. (2024) · International Journal of Parallel Programming · doi:10.1007/s10766-024-00778-9 · Cited by 21
“In the code domain, the OOV problem can manifest itself mainly through identifier naming conventions, which vary greatly across organizations and communities, which harms the model performance [43, 45, 51].”
Adversarial training and ensemble learning for automatic code summarization
Zhou, Z., Yu, H., & Fan, G. (2021) · Neural Computing and Applications · doi:10.1007/s00521-021-05907-w · Cited by 11
“Due to the structural nature of code, simply applying NMT models is far from enough to obtain satisfactory results [23].”
Contextual Predictive Mutation Testing
Jain, K., Alon, U., Groce, A., & Goues, C. L. (2023) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3611643.3616289 · Cited by 15
“However, this indicates”
Supporting Code Search with Context-Aware, Analytics-Driven, Effective Query Reformulation
Rahman, M. M. (2019) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse-companion.2019.00088 · Cited by 14
“However, source code is often scarce in vocabulary and rich in structures [14].”
BackgroundYang, Y., & Chen, X. (2019) · Proceedings/Proceedings of the ... International Conference on Software Engineering and Knowledge Engineering · doi:10.18293/seke2019-056 · Cited by 10
Heuristic and Neural Network Based Prediction of Project-Specific API Member Access
Jiang, L. C., Liu, H., Jiang, H., Zhang, L., & Hong, M. (2020) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2020.3017794 · Cited by 11
An empirical study of deep transfer learning-based program repair for Kotlin projects
Kim, M., Kim, Y., Jeong, H., Heo, J.-S., Kim, S., Chung, H., & Lee, E. (2022) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3540250.3558967 · Cited by 14
“The absence of these code tokens in the training and tuning datasets leads to the out-of-vocabulary problem referred to in deep learning [15], which significantly reduces the performance of the DL-APRmodel [8].”
BackgroundBi-LSTM-Based Neural Source Code Summarization
Aljumah, S., & Berriche, L. (2022) · Applied Sciences · doi:10.3390/app122412587 · Cited by 13
“Recent studies on code summarization have proved that high-quality, consistent comments can be generated automatically with deep neural networks that are trained on a large corpus [2,5].”
Automatic detection of architectural bad smells through semantic representation of code
Pigazzini, I. (2019) · European Conference on Software Architecture · doi:10.1145/3344948.3344951 · Cited by 15
“Regarding this aspect, a study from Hellen-doorn et al. [11] suggested that existing neural networks are not the best solution to represent code semantic, but in my work I exploit a neural model specifically developed for code analysis.”
BackgroundBui, N. D. Q., Jiang, L., & Yu, Y. (2017) · Open Research Online (The Open University) · doi:10.48550/arxiv.1710.06159 · Cited by 10
“ures to compute sentence features at multiple levels of granularity. However, these studies have not considered tree-based structures that are more accurate representations of code. In code learning, Hellendoorn and Devanbu (2017) point out that simpler models (e.g., n-gram) improved with cached information about code…”
BackgroundHellendoorn, V. J., Dévanbu, P., & Alipour, M. A. (2018) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3236024.3264832 · Cited by 10
“Typical values for natural languages are in the range of 5 to 8 bits (where 5 bits is currently the state-of-the-art, for neural network models estimated over extremely large corpora) and values for source code are in the range of 1 to 4 bits [7, 8].”
BackgroundMethodInfluentialSelf-citationLearning the Relation Between Code Features and Code Transforms With Structured Prediction
Yu, Z., Martínez, M., Chen, Z., Bissyandé, T. F., & Monperrus, M. (2023) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2023.3275380 · Cited by 17
“[105] argue that source code has special properties and improve existing language modeling techniques by incorporating handle of particular aspects of source code, including for example frequent changes and deeply nested scopes.”
BackgroundSQLIFIX: Learning Based Approach to Fix SQL Injection Vulnerabilities in Source Code
Siddiq, M. L., Jahin, M. R. R., Islam, M. R. U., Shahriyar, R., & Iqbal, A. (2021) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner50967.2021.00040 · Cited by 16
“They used Copy mechanism [27] to solve infinite variable problem [28] for program repair.”
MethodA hybrid code representation learning approach for predicting method names
Zhang, F., Chen, B., Li, R., & Peng, X. (2021) · Journal of Systems and Software · doi:10.1016/j.jss.2021.111011 · Cited by 13
Fitting missing API puzzles with machine translation techniques
Nguyen, P. T., Sipio, C. D., Rocco, J. D., Ruscio, D. D., & Penta, M. D. (2022) · Expert Systems with Applications · doi:10.1016/j.eswa.2022.119477 · Cited by 12
Synergy between Machine/Deep Learning and Software Engineering: How Far Are We?Preprint
Wang, S., Huang, L., Ge, J., Zhang, T., Feng, H., Li, M., Zhang, H., & Ng, V. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2008.05515 · Cited by 9
“RNN Model [31, 32, 136, 137] 2.”
BackgroundMalhotra, R., Gupta, S., & Singh, T. (2020) · International Conference on Computational Performance Evaluation (ComPE) · doi:10.1109/compe49325.2020.9200103 · Cited by 9
“PS3 1 Choetkiertikul 2018 [5] PS16 2 Jian Li 2017 [18] PS5 3 Dam 2019 [7] PS17 4 Manjula 2018 [19] PS14 5 Xiaodong Gu 2018 [16] PS1 6 Xinli Yang 2015 [3] PS20 7 Feng Dong 2017 [22] PS11 8 Lam 2015 [13] PS10 9 Zheng 2016 [12] PS4 10 Dam 2018 [6] PS18 11 Zhen Li 2018 [20] PS7 12 Louis 2018 [9] PS19 13 Wang 2017 [21] PS1…”
SEED: Semantic Graph Based Deep Detection for Type-4 Clone
Xue, Z., Jiang, Z., Huang, C., Xu, R., Huang, X., & Hu, L. (2022) · Lecture notes in computer science · doi:10.1007/978-3-031-08129-3_8 · Cited by 12
“Although deep learning is a promising new technique, it is still debatable as to whether this method can be implemented in a way that benefits SE [10, 13].”
MethodToward Optimal Selection of Information Retrieval Models for Software Engineering Tasks
Rahman, M. M., Chakraborty, S., Kaiser, G. E., & Ray, B. (2019) · IEEE International Working Conference on Source Code Analysis and Manipulation (SCAM) · doi:10.1109/scam.2019.00022 · Cited by 11
“, are linguistically quite different from conventional natural language even when in text form [7].”
BackgroundDeepTLE: Learning Code-Level Features to Predict Code Performance before It Runs
Zhou, M., Chen, J., Hu, H., Yu, J., Li, Z., & Hu, H. (2019) · Asia-Pacific Software Engineering Conference (APSEC) · doi:10.1109/apsec48747.2019.00042 · Cited by 10
“Generally, the vocabulary of source code is infinite [29] and may increase the sparsity and learning cost [8].”
BackgroundDeep Learning Based Identification of Suspicious Return Statements
Li, G., Liu, H., Jin, J., & Umer, Q. (2020) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner48275.2020.9054826 · Cited by 11
“[54] propose a nested and cached n-gram based approach called SLP-Core to modeling and completing source code.”
MethodTowards Full-line Code Completion with Neural Language ModelsPreprint
Wang, W., Shen, S., Li, G., & Jin, Z. G. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2009.08603 · Cited by 24
“(Hellendoorn and Devanbu 2017) introduced an improved cache-based N-gram model to address the localness and unlimited vocabulary in source code.”
Towards Zero Knowledge Learning for Cross Language API Mappings
Bui, N. (2019) · 2019 IEEE/ACM 41st International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse-companion.2019.00054 · Cited by 9
Exploring Type Inference Techniques of Dynamically Typed Languages
Saifullah, C. M. K., Asaduzzaman, M., & Roy, C. K. (2020) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner48275.2020.9054814 · Cited by 9
“Second, the use of a local model along with a global model is found effective in literature [15].”
MethodApplication of Deep Learning for Code Smell Detection: Challenges and Opportunities
Hadj-Kacem, M., & Bouassida, N. (2024) · SN Computer Science · doi:10.1007/s42979-024-02956-5 · Cited by 10
“In recent years, deep learning [13] has gained widespread acceptance in several areas of software engineering [14, 15], including the code smells detection.”
Tian, Z., Teng, Y., Ke, X., Chen, Y., & Chen, L. (2025) · Information and Software Technology · doi:10.1016/j.infsof.2025.107766 · Cited by 9
CLG-Trans: Contrastive learning for code summarization via graph attention-based transformer
Zeng, J., He, Y., Zhang, T., Zhou, X., & Han, Q. (2023) · Science of Computer Programming · doi:10.1016/j.scico.2023.102925 · Cited by 8
On the Applicability of Language Models to Block-Based Programs
Griebl, E., Fein, B., Obermüller, F., Fraser, G., & Just, R. (2023) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse48619.2023.00199 · Cited by 13
Yang, Y., & Chen, X. (2019) · Proceedings/Proceedings of the ... International Conference on Software Engineering and Knowledge Engineering · doi:10.18293/seke2019-057 · Cited by 8
Yang, Y., Chen, X., & Sun, J. (2019) · International Journal of Software Engineering and Knowledge Engineering · doi:10.1142/s0218194019400229 · Cited by 6
Do Programmers Prefer Predictable Expressions in Code?
Casalnuovo, C., Lee, K., Wang, H., Dévanbu, P., & Morgan, E. (2020) · Cognitive Science · doi:10.1111/cogs.12921 · Cited by 18
“First, we use a basic 6-gram model with Jelinek-Mercer smoothing as recommended previously (Hellendoorn and Devanbu, 2017), denoted as the global model.”
BackgroundMethodInfluentialSoftware Engineering Meets Deep Learning: A Literature Review.Preprint
Ferreira, F., Silva, L. L., & Valente, M. T. (2019) · arXiv (Cornell University) · Cited by 7
Repoformer: Selective Retrieval for Repository-Level Code Completion
Wu, D., Ahmad, W. U., Zhang, D., Ramanathan, M. K., & Ma, X. (2024) · arXiv · doi:10.48550/arxiv.2403.10059 · Cited by 7
“Early works propose application-specific training methods for n-gram LMs (Tu et al., 2014), RNNs (Hellendoorn & Devanbu, 2017; Wang et al., 2021), and Transformers (Svyatkovskiy et al., 2020) to leverage structured knowledge beyond current file’s context.”
BackgroundMethodAn Empirical Study on Code Review Activity Prediction and Its Impact in Practice
Olewicki, D., Habchi, S., & Adams, B. (2024) · Proceedings of the ACM on software engineering. · doi:10.1145/3660806 · Cited by 19
“…similar, and sometimes even better, than Deep Learning (DL) approaches in the context of software engineering tasks in terms of both performance [24, 28] and speed [39], which motivates our use of classifiers on top of a zero-shot LLM embeddings instead of fine-tuning a LLM encoder-decoder model.”
BackgroundBug-Transformer: Automated Program Repair Using Attention-Based Deep Neural Network
Yao, J., Rao, B., Xing, W., & Wang, L. (2022) · Journal of Circuits Systems and Computers · doi:10.1142/s0218126622502103 · Cited by 6
Efficacy of Various Large Language Models in Generating Smart Contracts
Chatterjee, S., & Ramamurthy, B. (2025) · Lecture notes in networks and systems · doi:10.1007/978-3-031-85363-0_31 · Cited by 12
A graph sequence neural architecture for code completion with semantic structure features
Yang, K., Yu, H., Fan, G., Yang, X., & Huang, Z. (2021) · Journal of Software Evolution and Process · doi:10.1002/smr.2414 · Cited by 6
“We compare CC-GGNN model with five code completion models from previous works and these baselines can be divided into two categories: (1) probabilistic model and (2) deep learning network.”
BackgroundMethodInfluentialScope-aware Code Completion with Discriminative Modeling
Sheng, H., Xiao, C., & Ishikawa, Y. (2019) · Journal of Information Processing · doi:10.2197/ipsjjip.27.469 · Cited by 6
“Existing solutions to code completion focus on using neural language models [4], [9], [13], [17], [22] or statistical language models [3], [16], [18], [19] learned from a large code base by modeling it into a natural language processing problem.”
BackgroundMethodResultInfluentialOn the naturalness of hardware descriptions
Lee, J., Nie, P., Li, J. J., & Gligoric, M. (2020) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3368089.3409692 · Cited by 9
“To handle zero probabilities of n-grams, we used Jelinek-Mercer smoothing as Hellendoorn and Devanbu [14] found it to be the most appropriate for source code.”
MethodResultResearch and Application of Machine Learning in Automatic Program Generation
Zhang, X., & Jiang, Y. (2020) · Chinese Journal of Electronics · doi:10.1049/cje.2020.10.006 · Cited by 7
Hammad, M., Babur, Ö., Basit, H. A., & van den Brand, M. (2021) · PeerJ Computer Science · doi:10.7717/peerj-cs.737 · Cited by 8
“A number of techniques are available for developing a LM for BigCloneBench dataset such as n -gram statistical model ( Hellendoorn & Devanbu, 2017 ), LSTM ( Hochreiter & Schmidhuber, 1997 ), GRU ( Cho et al., 2014 ), GPT-2 ( Radford et al., 2019b ); as well as parameter settings for training those…”
MethodResultInfluentialSyntaxLineDP: a Line-level Software Defect Prediction Model based on Extended Syntax Information
Zhu, J., Huang, Y., Chen, X., Wang, R., & Zheng, Z. (2023) · IEEE International Conference on Software Quality, Reliability and Security (QRS) · doi:10.1109/qrs60937.2023.00018 · Cited by 7
“We set the smoothing size of the n-gram to 6 and use the Jelinek-Mercer smoothing function, since previous work has shown that this configuration works well for source code[43].”
MethodA Survey on Automated Code Evaluation Systems and Their Resources for Code Analysis
Rahman, M. M., Watanobe, Y., & Hamada, M. (2023) · Lecture notes in computer science · doi:10.1007/978-3-031-36822-6_33 · Cited by 5
Better Modeling the Programming World with Code Concept Graphs-augmented Multi-modal Learning
Weyssow, M., Sahraoui, H. A., & Liu, B. (2022) · IEEE/ACM International Conference on Software Engineering: New Ideas and Emerging Results (ICSE-NIER) · doi:10.1145/3510455.3512771 · Cited by 10
“On the one hand, statistical NLP approaches are based upon learning recurrent patterns from software artifacts such as code, commit logs or natural language documentation [3, 17, 19].”
BackgroundContext-Aware Name Recommendation for Field Renaming
Dong, C., Jiang, Y., Niu, N., Zhang, Y., & Liu, H. (2024) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3597503.3639195 · Cited by 8
BAFLineDP: Code Bilinear Attention Fusion Framework for Line- Level Defect Prediction
Qiu, S., Huang, H., Luo, J., Kuang, Y., & Luo, H. (2024) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner60148.2024.00036 · Cited by 13
“Following the experimental setup outlined by Hellendoorn et al. [45], we train a cache-based N-gram model using clean code files and then perform line-level defect prediction on defective code files.”
MethodBuilding Hierarchically Disentangled Language Models for Text Generation with Named Entities
Agarwal, Y., Batra, D., & Bagler, G. (2020) · International Conference on Computational Linguistics · doi:10.18653/v1/2020.coling-main.3 · Cited by 8
“Recent advances in language models have led to impressive generation of programming code in languages such as Java and C (Hindle et al., 2016; Yin and Neubig, 2017; Hellendoorn and Devanbu, 2017; Rabinovich et al., 2017).”
BackgroundFederated learning based multi‐task feature fusion framework for code expressive semantic extraction
Deng, F., Fu, C., Qian, Y., Yang, J., He, S., & Xu, H. (2022) · Software Practice and Experience · doi:10.1002/spe.3094 · Cited by 5
“Based on this study, Hellendoorn et al. 26 and Tu et al. 27 use statistical models, such as N-gram, to model the source code.”
MethodCompleting Function Documentation Comments Using Structural Information
Ciurumelea, A., Alexandru, C. V., Gall, H. C., & Proksch, S. (2023) · Empirical Software Engineering · doi:10.1007/s10664-022-10284-6 · Cited by 8
“However, in source code developers include new identifier names all the time (Hellendoorn and Devanbu 2017) and dealing with ¡UNK¿ words requires additional measures.”
BackgroundRecommending Code Reviews Leveraging Code Changes with Structured Information Retrieval
Shuvo, O., Mahbub, P., & Rahman, M. M. (2023) · IEEE International Conference on Software Maintenance (ICSM) · doi:10.1109/icsme58846.2023.00029 · Cited by 10
Open-vocabulary models for source code
Karampatsis, R.-M., Babii, H., Robbes, R., Sutton, C. A., & Janes, A. (2020) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3377812.3390806 · Cited by 8
“We evaluate themodels in static, dynamic, andmaintenance scenarios from the previous work [3] on Java, C, and Python corpora for the tasks of code completion and bug prediction.”
BackgroundMethodInfluentialNeural Code Summarization: How Far Are We?Preprint
Shi, E., Wang, Y., Du, L., Chen, J., Han, S., Zhang, H., Zhang, D., & Sun, H. (2021) · arXiv (Cornell University) · Cited by 5
Capturing Structural Locality in Non-parametric Language ModelsPreprint
Xu, F. F., He, J., Neubig, G., & Hellendoorn, V. J. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2110.02870 · Cited by 9
Self-citationXavier: Toward Better Coding Assistance in Authoring Tabular Data Wrangling Scripts
Zhou, Y., Cai, X., Shi, Q., Huang, Y., Li, H., Qu, H., Weng, D., & Wu, Y. (2025) · CHI Conference on Human Factors in Computing Systems · doi:10.1145/3706598.3714239 · Cited by 6
“Building on the analogy between human-written code and natural language [25], subsequent works [23, 63, 64] explored statistical approaches that leveraged the repetitive and predictive properties of code.”
Odeh, A. H., Odeh, M., Odeh, H., & Odeh, N. (2023) · Revue d intelligence artificielle · doi:10.18280/ria.370515 · Cited by 4
“Furthermore, Hellendoorn and Devanbu [25] investigated the effectiveness of deep neural networks in modeling programming language source code, comparing them with traditional machine learning algorithms.”
Toward Detection of Access Control Models from Source Code via Word Embedding
Heaps, J., Wang, X., Breaux, T. D., & Niu, J. (2019) · ACM Symposium on Access Control Models and Technologies (SACMAT) · doi:10.1145/3322431.3326329 · Cited by 4
“[6] examined the feasibility of using deep learning on source code.”
BackgroundCCMC: Code Completion with a Memory Mechanism and a Copy Mechanism
Yang, H., & Kuang, L. (2021) · International Conference on Evaluation and Assessment in Software Engineering (EASE) · doi:10.1145/3463274.3463332 · Cited by 5
“N-gram is one of the most widely used language models in code completion[12, 13, 25].”
MethodDuan, X., Wu, J., Du, M., Luo, T., Yang, M., & Wu, Y. (2021) · IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW) · doi:10.1109/issrew53611.2021.00102 · Cited by 8
Speeding Up Automated Assessment of Programming Exercises
Sarsa, S., Leinonen, J., Koutcheme, C., & Hellas, A. (2022) · Conference on United Kingdom & Ireland Computing Education Research (UKICER) · doi:10.1145/3555009.3555013 · Cited by 8
“While the more recent approaches that use machine learning on source code have relied on purpose-built program embeddings [3, 44], it is still unclear to what extent such embeddings generalise [34], and how source code should be represented (and modeled) seems to still seems to be a somewhat open question [24].”
Background
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.