BlockDFL: A Blockchain-based Fully Decentralized Peer-to-Peer Federated Learning Framework

Zhen Qin,Xueqiang YAN,Mengchu Zhou,Shuiguang Deng
DOI: https://doi.org/10.1145/3589334.3645425
2024-01-01
Abstract:Federated learning (FL) enables collaborative training of machine learningmodels without sharing training data. Traditional FL heavily relies on atrusted centralized server. Although decentralized FL eliminates the centraldependence, it may worsen the other inherit problems faced by FL such aspoisoning attacks and data representation leakage due to insufficientrestrictions on the behavior of participants, and heavy communication cost,especially in fully decentralized scenarios, i.e., peer-to-peer (P2P) settings.In this paper, we propose a blockchain-based fully decentralized P2P frameworkfor FL, called BlockDFL. It takes blockchain as the foundation, leveraging theproposed PBFT-based voting mechanism and two-layer scoring mechanism tocoordinate FL among peer participants without mutual trust, while effectivelydefending against poisoning attacks. Gradient compression is introduced tolowering communication cost and prevent data from being reconstructed fromtransmitted model updates. Extensive experiments conducted on two real-worlddatasets exhibit that BlockDFL obtains competitive accuracy compared tocentralized FL and can defend poisoning attacks while achieving efficiency andscalability. Especially when the proportion of malicious participants is ashigh as 40existing fully decentralized P2P FL frameworks based on blockchain.
What problem does this paper attempt to address?