arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2612.06132cs.CRcs.AR
收藏

Celeritas:面向不同GPU的架构感知FHE内核生成

Celeritas: Architecture-Aware FHE Kernel Generation Across Diverse GPUs

Carnegie Mellon University(卡内基梅隆大学);NVIDIA(英伟达);Massachusetts Institute of Technology(麻省理工学院)

Siddharth Jayashankar, Michael B. Sullivan, Simon Langowski, Wenting Zheng, Dimitrios Skarlatos, Christos Kozyrakis

AI总结:

Celeritas是针对不同GPU的架构感知FHE内核生成框架,可将CKKS内核专门化,在NVIDIA B300等GPU上实现FHE加速,性能较现有方案提升1.8-2.2倍。

摘要:

GPU已成为全同态加密(FHE)加速的首选平台。然而,现代GPU架构在内存带宽、算术吞吐量和原生指令支持方面存在差异,因此针对某一GPU优化的内核在另一GPU上往往效果不佳,甚至产生反效果。激进的内核融合会产生不同的调用形态,进一步加剧了这一问题,这些调用形态适合不同的执行策略。为应对这些挑战,本文提出Celeritas,这是一个将CKKS内核针对目标GPU和融合内核形态进行专门化的代码生成框架。通过对FHE瓶颈的架构分析,Celeritas会根据每个GPU的限制资源调整算法和实现,针对目标GPU的硬件平衡定制减少流量或指令的优化。此外,Celeritas利用各种格式的Tensor Core,实现针对内核维度专门化工作映射和分块策略的内核变体。在NVIDIA B300 GPU上,Celeritas运行CKKS引导的时间为6.6毫秒,比Cerium快2.0倍,多GPU扩展时为3.8毫秒。应用程序运行速度提高1.8至2.2倍:在8个B300上,ResNet-50对加密的ImageNet图像分类耗时0.89秒,加密的BERT-Base运行耗时4.5秒,Llama3-8B预填充耗时22秒。下一代VR200 GPU上的Celeritas引导时间为4.4毫秒,4个VR200的速度大致相当于8个B300。

英文摘要:

GPUs have emerged as the preferred platform for FHE acceleration. However, modern GPU architectures differ in memory bandwidth, arithmetic throughput, and native instruction support. Consequently, optimizations tuned for one GPU are often suboptimal, or even counterproductive, on another. This problem is compounded by aggressive kernel fusion, which produces diverse call shapes that favor different execution strategies. To address these challenges, we present Celeritas, a code-generation framework that specializes CKKS kernels to the target GPU and fused kernel shape. Guided by an architectural analysis of FHE bottlenecks, Celeritas adapts algorithms and implementations to each GPU's limiting resource, tailoring traffic- or instruction-reducing optimizations to the target GPU's hardware balance. Additionally, Celeritas leverages Tensor Cores in various formats, and implements kernel variants that specialize work mapping and tiling strategies to kernel dimensions. On the NVIDIA B300 GPU, Celeritas runs CKKS bootstrapping in 6.6 ms, 2.0x faster than Cerium, and in 3.8 ms with multi-GPU scaling. Applications run 1.8-2.2x faster: on eight B300s, ResNet-50 classifies an encrypted ImageNet image in 0.89 s, encrypted BERT-Base runs in 4.5 s, and Llama3-8B prefill runs in 22 s. Celeritas on a next-generation VR200 GPU bootstraps in 4.4 ms, and four VR200s roughly match the speed of eight B300s.

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

↑