EFFACT:一种高效的全面栈FHE加速平台
EFFACT: A Highly Efficient Full-Stack FHE Acceleration Platform
AI总结:
本文提出EFFACT,一个全面栈FHE加速平台,通过编译器优化、流式内存访问、功能单元复用及新型NTT/自同构单元,实现高吞吐、低面积和低开销,支持CKKS、BGV、BFV等多种方案。
摘要:
全同态加密(FHE)是一组强大的密码学方案,允许在加密数据上直接进行无限深度的计算。尽管FHE在隐私保护计算方面前景广阔,但在大多数FHE方案中,密文通常比原始消息膨胀数千倍,并且从片外存储器加载的大量数据(用于自举和隐私保护机器学习应用,如HELR、ResNet-20)都降低了基于FHE的计算性能。为解决此问题,已提出多种硬件设计,但其中大多数需要巨大的资源和功耗。一个易于编程、高效且低开销的加速平台是实际应用的前提。本文提出EFFACT,一个高效的全面栈FHE加速平台,配备提供全面优化和向量友好硬件的编译器。我们首先检查不同真实基准测试中的计算开销,以突出重新分配计算资源以提高效率的潜在好处。然后,我们进行设计空间探索,以找到具有高利用率和低成本的最优SRAM大小。另一方面,EFFACT提出了一种名为流式内存访问的新颖优化,旨在以有限的SRAM实现高吞吐量。在软件端优化方面,我们还提出了一种电路级功能单元复用方案,以在不降低性能的情况下大幅减少计算资源。此外,我们设计了适用于成本敏感且高效架构的新型NTT和自同构单元,从而实现了低面积。为通用性,EFFACT还配备了ISA和编译器后端,可支持多种FHE方案,如CKKS、BGV和BFV。
英文摘要:
Fully Homomorphic Encryption (FHE) is a set of powerful cryptographic schemes that allows computation to be performed directly on encrypted data with an unlimited depth. Despite FHE's promising in privacy-preserving computing, yet in most FHE schemes, ciphertext generally blows up thousands of times compared to the original message, and the massive amount of data load from off-chip memory for bootstrapping and privacy-preserving machine learning applications (such as HELR, ResNet-20), both degrade the performance of FHE-based computation. Several hardware designs have been proposed to address this issue, however, most of them require enormous resources and power. An acceleration platform with easy programmability, high efficiency, and low overhead is a prerequisite for practical application. This paper proposes EFFACT, a highly efficient full-stack FHE acceleration platform with a compiler that provides comprehensive optimizations and vector-friendly hardware. We start by examining the computational overhead across different real-world benchmarks to highlight the potential benefits of reallocating computing resources for efficiency enhancement. Then we make a design space exploration to find an optimal SRAM size with high utilization and low cost. On the other hand, EFFACT features a novel optimization named streaming memory access which is proposed to enable high throughput with limited SRAMs. Regarding the software-side optimization, we also propose a circuit-level function unit reuse scheme, to substantially reduce the computing resources without performance degradation. Moreover, we design novel NTT and automorphism units that are suitable for a cost-sensitive and highly efficient architecture, leading to low area. For generality, EFFACT is also equipped with an ISA and a compiler backend that can support several FHE schemes like CKKS, BGV, and BFV.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。