arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1802.04986cs.SEcs.LGcs.NE
收藏

基于控制流图的卷积神经网络在软件缺陷预测中的应用

Convolutional Neural Networks over Control Flow Graphs for Software Defect Prediction

Japan Advanced Institute of Information Technology(日本信息学研究所);Le Quy Don Technical University(黎魁东技术大学)

Anh Viet Phan, Minh Le Nguyen, Lam Thu Bui

摘要:

软件构件中存在的缺陷是不可避免的,不仅浪费时间和金钱,而且会导致许多严重的后果。为了建立预测模型,以前的研究集中在手动提取特征或使用程序的树表示,并利用不同的机器学习算法。然而,由于现有的特征和树结构往往无法捕捉程序的语义,模型的性能并不高。为了深入研究程序的语义,本文提出利用精确的图表示程序执行流程,并利用深度神经网络自动学习缺陷特征。首先,控制流图的编译源代码获得的汇编指令构造,然后我们应用多视图多层有向图为基础的卷积神经网络(DGCNN)学习语义特征。在四个真实世界数据集上的实验表明,我们的方法显着优于基线,包括其他几种深度学习方法。

英文摘要:

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. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑