ZKProphet:理解零知识证明在 GPU 上的性能
ZKProphet: Understanding Performance of Zero-Knowledge Proofs on GPUs
AI总结:
本文提出 ZKProphet,系统刻画 GPU 上零知识证明的性能瓶颈,指出优化 MSM 后 NTT 最高占证明延迟 90%,并给出参数调优与硬件扩展路线。
摘要:
零知识证明(ZKP)是一类构造密码学证明的协议,用于证明其知晓某一计算中的秘密输入,同时不泄露关于该秘密的任何信息。ZKP 使隐私和可验证计算中的新型应用成为可能,例如匿名加密货币和区块链扩容,并已在多个真实系统中得到采用。先前工作利用 Multi-Scalar Multiplication(MSM,多标量乘法)等核心计算内核中固有的并行性,在 GPU 上加速 ZKP。然而,我们发现文献中缺少对 ZKP 执行瓶颈及其在现代 GPU 架构上可扩展性的系统性刻画。本文提出 ZKProphet,这是一项针对 GPU 上零知识证明的全面性能研究。在 MSM 获得大幅加速之后,我们发现 ZKP 受到 Number-Theoretic Transform(NTT,数论变换)等内核的瓶颈限制,因为在与优化的 MSM 实现配合时,这些内核最高占 GPU 上证明生成延迟的 90%。现有 NTT 实现未能充分利用 GPU 计算资源,并且通常没有采用异步计算和内存操作等架构特性。我们观察到,ZKP 底层的算术运算完全在 GPU 的 32 位整数流水线上执行,并且由于数据依赖而表现出有限的指令级并行性。因此,其性能受到可用整数计算单元的限制。虽然扩展 ZKP 性能的一种方式是增加更多计算单元,但我们讨论了针对预计算输入和替代数据表示等优化的运行时参数调优如何能够提取额外加速。通过这项工作,我们为 ZKP 社区提供了一条在 GPU 上扩展性能的路线图,并根据其应用需求和可用硬件资源构建确定性的 GPU 加速 ZKP。
英文摘要:
Zero-Knowledge Proofs (ZKP) are protocols which construct cryptographic proofs to demonstrate knowledge of a secret input in a computation without revealing any information about the secret. ZKPs enable novel applications in private and verifiable computing such as anonymized cryptocurrencies and blockchain scaling and have seen adoption in several real-world systems. Prior work has accelerated ZKPs on GPUs by leveraging the inherent parallelism in core computation kernels like Multi-Scalar Multiplication (MSM). However, we find that a systematic characterization of execution bottlenecks in ZKPs, as well as their scalability on modern GPU architectures, is missing in the literature. This paper presents ZKProphet, a comprehensive performance study of Zero-Knowledge Proofs on GPUs. Following massive speedups of MSM, we find that ZKPs are bottlenecked by kernels like Number-Theoretic Transform (NTT), as they account for up to 90% of the proof generation latency on GPUs when paired with optimized MSM implementations. Available NTT implementations under-utilize GPU compute resources and often do not employ architectural features like asynchronous compute and memory operations. We observe that the arithmetic operations underlying ZKPs execute exclusively on the GPU's 32-bit integer pipeline and exhibit limited instruction-level parallelism due to data dependencies. Their performance is thus limited by the available integer compute units. While one way to scale the performance of ZKPs is adding more compute units, we discuss how runtime parameter tuning for optimizations like precomputed inputs and alternative data representations can extract additional speedup. With this work, we provide the ZKP community a roadmap to scale performance on GPUs and construct definitive GPU-accelerated ZKPs for their application requirements and available hardware resources.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。