arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.23969cs.AR
收藏

HERO-Sign:分层调优和高效的编译时GPU优化用于SPHINCS+签名生成

HERO-Sign: Hierarchical Tuning and Efficient Compiler-Time GPU Optimizations for SPHINCS+ Signature Generation

University of California, Merced(加州大学默塞德分校)

Yaoyun Zhou, Qian Wang

AI总结:

HERO-Sign通过分层调优和编译时优化提升SPHINCS+签名生成性能

摘要:

SPHINCS+是一种无状态的哈希签名方案,提供强的后量子安全性能,但其签名生成过程缓慢,因为需要大量哈希计算。GPU提供了大规模并行性,有可能加速SPHINCS+签名。然而,现有的基于GPU的优化要么未能充分利用SPHINCS+ Merkel树结构的内在并行性,要么缺乏对其多种计算内核的细粒度、编译器层面的定制化。本文提出了HERO Sign,一种基于GPU的SPHINCS+实现,采用分层调优和高效的编译时优化。HERO Sign重新审视由数据独立性在SPHINCS+各组件中启用的并行化机会,包括FORS、MSS和WOTS+。它引入了FORS的树融合策略,该策略包含大量独立分支。融合策略由一个自动化的树调优搜索算法引导,该算法适应不同GPU架构的融合方案。为了进一步提高性能,HERO Sign采用了一种自适应的编译策略,考虑了在SPHINCS+内核如FORS Sign、TREE Sign和WOTS+ Sign中不同编译器优化的有效性。在编译过程中,该策略会自动选择PTX和原生代码路径以最大化效率。对于批量签名生成,HERO Sign使用基于任务图的构造来优化内核级别的重叠,以减少多流空闲时间和内核启动开销。实验结果表明,与最先进的GPU实现相比,HERO Sign在SPHINCS+ 128f、192f和256f参数集上RTX 4090上实现了吞吐量提升1.28-3.13、1.28-2.92和1.24-2.60。在A100、H100和GTX 2080上也观察到类似的增益,并且内核启动延迟减少了两个数量级。

英文摘要:

SPHINCS+ is a stateless hash-based signature scheme that provides strong post quantum security, but its signature generation is slow due to intensive hash computations. GPUs offer massive parallelism that can potentially accelerate SPHINCS+ signatures. However, existing GPU-based optimizations either fail to fully exploit the inherent parallelism of SPHINCS+'s Merkle tree structure or lack fine-grained, compiler-level customization across its diverse computational kernels. This paper proposes HERO Sign, a GPU-accelerated SPHINCS+ implementation that adopts hierarchical tuning and efficient compiler time optimizations. HERO Sign reexamines the parallelization opportunities enabled by data independence across SPHINCS+ components, including FORS, MSS, and WOTS+. It introduces a Tree Fusion strategy for FORS, which contains a large number of independent branches. The fusion strategy is guided by an automated Tree Tuning search algorithm that adapts fusion schemes to different GPU architectures. To further improve performance, HERO Sign employs an adaptive compilation strategy that accounts for the varying effectiveness of compiler optimizations across SPHINCS+ kernels such as FORS Sign, TREE Sign, and WOTS+ Sign. During compilation, the strategy automatically selects between PTX and native code paths to maximize efficiency. For batched signature generation, HERO Sign optimizes kernel-level overlapping using a task graph-based construction to reduce multi-stream idle time and kernel launch overhead. Experimental results show that, compared to state of the art GPU implementations, HERO Sign achieves throughput improvements of 1.28-3.13, 1.28-2.92, and 1.24-2.60 under the SPHINCS+ 128f, 192f, and 256f parameter sets on RTX 4090. Similar gains are observed on A100, H100, and GTX 2080, along with a two orders of magnitude reduction in kernel launch latency.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑