Paper 2025/1732

Zero-Knowledge AI Inference with High Precision

Arman Riasi, Virginia Tech
Haodi Wang, City University of Hong Kong
Rouzbeh Behnia, University of South Florida
Viet Vo, Swinburne University of Technology
Thang Hoang, Virginia Tech
Abstract

Artificial Intelligence as a Service (AIaaS) enables users to query a model hosted by a service provider and receive inference results from a pre-trained model. Although AIaaS makes artificial intelligence more accessible, particularly for resource-limited users, it also raises verifiability and privacy concerns for the client and server, respectively. While zero-knowledge proof techniques can address these concerns simultaneously, they incur high proving costs due to the non-linear operations involved in AI inference and suffer from precision loss because they rely on fixed-point representations to model real numbers. In this work, we present ZIP, an efficient and precise commit and prove zero-knowledge SNARK for AIaaS inference (both linear and non-linear layers) that natively supports IEEE-754 double-precision floating-point semantics while addressing reliability and privacy challenges inherent in AIaaS. At its core, ZIP introduces a novel relative-error-driven technique that efficiently proves the correctness of complex non-linear layers in AI inference computations without any loss of precision, and hardens existing lookup-table and range proofs with novel arithmetic constraints to defend against malicious provers. We implement ZIP and evaluate it on standard datasets (e.g., MNIST, UTKFace, and SST-2). Our experimental results show, for non-linear activation functions, ZIP reduces circuit size by up to three orders of magnitude while maintaining the full precision required by modern AI workloads.

Metadata
Available format(s)
PDF
Category
Cryptographic protocols
Publication info
Published elsewhere. ACM Conference on Computer and Communications Security (ACM CCS 2025)
DOI
10.1145/3719027.3765056
Keywords
Zero-Knowledge ProofsNumerical MethodsNon-linear FunctionIEEE-754 floating-pointZKML
Contact author(s)
armanriasi @ vt edu
haodi wang @ cityu edu hk
behnia @ usf edu
vvo @ swin edu au
thanghoang @ vt edu
History
2025-09-23: approved
2025-09-22: received
See all versions
Short URL
https://ia.cr/2025/1732
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2025/1732,
      author = {Arman Riasi and Haodi Wang and Rouzbeh Behnia and Viet Vo and Thang Hoang},
      title = {Zero-Knowledge {AI} Inference with High Precision},
      howpublished = {Cryptology {ePrint} Archive, Paper 2025/1732},
      year = {2025},
      doi = {10.1145/3719027.3765056},
      url = {https://eprint.iacr.org/2025/1732}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.