arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.05414cs.CRcs.AIcs.CV
收藏

CipherDM:面向扩散模型采样的安全三方推理

CipherDM: Secure Three-Party Inference for Diffusion Model Sampling

University of Chinese Academy of Sciences(中国科学院大学);Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所)

Xin Zhao, Xiaojun Chen, Xudong Chen, He Li, Tingyu Fan, Zhendong Zhao

AI总结:

提出 CipherDM 安全 MPC 框架,通过定制 SoftMax、SiLU 和 Mish 协议实现扩散模型安全采样,并在 DDPM、DDIM 与 SD 上显著降低运行时间和通信开销。

摘要:

扩散模型(Diffusion Models,DMs)在图像生成中取得了最先进的合成结果,并已应用于多个领域。然而,DMs 在使用过程中有时会严重侵犯用户隐私,因此隐私保护成为一个紧迫问题。将安全多方计算(MPC)等传统隐私计算方案直接用于 DMs,会面临显著的计算和通信挑战。为解决这些问题,我们提出 CipherDM,这是首个将 MPC 技术应用于 DMs 以实现安全采样的新颖、通用且统一的框架,可广泛部署于多种基于 DM 的任务。我们全面分析采样延迟构成,找出耗时部分,并设计相应的安全 MPC 协议,用于计算包括 SoftMax、SiLU 和 Mish 在内的非线性激活函数。CipherDM 在使用 MNIST 数据集的流行架构(DDPM、DDIM)以及由 diffusers 部署的 SD 上进行评估。与在 SPU 上直接实现相比,我们的方法将运行时间提升约 1.084×~2.328×,并将通信成本降低约 1.212×~1.791×。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑