HE-PIM:解析在真实世界处理内存系统上的同态运算
HE-PIM: Demystifying Homomorphic Operations on a Real-world Processing-in-Memory System
AI总结:
本文研究了在真实世界通用处理内存系统上执行同态加密运算的瓶颈与优化,发现计算和内存限制是主要问题,但通过原生模运算和高效数据传输可使PIM成为替代CPU和GPU的可行方案。
摘要:
同态加密(HE)允许在加密数据上进行计算,为不信任的计算环境提供强隐私保障。实际应用受限于高计算复杂度、大密文大小和大量数据移动。以处理器为中心的架构(CPU、GPU、ASIC)在HE工作负载上遇到根本瓶颈,因为密文较大、数据局部性低,且如重新线性化和启动等原语反复访问大辅助元数据。处理内存(PIM)是一种有前途的缓解方法,通过在附近或内部内存中计算。先前的PIM提案要么不针对真实世界PIM系统,要么只涵盖窄的操作集。我们全面表征了HE操作在真实世界通用PIM系统上的表现。我们实现了用于新兴应用(数据库、机器学习)的完整HE内核集,在UPMEM PIM系统上评估性能和可扩展性,并与CPU和GPU基线进行比较,讨论对未来PIM硬件的影响。我们的结果展示了四个主要发现。(1)基于HE的应用在执行阶段暴露了不同的瓶颈:一些内核由于模运算计算密集,而其他则由于大密文和中间数据内存密集。这些瓶颈被有限的每核心计算和每银行容量加剧,迫使频繁的数据移动。(2)主要的计算瓶颈是缺乏原生64位模整数乘法,这是关键的HE原语。(3)有限的每银行内存容量是第二主要瓶颈,因为HE密文和辅助元数据无法容纳,需要跨银行移动。(4)尽管有这些限制,当PIM具备原生模运算和高效跨PIM数据移动时,可以成为替代最新CPU和GPU系统的可行方案。
英文摘要:
Homomorphic encryption (HE) enables computation over encrypted data, offering strong privacy guarantees for untrusted computing environments. Practical adoption remains limited by high computational complexity, large ciphertext sizes, and substantial data movement. Processor-centric architectures (CPUs, GPUs, ASICs) hit fundamental bottlenecks on HE workloads because ciphertexts are large, data locality is low, and primitives such as relinearization and bootstrapping repeatedly access large auxiliary metadata. Processing-In-Memory (PIM) is a promising mitigation by computing near or inside memory. Prior PIM proposals for HE either do not target real-world PIM systems or cover only a narrow set of operations. We comprehensively characterize HE operations on a real-world, general-purpose PIM system. We implement a complete set of HE kernels used by emerging applications (databases, machine learning) on the UPMEM PIM system, evaluate performance and scalability, compare against CPU and GPU baselines, and discuss implications for future PIM hardware. Our results demonstrate four major findings. (1) HE-based applications expose distinct bottlenecks across execution stages: some kernels are compute-bound due to modular arithmetic, while others are memory-bound due to large ciphertexts and intermediate data. These bottlenecks are exacerbated by limited per-core compute and per-bank capacity, which force frequent data movement. (2) The dominant compute bottleneck is the lack of native 64-bit modular integer multiplication, a key HE primitive. (3) Limited per-bank memory capacity is the second major bottleneck, since HE ciphertexts and auxiliary metadata do not fit and require inter-bank movement. (4) Despite these limits, PIM can be a viable alternative to state-of-the-art CPU and GPU systems for HE when equipped with native modular multiplication and efficient inter-PIM data movement.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。