Abstract
Federated learning (FL) enables multiple participants to collaboratively train machine learning models while ensuring their data remains private and secure. Blockchain technology further enhances FL by providing stronger security, a transparent audit trail, and protection against data tampering and model manipulation. Most blockchain-secured FL systems rely on conventional consensus mechanisms: Proof-of-Work (PoW) is computationally expensive, while Proof-of-Stake (PoS) improves energy efficiency but risks centralization as it inherently favors participants with larger stakes. Recently, learning-based consensus has emerged as an alternative by replacing cryptographic tasks with model training to save energy. However, this approach introduces potential privacy vulnerabilities, as the training process may inadvertently expose sensitive information through gradient sharing and model updates. To address these challenges, we propose a novel Zero-Knowledge Proof of Training (ZKPoT) consensus mechanism. This method leverages the zero-knowledge succinct non-interactive argument of knowledge proof (zk-SNARK) protocol to validate participants' contributions based on their model performance, effectively eliminating the inefficiencies of traditional consensus methods and mitigating the privacy risks posed by learning-based consensus. We analyze our system's security, demonstrating its capacity to prevent the disclosure of sensitive information about local models or training data to untrusted parties during the entire FL process. Extensive experiments demonstrate that our system is robust against privacy and Byzantine attacks while maintaining accuracy and utility without trade-offs, scalable across various blockchain settings, and efficient in both computation and communication.
Introduction
Federated Learning (FL) was designed to preserve data privacy by training models locally on client devices. However, the reliance on a central server for model aggregation introduces a single point of failure and potential for collusion. Integrating blockchain technology offers a decentralized alternative, but it introduces a "Verification Dilemma." To determine which participant has the best model for consensus, participants typically must share their model parameters. This exposure makes them vulnerable to Membership Inference Attacks (MIA) and Model Inversion Attacks, where sensitive training data can be reconstructed from model weights.
While techniques like Differential Privacy (DP) can mitigate these risks, they often do so at the cost of model utility. This paper introduces ZKPoT (Zero-Knowledge Proof of Training), a consensus mechanism that uses zk-SNARKs to verify model accuracy on a blockchain without revealing the underlying model parameters, thus maintaining both privacy and high accuracy.
System Architecture
The ZKPoT framework integrates several components to ensure a secure and decentralized training environment.
The process follows a six-step cycle:
- Initialization: The Task Publisher sets up the training task and initial model.
- Global Model Distribution: The model is distributed to clients via an Edge Server.
- Local Training and Proof Generation: Clients train the model on local data and generate a zero-knowledge proof of their model's accuracy.
- Leader Selection: A leader is chosen from the participants based on their verified performance.
- Model Aggregation: The leader aggregates the local models.
- New Block Generation: The updated global model and proofs are recorded on the blockchain.
To maintain scalability, large artifacts like global models and ZK proofs are stored on the InterPlanetary File System (IPFS), with only their cryptographic hashes stored on-chain.
Methodology: Zero-Knowledge Proof of Training
The core of the system is the ZKPoT consensus mechanism, which replaces traditional mining with verifiable model training. It utilizes the Groth16 zk-SNARK protocol to allow a client (prover) to convince the network (verifiers) that they have achieved a specific accuracy on a hidden test set.
Since zk-SNARKs operate on integers in finite fields, the system implements an affine mapping for quantization, converting floating-point weights into integers. The inference process is modeled using Rank-1 Constraint Systems (R1CS). To prevent clients from "cheating" by modifying their models after seeing test results, Pedersen Commitments are used to lock in the model state before the verification phase.
Experimental Evaluation
The authors evaluated ZKPoT using the CIFAR-10 and MNIST benchmarks, simulating a network of up to 800 nodes.
Privacy and Utility
Unlike DP-based methods, ZKPoT does not add noise to the model. Consequently, it maintains 100% of the model's utility. In CIFAR-10 experiments, ZKPoT achieved significantly higher accuracy (an improvement of ~0.5) compared to DP methods at high privacy levels. Furthermore, ZKPoT proved immune to MIA and Model Inversion attacks because model parameters are never exposed to attackers.
Robustness and Scalability
The system demonstrates Byzantine robustness, remaining functional even if 1/3 of the nodes are malicious. In terms of performance, while generating a ZK proof (the Prove stage) is computationally intensive (taking 168–198 seconds), it is a manageable one-time cost per round. The system scales well, with block verification times remaining stable as the number of nodes increases from 100 to 800.
Conclusion
ZKPoT addresses the critical trade-off between privacy and verification in blockchain-secured Federated Learning. By leveraging zk-SNARKs, the system ensures that model performance can be verified without compromising sensitive parameters. Future research will focus on reducing the overhead of proof generation and exploring decentralized trusted setups to further enhance security.
Summary updated