Blockchain Assisted Decentralized Federated Learning (BLADE-FL): Performance Analysis and Resource Allocation

Federated learning (FL), as a distributed machine learning paradigm, promotes personal privacy by local data processing at each client. However, relying on a centralized server for model aggregation, standard FL is vulnerable to server malfunctions, untrustworthy server, and external attacks. To address this issue, we propose a decentralized FL framework by integrating blockchain into FL, namely, blockchain assisted decentralized federated learning (BLADE-FL). In a round of the proposed BLADE-FL, each client broadcasts the trained model to other clients, aggregates its own model with received ones, and then competes to generate a block before its local training of the next round. We evaluate the learning performance of BLADE-FL, and develop an upper bound on the global loss function. Then we verify that this bound is convex with respect to the number of overall aggregation rounds K, and optimize the computing resource allocation for minimizing the upper bound. We also note that there is a critical problem of training deficiency, caused by lazy clients who plagiarize others trained models and add artificial noises to disguise their cheating behaviors. Focusing on this problem, we explore the impact of lazy clients on the learning performance of BLADE-FL, and characterize the relationship among the optimal K, the learning parameters, and the proportion of lazy clients. Based on MNIST and Fashion-MNIST datasets, we show that the experimental results are consistent with the analytical ones. To be specific, the gap between the developed upper bound and experimental results is lower than 5%, and the optimized K based on the upper bound can effectively minimize the loss function.

[1]  Xiaobo Zhou,et al.  Wireless Powered Mobile Edge Computing: Dynamic Resource Allocation and Throughput Maximization , 2022, IEEE Transactions on Mobile Computing.

[2]  Xudong Zhu,et al.  Privacy-preserving Decentralized Federated Deep Learning , 2021, ACM TUR-C.

[3]  Ivan Beschastnikh,et al.  Biscotti: A Blockchain System for Private and Secure Federated Learning , 2021, IEEE Transactions on Parallel and Distributed Systems.

[4]  John Yearwood,et al.  Mutual Information Driven Federated Learning , 2021, IEEE Transactions on Parallel and Distributed Systems.

[5]  Shaoyong Guo,et al.  Blockchain-based Asynchronous Federated Learning for Internet of Things , 2021 .

[6]  Long Shi,et al.  Pooling is not Favorable: Decentralize Mining Power of PoW Blockchain Using Age-of-Work , 2021, IEEE Transactions on Cloud Computing.

[7]  Weishan Zhang,et al.  Blockchain-Based Federated Learning for Device Failure Detection in Industrial IoT , 2021, IEEE Internet of Things Journal.

[8]  Yan Zhang,et al.  Blockchain and Federated Learning for 5G Beyond , 2021, IEEE Network.

[9]  Shiva Raj Pokhrel Blockchain Brings Trust to Collaborative Drones and LEO Satellites: An Intelligent Decentralized Learning in the Space , 2021, IEEE Sensors Journal.

[10]  Yitong Chen,et al.  A Methodology for High-efficient Federated-learning with Consortium Blockchain , 2020, 2020 IEEE 4th Conference on Energy Internet and Energy System Integration (EI2).

[11]  Huzefa Rangwala,et al.  FedAT: A Communication-Efficient Federated Learning Method with Asynchronous Tiers under Non-IID Data , 2020, ArXiv.

[12]  Mehdi Bennis,et al.  A Joint Decentralized Federated Learning and Communications Framework for Industrial Networks , 2020, 2020 IEEE 25th International Workshop on Computer Aided Modeling and Design of Communication Links and Networks (CAMAD).

[13]  Cong Fang,et al.  Accelerated First-Order Optimization Algorithms for Machine Learning , 2020, Proceedings of the IEEE.

[14]  H. Vincent Poor,et al.  RDP-GAN: A Rényi-Differential Privacy based Generative Adversarial Network , 2020, IEEE Transactions on Dependable and Secure Computing.

[15]  Mohamed Hadi Habaebi,et al.  A Review on Application of Blockchain in 5G and Beyond Networks: Taxonomy, Field-Trials, Challenges and Opportunities , 2020, IEEE Access.

[16]  W. Buchanan,et al.  A Distributed Trust Framework for Privacy-Preserving Machine Learning , 2020, TrustBus.

[17]  Yan Zhang,et al.  Blockchain and Federated Learning for Privacy-Preserved Data Sharing in Industrial IoT , 2020, IEEE Transactions on Industrial Informatics.

[18]  Abdullah M. Iliyasu,et al.  A Secure Federated Learning Framework for 5G Networks , 2020, IEEE Wireless Communications.

[19]  Liu Jian,et al.  CrowdSFL: A Secure Crowd Computing Framework Based on Blockchain and Federated Learning , 2020, Electronics.

[20]  Saraju P. Mohanty,et al.  Preserving Data Privacy via Federated Learning: Challenges and Solutions , 2020, IEEE Consumer Electronics Magazine.

[21]  Lucila Ohno-Machado,et al.  EXpectation Propagation LOgistic REgRession on permissioned blockCHAIN (ExplorerChain): decentralized online healthcare/genomics predictive model learning , 2020, J. Am. Medical Informatics Assoc..

[22]  Jinho Choi,et al.  A Decentralized Federated Learning Approach for Connected Autonomous Vehicles , 2020, 2020 IEEE Wireless Communications and Networking Conference Workshops (WCNCW).

[23]  Xiuzhen Cheng,et al.  Proof of Federated Learning: A Novel Energy-Recycling Consensus Algorithm , 2019, IEEE Transactions on Parallel and Distributed Systems.

[24]  Daan van Esch,et al.  Writing Across the World's Languages: Deep Internationalization for Gboard, the Google Keyboard , 2019, ArXiv.

[25]  Walid Saad,et al.  Federated Learning for Edge Networks: Resource Optimization and Incentive Mechanism , 2019, IEEE Communications Magazine.

[26]  H. Vincent Poor,et al.  Federated Learning With Differential Privacy: Algorithms and Performance Analysis , 2019, IEEE Transactions on Information Forensics and Security.

[27]  Abdelhakim Senhaji Hafid,et al.  Record and Reward Federated Learning Contributions with Blockchain , 2019, 2019 International Conference on Cyber-Enabled Distributed Computing and Knowledge Discovery (CyberC).

[28]  Tony Q. S. Quek,et al.  On Safeguarding Privacy and Security in the Framework of Federated Learning , 2019, IEEE Network.

[29]  Chao Wu,et al.  Distributed Modelling Approaches for Data Privacy Preserving , 2019, 2019 IEEE Fifth International Conference on Multimedia Big Data (BigMM).

[30]  Dongxi Liu,et al.  Local Differential Privacy for Deep Learning , 2019, IEEE Internet of Things Journal.

[31]  Bingsheng He,et al.  A Survey on Federated Learning Systems: Vision, Hype and Reality for Data Privacy and Protection , 2019, IEEE Transactions on Knowledge and Data Engineering.

[32]  Xiaolian Li,et al.  Application Research of Machine Learning Method Based on Distributed Cluster in Information Retrieval , 2019, 2019 International Conference on Communications, Information System and Computer Engineering (CISCE).

[33]  Zhu Han,et al.  Contract-Based Approach for Security Deposit in Blockchain Networks with Shards , 2019, 2019 IEEE International Conference on Blockchain (Blockchain).

[34]  Minyi Guo,et al.  Making Big Data Open in Edges: A Resource-Efficient Blockchain-Based Approach , 2019, IEEE Transactions on Parallel and Distributed Systems.

[35]  Ming Ding,et al.  Privacy Preserving Location Data Publishing: A Machine Learning Approach , 2019, IEEE Transactions on Knowledge and Data Engineering.

[36]  Qiang Yang,et al.  Federated Machine Learning , 2019, ACM Trans. Intell. Syst. Technol..

[37]  Pan Li,et al.  When Machine Learning Meets Blockchain: A Decentralized, Privacy-preserving and Secure Design , 2018, 2018 IEEE International Conference on Big Data (Big Data).

[38]  Manuel Díaz,et al.  On blockchain and its integration with IoT. Challenges and opportunities , 2018, Future Gener. Comput. Syst..

[39]  M. Fatih Demirci,et al.  Cifar-10 Image Classification with Convolutional Neural Networks for Embedded Systems , 2018, 2018 IEEE/ACS 15th International Conference on Computer Systems and Applications (AICCSA).

[40]  Mehdi Bennis,et al.  On-Device Federated Learning via Blockchain and its Latency Analysis , 2018, ArXiv.

[41]  Deepak Puthal,et al.  Everything You Wanted to Know About the Blockchain: Its Promise, Components, Processes, and Problems , 2018, IEEE Consumer Electronics Magazine.

[42]  Albert Y. Zomaya,et al.  The Next Grand Challenges: Integrating the Internet of Things and Data Science , 2018, IEEE Cloud Computing.

[43]  Jun Li,et al.  Privacy Preservation in Location-Based Services: A Novel Metric and Attack Model , 2018, IEEE Transactions on Mobile Computing.

[44]  Kin K. Leung,et al.  Adaptive Federated Learning in Resource Constrained Edge Computing Systems , 2018, IEEE Journal on Selected Areas in Communications.

[45]  Zhu Han,et al.  When Mobile Blockchain Meets Edge Computing , 2017, IEEE Communications Magazine.

[46]  Zhu Han,et al.  Cloud/Fog Computing Resource Management and Pricing for Blockchain Networks , 2017, IEEE Internet of Things Journal.

[47]  Peter Richtárik,et al.  Federated Optimization: Distributed Machine Learning for On-Device Intelligence , 2016, ArXiv.

[48]  Mark W. Schmidt,et al.  Linear Convergence of Gradient and Proximal-Gradient Methods Under the Polyak-Łojasiewicz Condition , 2016, ECML/PKDD.

[49]  Blaise Agüera y Arcas,et al.  Communication-Efficient Learning of Deep Networks from Decentralized Data , 2016, AISTATS.

[50]  Qiang Guo,et al.  Hybrid CNN-HMM Model for Street View House Number Recognition , 2014, ACCV Workshops.

[51]  Sébastien Bubeck Convex Optimization: Algorithms and Complexity , 2014, Found. Trends Mach. Learn..

[52]  Emin Gün Sirer,et al.  Majority Is Not Enough: Bitcoin Mining Is Vulnerable , 2013, Financial Cryptography.

[53]  Scott Shenker,et al.  Epidemic algorithms for replicated database maintenance , 1988, OPSR.

[54]  Ali Dehghantanha,et al.  Introduction to the Minitrack on Decentralized Federated Learning: Applications, Solutions, and Challenges , 2021, HICSS.

[55]  P. Takis Mathiopoulos,et al.  Blockchain-Enabled Federated Learning With Mechanism Design , 2020, IEEE Access.

[56]  S. Nakamoto,et al.  Bitcoin: A Peer-to-Peer Electronic Cash System , 2008 .

[57]  Yoshua Bengio,et al.  Gradient-based learning applied to document recognition , 1998, Proc. IEEE.