Paper 2025/1096
CuFDFB: Fast and Private Computation on Non-Linear Functions Using FHE
Abstract
Privacy-preserving neural network inference using Fully Homomorphic Encryption (FHE) faces significant challenges in efficiently evaluating non-polynomial functions, such as activation functions, which are critical for introducing non-linearity in neural networks. Full-Domain Functional Bootstrap (FDFB) algorithms provide a promising solution by enabling the evaluation of arbitrary functions while simultaneously refreshing ciphertexts to manage noise accumulation. Despite their theoretical advantages, the practicality of FDFB algorithms has been limited by excessive computational overhead, often exceeding 1000 ms per ciphertext, which restricts their scalability for large neural networks. To overcome the computational bottlenecks of FDFB, we have re-engineered the algorithms for massively parallel execution on GPUs. Our primary contribution is a hierarchical parallelization strategy that exploits concurrency at the thread, stream, and device levels. A key optimization involves the use of CUDA streams to create a data pipeline that effectively mitigates the overhead of memory transfers between the host and device. This optimized architecture achieves a significant speedup of up to 524$\times$ compared to CPU-based implementations. Our implementation maintains full precision for evaluating various activation functions, confirming its viability for large-scale, privacy-preserving machine learning tasks and paving the way for practical FHE-based deep learning.
Metadata
- Available format(s)
-
PDF
- Category
- Implementation
- Publication info
- Preprint.
- Keywords
- Fully Homomorphic EncryptionPrivacy-Preserving Machine LearningTFHEGPU Acceleration
- Contact author(s)
-
shutong jin @ my cityu edu hk
crypto @ sher1e dev
crypto @ d4rk dev
donglongchen @ uic edu cn
daiwch @ mail sysu edu cn
r cheung @ cityu edu hk - History
- 2025-06-12: approved
- 2025-06-11: received
- See all versions
- Short URL
- https://ia.cr/2025/1096
- License
-
CC BY-NC
BibTeX
@misc{cryptoeprint:2025/1096,
author = {Shutong Jin and Shiyu Shen and Hao Yang and Donglong Chen and Wangchen Dai and Ray C. C. Cheung},
title = {{CuFDFB}: Fast and Private Computation on Non-Linear Functions Using {FHE}},
howpublished = {Cryptology {ePrint} Archive, Paper 2025/1096},
year = {2025},
url = {https://eprint.iacr.org/2025/1096}
}