Skip to main content

PyTFHE: An End-to-End Compilation and Execution Framework for Fully Homomorphic Encryption Applications

Publication ,  Conference
Ma, J; Xu, C; Wills, LW
Published in: Proceedings 2023 IEEE International Symposium on Performance Analysis of Systems and Software Ispass 2023
January 1, 2023

Fully Homomorphic Encryption (FHE) is a powerful cryptographic scheme that enables computation on encrypted data, which allows clients to offload computation to an untrusted third party without compromising data privacy. However, FHE has not yet been widely adopted due to its enormous computational overhead. Further, cryptographic software development requires specialized expertise and presents a significant challenge when applying FHE to a broad range of applications. We present PyTFHE, a framework that tackles these difficulties by enabling highly productive FHE application development and orders of magnitude more efficient FHE application execution. PyTFHE is built on top of the TFHE (Fast Fully Homomorphic Encryption over the Torus) scheme, which is an FHE scheme that supports gate-level evaluation and arbitrary depth of boolean circuits. PyTFHE is designed in a TFHE-specific approach, allowing state-of-the-art optimizations for TFHE applications. Specifically, PyTFHE features ChiselTorch, the first compiler that allows easy generations of privacy-preserving deep neural network models with PyTorch-compatible APIs. PyTFHE is also the first FHE framework that employs a powerful backend enabling efficient execution of TFHE applications on distributed CPU systems and high-performance GPUs. We demonstrate the effectiveness of PyTFHE by benchmarking the framework using VIP-Bench and implementing privacy-preserving deep neural networks and evaluating their performance on various systems. We compare the performance of our generated TFHE program execution with three existing frameworks, Google Transpiler, Cingulata, and E3. We show that PyTFHE achieves one to two orders of magnitude performance advantage.

Duke Scholars

Published In

Proceedings 2023 IEEE International Symposium on Performance Analysis of Systems and Software Ispass 2023

DOI

Publication Date

January 1, 2023

Start / End Page

24 / 34
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Ma, J., Xu, C., & Wills, L. W. (2023). PyTFHE: An End-to-End Compilation and Execution Framework for Fully Homomorphic Encryption Applications. In Proceedings 2023 IEEE International Symposium on Performance Analysis of Systems and Software Ispass 2023 (pp. 24–34). https://doi.org/10.1109/ISPASS57527.2023.00012
Ma, J., C. Xu, and L. W. Wills. “PyTFHE: An End-to-End Compilation and Execution Framework for Fully Homomorphic Encryption Applications.” In Proceedings 2023 IEEE International Symposium on Performance Analysis of Systems and Software Ispass 2023, 24–34, 2023. https://doi.org/10.1109/ISPASS57527.2023.00012.
Ma J, Xu C, Wills LW. PyTFHE: An End-to-End Compilation and Execution Framework for Fully Homomorphic Encryption Applications. In: Proceedings 2023 IEEE International Symposium on Performance Analysis of Systems and Software Ispass 2023. 2023. p. 24–34.
Ma, J., et al. “PyTFHE: An End-to-End Compilation and Execution Framework for Fully Homomorphic Encryption Applications.” Proceedings 2023 IEEE International Symposium on Performance Analysis of Systems and Software Ispass 2023, 2023, pp. 24–34. Scopus, doi:10.1109/ISPASS57527.2023.00012.
Ma J, Xu C, Wills LW. PyTFHE: An End-to-End Compilation and Execution Framework for Fully Homomorphic Encryption Applications. Proceedings 2023 IEEE International Symposium on Performance Analysis of Systems and Software Ispass 2023. 2023. p. 24–34.

Published In

Proceedings 2023 IEEE International Symposium on Performance Analysis of Systems and Software Ispass 2023

DOI

Publication Date

January 1, 2023

Start / End Page

24 / 34