[论文解读] BTS: An Accelerator for Bootstrappable Fully Homomorphic Encryption
BTS 是一种用于全同态加密(FHE)的硬件加速器,原生支持置位(bootstrapping),这是实现无限同态计算的关键操作。它采用大规模并行处理元件阵列和针对同态加密数据访问模式优化的片上网络(NoC),在 ResNet-20 推理任务中相较 CPU 实现了 5,556× 的加速,芯片面积为 373.6mm²,功耗达 163.2W。
Homomorphic encryption (HE) enables the secure offloading of computations to the cloud by providing computation on encrypted data (ciphertexts). HE is based on noisy encryption schemes in which noise accumulates as more computations are applied to the data. The limited number of operations applicable to the data prevents practical applications from exploiting HE. Bootstrapping enables an unlimited number of operations or fully HE (FHE) by refreshing the ciphertext. Unfortunately, bootstrapping requires a significant amount of additional computation and memory bandwidth as well. Prior works have proposed hardware accelerators for computation primitives of FHE. However, to the best of our knowledge, this is the first to propose a hardware FHE accelerator that supports bootstrapping as a first-class citizen. In particular, we propose BTS - Bootstrappable, Technologydriven, Secure accelerator architecture for FHE. We identify the challenges of supporting bootstrapping in the accelerator and analyze the off-chip memory bandwidth and computation required. In particular, given the limitations of modern memory technology, we identify the HE parameter sets that are efficient for FHE acceleration. Based on the insights gained from our analysis, we propose BTS, which effectively exploits the parallelism innate in HE operations by arranging a massive number of processing elements in a grid. We present the design and microarchitecture of BTS, including a network-on-chip design that exploits a deterministic communication pattern. BTS shows 5,556x and 1,306x improved execution time on ResNet-20 and logistic regression over a CPU, with a chip area of 373.6mm^2 and up to 163.2W of power.
研究动机与目标
- 解决全同态加密(FHE)中置位操作的关键性能瓶颈,尽管 HE 方案已取得进展,但该瓶颈仍限制其实际部署。
- 克服先前工作中对置位缺乏硬件加速的问题,这些工作或完全省略置位,或仅支持低吞吐量的单槽变体。
- 设计一种 ASIC 加速器,同时优化计算与片外内存带宽,充分利用现代制造工艺与内存约束。
- 通过分析参数集与数据访问模式,实现在基于 CKKS 的 FHE 中实现高吞吐量、多槽置位。
- 在片上数据重用、计算与内存访问之间实现最佳平衡,以最大化性能,同时最小化功耗与面积开销。
提出的方法
- 提出 BTS —— 一种可置位、技术驱动、安全的 FHE 加速器架构,专门针对 CKKS 同态加密设计。
- 分析 HE 参数集(如 N = 2^17)对置位性能的影响,识别在当前内存与工艺技术约束下最适合硬件加速的参数。
- 实现大规模并行处理元件阵列,以利用同态加密操作(如数论变换 NTT 和自同态)中的系数级并行性(CLP)。
- 设计具有确定性通信模式的片上网络(NoC),以最小化片外内存访问并最大化数据重用。
- 将关键数据(如评估密钥 evk 和密文)存储在片上,以减少延迟与带宽压力。
- 通过内核融合与数据流优化,减少片外内存事务,尤其针对带宽密集型操作(如置位)进行优化。
实验结果
研究问题
- RQ1哪些 HE 参数集(如 N、槽位数)在 CKKS FHE 的置位硬件加速中最为高效?
- RQ2如何设计 ASIC 加速器以在支持高吞吐量置位的同时最小化片外内存带宽?
- RQ3可置位 FHE 操作中,片上存储、计算与通信之间的最优平衡是什么?
- RQ4硬件加速器是否能为端到端 FHE 工作负载(如深度学习推理)实现显著加速,同时支持完整置位?
- RQ5与先前的 CPU、GPU、FPGA 和 ASIC 解决方案相比,置位优化加速器在真实世界 FHE 应用中的性能表现如何?
主要发现
- BTS 在 ResNet-20 推理任务中相较最先进的 CPU 实现了 5,556× 的加速,显著优于先前的加速器。
- 与 CPU 相比,BTS 在逻辑回归任务中实现了 1,306× 的加速,展现出在通用 FHE 工作负载上的强劲性能。
- 对于 N = 2^17 的多槽 CKKS 置位,BTS 实现了每秒 2000 万次置位操作(20M ops/s)的吞吐量。
- BTS 通过将评估密钥与中间数据存储在片上,显著减少了片外内存访问,从而最小化延迟与带宽压力。
- 芯片面积为 373.6mm²,功耗最高达 163.2W,展示了适用于实际部署的可行面积与功耗配置。
- BTS 是首个原生将多槽置位作为第一类操作支持的 ASIC 加速器,而先前工作或完全省略该功能,或仅支持单槽变体。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。