FedCSD: A Federated Learning Based Approach for Code-Smell Detection
Not on the map. Why?
Abstract (arXiv)
This paper proposes a Federated Learning Code Smell Detection (FedCSD) approach that allows organizations to collaboratively train federated ML models while preserving their data privacy. These assertions have been supported by three experiments that have significantly leveraged three manually validated datasets aimed at detecting and examining different code smell scenarios. In experiment 1, which was concerned with a centralized training experiment, dataset two achieved the lowest accuracy (92.30%) with fewer smells, while datasets one and three achieved the highest accuracy with a slight difference (98.90% and 99.5%, respectively). This was followed by experiment 2, which was concerned with cross-evaluation, where each ML model was trained using one dataset, which was then evaluated over the other two datasets. Results from this experiment show a significant drop in the model's accuracy (lowest accuracy: 63.80%) where fewer smells exist in the training dataset, which has a noticeable reflection (technical debt) on the model's performance. Finally, the last and third experiments evaluate our approach by splitting the dataset into 10 companies. The ML model was trained on the company's site, then all model-updated weights were transferred to the server. Ultimately, an accuracy of 98.34% was achieved by the global model that has been trained using 10 companies for 100 training rounds. The results reveal a slight difference in the global model's accuracy compared to the highest accuracy of the centralized model, which can be ignored in favour of the global model's comprehensive knowledge, lower training cost, preservation of data privacy, and avoidance of the technical debt problem.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 8 of its 93 references that are in the map. First posted on arXiv 31 May 2023.
Builds on
8 of 93 references.
References · 8
- 2016Communication-Efficient Learning of Deep Networks from Decentralized Datacited by 7,669
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2019Federated Learning: Challenges, Methods, and Future Directionscited by 1,538
- 2019Towards Federated Learning at Scale: System Designcited by 832
- 2019Federated Learning in Mobile Edge Networks: A Comprehensive Surveycited by 408
- 2018A Hybrid Approach to Privacy-Preserving Federated Learningcited by 210
- 2022Subject Membership Inference Attacks in Federated Learningcited by 20
- 2021Scalable federated machine learning with FEDncited by 16
Built on by
Citing papers per year: 2023: 1; 2024: 2.
3 papers.
- 2024Open-Source AI-based SE Tools: Opportunities and Challenges of Collaborative Software Learningcited by 4
- 2024Promise and Peril of Collaborative Code Generation Models: Balancing Effectiveness and Memorizationcited by 4
- 2023Toward efficient resource utilization at edge nodes in federated learningcited by 0
- 2024Promise and Peril of Collaborative Code Generation Models: Balancing Effectiveness and Memorization18 Sep 2024
- 2024Open-Source AI-based SE Tools: Opportunities and Challenges of Collaborative Software Learning9 Apr 2024
- 2023Toward efficient resource utilization at edge nodes in federated learning19 Sep 2023