Deep Learning in Software Engineering

Xiaochen Li, He Jiang, Zhilei Ren, Ge Li, Jingxuan ZhangarXiv 2018

Abstract

Recent years, deep learning is increasingly prevalent in the field of Software Engineering (SE). However, many open issues still remain to be investigated. How do researchers integrate deep learning into SE problems? Which SE phases are facilitated by deep learning? Do practitioners benefit from deep learning? The answers help practitioners and researchers develop practical deep learning models for SE tasks. To answer these questions, we conduct a bibliography analysis on 98 research papers in SE that use deep learning techniques. We find that 41 SE tasks in all SE phases have been facilitated by deep learning integrated solutions. In which, 84.7% papers only use standard deep learning models and their variants to solve SE problems. The practicability becomes a concern in utilizing deep learning techniques. How to improve the effectiveness, efficiency, understandability, and testability of deep learning based solutions may attract more SE researchers in the future.

Introduction

Software Engineering (SE) has traditionally relied on heuristics, manual rules, and expert intuition. The recent rise of Deep Learning (DL) has prompted researchers to apply neural networks to automate complex tasks such as code generation and bug detection. However, the rapid pace of this integration has left the community without a clear "big picture" of the landscape. This study addresses this gap by systematically reviewing how DL is integrated into SE workflows, identifying which phases of the software lifecycle benefit most, and assessing the level of industrial involvement.

Methodology

The study employs a bibliography analysis of 98 core research papers. The selection process involved querying major digital libraries (Web of Science, ACM, IEEE, and Scopus), resulting in 4,443 initial candidates. Through rigorous filtering and recursive citation searching, the final set of 98 papers was established. Each paper was coded based on the DL model utilized, input data types, the targeted SE phase, and industrial participation.

Data Representation in SE

The analysis categorizes input data into five primary groups:

  1. Predefined Software Metrics: Manually defined features like lines of code or bug counts.
  2. Dynamic Software Status: Real-time data such as CPU utilization or API call traces.
  3. Raw Text/Source Code (Non-sequential): Bag-of-words representations.
  4. Raw Text/Source Code (Sequential): Token streams, essential for sequence models like RNNs.
  5. Multimedia: Visual data like UI screenshots for automated testing.

A significant inflection point occurred around 2015. Prior to this, DL in SE was virtually non-existent. The field experienced a massive surge in 2016 and 2017, mirroring the broader industry shift toward neural architectures.

The number of publications per year shows a dramatic increase starting in 2015, marking the rise of DL in SE research.

Despite the growth, there is a notable trend toward standardization over architectural innovation. Approximately 84.7% of the studied papers utilize standard DL models (e.g., basic CNNs or RNNs) or common variants like LSTMs. Specialized architectures designed for the unique hierarchical structure of source code, such as Tree-Based CNNs, remain relatively rare.

Mapping DL to SE Tasks

Deep learning has been applied to 41 distinct SE tasks across all lifecycle phases. The "Development," "Testing," and "Maintenance" phases are the most saturated with DL research, while "Requirement Analysis" and "Software Design" remain under-explored.

Distribution of deep learning applications across various software engineering tasks and phases, highlighting the density in development and maintenance.

The most researched areas include Program Learning/Synthesis (14 papers), Malware Detection (10 papers), and Defect Prediction (9 papers). Industrial interest, while present in about 20% of the research, is highly concentrated on program learning and synthesis, with participation from giants like Google, Facebook, and Microsoft.

Challenges and Future Directions

The transition from academic research to industrial practice faces several critical "roadblocks":

  • Understandability: The "black-box" nature of DL models hinders developer trust. For practitioners to adopt these tools, models must provide interpretable rationales for their outputs.
  • Efficiency: High computational costs are a barrier. The study notes that in some tasks, traditional models like SVMs can be 84 times faster while achieving comparable results.
  • Testability: New methodologies like metamorphic and coverage testing are needed to validate the reliability of neural networks in critical SE workflows.
  • Practicability: Future research must bridge the gap between academic novelty and the practical constraints of real-world production environments.

Summary updated

BibTeX
@misc{li2018deep,
  author = {Xiaochen Li and He Jiang and Zhilei Ren and Ge Li and Jingxuan Zhang},
  title = {{Deep Learning in Software Engineering}},
  year = {2018},
  eprint = {1805.04825},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.04825},
}
Figure