While many hardware accelerators have recently been proposed to address the inefficiency problem of fully homomorphic encryption (FHE) schemes, none of them is able to deliver optimal performance when facing real-world FHE workloads consisting of a mixture of shallow and deep computations, due primarily to their homogeneous design principle.
This paper presents FLASH-FHE, the first FHE accelerator with a heterogeneous architecture for mixed workloads. At its heart, FLASH-FHE designs two types of computation clusters, ie, bootstrappable and swift, to optimize for deep and shallow workloads respectively in terms of cryptographic parameters and hardware pipelines. We organize one bootstrappable and two swift clusters into one cluster affiliation, and present a scheduling scheme that provides sufficient acceleration for deep FHE workloads by utilizing all the affiliations, while improving parallelism for shallow FHE workloads by assigning one shallow workload per affiliation and dynamically decomposing the bootstrappable cluster into multiple swift pipelines to accelerate the assigned workload. We further show that these two types of clusters can share valuable on-chip memory, improving performance without significant resource consumption. We implement FLASH-FHE with RTL and synthesize it using both 7nm and 14/12nm technology nodes, and our experiment results demonstrate that FLASH-FHE achieves an average performance improvement of $1.4\times$ and $11.2\times$ compared to state-of-the-art FHE accelerators CraterLake and F1 for deep workloads, while delivering up to $8.0\times$ speedup for shallow workloads due to its heterogeneous architecture.
Hardware Acceleration for Third-Generation FHE and PSI Based on It
随着云服务的扩展,由于在计算过程中未加密的数据暴露给服务器,因此对用户数据隐私的严重关注。各种安全原语正在研究中,以在评估私有数据时保护隐私,包括全同态加密(FHE)、私有集合相交(PSI)等。然而,这些原语的禁止处理时间阻碍了它们的实际应用。这项工作提出并实现了一种使用Amazon Web Services(AWS)云FPGA加速第三代FHE的架构,标志着第一个第三代FHE硬件加速解决方案。我们还介绍了一种新的不平衡PSI协议的基础上第三代FHE,建议的硬件架构进行了优化。几个算法架构的协同优化技术,以允许通信和计算成本是独立的?的集合大小。测量结果表明,所提出的加速器实现了$>21\times$性能的改善相比,第三代FHE和建议PSI的各种关键子程序的软件实现。