Zero-knowledge Proof Meets Machine Learning in Verifiability: A Survey

Zhibo Xing, Zijian Zhang, Jiamou Liu, Ziang Zhang, Meng Li, Liehuang Zhu, Giovanni RusselloarXiv 2023 · OpenReview

Abstract

With the rapid advancement of artificial intelligence, machine learning (ML) models are becoming integral to daily life. However, challenges like limited local computational resources and data privacy concerns often force users to rely on outsourced learning or federated learning. These decentralized approaches introduce a significant "trust gap": how can one verify that results computed by third parties are derived faithfully according to the specified algorithm and data? This paper provides a comprehensive survey of Zero-Knowledge Proof-based Verifiable Machine Learning (ZKP-VML), analyzing potential verifiability issues, defining the core framework, and categorizing existing technical approaches and future challenges.

The Trust Gap in Decentralized Machine Learning

Decentralized Machine Learning (DML), including Federated Learning, was designed to solve privacy issues by keeping raw data local. However, this decentralization creates a massive verifiability problem. A requester has no inherent way to know if a participant performed the computation faithfully. Malicious actors might submit "poisoned" updates to degrade model performance, or "free-riders" might submit random noise to claim rewards without performing actual work.

Illustrating verifiability challenges in outsourced inference (AI doctor) and federated learning (Banks).

Traditional verification methods, such as re-running the entire task, are impractical as they destroy the efficiency and privacy benefits of DML. Zero-Knowledge Proofs (ZKPs) emerge as the "missing link," allowing a prover to demonstrate computational integrity—proving the math was done correctly—without revealing the underlying private data.

Defining the ZKP-VML Framework

The paper establishes a formal definition for ZKP-VML consisting of four core algorithms:

  1. Setup: Generating the necessary cryptographic parameters.
  2. Execute: Running the machine learning model on the input data.
  3. Prove: Generating a zero-knowledge proof that the execution was correct.
  4. Verify: Allowing a third party to check the proof with minimal computational effort.

This survey categorizes 56 existing schemes (published between 2017 and 2024) based on their technical routes, including arithmetization (converting ML math into ZKP-friendly circuits) and various cryptographic backends like zk-SNARKs, Sumcheck protocols, and Inner Product Arguments (IPA).

Technical Landscape and Optimization

Bridging the gap between ML and ZKPs requires overcoming several technical hurdles:

  • The Floating-Point Barrier: ZKPs naturally operate on integers in finite fields, while ML relies on floating-point math. Successful schemes utilize quantization or fixed-point representations to maintain accuracy while ensuring ZKP compatibility.
  • Optimization Strategies: To make verification practical, researchers use "Verification-based" optimizations (like proof aggregation) and "Generation-based" optimizations (tailoring protocols to specific operations like convolutions or matrix multiplications).
  • Partial Security: For massive models, some researchers are exploring "Partial Security," which involves sampling portions of the computation for verification. This drastically reduces overhead while maintaining a high, calculable level of trust.

Comparative Analysis of the Survey

This work distinguishes itself from previous literature by providing the most extensive coverage of ZKP-VML schemes to date. While earlier surveys focused broadly on security or specific verifiability aspects, this paper analyzes over 50 schemes across dimensions such as technical analysis, categorization, and future research directions.

A comparison of this survey against related works, highlighting its comprehensive coverage of 53+ ZKP-VML schemes.

Key Results and Performance Gains

Specialized ZKP-VML schemes have achieved remarkable performance improvements over generic cryptographic tools:

  • vCNN: Reported to be 18,000x more efficient than the standard Groth16 protocol when verifying a VGG16 model.
  • ZENO: Achieved an 8.5x end-to-end speedup for neural network inference through gate aggregation.
  • Scalability: Optimized schemes have reduced the time to verify complex models from years to minutes, and memory requirements from terabytes to megabytes.

Future Directions and Limitations

Despite these leaps, several challenges remain. Prover overhead is still high, often requiring specialized hardware (GPUs/FPGAs). Many high-performance SNARKs still rely on a "trusted setup," leading to a push for more "transparent" (setup-less) ZKPs. Furthermore, there is a critical lack of user-friendly toolkits to integrate these proofs into standard ML pipelines like PyTorch or TensorFlow.

Looking forward, ZKP-VML is expected to evolve beyond simple math verification to prove higher-level properties like Model Fairness, Model Ownership (watermarking), and Machine Unlearning. It will also likely play a vital role in future 6G networks, ensuring the integrity of semantic communication.

Summary updated

BibTeX
@misc{xing2023zero,
  author = {Zhibo Xing and Zijian Zhang and Jiamou Liu and Ziang Zhang and Meng Li and Liehuang Zhu and Giovanni Russello},
  title = {{Zero-knowledge Proof Meets Machine Learning in Verifiability: A Survey}},
  year = {2023},
  eprint = {2310.14848},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.14848},
}
Figure