zkDL: Efficient Zero-Knowledge Proofs of Deep Learning Training

Haochen Sun, Hongyang Zhang · DOI

TL;DR

This paper introduces zkDL, a novel system for generating zero-knowledge proofs of deep learning training. It tackles the challenge of verifying training integrity without revealing proprietary data or model parameters, achieving efficient proofs for large-scale neural networks.

What Problem Does This Paper Address?

The rapid advancement of deep learning has brought immense benefits, but also concerns about the legitimacy of training processes. Verifying that a model was trained correctly, without violating intellectual property or data privacy, is a significant challenge. Existing methods for verifiable machine learning primarily focus on inference-time verification, leaving the computationally intensive and complex training phase largely unexplored. Furthermore, non-arithmetic operations like ReLU, common in deep learning, pose a hurdle for standard zero-knowledge proof systems. This paper aims to bridge this gap by providing an efficient and scalable solution for zero-knowledge verifiable deep learning training.

Methods

The core of zkDL lies in two main innovations:

  • zkReLU: A specialized zero-knowledge proof protocol designed to efficiently verify the forward and backward propagation of the ReLU activation function and its gradient. Crucially, it avoids polynomial approximations by introducing auxiliary inputs (absolute values and signs) to reconstruct non-linear relationships, turning a disadvantage into an advantage.
  • FAC4DNN (Flattened Arithmetic Circuit for Deep Neural Networks): This novel framework models the entire deep learning training process (including multiple layers and training steps) as a single, flattened arithmetic circuit. By leveraging the repeated structures in deep learning and the zkReLU protocol, FAC4DNN allows for the aggregation and compression of proofs across layers and training steps, bypassing the traditional sequential processing. This significantly reduces computational and communication overheads.

The system is implemented using CUDA for efficient parallel processing.

Datasets

The paper mentions using the CIFAR-10 dataset for evaluating their system on an 8-layer neural network.

Key Insights and Ideas

  • Turning Non-Linearity into an Advantage: Instead of trying to approximate non-arithmetic functions like ReLU, zkReLU cleverly uses auxiliary inputs to represent them within the zero-knowledge proof framework.
  • Flattening the Training Process: FAC4DNN's key insight is that the sequential nature of training can be broken down for proof generation. By aggregating proofs across layers and training steps, the system achieves significant efficiency gains.
  • Scalability is Key: The paper emphasizes the need for solutions that can handle "million-size networks," a critical requirement for real-world applications that traditional methods struggle with.
  • CUDA for Performance: The use of CUDA for implementation highlights the importance of leveraging hardware acceleration for computationally intensive ZKP tasks.

Key Results

  • Efficiency: zkDL can generate complete and sound proofs in less than one second per batch update for an 8-layer neural network with 10 million parameters and a batch size of 64.
  • Scalability: The system is designed to be scalable to large neural networks, a significant improvement over prior work.
  • Privacy Preservation: zkDL provably ensures the privacy of data and model parameters.
  • Performance Gains: Experiments show that zkDL consistently outperforms traditional sequential proof generation methods in terms of proving time, commitment size, proof size, and verifying time. For instance, aggregating 1,024 training steps significantly reduces per-step costs.

Limitations and Future Work

  • Verification Time Anomaly: The authors note that verification time is not significantly shorter than proving time, which they attribute to the sequential nature of the verification protocol. They suggest that developing theoretically and empirically expedient verification algorithms optimized for parallel computing environments could be a future direction.
  • CUDA Memory Constraints: For very large numbers of aggregated training steps, CUDA memory constraints can limit further improvements, leading to plateauing performance.
  • Future Work: The paper implicitly suggests that further optimization of verification algorithms and exploring more advanced ZKP techniques could lead to even greater efficiency. The development of specialized ZKPs for deep learning training is highlighted as an ongoing area of research.

Summary updated

BibTeX
@article{sun2023zkdl,
  author = {Haochen Sun and Hongyang Zhang},
  title = {{zkDL: Efficient Zero-Knowledge Proofs of Deep Learning Training}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2023},
  doi = {10.1109/tifs.2024.3520863},
}
Figure