GIF-FHE: A Comprehensive Implementation and Evaluation of GPU-Accelerated FHE With Integer and Floating-Point Computing Power
Fully Homomorphic Encryption (FHE) allows computations on encrypted data without revealing the plaintext, garnering significant interest from both academic and industrial communities. However, its broader adoption has been hindered by performance limitations. Consequently, researchers have turned to GPUs for efficient FHE implementation. Nevertheless, most have predominantly favored integer units due to their ease of use, overlooking the considerable computational potential of floating-point units in GPUs. Recognizing this untapped floating-point computational power, our paper introduces <bold xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">GIF-FHE</b>, an extensive exploration and implementation of FHE, leveraging GPUs' integer and floating-point instructions for FHE acceleration. We develop a comprehensive suite of low-level and middle-level FHE primitives, offering multiple implementation variants with support for three word size configurations (<inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$64/52/32$</tex-math></inline-formula>-bit). Particularly, we make innovative use of floating-point implementations, employing a novel methodology to efficiently leverage the floating-point unit's fused multiply-add (FMA) instructions. This represents the pioneering integration of floating-point units into FHE acceleration. To bridge our highly-optimized FHE primitives with practical applications, this paper also provides a high-level FHE implementation and interfaces that can be directly applied by upper-level applications such as neural network inference. Finally, we undertake a comprehensive experiment evaluation and comparison involving three types of arithmetic: FP64/INT64/INT32 with varying word size configurations and computation units. Notably, our fundamental function implementations consistently outperform counterparts on the same platform, achieving speedups ranging from <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$2.0\times$</tex-math></inline-formula> to <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$4.2\times$</tex-math></inline-formula>. In the context of CKKS FHE schemes, our homomorphic operation implementation surpasses the state-of-the-art GPU-based solution with a speedup of up to <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$3.8\times$</tex-math></inline-formula>, and exceeds the performance of the widely adopted CPU-based library, SEAL, with a remarkable speedup of over <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$300\times$</tex-math></inline-formula>.
Authors
- Jiankuo Dong (ORCID: https://orcid.org/0000-0003-1693-3000)
- Jiwu Jing (ORCID: https://orcid.org/0000-0002-3409-6149)
- Jingqiang Lin (ORCID: https://orcid.org/0000-0003-1508-4879)
- Shoumeng Yan (ORCID: https://orcid.org/0009-0007-9580-5395)
- Fan Guang (ORCID: https://orcid.org/0000-0002-5389-0823)
- Fangyu Zheng (ORCID: https://orcid.org/0000-0003-0490-2485)
- Yuan Zhao (ORCID: https://orcid.org/0009-0006-9633-9480)
- Yixuan Song (ORCID: https://orcid.org/0000-0001-8226-367X)
- Wenxu Tang (ORCID: https://orcid.org/0009-0009-1761-3683)
- Tian Zhou (ORCID: https://orcid.org/0009-0009-1284-0182)
Institutions
- University of Science and Technology of China (CN)
- Nanjing University of Posts and Telecommunications (CN)
- State Key Laboratory of Cryptology (CN)
- University of Chinese Academy of Sciences (CN)
- University of Science and Technology Beijing (CN)
Publication Details
- Journal
- IEEE Transactions on Parallel and Distributed Systems
- Published
- 2025-05-28
- DOI
- https://doi.org/10.1109/tpds.2025.3574481
- Citations
- 3
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- article
- Field-Weighted Citation Impact
- 6.81