GPU Acceleration for FHEW/TFHE Bootstrapping

Yu Xiao, Feng-Hao Liu, Yu-Te Ku, Ming-Chien Ho, Chih-Fan Hsu, Ming-Ching Chang, Shih-Hao Hung, Wei-Chao ChenIACR Trans. Cryptogr. Hardw. Embed. Syst 2025

Introduction

Fully Homomorphic Encryption (FHE) represents a paradigm shift in data privacy, enabling computation on encrypted data without decryption. However, the practical adoption of FHE is hindered by the accumulation of mathematical noise during calculations. To prevent noise from rendering ciphertexts unreadable, a "refresh" operation known as bootstrapping is required. Bootstrapping is the primary computational bottleneck in FHE schemes like FHEW and TFHE.

While previous GPU-accelerated libraries like cuFHE or NuFHE demonstrated potential, they were often constrained by "brittle" implementations. These libraries typically attempted to fit the entire bootstrapping operation into a single GPU Streaming Multiprocessor (SM), limiting flexibility and preventing the use of larger, high-precision parameters necessary for complex operations like functional bootstrapping (e.g., evaluating ReLU in neural networks).

Methodology: Multi-Block Parallelization and FFT

To overcome these limitations, this work introduces a novel GPU acceleration strategy centered on multi-block parallelization. Unlike prior methods that force a one-to-one mapping between a bootstrapping operation and a single GPU thread block, this approach adaptively partitions the workload across multiple blocks based on the "gadget decomposition length" ($d_g$). This architectural shift allows the system to scale to larger cryptographic parameters that would otherwise exceed the memory or thread limits of a single SM.

Figure 1: The proposed bootstrapping workflow, illustrating the multi-block decomposition and FFT-based polynomial multiplication pipeline.

The implementation leverages Fast Fourier Transforms (FFT) for polynomial multiplication instead of the Number Theoretic Transform (NTT). While NTT avoids precision loss, modern GPUs are natively optimized for floating-point arithmetic, making FFT significantly faster in practice. To mitigate the inherent precision limits of floating-point numbers, the researchers developed a refined empirical error analysis model, ensuring that "approximation noise" does not lead to decryption failures even with high-precision 54-bit moduli. Furthermore, hardware-specific optimizations, including CUDA Cooperative Groups for cross-block synchronization and Fused Multiply-Add (FMA) instructions, were employed to enhance core operation speeds.

Experimental Evaluation

The framework was evaluated using two primary benchmarks: encrypted neural network inference on the MNIST dataset and private decision tree classification on the Iris dataset.

The results demonstrate a substantial performance leap. The system achieved an 18x–20x speedup compared to a 64-thread server-class CPU (AMD Ryzen Threadripper 3970X). Notably, it outperformed TFHE-rs, the current industry standard, by up to 1.69x in gate evaluation.

Figure 2: Performance comparison between the proposed method and previous state-of-the-art (SoTA) across various applications.

As shown in the table above, the proposed method achieves a 30.3x speedup for non-polynomial functions and reduces MNIST inference time to just 0.04 seconds per image—the fastest reported time for a 128-bit security level. Decision tree classification on the Iris dataset was completed in 0.38 seconds, a nearly 5x improvement over previous implementations.

Discussion and Future Work

The core innovation of this research lies in breaking the "Single SM" constraint. By recognizing that the bottleneck was spatial rather than purely computational, the authors unlocked the ability to use more secure and complex FHE parameters. Additionally, the architecture demonstrates near-linear scalability; a multi-GPU setup (8 GPUs) provided a ~7x boost in throughput, indicating readiness for data-center-scale deployment.

Future research will focus on integrating Tensor Cores to further accelerate matrix-like multiplications and extending the framework to support SIMD-type batching for third-generation FHE schemes, which could allow for the simultaneous processing of multiple data points during a single bootstrapping operation.

Summary updated

BibTeX
@article{xiao2025gpu,
  author = {Yu Xiao and Feng-Hao Liu and Yu-Te Ku and Ming-Chien Ho and Chih-Fan Hsu and Ming-Ching Chang and Shih-Hao Hung and Wei-Chao Chen},
  title = {{GPU Acceleration for FHEW/TFHE Bootstrapping}},
  journal = {IACR Trans. Cryptogr. Hardw. Embed. Syst.},
  year = {2025},
  doi = {10.46586/tches.v2025.i1.314-339},
}
Figure