NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Secure Inference for Diffusion Models via Unconditional Scores

Jaeyun Song, Geondo Park, Uigyu Kim, Joonhyung Park, Eunho YangICLR 2026

TL;DR

This paper introduces a novel framework for secure diffusion model inference that significantly reduces latency without sacrificing image quality. By using "unconditional scores"—which can be computed quickly in plaintext—as a corrective guidance signal, the authors fix the errors introduced by the fast but "loose" polynomial approximations required for Secure Multi-Party Computation (MPC).

The Privacy Dilemma in Diffusion Models

Diffusion models like Stable Diffusion are incredibly powerful but computationally expensive, often requiring users to rely on remote servers for inference. This creates a significant privacy dilemma: users do not want to share sensitive prompts or generated images (e.g., in medical or proprietary enterprise contexts), and service providers do not want to leak their proprietary model weights.

Secure Multi-Party Computation (MPC) allows for private inference, keeping both the user's data and the provider's model secure. However, MPC struggles heavily with non-linear functions like SiLU, GeLU, and Exponentials. To make MPC practical, researchers typically substitute these non-linear operations with polynomial approximations.

This introduces a harsh trade-off:

  1. Precise approximations require high-degree polynomials, making them prohibitively slow and communication-heavy.
  2. Loose approximations are fast but cause a "score shift" in the diffusion process. This shift compounds over multiple denoising steps, leading to blurry, distorted, or structurally nonsensical images.
Comparison of Precise vs. Loose approximations across non-linear functions (SiLU, GeLU, Exp). Loose approximations significantly reduce latency and communication volume but incur a massive increase in Mean Squared Error (MSE).

The Solution: Unconditional Guidance

Instead of trying to make secure approximations more accurate—which inherently drives up computational costs—the authors propose a "best of both worlds" approach. They accept the errors of loose approximations and correct them using a high-fidelity reference signal.

The core insight relies on privacy asymmetry: generating an image without a specific prompt (unconditional generation) does not involve private user data. Therefore, the unconditional branch of the diffusion process can be executed entirely in plaintext on the server without compromising user privacy.

The proposed framework splits the workload:

  • Plaintext Path: Runs the unconditional generation without any approximations, providing a "perfect" score signal.
  • Secure Path: Runs the conditional branch (using the private prompt) in the ciphertext space using relaxed (loose) polynomial approximations to maximize speed.

The framework then applies a correction formula that uses the difference between the "clean" unconditional score and the "noisy" approximated conditional score to steer the corrupted generation back toward the true data distribution. Essentially, the plaintext unconditional score acts as an anchor, preventing the loose approximations from derailing the image structure.

Key Insights and Results

The method was evaluated on major benchmarks including MSCOCO, Flickr8k, and Binary MNIST, comparing against previous state-of-the-art secure inference frameworks like CipherDM.

  • Correction over Precision: By shifting the focus from reducing approximation error to rectifying the resulting score shift, the framework allows for much more aggressive approximations.
  • Negligible Overhead: Because the unconditional scores can be precomputed or run in plaintext, the corrective guidance adds almost zero latency to the secure inference process.
  • Significant Speedups: The "Loose" approximations achieved 14% to 36% reductions in operation-level latency compared to more precise secure baselines.
  • Quality Recovery: On the MSCOCO dataset, using loose approximations alone degrades the Fréchet Inception Distance (FID) from 13.28 to 15.52. Adding the proposed unconditional guidance fully recovers this degradation, achieving an FID of 14.20.
  • Qualitative Improvements: While loose approximations often fail to render coherent structures (e.g., producing distorted anatomy or blurry textures), the proposed guidance restores sharpness and structural correctness without needing heavier computation.

Limitations and Future Work

While this method is significantly faster than previous secure approaches, MPC-based inference for large models like Stable Diffusion still takes thousands of seconds per step, which remains far from real-time. Additionally, due to the massive resource requirements of MPC, some of the large-scale FID and CLIP evaluations were performed in plaintext simulations of the approximated models rather than full MPC deployments.

Future directions for practical private AI include improving the performance of the VAE decoder—which remains a major bottleneck—and exploring architectures that require even fewer sampling steps, such as consistency models.

Summary updated

BibTeX
@inproceedings{song2026secure,
  author = {Jaeyun Song and Geondo Park and Uigyu Kim and Joonhyung Park and Eunho Yang},
  title = {{Secure Inference for Diffusion Models via Unconditional Scores}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=6t9YPOZH0w},
}
Figure