TL;DR
This paper provides a comprehensive survey of existing Fully Homomorphic Encryption (FHE) accelerators, analyzing their evolution and performance. It highlights the critical need for hardware acceleration to overcome FHE's inherent inefficiency and offers insights into future design directions for more practical and performant FHE systems.
What Problem Does This Paper Address?
Fully Homomorphic Encryption (FHE) is a revolutionary technology that allows computations on encrypted data without decryption, promising unprecedented privacy. However, FHE is notoriously inefficient due to complex polynomial operations and demanding ciphertext maintenance. This inefficiency is a major roadblock to its widespread adoption in real-world applications. While numerous hardware accelerators have emerged to tackle this, there's a lack of a systematic overview and comparative analysis, making it difficult for researchers and developers to understand the landscape and make informed design choices. This paper aims to fill that gap by providing a structured survey and evaluation of existing FHE accelerators.
Methods
The authors conducted a systematic review of 14 FHE accelerators, categorizing them by hardware (CPU, GPU, FPGA, ASIC) and design approach (software-only, hardware-software co-design). They analyzed the evolution of these accelerators, identifying trends and challenges. A key part of their methodology involved performing testbed evaluations of representative open-source accelerators to provide quantitative performance comparisons. For accelerators that are not open-source, they relied on results reported in their original papers. The evaluation focused on core FHE operations like NTT (Number Theoretic Transform) and key-switching, as well as end-to-end performance on deep and shallow applications.
Datasets
Not discussed in the paper. The paper focuses on evaluating the performance of FHE accelerators on cryptographic operations and representative FHE applications (e.g., ResNet20, Logistic Regression, LoLa-MNIST, LoLa-CIFAR), rather than on training or evaluating machine learning models on specific datasets.
Key Insights and Ideas
- The FHE inefficiency bottleneck: The core of FHE's slowness lies in complex polynomial computations and the overhead of ciphertext maintenance operations like key-switching and bootstrapping.
- Evolution towards ASICs: There's a clear trend from general-purpose hardware (CPU, GPU) to more specialized solutions like FPGAs and, increasingly, ASICs, driven by the need for higher performance and efficiency.
- Software/Hardware Co-design is Crucial: Simply throwing more powerful hardware at FHE isn't enough. Effective co-design of algorithms and hardware, along with intelligent scheduling, is key to unlocking performance.
- Programmability is Gaining Importance: As FHE applications become more diverse, accelerators need to support a wider range of cryptographic parameters without requiring hardware reconfiguration.
- Bootstrapping is a Major Challenge: Enabling "unlimited" homomorphic operations through bootstrapping is a significant focus, but it introduces substantial computational and memory overhead.
- Memory Access is a Persistent Bottleneck: Even with advanced hardware, intensive memory access for pre-computed parameters and intermediate results remains a critical performance limiter.
- No One-Size-Fits-All: Different FHE schemes and applications have varying computational profiles, meaning a single accelerator design might not be optimal for all scenarios.
Key Results
- Significant Acceleration Ratios: Accelerators can achieve substantial speedups. For example, ASIC-based accelerators like F1 demonstrated up to 20546.9x acceleration for NTT compared to a baseline CPU.
- GPU vs. FPGA Trade-offs: While GPUs offer good performance (e.g., 100x achieved over 100x acceleration), FPGAs, despite their flexibility, can be limited by their architecture and clock speed, sometimes underperforming high-end GPUs.
- ASIC Dominance for Deep Applications: For computationally intensive tasks requiring bootstrapping (deep applications), ASIC designs generally outperform FPGA and GPU solutions. For instance, BTS was 2.6x to 7.8x faster than FAB and TensorFHE on a Logistic Regression task.
- Impact of On-chip Storage: Increasing on-chip SRAM significantly improves bootstrapping performance, but the gains plateau once sufficient memory is available.
- End-to-End Performance Varies: While some accelerators excel at specific operations like NTT, their end-to-end performance on complex FHE tasks can be hindered by other factors, such as inefficient bootstrapping or memory bottlenecks.
Limitations and Future Work
- Limitations:
- Many advanced ASIC-based accelerators are expensive and not open-source, hindering reproducibility and broader adoption.
- Some accelerators, particularly FPGA-based ones, struggle with generality due to fixed hardware configurations.
- The performance of some accelerators is highly dependent on specific parameter choices, leading to sub-optimal results in other scenarios.
- The overhead of software-hardware interaction can be significant, especially for complex end-to-end applications.
- Future Work:
- Application-driven Design: Tailoring accelerator designs to specific FHE applications (e.g., private set intersection, CNN inference) to optimize performance and cost.
- Unified Word-wise & Bit-wise Support: Developing accelerators that can efficiently handle both types of FHE schemes and manage ciphertext switching between them.
- Enhanced Software/Hardware Co-design: Integrating FHE accelerator compilers with general FHE compilers for better end-to-end optimization.
- Scale-out Architectures: Moving beyond single-accelerator optimization to explore connecting multiple accelerators via networking for distributed FHE computation.
- NTRU-based Schemes: Investigating accelerators for modern NTRU-based FHE schemes, which offer advantages in memory consumption and computation speed.
Summary updated