ZKTorch:通过并行证明累积将 ML 推理编译为零知识证明
ZKTorch: Compiling ML Inference to Zero-Knowledge Proofs via Parallel Proof Accumulation
AI总结:
本文提出开源端到端证明系统 ZKTorch,通过将 ML 模型编译为基础加密操作并结合 Mira 累积方案的并行扩展,在保证模型权重隐私的同时,显著提升了零知识证明的效率与通用性。
摘要:
随着 AI 模型在我们的日常生活中变得无处不在,对 ML 服务透明度的需求日益增加。然而,模型所有者不想透露权重,因为它们被视为商业机密。为了解决这个问题,研究人员转向了 ML 模型推理的零知识证明。这些证明让用户相信 ML 模型输出是正确的,而无需向用户透露模型的权重。过去关于这些证明器的工作可以分为两类。第一种方法将 ML 模型编译为低级电路,并使用 ZK-SNARK 证明该电路。第二种方法使用仅为特定类别的模型设计的自定义加密协议。不幸的是,第一种方法效率极低,使其对于当今使用的大型模型来说不切实际,而第二种方法泛化性不佳,使得在快速变化的机器学习领域中难以更新。为了解决这个问题,我们提出了 ZKTorch,这是一个开源的端到端证明系统,它将 ML 模型编译为称为基本块的基础加密操作,每个操作都使用专门的协议进行证明。ZKTorch 建立在 Mira 累积方案的新型并行扩展之上,能够以最小的累积开销实现简洁的证明。这些贡献使得 ZKTorch 与专门的协议相比,证明大小至少减少了 3 倍,并且在通用 ZKML 框架上的证明时间实现了高达 6 倍的加速。
英文摘要:
As AI models become ubiquitous in our daily lives, there has been an increasing demand for transparency in ML services. However, the model owner does not want to reveal the weights, as they are considered trade secrets. To solve this problem, researchers have turned to zero-knowledge proofs of ML model inference. These proofs convince the user that the ML model output is correct, without revealing the weights of the model to the user. Past work on these provers can be placed into two categories. The first method compiles the ML model into a low-level circuit, and proves the circuit using a ZK-SNARK. The second method uses custom cryptographic protocols designed only for a specific class of models. Unfortunately, the first method is highly inefficient, making it impractical for the large models used today, and the second method does not generalize well, making it difficult to update in the rapidly changing field of machine learning. To solve this, we propose ZKTorch, an open source end-to-end proving system that compiles ML models into base cryptographic operations called basic blocks, each proved using specialized protocols. ZKTorch is built on top of a novel parallel extension to the Mira accumulation scheme, enabling succinct proofs with minimal accumulation overhead. These contributions allow ZKTorch to achieve at least a $3\times$ reduction in the proof size compared to specialized protocols and up to a $6\times$ speedup in proving time over a general-purpose ZKML framework.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。