Convolutional Neural Networks over Control Flow Graphs for Software Defect Prediction

Anh Viet Phan, Minh Le Nguyen, Lam Thu Bui
2/14/2018
cs.SEcs.LGcs.NE

Official code: nguyenlab/DGCNN (32 stars, Python, last commit 2019-02-01).

Abstract

Existing defects in software components is unavoidable and leads to not only a waste of time and money but also many serious consequences. To build predictive models, previous studies focus on manually extracting features or using tree representations of programs, and exploiting different machine learning algorithms.

Show full abstract

However, the performance of the models is not high since the existing features and tree structures often fail to capture the semantics of programs. To explore deeply programs' semantics, this paper proposes to leverage precise graphs representing program execution flows, and deep neural networks for automatically learning defect features. Firstly, control flow graphs are constructed from the assembly instructions obtained by compiling source code; we thereafter apply multi-view multi-layer directed graph-based convolutional neural networks (DGCNNs) to learn semantic features. The experiments on four real-world datasets show that our method significantly outperforms the baselines including several other deep learning approaches.

View on arXivView PDF

Code Implementations(1)

nguyenlab/DGCNNOfficial100%
3213Python, C++Apr 20, 20177 years ago

Similar Papers

Cite this paper

@article{phan2018convolutional,
  title  = {Convolutional Neural Networks over Control Flow Graphs for Software Defect Prediction},
  author = {Anh Viet Phan and Minh Le Nguyen and Lam Thu Bui},
  year   = {2018},
  eprint = {1802.04986},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1802.04986}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1802.04986.svg)](https://codeofpaper.com/paper/1802.04986)

Discussion