arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.07047cs.CRcs.ARcs.CLcs.PL
收藏

利用ASIC AI芯片进行同态加密

Leveraging ASIC AI Chips for Homomorphic Encryption

Georgia Institute of Technology(佐治亚理工学院);Massachusetts Institute of Technology(麻省理工学院);Google(谷歌);NVIDIA(英伟达);Cornell University(康奈尔大学)

Jianming Tong, Tianhao Huang, Jingtian Dang, Leo de Castro, Anirudh Itagi, Anupam Golder, Asra Ali, Jeremy Kun, Jevin Jiang, Arvind, G. Edward Suh, Tushar Krishna

AI总结:

本文探讨利用现有AI加速器如Google的TPU,通过CROSS编译器框架实现同态加密的高效能,解决GPU架构与同态加密算法的不匹配问题,提升能效。

摘要:

同态加密(HE)为云服务提供强数据隐私保护,但代价是巨大的计算开销。尽管GPU已成为加速HE的实用平台,但其能效仍比专用(但昂贵)的HE ASICs低一个数量级。本文探索另一种方向:利用现有AI加速器,如Google的TPU,其粗粒度计算和内存架构,提供通往ASIC级能效的HE路径。然而,这种架构范式与当前最先进的HE算法设计存在根本矛盾。这些算法依赖于:(1)高精度(32位)整数运算,现在在TPU的低吞吐量向量单元上运行,使其高吞吐量低精度(8位)矩阵引擎(MXU)闲置;(2)细粒度数据置换,在TPU的粗粒度内存子系统上效率低下。因此,将GPU优化的HE库移植到TPU会导致资源利用率低和性能下降。为解决上述挑战,我们引入CROSS,一种编译器框架,系统地将HE工作负载转换以适应TPU的架构。CROSS有两个关键贡献:(1)基底对齐转换(BAT),一种新技术,将高精度模运算转换为密集的低精度(INT8)矩阵乘法,解锁并提高TPU的MXU对HE的利用率;(2)内存对齐转换(MAT),通过离线参数转换消除昂贵的运行时数据重新排列。CROSS(TPU v6e)在NTT和HE操作符上每瓦特的吞吐量高于WarpDrive、FIDESlib、FAB、HEAP和Cheddar,确立AI ASIC为HE操作符的最高效平台。代码:https://github.com/EfficientPPML/CROSS

英文摘要:

Homomorphic Encryption (HE) provides strong data privacy for cloud services but at the cost of prohibitive computational overhead. While GPUs have emerged as a practical platform for accelerating HE, there remains an order-of-magnitude energy-efficiency gap compared to specialized (but expensive) HE ASICs. This paper explores an alternate direction: leveraging existing AI accelerators, like Google's TPUs with coarse-grained compute and memory architectures, to offer a path toward ASIC-level energy efficiency for HE. However, this architectural paradigm creates a fundamental mismatch with SoTA HE algorithms designed for GPUs. These algorithms rely heavily on: (1) high-precision (32-bit) integer arithmetic to now run on a TPU's low-throughput vector unit, leaving its high-throughput low-precision (8-bit) matrix engine (MXU) idle, and (2) fine-grained data permutations that are inefficient on the TPU's coarse-grained memory subsystem. Consequently, porting GPU-optimized HE libraries to TPUs results in severe resource under-utilization and performance degradation. To tackle above challenges, we introduce CROSS, a compiler framework that systematically transforms HE workloads to align with the TPU's architecture. CROSS makes two key contributions: (1) Basis-Aligned Transformation (BAT), a novel technique that converts high-precision modular arithmetic into dense, low-precision (INT8) matrix multiplications, unlocking and improving the utilization of TPU's MXU for HE, and (2) Memory-Aligned Transformation (MAT), which eliminates costly runtime data reordering by embedding reordering into compute kernels through offline parameter transformation. CROSS (TPU v6e) achieves higher throughput per watt on NTT and HE operators than WarpDrive, FIDESlib, FAB, HEAP, and Cheddar, establishing AI ASIC as the SotA efficient platform for HE operators. Code: https://github.com/EfficientPPML/CROSS

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑