Physics-Informed Distillation of Diffusion Models for PDE-Constrained Generation
Yi Zhang, Difan Zou
TL;DR
PIDDM tackles the challenge of enforcing PDE constraints in diffusion models by decoupling physics from the diffusion trajectory. It demonstrates Jensen’s Gap when constraints are applied to the posterior mean and employs a post-hoc distillation to enforce constraints directly on the final sample ${\mathbf{x}}_0$, enabling one-step generation and shared forward/inverse PDE solving. Empirically, PIDDM outperforms baseline constraint methods in PDE satisfaction while maintaining competitive generative fidelity, and its distilled student enables fast, physics-consistent generation with optional refinement and robust downstream tasks. This approach offers a practical, efficient pathway for integrating strict physical laws into diffusion-based generative modeling for scientific computing.
Abstract
Modeling physical systems in a generative manner offers several advantages, including the ability to handle partial observations, generate diverse solutions, and address both forward and inverse problems. Recently, diffusion models have gained increasing attention in the modeling of physical systems, particularly those governed by partial differential equations (PDEs). However, diffusion models only access noisy data $\boldsymbol{x}_t$ at intermediate steps, making it infeasible to directly enforce constraints on the clean sample $\boldsymbol{x}_0$ at each noisy level. As a workaround, constraints are typically applied to the expectation of clean samples $\mathbb{E}[\boldsymbol{x}_0|\boldsymbol{x}_t]$, which is estimated using the learned score network. However, imposing PDE constraints on the expectation does not strictly represent the one on the true clean data, known as Jensen's Gap. This gap creates a trade-off: enforcing PDE constraints may come at the cost of reduced accuracy in generative modeling. To address this, we propose a simple yet effective post-hoc distillation approach, where PDE constraints are not injected directly into the diffusion process, but instead enforced during a post-hoc distillation stage. We term our method as Physics-Informed Distillation of Diffusion Models (PIDDM). This distillation not only facilitates single-step generation with improved PDE satisfaction, but also support both forward and inverse problem solving and reconstruction from randomly partial observation. Extensive experiments across various PDE benchmarks demonstrate that PIDDM significantly improves PDE satisfaction over several recent and competitive baselines, such as PIDM, DiffusionPDE, and ECI-sampling, with less computation overhead. Our approach can shed light on more efficient and effective strategies for incorporating physical constraints into diffusion models.
