[论文解读] Cheetah: Optimizations and Methods for PrivacyPreserving Inference via Homomorphic Encryption.
Cheetah 通过算法和硬件优化,实现了基于同态加密(HE)的深度神经网络(DNN)推理,通过 HE 参数调优、操作符调度以及一款定制的 30W、545mm² 加速器,使性能相比最先进的 HE 系统提升了 79 倍,接近明文 DNN 推理速度,适用于 ResNet50、VGG16 和 AlexNet 等模型。
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.
研究动机与目标
- 解决在使用同态加密(HE)进行隐私保护深度学习推理时存在的性能瓶颈问题,尽管 HE 提供了隐私保障,但其运行速度仍不切实际地缓慢。
- 通过优化算法层和硬件层,降低云环境推理中 HE 带来的计算开销。
- 在端到端 HE 加密下,实现常见 DNN 模型(如 ResNet50、VGG16、AlexNet)接近明文推理的速度。
- 设计一种定制加速器架构,结合算法优化,弥合加密推理与明文效率之间的剩余性能差距。
提出的方法
- 应用 HE 参数调优优化,以减少同态操作中的噪声增长和计算成本,提升 DNN 各层的效率。
- 实施操作符调度优化,重新排列并融合 HE 操作,减少冗余计算并改善数据局部性。
- 将算法优化与专为高效 HE 算术设计的硬件加速器集成,包括同态操作的批处理和并行化。
- 采用软硬件混合堆栈,使优化后的 HE 内核能高效映射到加速器的数据通路和内存层次结构上。
- 利用批处理和数据重组织技术,最大化加密推理流水线的吞吐量并最小化延迟。
- 在标准 DNN 模型上使用真实工作负载评估完整堆栈,以衡量性能和能效。
实验结果
研究问题
- RQ1诸如 HE 参数调优和操作符调度等算法优化,能否显著降低基于 HE 的 DNN 推理的计算开销?
- RQ2以定制加速器形式存在的硬件专业化,能在多大程度上弥合加密推理与明文推理之间的性能差距?
- RQ3在采用实用化硬件设计的前提下,是否可行实现主流模型(如 ResNet50、VGG16 和 AlexNet)在 HE 下的接近明文推理速度?
- RQ4通过 HE 和专用加速器实现高性能隐私保护推理,其功耗和面积成本分别是多少?
主要发现
- 通过结合算法优化,Cheetah 相比最先进的基于 HE 的 DNN 推理系统实现了 79 倍的性能提升。
- 所提出的算法优化虽能显著缩小性能差距,但仍比明文推理速度慢近四个数量级。
- 定制加速器设计功耗仅为 30W,面积为 545mm²,使 ResNet50、VGG16 和 AlexNet 实现了接近明文的推理速度。
- 通过集成软硬件堆栈,这些模型的端到端 HE 推理成为可能,展现出实际部署潜力。
- 算法与硬件优化的结合使延迟降低至现实隐私保护推理工作负载可接受的范围内。
- 结果表明,当同时应用软件级优化和针对性硬件加速时,基于 HE 的推理可实现对常见 DNN 的实用化。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。