arXiv:2610.38262cs.CROct 2026

Manuscript Offprint

arXiv:2610.38262

Rosemary: Efficient and Adaptable In-Storage Acceleration for Fully Homomorphic Encryption

Xuan Wang, Tianqi Zhang, Gabrielle De Micheli, Yujin Nam, Keming Fan, Augusto Vega, Minxuan Zhou, Tajana Rosing

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Xuan Wang, Tianqi Zhang, Gabrielle De Micheli, Yujin Nam, Keming Fan, Augusto Vega, Minxuan Zhou Member, IEEE, Tajana Rosing Fellow, IEEE

Abstract—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× over state-of-the-art CPU/GPU implementations and 3.7× over prior FHE accelerators, while improving energy efficiency by up to 3.9× and Energy-Delay-Area-Product (EDAP) by up to 16.5×.

I. INTRODUCTION

As data storage and computation increasingly move to the cloud, preserving data privacy has become critical [49], [66]. Regulations [1], [55] further mandate strong privacy protection. Fully Homomorphic Encryption (FHE) [12], [13], [19] addresses this need by enabling computation on encrypted data without decryption. FHE is especially valuable for privacy-sensitive cloud applications such as deep learning inference, database analytics, and information retrieval.

However, existing FHE schemes suffer from prohibitive performance overhead. With highly customized FHE libraries [4], [16], [48], computations are still 104×10^4 \times to 105×10^5 \times slower than their unencrypted counterparts on CPUs [57]. Fortunately, recent advances in ASIC accelerators [30], [28] have dramatically improved the performance of FHE, which has narrowed the performance gap between FHE operations and their unencrypted counterparts to 2-4 orders of magnitude (e.g., [35], [57]). Previous studies also demonstrated 2-3 orders

Figure

Fig. 1: Comparison of different FHE architectures. (a) FHE-host-accelerator only; (b) prior ISP designs for FHE; (c) Rosemary.

of magnitude speedup on GPUs [23], [32], [61], [3] compared to CPU implementations.

Despite those advances, adopting FHE acceleration in real systems remains limited by system-level bottlenecks, where the enormous cost of data movement and heavy computational demands severely restrict achievable performance and scalability. Depending on the parameter configuration, ciphertexts may expand to 103×10^3 \times to 105×10^5 \times compared to the size of their corresponding plaintext version [72], [17], [34]. Consequently, the memory footprints of FHE workloads frequently reach hundreds of gigabytes or even terabytes, far exceeding typical main memory capacity. For example, FHE-enabled deep learning inference can require model weights up to hundreds of terabytes [42], [40], [31], while data-intensive workloads, such as database search [8], [46] and information retrieval [6], [65], may operate on datasets of even larger size.

Given the excessive memory footprint, naively connecting the host-side FHE accelerators with large memory to SSD (Figure 1(a)), leads to a significant system bus bottleneck for I/O bound FHE computations. Prior work [17], [44] and our analysis in Section III-A demonstrate 57% to 85% I/O overhead for overall execution time on CPU/GPU/ASIC systems. Motivated by this observation, in-storage-processing (ISP), which moves computation closer to storage, presents a promising approach. Several prior works have explored ISPs to accelerate FHE workloads [17], [44], [34], [65]. However, these works primarily adopt an ISP-only approach (Figure 1(b)), where the limited compute and memory resources within SSDs hinder the adoption of such accelerators to support FHE with large parameter sizes and complex operation patterns. As a result, existing designs either accelerate only lightweight FHE programs [17], [44], [34], [65], or deliver sub-optimal performance [69]. CIPHERMATCH [34] targets exact string matching, while INSPIRE [44] and SmartPIR [17] leverage in-storage PIR (Private Information Retrieval). Although Poseidon-NDP [69] supports general FHE, its FPGA-

Xuan Wang, Tianqi Zhang, Gabrielle De Micheli, Yujin Nam, Keming Fan and Tajana Rosing are with the University of California San Diego.

Augusto Vega is with IBM Research, USA.

Minxuan Zhou is with Illinois Institute of Technology.

based design requires over 1000s even for shallow MNIST inference, far behind ASIC accelerators. Consequently, ISP-only designs are largely limited to lightweight or specialized FHE workloads, while ASIC-only accelerators continue to suffer from high storage data-movement overheads, hindering efficient support for large-scale end-to-end FHE applications.

Our goal in this work is to architect an efficient and adaptable FHE acceleration system to tackle the computation and I/O challenges of large-scale privacy-preserving applications by exploiting heterogeneous computing with a novel in-storage processing accelerator integrated in host-side ASIC-accelerated FHE systems (Figure 1(c)). To achieve our goal of efficiently integrating ISP into a full-stack FHE system, we propose Rosemary, which addresses challenges stemming from the hardware properties of FHE and the architectural characteristics of the storage devices via hardware-software co-design. First, we propose a high-performance ISP architecture with novel hardware components for accelerating general FHE operations in storage, including (i) reconfigurable FHE processing units for cost-effective processing of various kernels and (ii) a hierarchical on-chip buffer architecture for ciphertext and key management. Second, for the heterogeneous system, Rosemary incorporates compiler-driven optimizations to identify HE computations suitable for in-storage execution, partition workloads across the host and SSD, and optimize ciphertext and key movement for efficient heterogeneous execution. The key contributions of this work are as follows:

  • We propose Rosemary, an efficient, cost-effective, and adaptable heterogeneous FHE acceleration system that exploits ISP for I/O challenges of large-scale applications.

  • Rosemary introduces coordinated compilation innovations, including the Throughput-Data-Aware Program Allocator (TDAP) for heterogeneous partitioning across the host and SSD, and the Compiler-Level Ciphertext-Aware Optimizer (CLCAO) for memory optimizations.

  • We conduct workload characterization over FHE workloads and comprehensive design space explorations to derive new insights into I/O-compute tradeoffs. These insights motivate the key architectural choices in RosemarySSD, enabling ISP-friendly execution and improved exploitation of SSD-internal parallelism.

  • Our evaluation shows that Rosemary delivers geometric-mean speedups of 185.7×185.7\times over state-of-the-art CPU/GPU implementations and 3.7×3.7\times over prior FHE accelerators [72]. It also improves energy efficiency by up to 3.9×3.9\times and reduces EDAP by up to 16.5×16.5\times.

References (68)