Medha:用于加密数据计算的微编码硬件加速器
Medha: Microcoded Hardware Accelerator for computing on Encrypted Data
摘要:
同态加密(HE)使得能够对加密数据进行计算,因此它在将计算外包到云的隐私保护方面具有巨大的潜力。硬件加速的HE是至关重要的,因为软件实现是非常缓慢的。在本文中,我们提出了设计方法,用于构建可编程硬件加速器,以加快加密数据的云端同态评估。首先,我们提出了一个分而治之的技术,使同态评价在一个大的多项式环$R_{Q,2N}$使用的硬件加速器,已建成的较小的环$R_{Q,N}$。该技术使得可以灵活地使用单个硬件加速器来支持多个HE参数集。接下来,我们提出了几种架构设计方法,我们用来实现灵活的和配置集的加速器架构,我们称之为'Medha'。在实现层次结构的每一级,我们探索并行处理的可能性。从硬件友好的并行算法的基本积木,我们逐步建立高度并行RNS多项式运算单元。接下来,这些并行单元中的许多单元优雅地互连,使得它们的互连需要最少数量的网络,从而使整个架构在平台上易于放置。对于Medha,我们采取了内存保守的设计方法,并摆脱任何片外内存访问同态评估。最后,我们在Xilinx Alveo U250 FPGA中实现Medha,并在200 MHz的时钟频率下测量微编码同态加法,乘法,密钥切换和重新缩放的分级HE方案RNS-HEAAN的时序性能。对于两个大的参数集,Medha分别实现了高达68倍和78倍的加速,而高度优化的软件实现Microsoft SEAL运行在2.3 GHz。
英文摘要:
Homomorphic encryption (HE) enables computation on encrypted data, and hence it has a great potential in privacy-preserving outsourcing of computations to the cloud. Hardware acceleration of HE is crucial as software implementations are very slow. In this paper, we present design methodologies for building a programmable hardware accelerator for speeding up the cloud-side homomorphic evaluations on encrypted data. First, we propose a divide-and-conquer technique that enables homomorphic evaluations in a large polynomial ring $R_{Q,2N}$ to use a hardware accelerator that has been built for the smaller ring $R_{Q,N}$. The technique makes it possible to use a single hardware accelerator flexibly for supporting several HE parameter sets. Next, we present several architectural design methods that we use to realize the flexible and instruction-set accelerator architecture, which we call `Medha'. At every level of the implementation hierarchy, we explore possibilities for parallel processing. Starting from hardware-friendly parallel algorithms for the basic building blocks, we gradually build heavily parallel RNS polynomial arithmetic units. Next, many of these parallel units are interconnected elegantly so that their interconnections require the minimum number of nets, therefore making the overall architecture placement-friendly on the platform. For Medha, we take a memory-conservative design approach and get rid of any off-chip memory access during homomorphic evaluations. Finally, we implement Medha in a Xilinx Alveo U250 FPGA and measure timing performances of the microcoded homomorphic addition, multiplication, key-switching, and rescaling for the leveled HE scheme RNS-HEAAN at 200 MHz clock frequency. For two large parameter sets, Medha achieves accelerations by up to 68x and 78x times respectively compared to a highly optimized software implementation Microsoft SEAL running at 2.3 GHz.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。