HE^2:一种用于高效全同态加密的轻通信异构架构
HE^2: A Communication-Light Heterogeneous Architecture for Efficient Fully Homomorphic Encryption
AI总结:
针对CKKS全同态加密方案中计算密集与内存密集操作并存导致的硬件开销大、效率低问题,提出一种结合ASIC与近内存处理器的轻通信异构架构HE^2,通过数据流图优化和架构协同设计减少密钥交换通信开销,实现1.66倍加速和9.23倍EDAP降低。
摘要:
CKKS是一种新兴的全同态加密(FHE)方案,通过在密文上支持SIMD定点计算,在隐私保护应用中具有前景。尽管其安全性强,CKKS涉及计算密集型算子(ComOps)和内存密集型算子(MemOps),前者计算成本高,后者内存占用大,使得现有的基于ASIC或基于NMP的加速方法面临高硬件开销和有限效率的问题。这一观察促使将两种范式的架构优势整合到异构xPU(ASIC)-xMU(NMP)架构中。然而,在这种设计中,由主导的密钥切换算子引起的频繁且长延迟的异构通信仍然是关键性能瓶颈。在本文中,我们提出HE^2,一种具有数据流图(DFG)优化和架构协同设计的轻通信xPU-xMU异构FHE加速器。首先,我们观察到大多数通信发生在ModUp/ModDown与相邻MemOps之间的接口处。为解决此问题,我们提出一个DFG级优化框架,通过识别并行密钥切换块并融合它们以减少通信频率,充分利用提升算法的ModUp/ModDown缩减潜力。其次,我们设计了一种高效的异构架构,采用组级流水线执行,通过利用分解组间的固有并行性有效隐藏通信延迟。端到端评估结果表明,与最先进的加速器相比,HE^2实现了1.66倍的加速和9.23倍的EDAP(能量-延迟-面积乘积)降低,通信停顿仅占总延迟的6.67%。
英文摘要:
CKKS, an emerging fully homomorphic encryption (FHE) scheme, has been promising in privacy-preserving applications by enabling SIMD fixed-point computations on ciphertexts. Despite its strong security guarantees, CKKS involves both compute-intensive operators (ComOps) with high computational cost and memory-intensive operators (MemOps) with large memory footprints, making existing ASIC-based or NMP-based acceleration approaches suffer from high hardware overhead and limited efficiency. This observation motivates the integration of the architectural advantages of both paradigms into a heterogeneous xPU (ASIC)-xMU (NMP) architecture. However, in such a design, frequent and long-latency heterogeneous communication caused by the dominant keyswitch operator remains a key performance bottleneck. In this paper, we propose $HE^2$, a communication-light xPU-xMU heterogeneous FHE accelerator with dataflow graph (DFG) optimization and architecture co-design. First, we observe that the majority of communication arises at the interface between ModUp/ModDown and neighboring MemOps. To address this, we propose a DFG-level optimization framework to fully exploit the ModUp/ModDown reduction potential of the hoisting algorithm by identifying parallel keyswitch blocks and fusing them for reduced communication frequency. Second, we design an efficient heterogeneous architecture that adopts a group-level pipelined execution to effectively hide communication latency by leveraging the inherent parallelism across decomposed groups. End-to-end evaluation results show that $HE^2$ achieves 1.66$\times$ speedup and 9.23$\times$ lower EDAP (Energy-Delay-Area Product) compared to the state-of-the-art accelerator, with communication stalls accounting for only 6.67% of the total latency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。