[Paper Review] ARK: Fully Homomorphic Encryption Accelerator with Runtime Data Generation and Inter-Operation Key Reuse
ARK is a domain-specific accelerator for Fully Homomorphic Encryption (FHE) that overcomes off-chip memory bandwidth bottlenecks through algorithm-architecture co-design. By introducing minimum key-switching and on-the-fly limb extension, ARK reduces off-chip memory access by 88%, enabling full on-chip working set utilization and achieving 2,353× higher multiplicative throughput and 18× faster logistic regression training than prior work, with real-time ResNet-20 inference in 0.125 seconds.
Homomorphic Encryption (HE) is one of the most promising post-quantum cryptographic schemes that enable privacy-preserving computation on servers. However, noise accumulates as we perform operations on HE-encrypted data, restricting the number of possible operations. Fully HE (FHE) removes this restriction by introducing the bootstrapping operation, which refreshes the data; however, FHE schemes are highly memory-bound. Bootstrapping, in particular, requires loading GBs of evaluation keys and plaintexts from off-chip memory, which makes FHE acceleration fundamentally bottlenecked by the off-chip memory bandwidth. In this paper, we propose ARK, an Accelerator for FHE with Runtime data generation and inter-operation Key reuse. ARK enables practical FHE workloads with a novel algorithm-architecture co-design to accelerate bootstrapping. We first eliminate the off-chip memory bandwidth bottleneck through runtime data generation and inter-operation key reuse. This approach enables ARK to fully exploit on-chip memory by substantially reducing the size of the working set. On top of such algorithmic enhancements, we build ARK microarchitecture that minimizes on-chip data movement through an efficient, alternating data distribution policy based on the data access patterns and a streamlined dataflow organization of the tailored functional units -- including base conversion, number-theoretic transform, and automorphism units. Overall, our co-design effectively handles the heavy computation and data movement overheads of FHE, drastically reducing the cost of HE operations, including bootstrapping.
Motivation & Objective
- Address the severe off-chip memory bandwidth bottleneck in FHE hardware acceleration, particularly for bootstrapping operations.
- Overcome the limitations of existing accelerators that are constrained by high off-chip memory access due to large, single-use evaluation keys and plaintexts.
- Enable practical deployment of FHE workloads by drastically reducing the working set size through algorithmic optimizations.
- Design a specialized microarchitecture that minimizes on-chip data movement and exploits increased computational intensity from algorithmic enhancements.
- Achieve real-time performance for privacy-preserving machine learning workloads, such as CNN inference and logistic regression training, on encrypted data.
Proposed method
- Introduce minimum key-switching, an algorithmic optimization that reduces redundant key-switching operations during bootstrapping by reusing keys across operations.
- Propose on-the-fly limb extension, which generates data elements at runtime instead of preloading them, minimizing off-chip memory access.
- Co-design the ARK microarchitecture with a data distribution policy that adapts to two distinct data access patterns in FHE operations, improving dataflow efficiency.
- Implement specialized functional units (FUs) for core FHE operations: base conversion (BConv), number-theoretic transform (NTT), and automorphism, optimized for low data movement.
- Organize the chip into two logical regions to streamline dataflow and reduce on-chip data movement, enhancing memory bandwidth utilization.
- Integrate a streamlined dataflow architecture that synchronizes the operation of FUs through a policy tailored to the access patterns of CKKS bootstrapping.
Experimental results
Research questions
- RQ1How can the off-chip memory bandwidth bottleneck in FHE bootstrapping be mitigated through algorithmic innovations?
- RQ2To what extent can runtime data generation and inter-operation key reuse reduce the working set size in FHE accelerators?
- RQ3Can a co-designed accelerator architecture fully exploit the reduced working set to achieve high throughput and low latency?
- RQ4What performance improvements can be achieved in real-world FHE workloads like logistic regression and CNN inference using the proposed optimizations?
- RQ5How does ARK compare in performance and efficiency to state-of-the-art FHE accelerators such as F1 and BTS?
Key findings
- ARK reduces off-chip memory access by 88% during bootstrapping by eliminating redundant data transfers through minimum key-switching and on-the-fly limb extension.
- The co-designed ARK microarchitecture achieves 2,353× higher multiplicative throughput compared to the state-of-the-art HE accelerator F1 [87].
- ARK enables real-time encrypted inference on the ResNet-20 model in 0.125 seconds, representing an 18,214× speedup over a baseline CPU implementation.
- ARK improves logistic regression training performance by 18× over the prior state-of-the-art accelerator.
- The ARK accelerator is sized at 418.3 mm² and consumes up to 281.3W, demonstrating high-area and power efficiency for practical deployment.
- The proposed algorithmic optimizations allow the entire reduced working set to be stored on-chip, eliminating the need for frequent off-chip memory access and enabling full utilization of on-chip memory and logic.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.