Introduction
Fully Homomorphic Encryption (FHE) is often regarded as the "gold standard" of privacy-preserving computation. It enables a cloud server to perform operations on data while it remains encrypted, ensuring the server never accesses the underlying plaintext. However, FHE faces a significant technical hurdle: the "noise" problem. Every mathematical operation performed on a ciphertext increases its inherent noise; if this noise exceeds a certain threshold, the data becomes unrecoverable.
To enable indefinite computation, FHE requires bootstrapping, a computationally intensive process that "refreshes" the ciphertext to reduce noise. Historically, bootstrapping has been the primary bottleneck, often making encrypted operations thousands of times slower than their plaintext counterparts. While custom ASIC solutions have been proposed, they are often cost-prohibitive and suffer from "compute-idle" issues where processing power outstrips memory bandwidth. This paper introduces FAB (FPGA-based Accelerator for Bootstrappable FHE), a balanced architecture designed to bridge the gap between flexibility and performance.
The FAB Architecture: A Balanced Design
The core philosophy behind FAB is a "balanced design" that matches compute power to available memory bandwidth. Rather than maximizing raw multipliers, the researchers focused on ensuring that the hardware never outpaces its memory throughput, specifically leveraging the High Bandwidth Memory (HBM2) found on modern FPGAs like the Xilinx Alveo U280.
Key Technical Innovations
- Limb-wise Processing: FAB decomposes large 1728-bit numbers into 54-bit "limbs." This specific width is optimized for the FPGA’s built-in Digital Signal Processing (DSP) slices and on-chip memory structures (URAM and BRAM). This granularity allows for efficient parallel processing without the overhead of massive bit-width arithmetic.
- Hardware-Software Co-design: The system optimizes CKKS encryption scheme parameters specifically for the FPGA's hardware constraints. By aligning the cryptographic parameters with the physical layout of the chip, FAB achieves higher utilization of silicon resources.
- Smart Scheduling and Greedy Processing: FAB utilizes a modified "KeySwitch" datapath. Instead of sequential execution, it processes data "greedily" as it arrives from memory. This reduces the frequency of writing intermediate results back to main memory, significantly lowering latency.
Performance and Results
The researchers evaluated FAB using a real-world Logistic Regression (LR) training task on the MNIST dataset. The results demonstrate that FAB provides a viable path for practical, secure cloud computing:
- Bootstrapping Speed: For a fully-packed ciphertext, FAB achieves a 213× speedup over a CPU (using the Lattigo library) and is 1.5× faster than a high-end GPU. Unlike GPUs, which are optimized for floating-point math, FAB's integer-focused design is perfectly suited for FHE workloads.
- Scalability: In a multi-FPGA configuration (FAB-2) using eight FPGAs connected via 100G Ethernet, the system outperformed a CPU by 456× and a GPU by 9.5× for end-to-end training.
- Resource Efficiency: Compared to proposed ASICs like BTS, FAB uses 32× fewer multipliers and 12× less on-chip memory. This efficiency makes it far more practical for deployment in existing cloud infrastructure, such as AWS F1 instances.
Conclusion and Future Outlook
FAB proves that FPGAs are an ideal middle ground for FHE acceleration, offering the necessary flexibility to handle evolving cryptographic standards while providing massive performance gains over general-purpose hardware. While current multi-FPGA scaling is limited by Amdahl’s Law—specifically the sequential nature of the bootstrapping bottleneck—future work will focus on "Instruction Level Parallelism" to distribute a single bootstrapping operation across multiple FPGAs. This evolution will further reduce the time required to refresh encrypted data, bringing us closer to a future where private cloud computing is the default, not the exception.
Summary updated