arXiv:2609.09423cs.CRSep 2026

Manuscript Offprint

arXiv:2609.09423

FPGA Acceleration of Fully Homomorphic Encryption with Adaptive Key Switching

Zhihan Xu, Jayashree Adivarahan, Rajgopal Kannan, Viktor K. Prasanna

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

Zhihan Xu 1,∗^{1,*}, Jayashree Adivarahan 1,∗^{1,*}, Rajgopal Kannan 2^{2} and Viktor K. Prasanna 1^{1}

1^{1}University of Southern California, USA; 2^{2}DEVCOM Army Research Office, USA

Email: {zhihanxu, adivarah, prasanna}@usc.edu, rajgopal.kannan.civ@army.mil

Abstract—Fully Homomorphic Encryption (FHE) enables privacy-preserving cloud services but incurs substantial computation overhead, making hardware acceleration essential. Among FHE operations, key-switching is a major performance bottleneck. Recent cryptographic advances introduce a novel key-switching method (i.e., KLSS) that reduces certain operational complexity but demands higher computational precision than the traditional Hybrid Key Switching (HKS) method. This trade-off leads to distinct computation and memory requirements, making the relative latency of KLSS and HKS highly dependent on hardware parallelism, FHE security parameters, and available on-chip memory capacity, particularly on FPGA platforms, where memory resources and parallelism must be carefully balanced.

In this work, we first propose a memory-efficient KLSS datapath that eliminates off-chip ciphertext transfers. We then develop a performance model to analyze and compare the overheads of both KLSS and HKS. Our analysis reveals that an adaptive solution supporting both methods can achieve lower overall latency than a static method during FHE computation. Guided by the performance model, we design an adaptive FPGA-based FHE accelerator that dynamically selects between HKS and KLSS during computation. We implement the accelerator on an Alveo U280 and evaluate it across multiple FHE benchmarks. Experimental results demonstrate that our adaptive solution achieves a 1.84−3.31×1.84-3.31\times speedup in bootstrapping latency and a 1.66−2.52×1.66-2.52\times speedup in secure image classification compared to state-of-the-art FPGA accelerators.

Index Terms—FPGA Accelerator, Fully Homomorphic Encryption, CKKS, Key Switching, KLSS

I. INTRODUCTION

Fully Homomorphic Encryption (FHE) enables computation directly on encrypted data without decryption, providing a powerful foundation for privacy-sensitive cloud applications. Despite its strong security guarantees, FHE introduces enormous computation and memory overheads, often remaining several orders of magnitude slower than computation on plaintext [1]. As a result, hardware acceleration has become essential for making FHE practical in real-world deployments.

FPGAs have become a popular solution for FHE acceleration. Modern FPGA platforms integrate High Bandwidth Memory (HBM), which helps address the memory bandwidth bottleneck caused by ciphertext expansion, where ciphertexts are typically two to three orders of magnitude larger than plaintexts. Prior FPGA-based FHE accelerators have primarily focused on optimizing individual operations (e.g., key-switching) [2]–[5] or a specific subroutine (e.g., the Number Theoretic Transform, or NTT) [6]–[8]. More recent work has begun to explore full-system FPGA accelerators [9]–[12] that support complete FHE workloads, including bootstrapping and end-to-end applications.

Among FHE operations, key-switching is one of the most computationally expensive. It can account for a 80% of total runtime [13], because it is required for each ciphertext multiplication and rotation operation. Since many FHE benchmarks, such as bootstrapping and practical applications, involve a large number of multiplications and rotations, key-switching is a major performance bottleneck. Consequently, improving the efficiency of key-switching is critical to improving the overall FHE performance.

Recent algorithmic advances have proposed efficient key-switching methods [14]–[18]. In particular, the KLSS method [18] reduces the computational complexity by lowering the number of required NTTs, which are the dominant cost in key-switching. However, this reduction in computation comes at the cost of increased memory footprint for evaluation keys and higher precision requirements. Therefore, the practical performance of KLSS depends heavily on the hardware architecture and memory capacity; it is not clear whether KLSS is always beneficial in FPGA-based FHE systems.

In this work, we investigate the efficient implementation of the KLSS key-switching algorithm on FPGA and compare its practical performance with the traditional hybrid key-switching (HKS) method. We determine the practical tradeoffs between these two methods and determine conditions when each method is preferable. To the best of our knowledge, this work presents the first FPGA-based FHE compute accelerator that supports the KLSS key-switching method as part of a full FHE pipeline. We show that neither KLSS nor HKS is universally optimal during computation. Therefore, we propose an adaptive architecture that dynamically selects between KLSS and HKS at runtime based on the computation depth and security parameter settings, achieving better overall performance. The main contributions are as follows:

• We propose a memory-efficient datapath for the KLSS tailored to FPGA devices with limited on-chip memory, avoiding intermediate ciphertext transfers to off-chip memory and improving data reuse and arithmetic intensity.

• We develop a performance model to analyze the trade-offs between HKS and KLSS. The model captures both computation and memory footprint and shows that neither method is universally optimal during FHE evaluation.

∗^{*} Both authors contributed equally.

  • Guided by the performance model, we design an accelerator that supports both HKS and KLSS and dynamically switches between them during runtime based on the computation depth and parameter configuration.

  • We implement the proposed accelerator on an Alveo U280 and evaluate it across multiple parameter sets and FHE benchmarks. The results show that our adaptive solution outperforms state-of-the-art (SOTA) FPGA-based designs by 1.84−3.31×1.84 - 3.31 \times on bootstrapping and 1.66−2.52×1.66 - 2.52 \times on secure image classification.

References (40)