Skip to main navigation Skip to search Skip to main content

Cross-Project Transfer Learning on Lightweight Code Semantic Graphs for Defect Prediction

  • Dingbang Fang
  • , Shaoying Liu*
  • , Yang Li
  • *Corresponding author for this work
  • Hiroshima University

Research output: Contribution to journal › Article › peer-review

Abstract

A deep learning system (DLS) developed based on one software project for defect prediction may well be applied to the related code on the same project but is usually difficult to be applied to new or unknown software projects. To address this problem, we propose a Transferable Graph Convolutional Neural Network (TGCNN) that can learn defects from the lightweight semantic graphs of code and transfer the learned knowledge from the source project to the target project. We discuss how the semantic graph is constructed from code; how the TGCNN can learn from the graph; and how the learned knowledge can be transferred to a new or unknown project. We also conduct a controlled experiment to evaluate our method. The result shows that despite some limitations, our method performs considerably better than existing methods.

Original languageEnglish
Pages (from-to)1095-1117
Number of pages23
JournalInternational Journal of Software Engineering and Knowledge Engineering
Volume33
Issue number7
DOIs
StatePublished - 1 Jul 2023
Externally publishedYes

Keywords

  • Cross-project defect prediction
  • deep learning
  • transfer learning

Fingerprint

Dive into the research topics of 'Cross-Project Transfer Learning on Lightweight Code Semantic Graphs for Defect Prediction'. Together they form a unique fingerprint.

Cite this