From Uncertain to Safe: Conformal Adaptation of Diffusion Models for Safe PDE Control

Peiyan Hu, Xiaowei Qian, Wenhao Deng, Rui Wang, Haodong Feng +6 more
2/14/2026

No official code found. Best implementation: AI4Science-WestlakeU/safediffcon (12 stars, MIT, last commit 2025-10-19).

Abstract

The application of deep learning for partial differential equation (PDE)-constrained control is gaining increasing attention. However, existing methods rarely consider safety requirements crucial in real-world applications. To address this limitation, we propose Safe Diffusion Models for PDE Control (SafeDiffCon), which introduce the uncertainty quantile as model uncertainty quantification to achieve optimal control under safety constraints through both post-training and inference phases. Firstly, our approach post-trains a pre-trained diffusion model to generate control sequences that better satisfy safety constraints while achieving improved control objectives via a reweighted diffusion loss, which incorporates the uncertainty quantile estimated using conformal prediction. Secondly, during inference, the diffusion model dynamically adjusts both its generation process and parameters through iterative guidance and fine-tuning, conditioned on control targets while simultaneously integrating the estimated uncertainty quantile. We evaluate SafeDiffCon on three control tasks: 1D Burgers' equation, 2D incompressible fluid, and controlled nuclear fusion problem. Results demonstrate that SafeDiffCon is the only method that satisfies all safety constraints, whereas other classical and deep learning baselines fail. Furthermore, while adhering to safety constraints, SafeDiffCon achieves the best control performance. The code can be found at https://github.com/AI4Science-WestlakeU/safediffcon.

View on arXivView PDF

Code Implementations(1)

MIT

[ICML2025] SafeDiffCon is a diffusion model for safe PDE Control.

120C++, ShellFeb 4, 20251 years agoMIT
conformal-predictiondiffusion-modelspdephysical-systems-controlsafe-control

Similar Papers

Cite this paper

@article{hu2026from,
  title  = {From Uncertain to Safe: Conformal Adaptation of Diffusion Models for Safe PDE Control},
  author = {Peiyan Hu and Xiaowei Qian and Wenhao Deng and Rui Wang and Haodong Feng and Ruiqi Feng and Tao Zhang and Long Wei and Yue Wang and Zhi-Ming Ma and Tailin Wu},
  year   = {2026},
  eprint = {2502.02205},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2502.02205},
  journal = {ICML 2025 2025}
}

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/2502.02205.svg)](https://codeofpaper.com/paper/2502.02205)

Discussion