Skip to main content
QUICK REVIEW

[论文解读] Does Fully Homomorphic Encryption Need Compute Acceleration?

Leo de Castro, Rashmi Agrawal|arXiv (Cornell University)|Dec 13, 2021
Cryptography and Data SecurityComputer Science被引用 25
一句话总结

这篇论文分析以 CKKS 为基础的全同态加密中的自举(bootstrapping)步骤,显示内存带宽是主要瓶颈,且计算加速的收益有限;提出缓存友好的优化和一个内存感知的参数调优工具,并得出结论:为了实用性,内存改进是必不可少的。

ABSTRACT

Fully Homomorphic Encryption (FHE) allows arbitrarily complex computations on encrypted data without ever needing to decrypt it, thus enabling us to maintain data privacy on third-party systems. Unfortunately, sustaining deep computations with FHE requires a periodic noise reduction step known as bootstrapping. The cost of the bootstrapping operation is one of the primary barriers to the wide-spread adoption of FHE. In this paper, we present an in-depth architectural analysis of the bootstrapping step in FHE. First, we observe that secure implementations of bootstrapping exhibit a low arithmetic intensity (<1 Op/byte), require large caches (>100 MB), and are heavily bound by the main memory bandwidth. Consequently, we demonstrate that existing workloads observe marginal performance gains from the design of bespoke high-throughput arithmetic units tailored to FHE. Second, we propose several cache-friendly algorithmic optimizations that improve the throughput in FHE bootstrapping by enabling up to 3.2x higher arithmetic intensity and 4.6x lower memory bandwidth. Our optimizations apply to a wide range of structurally similar computations such as private evaluation and training of machine learning models. Finally, we incorporate these optimizations into an architectural tool which, given a cache size, memory subsystem, the number of functional units and a desired security level, selects optimal cryptosystem parameters to maximize the bootstrapping throughput. Our optimized bootstrapping implementation represents a best-case scenario for compute acceleration of FHE. We show that despite these optimizations, bootstrapping continues to be bottlenecked by main memory bandwidth. We propose new research directions to address the underlying memory bottleneck. In summary, our answer to the titular question is: yes, but only after addressing the memory bottleneck!

研究动机与目标

  • 在内存系统上表征 FHE 自举的性能瓶颈。
  • 评估纯粹基于计算的加速对 CKKS FHE 操作的可行性。
  • 开发缓存友好且内存感知的优化以提升自举吞吐量。
  • 提供一个架构工具,在内存约束下选择最大化吞吐量的密码系统参数。
  • 证明内存瓶颈而非计算支配端到端的 FHE 工作负载,并概述未来的研究方向。

提出的方法

  • 对从基本运算到端到端应用的一系列 CKKS 运算进行基准测试,以评估计算与内存的平衡。
  • 分析安全 FHE 基元的内存带宽和工作集需求。
  • 提出缓存友好的领域专用内存优化和算法改进,以提高算术强度。
  • 开发内存感知的密码系统参数选择,以最大化自举吞吐量。
  • 将优化集成到一个架构工具中,在给定硬件和安全约束的情况下输出最优参数。

实验结果

研究问题

  • RQ1CKKS FHE 基元与自举的内存和带宽需求是什么?
  • RQ2以计算为重点的优化是否可以显著提高 FHE 吞吐量,还是内存带宽才是真正的瓶颈?
  • RQ3缓存感知技术与基于 RNS 的算术如何提高 FHE 的算术强度?
  • RQ4在安全约束下,哪些参数调优策略能最大化自举吞吐量?

主要发现

  • 所有 CKKS/FHE 操作的算术强度都很低(<1 Op/byte)。
  • 工作集大小超过典型的 LLC 容量,使自举及相关工作受内存带宽限制。
  • 缓存友好的领域专用优化可使自举的算术强度提升至最高 3.2 倍,内存带宽降低至 4.6 倍。
  • 即使使用优化参数,自举仍然是瓶颈,指向内存带宽作为根本极限。
  • 一个架构工具可以在给定的硬件和安全约束下选择最大化自举吞吐量的密码系统参数。
  • 研究认为安全的 FHE 需要超越计算加速、解决内存瓶颈的方法。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。