HERO-Sign: Hierarchical Tuning and Efficient Compiler-Time GPU Optimizations for SPHINCS+ Signature Generation
Speeds up SPHINCS+ signing on NVIDIA GPUs via FORS tree fusion, auto-tuning, compile-time PTX/native kernel selection, shared-memory bank-conflict removal, and CUDA Graph batching.
Schemes: SPHINCS+, WOTS+, FORS, MSS, CRYSTALS-Dilithium, FALCON, SHA-256, CUDA Graph
Findings (quotes checked against the source text)
-
HERO-Sign reports 1.28x to 3.13x throughput gains for SPHINCS+-128f over prior state-of-the-art GPU implementations on RTX 4090, with similar gains on other GPUs.
throughput of 1.28×–3.13×, 1.28×–2.92×, and 1.24×–2.60× on
-
Compile-time selection between PTX and native SHA-2 branches is done per kernel by profiling, avoiding runtime branching overhead and register pressure.
providing both PTX and native branches, allowing profiling-
-
A Relax FORS model halves shared-memory use per tree by having one thread produce two leaf nodes into a register buffer, easing thread and shared-memory limits for 256f.
Instead of dedicating one thread per leaf node, a single
-
On 256f, the PTX branch cut TREE_Sign register use from 168 to 95 per thread, raising warp occupancy from 19% to 37.5%.
kernel requires 168 registers per thread, with a warp occupancy
-
The paper reports a two-order-of-magnitude reduction in kernel launch latency from its CUDA Graph-based batch construction.
HERO-Sign also achieves a two-order-of-magnitude
Numbers (as extracted, not quote-checked)
- SPHINCS+-128f signature size: 17,088 bytes
- FALCON-512 signature size (as cited): 690 bytes
- Dilithium-2 signature size (as cited): 2,420 bytes
- HERO-Sign throughput gain vs prior GPU SOTA, SPHINCS+-128f on RTX 4090: 1.28x-3.13x
- HERO-Sign throughput gain vs prior GPU SOTA, SPHINCS+-256f on RTX 4090: 1.24x-2.60x
- Per-block static shared memory limit on RTX 4090: 48KB
For builders
If a PQ chain uses SPHINCS+ as a stateless hash-only fallback, GPU batch verification/signing gains from this work are for signing throughput on NVIDIA hardware and do not change its large signature size.
Limits
Only signing is optimized on NVIDIA GPUs with CUDA; verification, other hashes beyond SHA-256, and consensus-level costs are not evaluated; bank-conflict coalescing is an unverified assumption.
Topics: sig-hash-based benchmarks hash-functions