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

在英特尔GPU上加速加密计算

Accelerating Encrypted Computing on Intel GPUs

Yujia Zhai, Mohannad Ibrahim, Yiqin Qiu, Fabian Boemer, Zizhong Chen, Alexey Titov, Alexander Lyashevsky

摘要:

同态加密(HE)是一种新兴的加密方案,其允许直接对加密的消息执行计算。该属性提供了有前景的应用,例如隐私保护深度学习和云计算。先前的工作已经被提出,以使实际的隐私保护应用程序与架构感知优化的CPU,GPU和FPGA。然而,在英特尔GPU上没有针对整个HE流水线的系统优化。在本文中,我们为Microsoft SEAL API提供了第一个基于SYCL的GPU后端。我们从指令级、算法级和应用级进行优化,以加速基于Cheon,Kim,Kimand Song(CKKS)方案的HE库。性能在两个最新的英特尔GPU上得到验证。实验结果表明,我们的分阶段优化连同优化,包括低级别优化和内核融合加速数论变换(NTT),一个关键的算法HE,高达9.93倍相比,幼稚的GPU基线。屋顶线分析证实,我们优化的NTT达到79.8%和85.7%的峰值性能在两个GPU设备。通过高度优化的NTT和汇编级优化,我们获得了2.32X - 3.05X的加速HE评估例程。此外,我们的整体系统优化将加密元素多项式矩阵乘法应用程序的性能提高了3.10倍。

英文摘要:

Homomorphic Encryption (HE) is an emerging encryption scheme that allows computations to be performed directly on encrypted messages. This property provides promising applications such as privacy-preserving deep learning and cloud computing. Prior works have been proposed to enable practical privacy-preserving applications with architectural-aware optimizations on CPUs, GPUs and FPGAs. However, there is no systematic optimization for the whole HE pipeline on Intel GPUs. In this paper, we present the first-ever SYCL-based GPU backend for Microsoft SEAL APIs. We perform optimizations from instruction level, algorithmic level and application level to accelerate our HE library based on the Cheon, Kim, Kimand Song (CKKS) scheme on Intel GPUs. The performance is validated on two latest Intel GPUs. Experimental results show that our staged optimizations together with optimizations including low-level optimizations and kernel fusion accelerate the Number Theoretic Transform (NTT), a key algorithm for HE, by up to 9.93X compared with the naïve GPU baseline. The roofline analysis confirms that our optimized NTT reaches 79.8% and85.7% of the peak performance on two GPU devices. Through the highly optimized NTT and the assembly-level optimization, we obtain 2.32X - 3.05X acceleration for HE evaluation routines. In addition, our all-together systematic optimizations improve the performance of encrypted element-wise polynomial matrix multiplication application by up to 3.10X.

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

↑