Paper 2025/1096

CuFDFB: Fast and Private Computation on Non-Linear Functions Using FHE

Shutong Jin
Shiyu Shen
Hao Yang
Donglong Chen
Wangchen Dai
Ray C. C. Cheung
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.

PDF
BibTeX
ePrint ↗
@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}
}
Category
Implementation
License
CC BY-NC
Submitted
Versions

Report a problem

Comments

Log in or create an account

Privacy