Privacy-Preserving Diffusion Model Using Homomorphic Encryption

Yaojian Chen, Qiben Yan
3/9/2024
13 citations
cs.CRcs.AI
diffusion-flow

Official code: HE-diffusion/HE-diffusion (18 stars, Jupyter Notebook, last commit 2024-04-30).

Abstract

In this paper, 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.

Show full abstract

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 HE-based privacy-preserving stable diffusion inference. The experimental results show that HE-Diffusion achieves 500 times 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.

View on arXivView PDF

Code Implementations(1)

183Jupyter Notebook, PythonMar 13, 20242 years agoNOASSERTION

Similar Papers

Cite this paper

@article{chen2024privacypreserving,
  title  = {Privacy-Preserving Diffusion Model Using Homomorphic Encryption},
  author = {Yaojian Chen and Qiben Yan},
  year   = {2024},
  eprint = {2403.05794},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.05794v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.05794.svg)](https://codeofpaper.com/paper/2403.05794)

Discussion