Skip to main content
QUICK REVIEW

[Paper Review] A Systematic Study of Cross-Project Defect Prediction With Meta-Learning

Faimison Rodrigues Porto, Leandro L. Minku|arXiv (Cornell University)|Feb 16, 2018
Software Engineering ResearchComputer Science67 references21 citations
TL;DR

This paper proposes a meta-learning approach to dynamically select the most effective cross-project defect prediction (CPDP) method for a given software project, using unsupervised meta-attributes derived from source code. It evaluates 31 CPDP methods across 47 project versions, identifies four top-performing methods, and shows the meta-learner achieves comparable performance to the best base methods while adapting to project-specific characteristics.

ABSTRACT

The prediction of defects in a target project based on data from external projects is called Cross-Project Defect Prediction (CPDP). Several methods have been proposed to improve the predictive performance of CPDP models. However, there is a lack of comparison among state-of-the-art methods. Moreover, previous work has shown that the most suitable method for a project can vary according to the project being predicted. This makes the choice of which method to use difficult. We provide an extensive experimental comparison of 31 CPDP methods derived from state-of-the-art approaches, applied to 47 versions of 15 open source software projects. Four methods stood out as presenting the best performances across datasets. However, the most suitable among these methods still varies according to the project being predicted. Therefore, we propose and evaluate a meta-learning solution designed to automatically select and recommend the most suitable CPDP method for a project. Our results show that the meta-learning solution is able to learn from previous experiences and recommend suitable methods dynamically. When compared to the base methods, however, the proposed solution presented minor difference of performance. These results provide valuable knowledge about the possibilities and limitations of a meta-learning solution applied for CPDP.

Motivation & Objective

  • To conduct a comprehensive, unbiased comparison of 31 state-of-the-art CPDP methods across diverse software projects.
  • To investigate whether the best-performing CPDP method varies significantly across different projects or datasets.
  • To evaluate the feasibility of using meta-learning to automatically recommend the most suitable CPDP method for a target project based on its characteristics.
  • To assess the performance of meta-learners using unsupervised meta-attributes in a multi-label recommendation setting.
  • To provide a practical, low-cost solution for CPDP in scenarios with limited historical defect data, such as new or small projects.

Proposed method

  • The study evaluates 31 CPDP methods formed by combining six transfer learning solutions with five common classifiers (e.g., Naive Bayes, Random Forest, SVM).
  • A uniform experimental setup is used across 47 versions of 15 open-source projects to minimize bias and ensure comparability.
  • Meta-attributes are extracted from source code (e.g., code complexity, size, structure) without requiring prior defect data, enabling unsupervised meta-model training.
  • Two sets of unsupervised meta-attributes (MS-Dist and MS-All) are used to train multi-label meta-learners that recommend the best CPDP method per project.
  • The meta-learner uses a meta-level model to predict the most suitable CPDP method based on the target project’s meta-attributes, learning from prior prediction outcomes.
  • Performance is evaluated using AUC at both meta-level (recommendation accuracy) and base-level (prediction AUC of recommended methods).

Experimental results

Research questions

  • RQ1Which of the 31 CPDP methods perform best across the 47 project versions, and is there a consistently top-performing method?
  • RQ2Does the most suitable CPDP method vary significantly depending on the target project or dataset?
  • RQ3Can a meta-learning model effectively learn to recommend the best CPDP method for a given project based on its code-level meta-attributes?
  • RQ4How does the performance of the meta-learning solution compare to the best individual CPDP methods in terms of predictive accuracy?
  • RQ5What are the practical implications and computational costs of deploying such a meta-learning solution in real-world settings?

Key findings

  • Four CPDP methods—2012Ma_nb, 2013He_rf, 2009Turhan_nb, and 2013He_svm—consistently achieved the highest AUC across datasets, with no statistically significant difference among them.
  • The most suitable method varied per project, confirming that no single method dominates across all software domains, supporting the need for dynamic selection.
  • The meta-learner using the MS-Dist meta-attribute set achieved a meta-level accuracy 10 percentage points higher than the majority class baseline.
  • The meta-learner MS-Dist achieved the highest mean AUC among all methods, though the difference was not statistically significant compared to the best base method (2012Ma_nb).
  • In the worst case, the meta-learner still recommends one of the four top-performing base methods, ensuring robustness.
  • The meta-learning solution is computationally efficient in deployment, as only meta-characterization and inference are needed post-training, with the main cost in meta-model construction.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.