Control Flow Graph Embedding Based on Multi-Instance Decomposition for Bug Localization

Authors

  • Xuan Huo Nanjing University
  • Ming Li Nanjing University
  • Zhi-Hua Zhou Nanjing University

DOI:

https://doi.org/10.1609/aaai.v34i04.5844

Abstract

During software maintenance, bug report is an effective way to identify potential bugs hidden in a software system. It is a great challenge to automatically locate the potential buggy source code according to a bug report. Traditional approaches usually represent bug reports and source code from a lexical perspective to measure their similarities. Recently, some deep learning models are proposed to learn the unified features by exploiting the local and sequential nature, which overcomes the difficulty in modeling the difference between natural and programming languages. However, only considering local and sequential information from one dimension is not enough to represent the semantics, some multi-dimension information such as structural and functional nature that carries additional semantics has not been well-captured. Such information beyond the lexical and structural terms is extremely vital in modeling program functionalities and behaviors, leading to a better representation for identifying buggy source code. In this paper, we propose a novel model named CG-CNN, which is a multi-instance learning framework that enhances the unified features for bug localization by exploiting structural and sequential nature from the control flow graph. Experimental results on widely-used software projects demonstrate the effectiveness of our proposed CG-CNN model.

Downloads

Published

2020-04-03

How to Cite

Huo, X., Li, M., & Zhou, Z.-H. (2020). Control Flow Graph Embedding Based on Multi-Instance Decomposition for Bug Localization. Proceedings of the AAAI Conference on Artificial Intelligence, 34(04), 4223-4230. https://doi.org/10.1609/aaai.v34i04.5844

Issue

Section

AAAI Technical Track: Machine Learning