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

基于GPU的同态加密多项式乘法加速算法

Accelerating Polynomial Multiplication for Homomorphic Encryption on GPUs

Kaustubh Shivdikar, Gilbert Jonatan, Evelio Mora, Neal Livesay, Rashmi Agrawal, Ajay Joshi, Jose Abellan, John Kim, David Kaeli

摘要:

同态加密(HE)使用户能够安全地将敏感数据的存储和计算外包给不受信任的服务器。HE不仅为云系统的安全性提供了有吸引力的解决方案,而且基于格子的HE系统也被认为可以抵抗量子计算机的攻击。然而,当前的HE实现遭受过高的延迟。为了使基于格的HE在现实世界的系统中变得可行,关键瓶颈-特别是多项式乘法-必须是高效的。在本文中,我们提出了一个基于GPU的多项式乘法实现的表征。我们首先对模块化约简技术进行了调查,并分析了广泛使用的Barrett模块化约简算法的几个变体。然后,我们提出了一个模块化的减少变种优化的64位整数字的GPU上,获得了1.8倍的速度比现有的可比实现。接下来,我们将探索以下针对GPU的多项式乘法改进,以优化延迟和吞吐量:1)我们提出了一种2D混合基数、多块的NTT实现,其平均加速比是之前最先进技术的1.85倍。2)我们探索了旨在减少冗余内存访问的共享内存优化,进一步将加速比提高1.2倍。3)最后,我们融合的阿达玛产品与相邻阶段的NTT,减少旋转因子的内存占用50%。通过结合我们的NTT优化,我们实现了123.13倍和2.37倍的整体加速比,分别超过了以前最先进的CPU和GPU实现的NTT内核。

英文摘要:

Homomorphic Encryption (HE) enables users to securely outsource both the storage and computation of sensitive data to untrusted servers. Not only does HE offer an attractive solution for security in cloud systems, but lattice-based HE systems are also believed to be resistant to attacks by quantum computers. However, current HE implementations suffer from prohibitively high latency. For lattice-based HE to become viable for real-world systems, it is necessary for the key bottlenecks - particularly polynomial multiplication - to be highly efficient. In this paper, we present a characterization of GPU-based implementations of polynomial multiplication. We begin with a survey of modular reduction techniques and analyze several variants of the widely-used Barrett modular reduction algorithm. We then propose a modular reduction variant optimized for 64-bit integer words on the GPU, obtaining a 1.8x speedup over the existing comparable implementations. Next, we explore the following GPU-specific improvements for polynomial multiplication targeted at optimizing latency and throughput: 1) We present a 2D mixed-radix, multi-block implementation of NTT that results in a 1.85x average speedup over the previous state-of-the-art. 2) We explore shared memory optimizations aimed at reducing redundant memory accesses, further improving speedups by 1.2x. 3) Finally, we fuse the Hadamard product with neighboring stages of the NTT, reducing the twiddle factor memory footprint by 50%. By combining our NTT optimizations, we achieve an overall speedup of 123.13x and 2.37x over the previous state-of-the-art CPU and GPU implementations of NTT kernels, respectively.

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

↑