TL;DR
FAB is the first FPGA-based accelerator designed specifically for bootstrappable Fully Homomorphic Encryption (FHE) using practical, secure parameters. By using a "balanced" architecture that matches compute power to memory bandwidth, FAB achieves a 213× speedup over CPUs and 1.5× over GPUs for bootstrapping, making private cloud computing significantly more viable.
What Problem Does This Paper Address?
Fully Homomorphic Encryption (FHE) is often called the "holy grail" of cryptography. It allows a cloud server to perform calculations on data while it remains encrypted—the server never sees the actual information. However, FHE has a "noise" problem: every operation adds a bit of random noise to the ciphertext. If the noise gets too high, the data becomes unreadable.
To compute indefinitely, you need bootstrapping, a process that "refreshes" the ciphertext to reduce noise. Unfortunately, bootstrapping is incredibly slow and memory-intensive. For example, training a simple logistic regression model on encrypted data can be over 7,000× slower than on plaintext. While researchers have proposed custom ASIC chips (like F1 or BTS) to solve this, those chips are expensive to build and often sit idle because they process data faster than the memory can provide it.
Methods
The authors introduce FAB (FPGA-based Accelerator for Bootstrappable FHE). Instead of trying to maximize raw compute cycles, they focused on a balanced design—ensuring the hardware never outpaces its memory bandwidth.
Key technical choices include:
- Hardware-Software Co-design: They optimized the CKKS encryption scheme parameters specifically for the Xilinx Alveo U280 FPGA, which features High Bandwidth Memory (HBM2).
- Limb-wise Processing: They broke large 1728-bit numbers into 54-bit "limbs." This specific width allows them to perfectly utilize the FPGA’s built-in Digital Signal Processing (DSP) slices and on-chip memory (URAM/BRAM).
- Smart Scheduling: FAB uses a modified "KeySwitch" datapath. Instead of performing all operations sequentially, it "greedily" processes data as soon as it arrives from memory, reducing the need to write intermediate results back to the slow main memory.
- Minimalist Compute: FAB uses only 256 functional units and a modest 300 MHz clock speed. This prevents the "compute-idle" problem seen in more aggressive ASIC designs.
Datasets
The researchers evaluated FAB using a real-world application: Logistic Regression (LR) training over encrypted data.
- Dataset: A subset of the MNIST database of handwritten digits (specifically comparing digits 3 and 8).
- Scale: 11,982 training samples with 196 features each.
- Configuration: They tested both a single-FPGA setup (FAB-1) and a multi-FPGA cloud setup (FAB-2) using eight FPGAs connected via 100G Ethernet.
Key Insights and Ideas
- The "Sweet Spot" of FPGAs: The authors argue that FPGAs are the ideal middle ground for FHE. They offer more flexibility than fixed ASICs and better integer performance than GPUs (which are designed for floating-point math, largely wasted on FHE's integer-only workloads).
- Memory is the Real Bottleneck: Previous accelerators focused on adding thousands of multipliers. FAB proves that a smaller number of multipliers, if kept 100% busy through smart memory management and prefetching, can outperform "beefier" hardware that spends half its time waiting for data.
- Practicality First: Unlike prior FPGA works that used "toy" parameters (low security or no bootstrapping), FAB uses parameters that provide 128-bit security, making it ready for actual sensitive data use cases.
Key Results
FAB demonstrates massive performance leaps over traditional hardware:
- Bootstrapping Latency: For a fully-packed ciphertext, FAB is 213× faster than a CPU (running the Lattigo library) and 1.5× faster than a high-end GPU.
- End-to-End Training: When scaled to 8 FPGAs for Logistic Regression training, FAB outperforms a CPU by 456× and a GPU by 9.5×.
- Efficiency vs. ASICs: While custom ASICs like BTS are technically faster in absolute time, FAB uses 32× fewer multipliers and 12× less on-chip memory, making it far more cost-effective and deployable on existing cloud infrastructure (like AWS F1 instances).
Limitations and Future Work
The primary limitation identified is scaling efficiency. In the multi-FPGA setup, the performance boost isn't perfectly linear (8 FPGAs don't give an 8× speedup). This is due to Amdahl’s Law: the bootstrapping process currently happens on a single FPGA, creating a bottleneck for the rest of the parallelized training tasks.
Future Work: The authors plan to investigate "Instruction Level Parallelism" for bootstrapping—essentially breaking a single bootstrapping operation across multiple FPGAs to further slash the time it takes to refresh encrypted data.
Summary updated