Skip to main content
QUICK REVIEW

[Paper Review] FAB: An FPGA-based Accelerator for Bootstrappable Fully Homomorphic Encryption

Rashmi Agrawal, Leo de Castro|arXiv (Cornell University)|Jul 25, 2022
Cryptography and Data SecurityComputer Science8 citations
TL;DR

FAB is an FPGA-based accelerator that enables efficient, bootstrappable fully homomorphic encryption (FHE) for practical parameter sets, overcoming memory bandwidth bottlenecks through algorithm-architecture co-design. It achieves 456× speedup over CPU and 6.5× over GPU for logistic regression training, outperforming prior FPGA and GPU accelerators while matching ASIC performance at a fraction of the cost.

ABSTRACT

FHE offers protection to private data on third-party cloud servers by allowing computations on the data in encrypted form. However, to support general-purpose encrypted computations, all existing FHE schemes require an expensive operation known as bootstrapping. Unfortunately, the computation cost and the memory bandwidth required for bootstrapping add significant overhead to FHE-based computations, limiting the practical use of FHE. In this work, we propose FAB, an FPGA-based accelerator for bootstrappable FHE. Prior FPGA-based FHE accelerators have proposed hardware acceleration of basic FHE primitives for impractical parameter sets without support for bootstrapping. FAB, for the first time ever, accelerates bootstrapping (along with basic FHE primitives) on an FPGA for a secure and practical parameter set. The key contribution of our work is to architect a balanced FAB design, which is not memory bound. To this end, we leverage recent algorithms for bootstrapping while being cognizant of the compute and memory constraints of our FPGA. We use a minimal number of functional units for computing, operate at a low frequency, leverage high data rates to and from main memory, utilize the limited on-chip memory effectively, and perform operation scheduling carefully. For bootstrapping a fully-packed ciphertext, while operating at 300 MHz, FAB outperforms existing state-of-the-art CPU and GPU implementations by 213x and 1.5x respectively. Our target FHE application is training a logistic regression model over encrypted data. For logistic regression model training scaled to 8 FPGAs on the cloud, FAB outperforms a CPU and GPU by 456x and 6.5x and provides competitive performance when compared to the state-of-the-art ASIC design at a fraction of the cost.

Motivation & Objective

  • To address the performance bottleneck of FHE bootstrapping, which is severely limited by memory bandwidth in prior hardware accelerators.
  • To design an FPGA-based accelerator that supports practical, secure parameter sets for CKKS FHE, including full bootstrapping, unlike prior FPGA accelerators that only support small parameter sets.
  • To achieve high performance and resource efficiency by co-designing FHE algorithms with FPGA hardware constraints, avoiding compute idle time due to memory bottlenecks.
  • To enable end-to-end secure machine learning workloads—specifically logistic regression training—on FPGAs with competitive performance compared to ASICs.
  • To demonstrate that a balanced, memory-efficient FPGA design can outperform general-purpose CPUs and GPUs, and rival specialized ASICs, for bootstrappable FHE.

Proposed method

  • Co-designing the FHE bootstrapping algorithm with FPGA constraints using state-of-the-art bootstrapping techniques to minimize memory access and maximize compute utilization.
  • Implementing a minimal set of 256 functional units for modular arithmetic operations, carefully scheduled to support pipelined and parallel execution of FHE primitives.
  • Optimizing data movement by leveraging high-bandwidth memory (HBM2) on the Xilinx Alveo U280 FPGA and minimizing on-chip memory usage through efficient buffering and data reuse.
  • Using low clock frequency (300 MHz) to reduce power and area, while compensating with high parallelism and efficient operation scheduling to maintain throughput.
  • Architecting a balanced system where compute and memory are tightly synchronized, avoiding the memory bandwidth bottleneck that plagues prior ASIC accelerators like F1 and BTS.
  • Scaling the design across eight FPGAs in a cloud environment to evaluate multi-device performance for large-scale FHE workloads.

Experimental results

Research questions

  • RQ1Can an FPGA-based accelerator achieve practical bootstrapping performance for CKKS FHE with secure parameter sets, overcoming the memory bandwidth bottleneck seen in prior ASICs?
  • RQ2How can algorithmic optimizations and architectural co-design be leveraged to balance compute and memory usage on an FPGA for FHE workloads?
  • RQ3To what extent can an FPGA accelerator match or exceed the performance of specialized ASICs for bootstrappable FHE while remaining cost-effective and deployable in public cloud environments?
  • RQ4What is the performance gain of an FPGA accelerator over CPUs and GPUs for end-to-end FHE-based logistic regression training with full bootstrapping?
  • RQ5Can operation scheduling and memory management techniques on FPGAs eliminate the idle compute problem seen in memory-bound ASIC accelerators?

Key findings

  • FAB achieves 213× speedup over state-of-the-art CPU implementations and 1.5× over GPU for bootstrapping a fully-packed ciphertext at 300 MHz on a single Xilinx Alveo U280 FPGA.
  • For logistic regression training scaled across eight FPGAs, FAB delivers 456× speedup over CPU and 6.5× over GPU, significantly outperforming general-purpose hardware.
  • FAB’s performance is competitive with the state-of-the-art ASIC design for bootstrappable FHE, despite using off-the-shelf FPGA hardware and costing a fraction of the ASIC.
  • The accelerator avoids compute idle time by balancing memory bandwidth and compute resources through smart operation scheduling and efficient use of on-chip memory and HBM2 bandwidth.
  • FAB supports a secure, practical parameter set for CKKS FHE, enabling end-to-end applications like logistic regression training with full bootstrapping—unlike prior FPGA accelerators that only support small parameter sets.
  • The system is deployable in public cloud environments, as all required hardware and software components are available in commercial cloud FPGA platforms.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.