Skip to main content
QUICK REVIEW

[Paper Review] A Survey on Deep Learning for Software Engineering

Yanming Yang, Xin Xia|arXiv (Cornell University)|Nov 30, 2020
Software Engineering ResearchComputer Science144 references6 citations
TL;DR

This survey provides a comprehensive analysis of deep learning (DL) applications in software engineering (SE), reviewing 142 studies from 2006 onward. It classifies DL techniques, analyzes model training and optimization, and identifies key research topics, challenges, and future directions for DL in SE, emphasizing the need for explainability, real-world data, and comparative evaluation with traditional methods.

ABSTRACT

In 2006, Geoffrey Hinton proposed the concept of training ''Deep Neural Networks (DNNs)'' and an improved model training method to break the bottleneck of neural network development. More recently, the introduction of AlphaGo in 2016 demonstrated the powerful learning ability of deep learning and its enormous potential. Deep learning has been increasingly used to develop state-of-the-art software engineering (SE) research tools due to its ability to boost performance for various SE tasks. There are many factors, e.g., deep learning model selection, internal structure differences, and model optimization techniques, that may have an impact on the performance of DNNs applied in SE. Few works to date focus on summarizing, classifying, and analyzing the application of deep learning techniques in SE. To fill this gap, we performed a survey to analyse the relevant studies published since 2006. We first provide an example to illustrate how deep learning techniques are used in SE. We then summarize and classify different deep learning techniques used in SE. We analyzed key optimization technologies used in these deep learning models, and finally describe a range of key research topics using DNNs in SE. Based on our findings, we present a set of current challenges remaining to be investigated and outline a proposed research road map highlighting key opportunities for future work.

Motivation & Objective

  • To systematically review and classify deep learning applications in software engineering since 2006.
  • To analyze the design, training, and optimization of deep neural networks (DNNs) used in SE tasks.
  • To identify key research topics and trends in DL for SE across different software engineering activities.
  • To highlight current challenges such as lack of explainability, reliance on public datasets, and insufficient evaluation on industrial data.
  • To propose a research roadmap for future work in DL for SE, focusing on real-world applicability and comparative performance with traditional techniques.

Proposed method

  • Conducted a systematic literature review (SLR) of 142 primary studies from 21 major SE venues (conferences, journals) published since 2006.
  • Classified DL techniques based on architecture (e.g., RNN, CNN, FNN), model selection strategies, and optimization techniques.
  • Analyzed data collection, preprocessing, model training, and evaluation practices in DL-based SE tools.
  • Mapped DL applications to 6 SE activities and 23 specific SE tasks, such as defect prediction, code generation, and test case generation.
  • Identified recurring challenges through thematic analysis of limitations in model interpretability, data dependency, and real-world validation.
  • Proposed a research roadmap based on identified gaps, including the need for industrial data, explainable AI, and empirical comparisons with traditional SE techniques.

Experimental results

Research questions

  • RQ1What deep learning architectures and techniques are most commonly used in software engineering research?
  • RQ2How are deep neural networks trained and optimized in SE applications, and what are the key data and evaluation practices?
  • RQ3Which specific software engineering tasks have been addressed using deep learning, and how are they distributed across SE activities?
  • RQ4What are the major challenges and limitations in applying deep learning to real-world SE problems?
  • RQ5How do deep learning models compare in performance to traditional machine learning or rule-based approaches in SE tasks?

Key findings

  • RNN, CNN, and Feedforward Neural Networks (FNN) are the three most widely used deep learning architectures in SE, with 30 distinct DNNs identified across 142 studies.
  • Only 4% of studies used industrial datasets for training and evaluation, indicating a significant gap between academic research and real-world SE practice.
  • Most studies rely on publicly available, open-source datasets—especially for code clone detection and defect prediction—raising concerns about data representativeness and generalizability.
  • The black-box nature of deep neural networks limits their adoption in SE, as lack of interpretability hinders trust and debugging by software engineers.
  • There is a lack of empirical comparisons between deep learning and traditional machine learning techniques in SE, leaving open questions about when DL provides real performance advantages.
  • Future research should prioritize explainable AI, data-efficient learning (e.g., meta-learning), and validation on industrial data to improve practical relevance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.