Trinity:一种通用 FHE 加速器
Trinity: A General Purpose FHE Accelerator
AI总结:
本文提出首个基于统一架构的多模态 FHE 加速器 Trinity,通过算法优化、硬件复用和动态调度高效支持 CKKS、TFHE 及其转换方案,性能显著优于现有加速器且硬件开销更低。
摘要:
在本文中,我们提出了首个基于统一架构的多模态 FHE 加速器,该加速器在单个加速器内高效支持 CKKS、TFHE 及其转换方案。为实现这一目标,我们首先分析了上述方案的理论基础,并强调它们由有限数量的算术内核组成。然后,我们研究了在统一架构内高效支持这些内核的挑战,包括:1)同时支持 NTT 和 FFT,2)在各种多项式长度下保持高硬件利用率,以及 3)确保在不同算术内核间保持一致的性能。为了解决这些挑战,我们提出了一种名为 Trinity 的新型 FHE 加速器,它结合了算法优化、硬件组件复用和动态工作负载调度,以增强对 CKKS、TFHE 及其转换方案的加速。通过自适应选择 NTT 和 MAC 组件的适当分配,Trinity 在不同多项式长度和不平衡算术工作负载的 NTT 中保持高利用率。实验结果表明,对于纯 CKKS 和 TFHE 工作负载,我们的 Trinity 性能分别比最先进的 CKKS(SHARP)和 TFHE(Morphling)加速器高出 1.49 倍和 4.23 倍。此外,与基于 CPU 的实现相比,Trinity 在 FHE 转换方案上实现了 919.3 倍的性能提升。值得注意的是,尽管性能有所提升,Trinity 的硬件开销仅为 SHARP 和 Morphling 电路面积总和的 85%。
英文摘要:
In this paper, we present the first multi-modal FHE accelerator based on a unified architecture, which efficiently supports CKKS, TFHE, and their conversion scheme within a single accelerator. To achieve this goal, we first analyze the theoretical foundations of the aforementioned schemes and highlight their composition from a finite number of arithmetic kernels. Then, we investigate the challenges for efficiently supporting these kernels within a unified architecture, which include 1) concurrent support for NTT and FFT, 2) maintaining high hardware utilization across various polynomial lengths, and 3) ensuring consistent performance across diverse arithmetic kernels. To tackle these challenges, we propose a novel FHE accelerator named Trinity, which incorporates algorithm optimizations, hardware component reuse, and dynamic workload scheduling to enhance the acceleration of CKKS, TFHE, and their conversion scheme. By adaptive select the proper allocation of components for NTT and MAC, Trinity maintains high utilization across NTTs with various polynomial lengths and imbalanced arithmetic workloads. The experiment results show that, for the pure CKKS and TFHE workloads, the performance of our Trinity outperforms the state-of-the-art accelerator for CKKS (SHARP) and TFHE (Morphling) by 1.49x and 4.23x, respectively. Moreover, Trinity achieves 919.3x performance improvement for the FHE-conversion scheme over the CPU-based implementation. Notably, despite the performance improvement, the hardware overhead of Trinity is only 85% of the summed circuit areas of SHARP and Morphling.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。