CipherDM: Secure Three-Party Inference for Diffusion Model Sampling
<|reference_start|>CipherDM: Secure Three-Party Inference for Diffusion Model Sampling: 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.<|reference_end|>
@article{zhao2024cipherdm:,
    title={CipherDM: Secure Three-Party Inference for Diffusion Model Sampling},
    author={Xin Zhao, Xiaojun Chen, Xudong Chen, He Li, Tingyu Fan, Zhendong Zhao},
    journal={arXiv preprint arXiv:2409.05414},
    year={2024},
    archivePrefix={arXiv},
    eprint={2409.05414},
    primaryClass={cs.CR cs.AI cs.CV}
}