[Paper Review] Secure and Efficient Federated Learning Through Layering and Sharding Blockchain
This paper proposes ChainFL, a two-layer blockchain-driven federated learning system that uses sharding to partition IoT devices into subchains and a DAG-based mainchain for cross-shard validation, significantly improving training efficiency by up to 14% and robustness by up to threefold compared to conventional FL systems, while mitigating security risks from malicious devices and stragglers through hierarchical consensus and virtual pruning.
Introducing blockchain into Federated Learning (FL) to build a trusted edge computing environment for transmission and learning has attracted widespread attention as a new decentralized learning pattern. However, traditional consensus mechanisms and architectures of blockchain systems face significant challenges in handling large-scale FL tasks, especially on Internet of Things (IoT) devices, due to their substantial resource consumption, limited transaction throughput, and complex communication requirements. To address these challenges, this paper proposes ChainFL, a novel two-layer blockchain-driven FL system. It splits the IoT network into multiple shards within the subchain layer, effectively reducing the scale of information exchange, and employs a Direct Acyclic Graph (DAG)-based mainchain as the mainchain layer, enabling parallel and asynchronous cross-shard validation. Furthermore, the FL procedure is customized to integrate deeply with blockchain technology, and a modified DAG consensus mechanism is designed to mitigate distortion caused by abnormal models. To provide a proof-of-concept implementation and evaluation, multiple subchains based on Hyperledger Fabric and a self-developed DAG-based mainchain are deployed. Extensive experiments demonstrate that ChainFL significantly surpasses conventional FL systems, showing up to a 14% improvement in training efficiency and a threefold increase in robustness.
Motivation & Objective
- To address the scalability and security limitations of traditional federated learning in trustless IoT environments.
- To reduce blockchain overhead and improve transaction throughput in large-scale FL deployments.
- To mitigate risks from malicious devices and stragglers through decentralized consensus and model validation.
- To design a scalable, efficient, and secure FL framework compatible with resource-constrained IoT devices.
- To evaluate the trade-off between blockchain integration latency and model robustness in real-world settings.
Proposed method
- The system employs a two-layer architecture: subchains for local model consensus within device shards, and a DAG-based mainchain for global model validation.
- Sharding divides the IoT network into smaller, manageable subchains, reducing communication and storage overhead per node.
- A modified DAG consensus mechanism enables asynchronous, parallel cross-shard validation, improving throughput and fault tolerance.
- The FL training process is tightly integrated with blockchain, including local model evaluation and virtual pruning of malicious models in the mainchain.
- A hierarchical consensus protocol combines synchronous shard-level consensus with asynchronous mainchain validation to handle stale models and stragglers.
- A prototype was implemented using Hyperledger Fabric for subchains and a custom DAG-based mainchain, enabling end-to-end evaluation.
Experimental results
Research questions
- RQ1How can blockchain be efficiently integrated into federated learning to reduce latency and improve scalability in large-scale IoT networks?
- RQ2To what extent does sharding reduce communication and storage overhead in blockchain-extended FL systems?
- RQ3Can a DAG-based mainchain enable faster and more resilient consensus compared to traditional blockchain structures in federated learning?
- RQ4How does the proposed system perform under malicious device attacks compared to baseline FL methods?
- RQ5What is the trade-off between the added latency from blockchain integration and the resulting improvement in model robustness?
Key findings
- ChainFL achieves up to a 14% improvement in training efficiency compared to conventional FL systems like FedAvg and AsynFL.
- The system demonstrates a threefold increase in robustness against malicious devices, as shown by stable convergence even when up to 30% of devices are adversarial.
- Despite a marginal increase in training latency due to blockchain overhead, ChainFL outperforms AsynFL in overall convergence stability and accuracy under adversarial conditions.
- The virtual pruning mechanism in the mainchain effectively eliminates malicious models, maintaining global model accuracy and preventing convergence degradation.
- ChainFL maintains similar sensitivity to hyperparameters (e.g., local epochs and batch size) as FedAvg, indicating compatibility with standard FL configurations.
- The system's performance is stable across varying numbers of shards and devices per shard, with only slight degradation in perplexity as shard size increases.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.