MAD: Memory-Aware Design Techniques for Accelerating Fully Homomorphic Encryption
Rashmi Agrawal, Leo de Castro, Chiraag Juvekar, Anantha P. Chandrakasan, Vinod Vaikuntanathan, Ajay Joshi
Abstract
Cloud computing has made it easier for individuals and companies to get access to large compute and memory resources. However, it has also raised privacy concerns about the data that users share with the remote cloud servers. Fully homomorphic encryption (FHE) offers a solution to this problem by enabling computations over encrypted data. Unfortunately, all known constructions of FHE require a noise term for security, and this noise grows during computation. To perform unlimited computations on the encrypted data, we need to perform a periodic noise reduction step known as bootstrapping. This bootstrapping operation is memory-bound as it requires several GBs of data. This leads to orders of magnitude increase in the time required for operating on encrypted data as compared to unencrypted data.
In this work, we first present an in-depth analysis of the bootstrapping operation in the CKKS FHE scheme. Similar to other existing works, we observe that CKKS bootstrapping exhibits a low arithmetic intensity (<1 Op/byte). We then propose memory-aware design (MAD) techniques to accelerate the bootstrapping operation of the CKKS FHE scheme. Our proposed MAD techniques are agnostic of the underlying compute platform and can be equally applied to GPUs, CPUs, FPGAs, and ASICs. Our MAD techniques make use of several caching optimizations that enable maximal data reuse and perform reordering of operations to reduce the amount of data that needs to be transferred to/from the main memory. In addition, our MAD techniques include several algorithmic optimizations that reduce the number of data access pattern switches and the expensive NTT operations. Applying our MAD optimizations for FHE improves bootstrapping arithmetic intensity by 3×. For Logistic Regression (LR) training, by leveraging our MAD optimizations, the existing GPU design can get up to 3.5× improvement in performance for the same on-chip memory size. Similarly, the existing ASIC designs can get up to 27× and 57× improvement in performance for LR training and ResNet-20 inference, respectively,
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
8 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- EFFACT: A Highly Efficient Full-Stack FHE Acceleration Platform cites Efficient Bootstrapping for Approximate Homomorphic Encryption with Non-sparse Keys
- EFFACT: A Highly Efficient Full-Stack FHE Acceleration Platform cites F1: A Fast and Programmable Accelerator for Fully Homomorphic Encryption
- EFFACT: A Highly Efficient Full-Stack FHE Acceleration Platform cites BTS: an accelerator for bootstrappable fully homomorphic encryption
- EFFACT: A Highly Efficient Full-Stack FHE Acceleration Platform cites CraterLake: a hardware accelerator for efficient unbounded computation on encrypted data
- F1: A Fast and Programmable Accelerator for Fully Homomorphic Encryption cites GAZELLE: A Low Latency Framework for Secure Neural Network Inference
- Hydra: Scale-out FHE Accelerator Architecture for Secure Deep Learning on FPGA cites F1: A Fast and Programmable Accelerator for Fully Homomorphic Encryption
- Hydra: Scale-out FHE Accelerator Architecture for Secure Deep Learning on FPGA cites BTS: an accelerator for bootstrappable fully homomorphic encryption
- Hydra: Scale-out FHE Accelerator Architecture for Secure Deep Learning on FPGA cites CraterLake: a hardware accelerator for efficient unbounded computation on encrypted data
- BTS: an accelerator for bootstrappable fully homomorphic encryption cites Efficient Bootstrapping for Approximate Homomorphic Encryption with Non-sparse Keys
- BTS: an accelerator for bootstrappable fully homomorphic encryption cites F1: A Fast and Programmable Accelerator for Fully Homomorphic Encryption
- BTS: an accelerator for bootstrappable fully homomorphic encryption cites GAZELLE: A Low Latency Framework for Secure Neural Network Inference
- Leveraging ASIC AI Chips for Homomorphic Encryption cites F1: A Fast and Programmable Accelerator for Fully Homomorphic Encryption
- Leveraging ASIC AI Chips for Homomorphic Encryption cites BTS: an accelerator for bootstrappable fully homomorphic encryption
- Leveraging ASIC AI Chips for Homomorphic Encryption cites CraterLake: a hardware accelerator for efficient unbounded computation on encrypted data
- Leveraging ASIC AI Chips for Homomorphic Encryption cites GAZELLE: A Low Latency Framework for Secure Neural Network Inference
- Leveraging ASIC AI Chips for Homomorphic Encryption cites Cheddar: A Swift Fully Homomorphic Encryption Library Designed for GPU Architectures
- CraterLake: a hardware accelerator for efficient unbounded computation on encrypted data cites Efficient Bootstrapping for Approximate Homomorphic Encryption with Non-sparse Keys
- CraterLake: a hardware accelerator for efficient unbounded computation on encrypted data cites F1: A Fast and Programmable Accelerator for Fully Homomorphic Encryption
- CraterLake: a hardware accelerator for efficient unbounded computation on encrypted data cites GAZELLE: A Low Latency Framework for Secure Neural Network Inference
- Alchemist: A Unified Accelerator Architecture for Cross-Scheme Fully Homomorphic Encryption cites F1: A Fast and Programmable Accelerator for Fully Homomorphic Encryption
- Alchemist: A Unified Accelerator Architecture for Cross-Scheme Fully Homomorphic Encryption cites BTS: an accelerator for bootstrappable fully homomorphic encryption
- Alchemist: A Unified Accelerator Architecture for Cross-Scheme Fully Homomorphic Encryption cites CraterLake: a hardware accelerator for efficient unbounded computation on encrypted data
- Cheddar: A Swift Fully Homomorphic Encryption Library Designed for GPU Architectures cites EFFACT: A Highly Efficient Full-Stack FHE Acceleration Platform
- Cheddar: A Swift Fully Homomorphic Encryption Library Designed for GPU Architectures cites Efficient Bootstrapping for Approximate Homomorphic Encryption with Non-sparse Keys
- Cheddar: A Swift Fully Homomorphic Encryption Library Designed for GPU Architectures cites F1: A Fast and Programmable Accelerator for Fully Homomorphic Encryption
- Cheddar: A Swift Fully Homomorphic Encryption Library Designed for GPU Architectures cites BTS: an accelerator for bootstrappable fully homomorphic encryption
- Cheddar: A Swift Fully Homomorphic Encryption Library Designed for GPU Architectures cites CraterLake: a hardware accelerator for efficient unbounded computation on encrypted data
- Cheddar: A Swift Fully Homomorphic Encryption Library Designed for GPU Architectures cites GAZELLE: A Low Latency Framework for Secure Neural Network Inference
Cited by top-tier papers8
- EFFACT: A Highly Efficient Full-Stack FHE Acceleration PlatformYi Huang, Xinsheng Gong, Xiangyu Kong, Dibei Chen et al.HPCA 2025 · 10 citations
- Hydra: Scale-out FHE Accelerator Architecture for Secure Deep Learning on FPGAYinghao Yang, Xicheng Xu, Haibin Zhang, Jie Song et al.HPCA 2025 · 7 citations
- Alchemist: A Unified Accelerator Architecture for Cross-Scheme Fully Homomorphic EncryptionJianan Mu, Husheng Han, Shangyi Shi, Jing Ye et al.DAC 2024 · 7 citations
- Cheddar: A Swift Fully Homomorphic Encryption Library Designed for GPU ArchitecturesWonseok Choi, Jongmin Kim, Jung Ho AhnASPLOS 2026 · 6 citations
- Leveraging ASIC AI Chips for Homomorphic EncryptionJianming Tong, Tianhao Huang, Jingtian Dang, Leo de Castro et al.HPCA 2026 · 2 citations
Builds on7
- GAZELLE: A Low Latency Framework for Secure Neural Network InferenceChiraag Juvekar, Vinod Vaikuntanathan, Anantha P. ChandrakasanUSENIX Security 2018 · 1,075 citations
- F1: A Fast and Programmable Accelerator for Fully Homomorphic EncryptionNikola Samardzic, Axel Feldmann, Aleksandar Krastev, Srinivas Devadas et al.MICRO 2021 · 294 citations
- CraterLake: a hardware accelerator for efficient unbounded computation on encrypted dataNikola Samardzic, Axel Feldmann, Aleksandar Krastev, Nathan Manohar et al.ISCA 2022 · 205 citations
- BTS: an accelerator for bootstrappable fully homomorphic encryptionSangpyo Kim, Jongmin Kim, Michael Jaemin Kim, Wonkyung Jung et al.ISCA 2022 · 184 citations
- Efficient Bootstrapping for Approximate Homomorphic Encryption with Non-sparse KeysJean-Philippe Bossuat, Christian Mouchet, Juan Ramón Troncoso-Pastoriza, Jean-Pierre HubauxEUROCRYPT 2021 · 179 citations
Related papers
- FAB: An FPGA-based Accelerator for Bootstrappable Fully Homomorphic EncryptionRashmi Agrawal, Leo de Castro, Guowei Yang, Chiraag Juvekar et al.HPCA 2023 · 136 citations
- HEAP: A Fully Homomorphic Encryption Accelerator with Parallelized BootstrappingRashmi S. Agrawal, Anantha P. Chandrakasan, Ajay JoshiISCA 2024 · 39 citations
- ARK: Fully Homomorphic Encryption Accelerator with Runtime Data Generation and Inter-Operation Key ReuseJongmin Kim, Gwangho Lee, Sangpyo Kim, Gina Sohn et al.MICRO 2022 · 160 citations
- Strix: An End-to-End Streaming Architecture with Two-Level Ciphertext Batching for Fully Homomorphic Encryption with Programmable BootstrappingAdiwena Putra, Prasetiyo, Yi Chen, John Kim et al.MICRO 2023 · 27 citations
- FPT: A Fixed-Point Accelerator for Torus Fully Homomorphic EncryptionMichiel Van Beirendonck, Jan-Pieter D'Anvers, Furkan Turan, Ingrid VerbauwhedeCCS 2023 · 28 citations
