arrow
返回

Federated Learning for Software Engineering: A Case Study of Code Clone Detection and Defect Prediction

delete2024-02-01
delete6
PRE
AI
Y
Yanming Yang
X
Xing Hu *
Z
Zhipeng Gao
J
Jinfu Chen
C
Chao Ni
X
Xin Xia
D
David Lo
DOI:10.1109/TSE.2023.3347898delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
In various research domains, artificial intelligence (AI) has gained significant prominence, leading to the development of numerous learning-based models in research laboratories, which are evaluated using benchmark datasets. While the models proposed in previous studies may demonstrate satisfactory performance on benchmark datasets, translating academic findings into practical applications for industry practitioners presents challenges. This can entail either the direct adoption of trained academic models into industrial applications, leading to a performance decrease, or retraining models with industrial data, a task often hindered by insufficient data instances or skewed data distributions. Real-world industrial data is typically significantly more intricate than benchmark datasets, frequently exhibiting data-skewing issues, such as label distribution skews and quantity skews. Furthermore, accessing industrial data, particularly source code, can prove challenging for Software Engineering (SE) researchers due to privacy policies. This limitation hinders SE researchers' ability to gain insights into industry developers' concerns and subsequently enhance their proposed models. To bridge the divide between academic models and industrial applications, we introduce a federated learning (FL)-based framework called Almity. Our aim is to simplify the process of implementing research findings into practical use for both SE researchers and industry developers. Almity enhances model performance on sensitive skewed data distributions while ensuring data privacy and security. It introduces an innovative aggregation strategy that takes into account three key attributes: data scale, data balance, and minority class learnability. This strategy is employed to refine model parameters, thereby enhancing model performance on sensitive skewed datasets. In our evaluation, we employ two well-established SE tasks, i.e., code clone detection and defect prediction, as evaluation tasks. We compare the performance of Almity on both machine learning (ML) and deep learning (DL) models against two mainstream training methods, specifically the Centralized Training Method (CTM) and Vanilla Federated Learning (VFL), to validate the effectiveness and generalizability of Almity. Our experimental results demonstrate that our framework is not only feasible but also practical in real-world scenarios. Almity consistently enhances the performance of learning-based models, outperforming baseline training methods across all types of data distributions.
Keyword:
Data models
Training
Codes
Cloning
Task analysis
Benchmark testing
Industries
Federated learning
parameter aggregation strategy
skewed data distribution
code clone detection
defect prediction

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.9K
被引数:
1.1W

机构

S
Singapore Management University
学者数:
1.5K
论文数: 2.5K
被引数: 3.5K
W
wuhan university
学者数:
8.1W
论文数: 5.8W
被引数: 70
Z
zhejiang university
学者数:
17.7W
论文数: 12.1W
被引数: 152
学者 查看更多机构
引用论文

引用论文

Temporal Changes of Seismic Velocity Caused by Volcanic Activity at Mt. Etna Revealed by the Autocorrelation of Ambient Seismic Noise
err2019-01-17
err0
errOAAI
errRaphael S. M. De Plaen; Andrea Cannata; Flavio Cannavo'; Corentin Caudron; Thomas Lecocq; Olivier Francis
err分享
err收藏
Automating Change-Level Self-Admitted Technical Debt Determination
err2019-12-01
err51
errOAAI
errYan, Meng; Xia, Xin; Shihab, Emad; Lo, David; Yin, Jianwei; Yang, Xiaohu
err分享
err收藏
Federated learning of predictive models from federated Electronic Health Records从联邦电子健康记录中联合学习预测模型
err2018-04-01
err579
errOAAI
errBrisimi, Theodora S.; Chen, Ruidi; Mela, Theofanie; Olshevsky, Alex; Paschalidis, Ioannis Ch.; Shi, Wei
err分享
err收藏
学者 查看更多内容