FHECore:重新思考用于完全同态加密的GPU微架构
FHECore: Rethinking GPU Microarchitecture for Fully Homomorphic Encryption
AI总结:
FHECore通过在GPU中集成专用功能单元,利用模线性变换优化FHE运算,实现性能提升和延迟降低。
摘要:
完全同态加密(FHE)能够在加密数据上直接进行计算,但会带来巨大的计算和内存开销,通常比明文执行大几个数量级。尽管定制的ASIC加速器可以缓解这些成本,但其长开发周期和FHE算法的快速演变威胁到其长期相关性。相比之下,GPU提供了可扩展性、可编程性和广泛可用性,使其成为FHE的有吸引力平台。然而,现代GPU越来越专门用于机器学习工作负载,强调低精度数据类型(例如INT8、FP8),这与FHE所需的宽精度模运算根本不匹配。本质上,虽然GPU提供了丰富的并行性,但其功能单元,如张量核心,不适用于FHE方案如CKKS所需的宽整数模运算。尽管有这一限制,研究者尝试将FHE原语映射到张量核心上,通过将宽整数分割成低精度(INT8)块。为了克服这些瓶颈,我们提出了FHECore,这是一个专门的功能单元,直接集成到GPU的流多处理器中。我们的设计受到一个关键见解的启发:两个主要的延迟贡献者——数论变换和基数转换——可以表示为模线性变换。这使得它们可以映射到一个原生支持宽精度模乘加运算的共同硬件单元上。我们的模拟显示,FHECore在CKKS原语上将动态指令计数减少了几何均值为2.41倍,在端到端工作负载上减少了1.96倍。这些减少转化为性能提升为1.57倍和2.12倍,分别包括50%的启动加速延迟减少,同时仅带来2.4%的面积开销。
英文摘要:
Fully Homomorphic Encryption (FHE) enables computation directly on encrypted data but incurs massive computational and memory overheads, often exceeding plaintext execution by several orders of magnitude. While custom ASIC accelerators can mitigate these costs, their long time-to-market and the rapid evolution of FHE algorithms threaten their long-term relevance. GPUs, by contrast, offer scalability, programmability, and widespread availability, making them an attractive platform for FHE. However, modern GPUs are increasingly specialized for machine learning workloads, emphasizing low-precision datatypes (e.g., INT$8$, FP$8$) that are fundamentally mismatched to the wide-precision modulo arithmetic required by FHE. Essentially, while GPUs offer ample parallelism, their functional units, like Tensor Cores, are not suited for wide-integer modulo arithmetic required by FHE schemes such as CKKS. Despite this constraint, researchers have attempted to map FHE primitives on Tensor Cores by segmenting wide integers into low-precision (INT$8$) chunks. To overcome these bottlenecks, we propose FHECore, a specialized functional unit integrated directly into the GPU's Streaming Multiprocessor. Our design is motivated by a key insight: the two dominant contributors to latency$-$Number Theoretic Transform and Base Conversion$-$can be formulated as modulo-linear transformations. This allows them to be mapped on a common hardware unit that natively supports wide-precision modulo-multiply-accumulate operations. Our simulations demonstrate that FHECore reduces dynamic instruction count by a geometric mean of $2.41\times$ for CKKS primitives and $1.96\times$ for end-to-end workloads. These reductions translate to performance speedups of $1.57\times$ and $2.12\times$, respectively$-$including a $50\%$ reduction in bootstrapping latency$-$all while inuring a modest $2.4\%$ area overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。