Abstract
Given the current transformative potential of research that sits at the intersection of Deep Learning (DL) and Software Engineering (SE), an NSF-sponsored community workshop was conducted in co-location with the 34th IEEE/ACM International Conference on Automated Software Engineering (ASE'19) in San Diego, California. The goal of this workshop was to outline high priority areas for cross-cutting research. While a multitude of exciting directions for future work were identified, this report provides a general summary of the research areas representing the areas of highest priority which were discussed at the workshop. The intent of this report is to serve as a potential roadmap to guide future work that sits at the intersection of SE & DL.
1. Introduction: The Software 2.0 Paradigm
Traditional software engineering is built upon a foundation of explicit logic. Developers write deterministic instructions, and the resulting code is analyzed through well-established methods like unit testing and static analysis. However, the rise of Deep Learning (DL) has introduced a new paradigm, often called "Software 2.0," where system logic is learned from data rather than analytically specified.
This shift creates a significant gap: the tools and methodologies refined over decades for human-written code are often incompatible with the stochastic, "black-box" nature of neural networks. This report synthesizes the findings of an NSF-sponsored workshop aimed at bridging this gap by defining a strategic roadmap for the interplay between SE and DL.
2. Research Frontiers: DL4SE and SE4DL
The workshop identified two primary, interconnected research frontiers:
2.1 Deep Learning for Software Engineering (DL4SE)
DL4SE focuses on using artificial intelligence to automate and improve the software development lifecycle. With billions of lines of code available in repositories like GitHub, GitLab, and Sourceforge, there is an unprecedented opportunity to train models that can assist in code completion, bug detection, and automated testing. The challenge lies in moving beyond generic natural language processing (NLP) models to architectures tailored for the unique structural properties of code, such as Abstract Syntax Trees (ASTs) and Control-Flow Graphs (CFGs).
2.2 Software Engineering for Deep Learning (SE4DL)
SE4DL applies rigorous engineering principles to the creation and maintenance of DL systems. Because DL models are probabilistic, they require new approaches to Verification and Validation (V&V). Researchers are exploring how to make these "opaque" models reliable, secure, and explainable, ensuring they can be trusted in mission-critical environments.
3. Emerging Methodologies
The workshop highlighted several key technical areas for cross-cutting research:
- Verification & Validation (V&V): Adapting techniques like symbolic execution and metamorphic testing to verify model behavior under edge cases.
- Abstraction Refinement: Developing formal representations of DL models that allow for rigorous analysis beyond simple weight inspections.
- Grey-box Fuzzing: Leveraging internal model information (such as gradients) to guide automated testing tools toward finding adversarial inputs that trigger failures.
- Neuro-symbolic Reasoning: Integrating the intuitive pattern recognition of DL with the hard logic of symbolic AI to produce code that is both functional and maintainable.
4. The Role of Data and Benchmarks
Data is the lifeblood of DL, but software engineering data is uniquely complex. The community emphasizes the need for:
- Standardized Benchmarks: Citing the ACAS Xu airborne collision avoidance system as a landmark for verification, the authors call for an "ImageNet moment" for SE—comprehensive, labeled datasets for tasks like automatic bug fixing.
- Debugging the Data: In SE4DL, identifying faults often means "debugging the data" rather than the code. Biased or incomplete training sets are a primary source of system failure.
5. Key Insights: The Software 2.0 Paradigm
The application of DL to computational problems represents a fundamental shift in programming. Key insights from the workshop include:
- Learning vs. Writing: We are moving from analytically specifying programs to "learning" them from data. This requires a shift in focus from debugging code to "debugging the data."
- The "Long Tail" Problem: DL models excel at identifying common patterns but often struggle with the "long tail" of rare, high-severity bugs. In software engineering, these rare bugs are often the ones that cause catastrophic system failures.
- Code is Multi-Modal: Unlike natural language, code has a rigid structure (ASTs) and dynamic behavior (CFGs). Future DL models must be architecturally tailored to exploit these unique properties.
6. High Priority Community Challenges
The report outlines four strategic priorities for the research community:
- Foundations for SE4DL: Establishing standard workflows and theoretical abstractions for developing DL-based systems.
- Failure Mode Identification: Creating a taxonomy of DL-specific failure modes and developing automated countermeasures for debugging and fixing.
- Tailored DL4SE Architectures: Developing neural architectures specifically designed to exploit the multi-modal nature of software artifacts.
- Pedagogical Materials: Bridging the talent gap by training a new generation of "AI Software Engineers" through academic and industry collaboration.
7. Limitations and Future Outlook
Significant hurdles remain, including the scalability of verification tools to industry-sized models and the inherent "opacity" of deep learning. Furthermore, the report warns of new forms of technical debt, such as "data entanglement," where minor data changes cause unpredictable cascading effects.
The ultimate goal is to foster a cohesive research community that breaks down the silos between AI and SE, building the infrastructure necessary for the next generation of reliable, AI-powered software.
Summary updated