CipherDM: Secure Three-Party Inference for Diffusion Model Sampling

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Zhao, Xin, Chen, Xiaojun, Chen, Xudong, Li, He, Fan, Tingyu, Zhao, Zhendong
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866914943946719232
author Zhao, Xin
Chen, Xiaojun
Chen, Xudong
Li, He
Fan, Tingyu
Zhao, Zhendong
author_facet Zhao, Xin
Chen, Xiaojun
Chen, Xudong
Li, He
Fan, Tingyu
Zhao, Zhendong
contents Diffusion Models (DMs) achieve state-of-the-art synthesis results in image generation and have been applied to various fields. However, DMs sometimes seriously violate user privacy during usage, making the protection of privacy an urgent issue. Using traditional privacy computing schemes like Secure Multi-Party Computation (MPC) directly in DMs faces significant computation and communication challenges. To address these issues, we propose CipherDM, the first novel, versatile and universal framework applying MPC technology to DMs for secure sampling, which can be widely implemented on multiple DM based tasks. We thoroughly analyze sampling latency breakdown, find time-consuming parts and design corresponding secure MPC protocols for computing nonlinear activations including SoftMax, SiLU and Mish. CipherDM is evaluated on popular architectures (DDPM, DDIM) using MNIST dataset and on SD deployed by diffusers. Compared to direct implementation on SPU, our approach improves running time by approximately 1.084\times \sim 2.328\times, and reduces communication costs by approximately 1.212\times \sim 1.791\times.
format Preprint
id arxiv_https___arxiv_org_abs_2409_05414
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle CipherDM: Secure Three-Party Inference for Diffusion Model Sampling
Zhao, Xin
Chen, Xiaojun
Chen, Xudong
Li, He
Fan, Tingyu
Zhao, Zhendong
Cryptography and Security
Artificial Intelligence
Computer Vision and Pattern Recognition
Diffusion Models (DMs) achieve state-of-the-art synthesis results in image generation and have been applied to various fields. However, DMs sometimes seriously violate user privacy during usage, making the protection of privacy an urgent issue. Using traditional privacy computing schemes like Secure Multi-Party Computation (MPC) directly in DMs faces significant computation and communication challenges. To address these issues, we propose CipherDM, the first novel, versatile and universal framework applying MPC technology to DMs for secure sampling, which can be widely implemented on multiple DM based tasks. We thoroughly analyze sampling latency breakdown, find time-consuming parts and design corresponding secure MPC protocols for computing nonlinear activations including SoftMax, SiLU and Mish. CipherDM is evaluated on popular architectures (DDPM, DDIM) using MNIST dataset and on SD deployed by diffusers. Compared to direct implementation on SPU, our approach improves running time by approximately 1.084\times \sim 2.328\times, and reduces communication costs by approximately 1.212\times \sim 1.791\times.
title CipherDM: Secure Three-Party Inference for Diffusion Model Sampling
topic Cryptography and Security
Artificial Intelligence
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2409.05414