NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

BlockFLA: Accountable Federated Learning via Hybrid Blockchain Architecture

Harsh Bimal Desai, Mustafa Safa Özdayi, Murat Kantarcioglu

Abstract

Federated Learning (FL) is a distributed, and decentralized machine learning protocol. By executing FL, a set of agents can jointly train a model without sharing their datasets with each other, or a third-party. This makes FL particularly suitable for settings where data privacy is desired. At the same time, concealing training data gives attackers an opportunity to inject backdoors into the trained model. It has been shown that an attacker can inject backdoors to the trained model during FL, and then can leverage the backdoor to make the model misclassify later. Several works tried to alleviate this threat by designing robust aggregation functions. However, given more sophisticated attacks are developed over time, which by-pass the existing defenses, we approach this problem from a complementary angle in this work. Particularly, we aim to discourage backdoor attacks by detecting, and punishing the attackers, possibly after the end of training phase. To this end, we develop a hybrid blockchain-based FL framework that uses smart contracts to automatically detect, and punish the attackers via monetary penalties. Our framework is general in the sense that, any aggregation function, and any attacker detection algorithm can be plugged into it. We conduct experiments to demonstrate that our framework preserves the communication-efficient nature of FL, and provide empirical results to illustrate that it can successfully penalize attackers by leveraging our novel attacker detection algorithm.

Introduction

Federated Learning (FL) has emerged as a vital paradigm for collaborative machine learning, allowing multiple parties to train models without exposing raw data. However, this privacy-preserving nature creates a "black box" vulnerability where adversaries can perform model poisoning attacks. By injecting backdoors into local updates, attackers can cause the global model to misclassify specific inputs. While traditional defenses focus on robust aggregation to filter outliers, BlockFLA shifts the focus toward accountability. By introducing financial consequences for malicious behavior, the framework creates a deterrent that complements existing technical defenses.

Hybrid Blockchain Architecture

BlockFLA utilizes a hybrid architecture to balance the high-throughput requirements of deep learning with the immutability required for trust and enforcement.

The BlockFLA hybrid architecture workflow, illustrating the interaction between workers, the private blockchain for aggregation, and the public blockchain for commitment hashes.
  1. Private Blockchain (Hyperledger Fabric): This layer manages the primary model aggregation and communication between workers. It is optimized for speed and high throughput, essential for handling models with millions of parameters.
  2. Public Blockchain (Ethereum): This layer serves as the trust anchor. Workers submit a monetary deposit and a cryptographic SHA256 hash of their model updates. The immutability of the public ledger ensures that workers cannot repudiate their submissions during later audits.
  3. Secure Cloud Logging: Full model updates are archived in a secure cloud, providing a verifiable log for post-training adjudication.

Accountability and Penalty Mechanism

The core innovation of BlockFLA is its automated penalty system, which transforms backdoor attacks from a low-risk activity into a financially hazardous one.

The penalty enforcement process, showing the steps from initial deposit to breach suspicion, adjudication, and the final loss of deposit via smart contracts.

To identify attackers, the framework employs a novel detection algorithm based on the Fisher Information Matrix (FIM). By analyzing the functional impact of an update—specifically, which parameters are most critical for the backdoor task—the system can attribute malicious contributions to specific agents using $L_2$ norms. If a breach is confirmed through adjudication, the smart contract automatically triggers a penalty, causing the attacker to lose their initial deposit.

Experimental Results

The framework was evaluated using the CIFAR-10 dataset in both IID and non-IID settings. Key findings include:

  • Efficiency: Through the use of Base64 compression and parallel smart contracts, aggregating a model with 300 million parameters took less than 10 seconds on the private blockchain. This is a significant improvement over public-only setups, which can exceed 1,300 seconds for similar tasks.
  • Detection Accuracy: In an IID scenario with 100 agents (10% corrupt), the FIM-based detection algorithm perfectly identified all 10 attackers. In more challenging non-IID settings, the algorithm remained highly effective, identifying 4 out of the top 5 most suspicious contributors as actual attackers.
  • Cost-Effectiveness: By only uploading hashes to the public Ethereum network, gas costs were minimized to approximately 0.0005 Ether per update.

Conclusion

BlockFLA demonstrates that a hybrid blockchain approach can effectively bring accountability to Federated Learning without sacrificing the communication efficiency required for modern deep learning. By making attacks financially risky, BlockFLA provides a robust deterrent against sophisticated model poisoning attempts.

Summary updated

BibTeX
@inproceedings{desai2021blockfla,
  author = {Harsh Bimal Desai and Mustafa Safa Özdayi and Murat Kantarcioglu},
  title = {{BlockFLA: Accountable Federated Learning via Hybrid Blockchain Architecture}},
  booktitle = {CODASPY},
  year = {2021},
  doi = {10.1145/3422337.3447837},
}
Figure