Rosemary:全同态加密的高效可适配存储内加速方案
Rosemary: Efficient and Adaptable In-Storage Acceleration for Fully Homomorphic Encryption
AI总结:
Rosemary是一种异构FHE加速系统,通过存储内处理架构及相关优化,解决FHE的存储I/O瓶颈,在多种工作负载上实现了显著的加速比与能效提升。
摘要:
全同态加密(FHE)支持对加密数据进行计算,在隐私保护计算领域具有广阔前景。然而,FHE的部署仍受限于巨大的计算、内存及数据移动开销。现有加速策略往往忽略了大规模应用中FHE数据体量庞大所导致的存储I/O瓶颈,因为多数现有研究聚焦于能放入主存的小型基准测试。我们的研究表明,最先进的FHE系统在执行过程中,有71%至85%的时间用于在存储单元与计算单元之间移动数据,而非执行有效计算。为解决这一I/O瓶颈,我们提出Rosemary,这是一种异构FHE加速系统,集成了新颖的存储内处理(ISP)架构及编译器级与算法层面的优化。我们的核心创新包括:1)基于NAND闪存的固态硬盘(SSD)内部署可适配硬件感知FHE引擎,实现高效且高性价比的存储内FHE处理;2)吞吐量-数据感知程序分配器(TDAP),将FHE工作负载划分为异构程序;3)编译器级密文感知优化器(CLCAO),利用ISP友好型FHE内核实现低成本ISP执行。在涵盖加密深度学习推理、云数据库查询等多种FHE工作负载上,Rosemary相较于最先进的CPU/GPU实现取得了185.7倍的几何平均加速比,相较于现有FHE加速器取得了3.7倍的加速比,同时能效提升最高达3.9倍,能量-延迟-面积乘积(EDAP)提升最高达16.5倍。
英文摘要:
Fully Homomorphic Encryption (FHE) enables computation on encrypted data and is promising for privacy-preserving computing. However, FHE deployment remains constrained due to massive computational, memory, and data-movement overheads. Existing acceleration strategies often overlook the storage I/O bottleneck caused by the enormous size of FHE data in large-scale applications, as most prior works focus on small benchmarks that fit in main memory. Our studies show that state-of-the-art FHE systems spend 71\% to 85\% of their execution time moving data between storage and compute units rather than performing useful computation. To address the I/O bottleneck, we present Rosemary, a heterogeneous FHE acceleration system that incorporates a novel in-storage processing (ISP) architecture with compiler-level and algorithmic optimizations. Our key innovations include 1) an adaptable hardware-aware FHE engine inside a NAND flash-based solid-state drive (SSD) for efficient and cost-effective in-storage FHE processing, 2) a Throughput-Data-Aware Program Allocator (TDAP) that partitions FHE workloads into heterogeneous programs, and 3) a Compiler-Level Ciphertext-Aware Optimizer (CLCAO) that exploits ISP-friendly FHE kernels for low-cost ISP execution. Across a diverse set of FHE workloads, including encrypted deep learning inference and cloud database queries, Rosemary achieves geometric-mean speedups of $185.7\times$ over state-of-the-art CPU/GPU implementations and $3.7\times$ over prior FHE accelerators, while improving energy efficiency by up to $3.9\times$ and Energy-Delay-Area-Product (EDAP) by up to $16.5\times$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。