[Paper Review] BASALISC: Programmable Hardware Accelerator for BGV Fully Homomorphic Encryption
BASALISC is a programmable ASIC hardware accelerator for the BGV fully homomorphic encryption scheme, featuring a custom RISC-like ISA, a conflict-free 32 Tb/s radix-256 NTT architecture, and a generalized permutation unit that enables efficient bootstrapping and automorphisms. It achieves over 5,000× speedup over HElib by optimizing multipliers for NTT-friendly primes and integrating a dedicated MAC unit for key switching, enabling practical, high-throughput FHE computation with fully-packed bootstrapping.
Fully Homomorphic Encryption (FHE) allows for secure computation on encrypted data. Unfortunately, huge memory size, computational cost and bandwidth requirements limit its practicality. We present BASALISC, an architecture family of hardware accelerators that aims to substantially accelerate FHE computations in the cloud. BASALISC is the first to implement the BGV scheme with fully-packed bootstrapping -- the noise removal capability necessary for arbitrary-depth computation. It supports a customized version of bootstrapping that can be instantiated with hardware multipliers optimized for area and power. BASALISC is a three-abstraction-layer RISC architecture, designed for a 1 GHz ASIC implementation and underway toward 150mm2 die tape-out in a 12nm GF process. BASALISC's four-layer memory hierarchy includes a two-dimensional conflict-free inner memory layer that enables 32 Tb/s radix-256 NTT computations without pipeline stalls. Its conflict-resolution permutation hardware is generalized and re-used to compute BGV automorphisms without throughput penalty. BASALISC also has a custom multiply-accumulate unit to accelerate BGV key switching. The BASALISC toolchain comprises a custom compiler and a joint performance and correctness simulator. To evaluate BASALISC, we study its physical realizability, emulate and formally verify its core functional units, and we study its performance on a set of benchmarks. Simulation results show a speedup of more than 5,000 times over HElib -- a popular software FHE library.
Motivation & Objective
- To address the high computational and memory overhead of Fully Homomorphic Encryption (FHE) that limits its practical deployment in cloud environments.
- To design a domain-specific hardware accelerator that supports all BGV FHE operations, including fully-packed bootstrapping, which is essential for arbitrary-depth computation.
- To reduce area and power consumption in FHE accelerators by restricting multipliers to NTT-friendly primes without sacrificing functionality.
- To enable high-throughput, low-latency NTT and automorphism computations using a conflict-free memory hierarchy and generalized permutation logic.
- To provide a complete, formally verified, and physically realizable accelerator stack with a custom compiler and performance simulator.
Proposed method
- BASALISC employs a three-abstraction-layer RISC-like ISA to support diverse levels of hardware-software co-design and system-level optimization.
- It implements a four-level memory hierarchy with a 64 MB on-chip Ciphertext Buffer (CTB) and a conflict-free, two-dimensional memory layout enabling 32 Tb/s radix-256 NTT throughput without pipeline stalls.
- The architecture uses a dedicated permutation hardware unit that generalizes to compute both NTT transposes and BGV automorphisms using XOR-based permutations, eliminating the need for additional memory or logic.
- A custom multiply-accumulate (MAC) unit with an integrated 16-entry register file accelerates BGV key switching, especially hybrid key switching, by enabling asynchronous, independent execution from the CTB.
- The accelerator uses only NTT-friendly primes for multipliers, reducing logic area by 46% and power by 40% while maintaining compatibility with BGV bootstrapping.
- The design is implemented in a 12nm low-power Global Foundries process with a 150mm² die size and 1 GHz clock frequency, and is physically taped out with formal verification and emulation of all core functional units.
Experimental results
Research questions
- RQ1Can a single ASIC accelerator efficiently support all BGV FHE operations, including fully-packed bootstrapping, with high throughput and low latency?
- RQ2How can NTT and automorphism computations be accelerated using conflict-free memory layouts and generalized permutation logic without additional silicon area?
- RQ3To what extent can multipliers be restricted to NTT-friendly primes to reduce area and power while preserving full FHE functionality?
- RQ4What performance gain is achievable over software FHE libraries like HElib through a purpose-built, highly parallel hardware accelerator?
- RQ5Can a complete, formally verified, and physically realizable FHE accelerator be designed with a full-stack toolchain including compiler and simulator?
Key findings
- BASALISC achieves a speedup of over 5,000× compared to HElib on a set of FHE macro-benchmarks, demonstrating a major leap in practical FHE performance.
- The conflict-free memory layout and generalized permutation unit enable 32 Tb/s radix-256 NTT throughput without pipeline stalls, significantly improving arithmetic throughput.
- The reuse of the permutation hardware for both NTT transposes and BGV automorphisms avoids additional area cost, maintaining high efficiency across diverse operations.
- Restricting multipliers to NTT-friendly primes reduces logic area by 46% and power consumption by 40%, without compromising support for BGV bootstrapping.
- The custom MAC unit with an integrated 16-entry register file enables efficient execution of hybrid key switching loops, which are critical for high-depth FHE computations.
- The design has been formally verified and functionally emulated, with a 150mm² die size and 1 GHz frequency in a 12nm process, positioning it for physical tape-out and real-world deployment.
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.