$ \tt {zkFL}$zkFL: Zero-Knowledge Proof-Based Gradient Aggregation for Federated Learning

Zhipeng Wang, Nanqing Dong, Jiahao Sun, William Knottenbelt, Yike GuoIEEE Trans. Big Data 2025

Abstract

Federated Learning (FL) enables decentralized model training but typically relies on a trusted central aggregator, creating a significant security risk. We present zkFL, a framework utilizing Zero-Knowledge Proofs (ZKPs) and Pedersen commitments to ensure the integrity of gradient aggregation without compromising data privacy. By offloading verification to a blockchain-based decentralized network, zkFL maintains high accuracy while protecting against malicious aggregators who might otherwise discard or manipulate client updates.

Introduction

Federated Learning has long been hailed as a privacy-first approach to AI training. By keeping data on local devices and sharing only model updates, it avoids centralized data silos. However, traditional FL assumes the central aggregator is honest. A malicious aggregator could discard updates from specific clients to bias the model, insert fake "Sybil" clients, or replace honest updates with malicious ones. Existing solutions often focus on detecting poisonous clients, but few address the threat of a compromised central server.

The zkFL Framework

The zkFL framework introduces a "trust but verify" layer using cryptographic proofs to guarantee that a central aggregator correctly sums client updates without seeing the raw data. The system combines three primary cryptographic tools:

  1. Pedersen Commitments: Clients encrypt their model updates using this homomorphic scheme, allowing the aggregator to mathematically sum the encrypted updates such that the result is the encryption of the sum ($Enc(A) \times Enc(B) = Enc(A+B)$).
  2. zk-SNARKs: The aggregator generates a compact proof ($\pi$) demonstrating that the global model sent back to clients is indeed the sum of the specific, signed updates received from those clients.
Figure 1: The zkFL architecture illustrating the flow of encrypted updates and ZKP generation by the aggregator.

Blockchain-Enhanced Verification

Generating ZKPs is computationally expensive, potentially creating a bottleneck. To save battery-constrained mobile clients from performing complex verification, zkFL utilizes blockchain integration. Aggregators post proofs to the blockchain where decentralized miners verify them. Miners store only the hash of the result on-chain, allowing clients to simply check the hash to ensure the model they received is legitimate. This reduces client-side computation to a constant time ($O(1)$).

Experimental Evaluation

The researchers evaluated zkFL across image classification (CIFAR-10 with ResNet and DenseNet architectures) and language modeling (Penn Treebank with LSTM networks).

Key Results

  • Accuracy: zkFL achieves the exact same model accuracy and convergence speed as traditional FL. The cryptography secures the process without degrading performance.
  • Computational Overhead: While ZKP generation is intensive—taking approximately 55 minutes for a ResNet50 model—the burden is placed on the aggregator, which typically has access to high-performance server resources.
  • Communication: Encrypting updates roughly doubles the data transfer size (e.g., from 497MB to ~982MB for ResNet50), which remains manageable on modern high-speed connections.
Figure 2: Performance metrics for ResNet34 on CIFAR-10, showing training accuracy and the time breakdown for encryption and aggregation across varying client counts.

As shown in Figure 2, while aggregation time increases significantly with the number of clients, the training accuracy (a) remains consistent with baseline performance, proving the integrity of the secured process.

Conclusion and Future Work

zkFL successfully addresses the trust deficit in Federated Learning by ensuring aggregator integrity through ZKPs. While current proof generation times are acceptable for many use cases, future work will explore Recursive ZKPs to speed up the process and decentralized storage solutions like IPFS to handle encrypted model data more efficiently.

Summary updated

BibTeX
@article{wang2025tt,
  author = {Zhipeng Wang and Nanqing Dong and Jiahao Sun and William Knottenbelt and Yike Guo},
  title = {{$ \textbackslash\{\}tt \{zkFL\}$zkFL: Zero-Knowledge Proof-Based Gradient Aggregation for Federated Learning}},
  journal = {IEEE Trans. Big Data},
  year = {2025},
  doi = {10.1109/tbdata.2024.3403370},
}
Figure