zkDuel: Characterizing SumCheck Prover Kernels across GPU Programming Models
Abstract
SumCheck is a central prover primitive in zero-knowledge proofs, exposing table-parallel work that maps naturally to GPUs but becomes increasingly arithmetic-intensive as finite fields widen. We study how this shift affects the cost of programming SumCheck in Triton rather than CUDA. Our benchmark, zkDuel, provides matched implementations of 25 zkPHIRE-derived constraints alongside diagnostic polynomials, covering 32-, 64-, 128-, and 256-bit prime fields, with independent CPU-reference validation and cross-backend checksum gating. Of 800 configurations attempted on an NVIDIA H100, 758 complete with matching checksums. CUDA's median advantage over Triton falls from 3.5x at 32 bits to 1.4x at 256 bits, and Triton is faster on 19 large-table configurations; the same convergence appears on an A100, where the gap falls from 4.4x to 1.6x. Profiling shows that the small-field gap largely reflects host launch overhead and redundant modular additions in Triton's original block reduction, whose relative costs diminish as multi-limb Montgomery work grows. Replacing that reduction with tl.reduce brings Triton's median kernel time within 8% of CUDA on both GPUs, while specialized point interpolation improves 256-bit evaluation kernels by 1.55-1.75x. At cryptographic widths, these results show that a Python-embedded DSL can approach CUDA performance, although the largest fully unrolled constraints still expose compiler-scalability limits.
Create a lesson
Metadata
- Comments
- Accepted to HASP'26 at MICRO 2026
Related papers
Inference-Time Scaling in Agentic Hardware Verification Workflows: A Multi-Strategy Characterization Across Protocol Complexity
Shared title terminologycs.ARVikash Kumar
CHARMING: Parallel Edge AI Acceleration Across Tensor Processing and In-Memory Computation
Shared title terminologycs.ARMd Omar Faruque, Jingang Jin, João Paulo C. de Lima et al.
SPEC CPU2026 Under the Microscope: Programs, Phases, and Samples
Shared title terminologycs.ARPeijun Li, Pei-Hung Lin, Tianming Cui et al.
Beyond Host-Side Control: HBM Controller Partitioning Across Host and HBM Base Dies
Shared title terminologycs.ARTharunya Yogananda, Wantong Li
Should You Split Decode? Disaggregation Across Future Models and Accelerators
Shared title terminologycs.ARRamyad Hadidi
In-depth data movement characterization of DNA read mapping algorithms
Shared title terminologycs.ARBerkan Şahin, Ecem İlgün, Klea Zambaku et al.