Federated and Privacy-Preserving Cross-Project Defect Prediction With Heterogeneous Features

IF 6 1区 计算机科学 Q1 COMPUTER SCIENCE, SOFTWARE ENGINEERING
IEEE Transactions on Software Engineering Pub Date : 2026-08-01 Epub Date: 2026-03-11 DOI:10.1109/TSE.2026.3692541
Meetesh Nevendra;Rahul Shrivastava
{"title":"Federated and Privacy-Preserving Cross-Project Defect Prediction With Heterogeneous Features","authors":"Meetesh Nevendra;Rahul Shrivastava","doi":"10.1109/TSE.2026.3692541","DOIUrl":null,"url":null,"abstract":"Organizations are often reluctant to share defect-labeled source code because of privacy and intellectual property concerns, yet effective cross-project defect prediction (CPDP) depends on learning from diverse projects. This paper introduces FedCPDP, a federated and privacy-preserving framework that enables collaborative defect prediction without exchanging raw project data and without requiring a common feature schema. The approach employs feature hashing to unify heterogeneous metric spaces, integrates federated proximal optimization with representation alignment to mitigate distribution shift, and incorporates differential privacy mechanisms to safeguard sensitive updates. To further enhance robustness, FedCPDP explores adaptive server aggregation strategies (attention and graph-based) and seed ensembling, while addressing class imbalance through focal loss and threshold optimization. The framework is evaluated on thirty benchmark datasets across five CPDP families under leave-one-project-out validation, using both threshold-free and effort-aware metrics. Results show that FedCPDP improves F1 by up to 10-15% over FedAvg and 6-8% over FedDPI, while achieving 8-10% higher <inline-formula><tex-math>$\\boldsymbol{P_{opt}}$</tex-math></inline-formula> under effort-aware evaluation. These gains are statistically significant, confirming that FedCPDP consistently outperforms state-of-the-art methods while uniquely supporting heterogeneous features and offering explicit privacy guarantees. These findings establish FedCPDP as a practical step toward enabling secure and deployable defect prediction in multi-organizational settings.","PeriodicalId":13324,"journal":{"name":"IEEE Transactions on Software Engineering","volume":"52 8","pages":"2268-2281"},"PeriodicalIF":6.0000,"publicationDate":"2026-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE Transactions on Software Engineering","FirstCategoryId":"94","ListUrlMain":"https://ieeexplore.ieee.org/document/11515281/","RegionNum":1,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/3/11 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0

Abstract

Organizations are often reluctant to share defect-labeled source code because of privacy and intellectual property concerns, yet effective cross-project defect prediction (CPDP) depends on learning from diverse projects. This paper introduces FedCPDP, a federated and privacy-preserving framework that enables collaborative defect prediction without exchanging raw project data and without requiring a common feature schema. The approach employs feature hashing to unify heterogeneous metric spaces, integrates federated proximal optimization with representation alignment to mitigate distribution shift, and incorporates differential privacy mechanisms to safeguard sensitive updates. To further enhance robustness, FedCPDP explores adaptive server aggregation strategies (attention and graph-based) and seed ensembling, while addressing class imbalance through focal loss and threshold optimization. The framework is evaluated on thirty benchmark datasets across five CPDP families under leave-one-project-out validation, using both threshold-free and effort-aware metrics. Results show that FedCPDP improves F1 by up to 10-15% over FedAvg and 6-8% over FedDPI, while achieving 8-10% higher $\boldsymbol{P_{opt}}$ under effort-aware evaluation. These gains are statistically significant, confirming that FedCPDP consistently outperforms state-of-the-art methods while uniquely supporting heterogeneous features and offering explicit privacy guarantees. These findings establish FedCPDP as a practical step toward enabling secure and deployable defect prediction in multi-organizational settings.
基于异构特征的联邦和隐私保护跨项目缺陷预测
由于隐私和知识产权问题,组织通常不愿意共享带有缺陷标签的源代码,然而有效的跨项目缺陷预测(CPDP)依赖于从不同的项目中学习。本文介绍了FedCPDP,这是一个联邦和隐私保护框架,可以在不交换原始项目数据和不需要公共特征模式的情况下进行协作缺陷预测。该方法采用特征哈希来统一异构度量空间,将联邦近端优化与表示对齐相结合以减轻分布偏移,并结合差分隐私机制来保护敏感更新。为了进一步增强鲁棒性,FedCPDP探索了自适应服务器聚合策略(基于注意力和基于图)和种子集成,同时通过焦点损失和阈值优化来解决类失衡问题。该框架在五个CPDP家族的30个基准数据集上进行评估,在“留一个项目”验证下,使用无阈值和努力感知指标。结果表明,FedCPDP比fedag提高了10-15%,比FedDPI提高了6-8%,而在努力感知评估下,FedCPDP比fedag提高了8-10%。这些增益在统计上是显著的,证实了FedCPDP始终优于最先进的方法,同时独特地支持异构特性并提供明确的隐私保证。这些发现将FedCPDP建立为在多组织设置中实现安全和可部署缺陷预测的实际步骤。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
IEEE Transactions on Software Engineering
IEEE Transactions on Software Engineering 工程技术-工程:电子与电气
CiteScore
9.70
自引率
10.80%
发文量
724
审稿时长
6 months
期刊介绍: IEEE Transactions on Software Engineering seeks contributions comprising well-defined theoretical results and empirical studies with potential impacts on software construction, analysis, or management. The scope of this Transactions extends from fundamental mechanisms to the development of principles and their application in specific environments. Specific topic areas include: a) Development and maintenance methods and models: Techniques and principles for specifying, designing, and implementing software systems, encompassing notations and process models. b) Assessment methods: Software tests, validation, reliability models, test and diagnosis procedures, software redundancy, design for error control, and measurements and evaluation of process and product aspects. c) Software project management: Productivity factors, cost models, schedule and organizational issues, and standards. d) Tools and environments: Specific tools, integrated tool environments, associated architectures, databases, and parallel and distributed processing issues. e) System issues: Hardware-software trade-offs. f) State-of-the-art surveys: Syntheses and comprehensive reviews of the historical development within specific areas of interest.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书