当证明遇上硬件:零知识系统中NTT与SumCheck的比较
When Proofs Meet Hardware: Comparing NTT and SumCheck in Zero-Knowledge Systems
AI总结:
本文在统一架构框架下首次直接比较NTT和SumCheck的硬件系统级性能,发现无通用胜者:SumCheck在高次多项式上更优,NTT在低次多项式且中等规模时因数据重用可能更好。
摘要:
在ZKP社区中,长期以来一直讨论SumCheck协议渐近地比数论变换(NTT)更高效,仅需要$O(N)$算术运算而NTT需要$O(N \log N)$。同时,硬件加速器设计者提出NTT更硬件友好,受益于局部性和数据重用,而SumCheck则受限于顺序依赖的轮次。尽管存在这些相互竞争的直觉,基于NTT和SumCheck的证明原语在硬件系统层面的权衡仍未被充分理解。超越单个加速器设计,本工作首次在统一架构框架下对基于NTT和SumCheck的证明原语进行硬件系统级直接比较。我们在zkSNARKs的通用构建块ZeroCheck协议背景下研究它们。我们为两种原语实现了优化系统。两者在相同的片上SRAM和片外带宽预算下进行评估。我们的结果表明没有通用胜者。通常,SumCheck在高次多项式上优于NTT。对于低次多项式,性能取决于内存可用性:在给定SRAM预算下,NTT可能通过利用数据重用在中等规模工作负载上提供更好的性能。这些发现连接了密码协议设计和硬件架构,为理解基于NTT和SumCheck的零知识证明系统的证明成本提供了实用指导。
英文摘要:
In the ZKP community, it has long been discussed that the SumCheck protocol is asymptotically more efficient than the Number Theoretic Transform (NTT), requiring only $O(N)$ arithmetic versus $O(N \log N)$. At the same time, hardware accelerator designers propose that NTT is more hardware-friendly, benefiting from locality and data reuse, while SumCheck suffers from sequential, dependent rounds. Despite these competing intuitions, the hardware-system-level trade-offs between NTT- and SumCheck-based proving primitives remain insufficiently understood. Beyond individual accelerator design, this work presents, to our knowledge, the first hardware-system-level direct comparison of NTT- and SumCheck-based proving primitives under a unified architectural framework. We study them in the context of the ZeroCheck protocol, a common building block in zkSNARKs. We implement optimized systems for both primitives. Both are evaluated under the same level on-chip SRAM and off-chip bandwidth budgets. Our results show that there is no universal winner. Generally, SumCheck outperforms NTT for high-degree polynomials. For low-degree polynomials, performance depends on memory availability: under given SRAM budgets, NTT might deliver better performance for medium-sized workloads by exploiting data reuse. These findings, bridging cryptographic protocol design and hardware architecture, offer practical guidance for understanding the proving cost of NTT- and SumCheck-based zero-knowledge proof systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。