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

F1:一种快速可编程的全同态加密加速器(扩展版)

F1: A Fast and Programmable Accelerator for Fully Homomorphic Encryption (Extended Version)

Axel Feldmann, Nikola Samardzic, Aleksandar Krastev, Srini Devadas, Ron Dreslinski, Karim Eldefrawy, Nicholas Genise, Chris Peikert, Daniel Sanchez

摘要:

全同态加密(FHE)允许对加密数据进行计算,从而能够将计算安全地卸载到不受信任的服务器。虽然它提供了理想的安全性,但FHE在软件中执行时是昂贵的,比对未加密数据的计算慢4到5个数量级。这些开销是FHE广泛采用的主要障碍。我们介绍F1,第一个可编程的FHE加速器,即,能够执行完整的FHE程序。F1建立在对FHE计算特征的深入架构分析的基础上,该分析揭示了加速机会。F1是一个宽向量处理器,具有专门用于FHE原语的新型功能单元,例如模运算,数论变换和结构化排列。这种组织提供了如此多的计算吞吐量,以至于数据移动成为瓶颈。因此,F1的主要目的是最大限度地减少数据移动。F1硬件提供了一个明确管理的存储层次结构和机制,将数据移动与执行分离。一种新的编译器利用这些机制,以最大限度地重用和调度片外和片上数据移动。我们使用周期精确模拟和RTL合成来评估F1。F1是第一个加速完整FHE程序的系统,其性能比最先进的软件实现高出5400倍和17000倍。这些加速可以抵消FHE的大部分开销,并支持新的应用程序,例如云中的实时私有深度学习。

英文摘要:

Fully Homomorphic Encryption (FHE) allows computing on encrypted data, enabling secure offloading of computation to untrusted serves. Though it provides ideal security, FHE is expensive when executed in software, 4 to 5 orders of magnitude slower than computing on unencrypted data. These overheads are a major barrier to FHE's widespread adoption. We present F1, the first FHE accelerator that is programmable, i.e., capable of executing full FHE programs. F1 builds on an in-depth architectural analysis of the characteristics of FHE computations that reveals acceleration opportunities. F1 is a wide-vector processor with novel functional units deeply specialized to FHE primitives, such as modular arithmetic, number-theoretic transforms, and structured permutations. This organization provides so much compute throughput that data movement becomes the bottleneck. Thus, F1 is primarily designed to minimize data movement. The F1 hardware provides an explicitly managed memory hierarchy and mechanisms to decouple data movement from execution. A novel compiler leverages these mechanisms to maximize reuse and schedule off-chip and on-chip data movement. We evaluate F1 using cycle-accurate simulations and RTL synthesis. F1 is the first system to accelerate complete FHE programs and outperforms state-of-the-art software implementations by gmean 5400x and by up to 17000x. These speedups counter most of FHE's overheads and enable new applications, like real-time private deep learning in the cloud.

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

↑