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

Cheetah:优化和加速同态加密以实现私人推理

Cheetah: Optimizing and Accelerating Homomorphic Encryption for Private Inference

Brandon Reagen, Wooseok Choi, Yeongil Ko, Vincent Lee, Gu-Yeon Wei, Hsien-Hsin S. Lee, David Brooks

摘要:

随着深度学习的应用不断增长,用于进行预测的数据量也在不断增加。虽然传统上,大数据深度学习受到计算性能和片外内存带宽的限制,但出现了一个新的限制:隐私。一种解决方案是同态加密(HE)。将HE应用于客户端-云模型允许云服务直接对客户端的加密数据执行推断。虽然HE可以满足隐私限制,但它引入了巨大的计算挑战,并且在当前系统中仍然非常慢。本文介绍了Cheetah,这是一组用于HE DNN推理的算法和硬件优化,以实现明文DNN推理速度。Cheetah提出了HE参数调优优化和操作员调度优化,它们共同提供了79倍于最先进技术的加速。然而,这仍然低于明文推理速度近四个数量级。为了弥合剩余的性能差距,Cheetah进一步提出了一种加速器架构,当与算法优化相结合时,接近明文DNN推理速度。我们评估了几种常见的神经网络模型(例如,ResNet 50,VGG 16和AlexNet),并表明对于每一个的明文级HE推断是可行的,使用消耗30 W和545mm^2的自定义加速器。

英文摘要:

As the application of deep learning continues to grow, so does the amount of data used to make predictions. While traditionally, big-data deep learning was constrained by computing performance and off-chip memory bandwidth, a new constraint has emerged: privacy. One solution is homomorphic encryption (HE). Applying HE to the client-cloud model allows cloud services to perform inference directly on the client's encrypted data. While HE can meet privacy constraints, it introduces enormous computational challenges and remains impractically slow in current systems. This paper introduces Cheetah, a set of algorithmic and hardware optimizations for HE DNN inference to achieve plaintext DNN inference speeds. Cheetah proposes HE-parameter tuning optimization and operator scheduling optimizations, which together deliver 79x speedup over the state-of-the-art. However, this still falls short of plaintext inference speeds by almost four orders of magnitude. To bridge the remaining performance gap, Cheetah further proposes an accelerator architecture that, when combined with the algorithmic optimizations, approaches plaintext DNN inference speeds. We evaluate several common neural network models (e.g., ResNet50, VGG16, and AlexNet) and show that plaintext-level HE inference for each is feasible with a custom accelerator consuming 30W and 545mm^2.

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

↑