Better Knowledge Enhancement for Privacy-Preserving Cross-Project Defect Prediction

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Wang, Yuying, Li, Yichen, Wang, Haozhao, Zhao, Lei, Zhang, Xiaofang
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866917876759265280
author Wang, Yuying
Li, Yichen
Wang, Haozhao
Zhao, Lei
Zhang, Xiaofang
author_facet Wang, Yuying
Li, Yichen
Wang, Haozhao
Zhao, Lei
Zhang, Xiaofang
contents Cross-Project Defect Prediction (CPDP) poses a non-trivial challenge to construct a reliable defect predictor by leveraging data from other projects, particularly when data owners are concerned about data privacy. In recent years, Federated Learning (FL) has become an emerging paradigm to guarantee privacy information by collaborative training a global model among multiple parties without sharing raw data. While the direct application of FL to the CPDP task offers a promising solution to address privacy concerns, the data heterogeneity arising from proprietary projects across different companies or organizations will bring troubles for model training. In this paper, we study the privacy-preserving cross-project defect prediction with data heterogeneity under the federated learning framework. To address this problem, we propose a novel knowledge enhancement approach named FedDP with two simple but effective solutions: 1. Local Heterogeneity Awareness and 2. Global Knowledge Distillation. Specifically, we employ open-source project data as the distillation dataset and optimize the global model with the heterogeneity-aware local model ensemble via knowledge distillation. Experimental results on 19 projects from two datasets demonstrate that our method significantly outperforms baselines.
format Preprint
id arxiv_https___arxiv_org_abs_2412_17317
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Better Knowledge Enhancement for Privacy-Preserving Cross-Project Defect Prediction
Wang, Yuying
Li, Yichen
Wang, Haozhao
Zhao, Lei
Zhang, Xiaofang
Machine Learning
Software Engineering
Cross-Project Defect Prediction (CPDP) poses a non-trivial challenge to construct a reliable defect predictor by leveraging data from other projects, particularly when data owners are concerned about data privacy. In recent years, Federated Learning (FL) has become an emerging paradigm to guarantee privacy information by collaborative training a global model among multiple parties without sharing raw data. While the direct application of FL to the CPDP task offers a promising solution to address privacy concerns, the data heterogeneity arising from proprietary projects across different companies or organizations will bring troubles for model training. In this paper, we study the privacy-preserving cross-project defect prediction with data heterogeneity under the federated learning framework. To address this problem, we propose a novel knowledge enhancement approach named FedDP with two simple but effective solutions: 1. Local Heterogeneity Awareness and 2. Global Knowledge Distillation. Specifically, we employ open-source project data as the distillation dataset and optimize the global model with the heterogeneity-aware local model ensemble via knowledge distillation. Experimental results on 19 projects from two datasets demonstrate that our method significantly outperforms baselines.
title Better Knowledge Enhancement for Privacy-Preserving Cross-Project Defect Prediction
topic Machine Learning
Software Engineering
url https://arxiv.org/abs/2412.17317