HE-Diffusion: Privacy-Preserving Diffusion Model using Homomorphic Encryption

We introduce a privacy-preserving stable diffusion framework leveraging homomorphic encryption, called HE-Diffusion, which primarily focuses on protecting the denoising phase of the diffusion process. HE-Diffusion is a tailored encryption framework specifically designed to align with the unique architecture of stable diffusion, ensuring both privacy and functionality. To address the inherent computational challenges, we propose a novel min-distortion method that enables efficient partial image encryption, significantly reducing the overhead without compromising the model’s output quality. Furthermore, we adopt a sparse tensor representation to expedite computational operations, enhancing the overall efficiency of the privacy-preserving diffusion process. We successfully implement the HE-based private preserving stable diffusion inference. The experimental results show that HE-Diffusion achieves 500X speedup compared with the baseline method, and reduces time cost of the homomorphically encrypted inference to the minute level. Both the performance and accuracy of the HE-Diffusion are on par with the plaintext counterpart. Our approach marks a significant step towards integrating advanced cryptographic techniques with state-of-the-art generative models, paving the way for privacy-preserving and efficient image generation in critical applications.

Read the Paper, Code available, Cite

                            @misc{chen2024privacypreserving,
                                title={Privacy-Preserving Diffusion Model Using Homomorphic Encryption},
                                author={Yaojian Chen and Qiben Yan},
                                year={2024},
                                eprint={2403.05794},
                                archivePrefix={arXiv},
                                primaryClass={cs.CR}
                            }

Team

HE-diffusion was discovered by the following team of academic researchers:

Contact us at chenyaojian17@gmail.com, qyan@msu.edu

Features