arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.00922cs.CRcs.AR
收藏

ARK:一种具有加密数据生成和操作间密钥重用的全同态加密加速器

ARK: Fully Homomorphic Encryption Accelerator with Runtime Data Generation and Inter-Operation Key Reuse

Jongmin Kim, Gwangho Lee, Sangpyo Kim, Gina Sohn, John Kim, Minsoo Rhu, Jung Ho Ahn

摘要:

同态加密(Homomorphic Encryption,HE)是后量子密码学中最有前途的方案之一,它能够在服务器上实现隐私保护计算。然而,当我们对HE加密数据执行操作时,噪声会积累,从而限制了可能的操作数量。完全HE(FHE)通过引入刷新数据的自举操作来消除这种限制;然而,FHE方案是高度内存受限的。特别是自举需要从片外存储器加载GB的评估密钥和明文,这使得FHE加速从根本上受到片外内存带宽的限制。在本文中,我们提出了ARK,一个加速器FHE的数据生成和互操作密钥重用。ARK通过新颖的算法架构协同设计实现实际的FHE工作负载,以加速自举。我们首先通过运行时数据生成和操作间密钥重用消除片外内存带宽瓶颈。这种方法使ARK能够充分利用片上存储器,大大减少了工作集的大小。在这样的算法增强之上,我们构建了ARK微架构,通过基于数据访问模式的高效交替数据分布策略和定制功能单元的精简的并行组织(包括基础转换,数论变换和自同构单元),最大限度地减少了片上数据移动。总的来说,我们的协同设计有效地处理了FHE的繁重计算和数据移动开销,大大降低了HE操作的成本,包括自举。

英文摘要:

Homomorphic Encryption (HE) is one of the most promising post-quantum cryptographic schemes that enable privacy-preserving computation on servers. However, noise accumulates as we perform operations on HE-encrypted data, restricting the number of possible operations. Fully HE (FHE) removes this restriction by introducing the bootstrapping operation, which refreshes the data; however, FHE schemes are highly memory-bound. Bootstrapping, in particular, requires loading GBs of evaluation keys and plaintexts from off-chip memory, which makes FHE acceleration fundamentally bottlenecked by the off-chip memory bandwidth. In this paper, we propose ARK, an Accelerator for FHE with Runtime data generation and inter-operation Key reuse. ARK enables practical FHE workloads with a novel algorithm-architecture co-design to accelerate bootstrapping. We first eliminate the off-chip memory bandwidth bottleneck through runtime data generation and inter-operation key reuse. This approach enables ARK to fully exploit on-chip memory by substantially reducing the size of the working set. On top of such algorithmic enhancements, we build ARK microarchitecture that minimizes on-chip data movement through an efficient, alternating data distribution policy based on the data access patterns and a streamlined dataflow organization of the tailored functional units -- including base conversion, number-theoretic transform, and automorphism units. Overall, our co-design effectively handles the heavy computation and data movement overheads of FHE, drastically reducing the cost of HE operations, including bootstrapping.

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

↑