Federated learning implementation based on DDS data distribution service
Abstract
Federated learning allows multiple local private clients to collaborate on training the same model without sharing each client's private data. It can achieve collaborative training between users while protecting data privacy and security. Therefore, it is advocated for use in the fields of Internet of Things, Internet of Vehicles, etc. There are security issues in the transmission process of federated learning models. How to ensure data privacy during local data collection, local model parameter transmission, model aggregation and performance testing while maximizing the use of private data is a question that people have been exploring. This paper proposes a DDS-based FL framework (FL-DDS) to achieve secure transmission of model parameters. The client and server are used as nodes in the DDS security domain, and the DDS data distribution mechanism is used to transmit model parameters. Through the DDS topic-based publish-subscribe mechanism, the global model and local model are transmitted through the DDS topic. At the same time, the DDS authentication component, access control component and encryption component are used to achieve domain-level security and intra-domain security of model transmission. Experiments show that (FL-DDS) can protect the privacy of model parameters without affecting communication performance.
References
- Melis L, Song C, De Cristofaro E, et al. Exploiting unintended feature leakage in collaborative learning. 2019 IEEE symposium on security and privacy (SP). IEEE, 2019: 691-706.
- Zhao B, Mopuri K R, Bilen H. idlg: Improved deep leakage from gradients. arXiv preprint arXiv:2001.02610, 2020.
- Zhu L, Liu Z, Han S. Deep leakage from gradients. Advances in neural information processing systems, 2019, 32.
- McMahan B, Moore E, Ramage D, et al. Communication-efficient learning of deep networks from decentralized data. Artificial intelligence and statistics. PMLR, 2017: 1273-1282.
- Han L, Fan D, Liu J, et al. Federated learning differential privacy preservation method based on differentiated noise addition. 2023 8th International Conference on Cloud Computing and Big Data Analytics (ICCCBDA). IEEE, 2023: 285-289.
- Li Q, Christensen M G. A privacy-preserving asynchronous averaging algorithm based on shamir’s secret sharing. 2019 27th European Signal Processing Conference (EUSIPCO). IEEE, 2019: 1-5.
- Sun J, Chen T, Giannakis G B, et al. Lazily aggregated quantized gradient innovation for communication-efficient federated learning. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2020, 44(4): 2031-2044.
- Tang Z, Shi S, Li B, et al. Gossipfl: A decentralized federated learning framework with sparsified and adaptive communication. IEEE Transactions on Parallel and Distributed Systems, 2022, 34(3): 909-922.
- DDS Security. DDS Security 1.1. 2018. https://www.omg.org/spec/DDS-SECURITY/1.1/PDF.
- Open Robotics, C. ROS 2 Documentation — ROS 2 Documentation: Galactic documentation. 2023. https://docs.ros.org/en/galactic/index.html.
- Paszke A, Gross S, Massa F, et al. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems, 2019, 32.