Particle-Guided Diffusion Models for Partial Differential Equations

Andrew Millard, Fredrik Lindsten, Zheng Zhao

Abstract We introduce a generative framework that solves Partial Differential Equations (PDEs) by combining the expressive power of diffusion models with the rigor of physics-based guidance. By embedding stochastic sampling within a Sequential Monte Carlo (SMC) framework, this approach achieves state-of-the-art accuracy in reconstructing complex physical fields, even from sparse and noisy observations.

Introduction

Partial Differential Equations (PDEs) are the mathematical foundation for describing physical phenomena, from fluid dynamics to heat transfer. While classical numerical solvers, such as Finite Element Methods, are highly reliable, they are computationally expensive for real-time applications or high-dimensional uncertainty quantification.

Recent machine learning approaches, including Physics-Informed Neural Networks (PINNs) and Fourier Neural Operators (FNOs), have significantly accelerated these simulations. However, these models are typically deterministic and often struggle to maintain physical consistency when observational data is sparse. Generative diffusion models offer a promising alternative by learning the distribution of valid solutions. Yet, "steering" these models to strictly satisfy specific physical laws—such as the conservation of mass or energy—remains a significant challenge.

Methodology: Particle-Guided Diffusion

To address this, the authors propose Particle-Guided Diffusion Models, framing the PDE solving process as a conditional sampling problem. The methodology relies on four core components:

  1. Diffusion Prior: The system utilizes a pre-trained diffusion model that has learned the general distribution and structural characteristics of PDE solution fields (e.g., the typical visual and mathematical features of a fluid flow field).
  2. Physics-Based Guidance: During the denoising process, a "guidance term" is injected. This term is derived from both PDE residuals (measuring how much the current sample violates the underlying physics) and observational constraints (measuring adherence to known data points).
  3. Sequential Monte Carlo (SMC): Rather than following a single deterministic path to a solution, the method maintains a population of "particles." At each step, these particles are weighted based on their physical admissibility and resampled. This mechanism prunes "unphysical" trajectories, focusing computational effort on paths that satisfy the governing equations.
  4. SOSaG & pBS Frameworks: To optimize efficiency, the authors introduce the Second-Order Stochastic Guided (SOSaG) proposal for smoother sampling, alongside a pseudo-bootstrap (pBS) framework. The pBS framework is a notable theoretical contribution: it trades strict statistical consistency for significantly enhanced empirical performance, effectively operating akin to an evolutionary algorithm.

Experimental Setup

The method was rigorously evaluated across a diverse set of benchmarks, largely adapted from the DiffusionPDE baseline. These included:

  • Standard Benchmarks: Darcy flow, Inhomogeneous Helmholtz, Poisson, and both Bounded and Non-bounded Navier-Stokes equations.
  • Multiphysics Systems: 2-species and 3-species Reaction-Diffusion (Gray-Scott) models, which simulate complex interacting chemical or biological patterns.
  • Observation Regimes: The models were tested on "Forward" tasks (predicting solutions) and "Inverse" tasks (recovering coefficients or initial conditions) using only about 3% of the total data pixels.

Key Insights and Results

The particle-guided approach yielded several critical insights and performance breakthroughs:

  • Superior Accuracy: Across almost all benchmarks, the proposed method (specifically SOSaG-pBS) achieved a lower $L_2$ relative error than the previous state-of-the-art. For instance, in the Darcy Inverse problem, it reduced the error from 8.31% to 5.28%.
  • Stochasticity as an Advantage: Unlike previous ODE-based generative solvers, this method utilizes stochastic differential equations (SDEs). The inherent "jitter" in stochastic sampling helps the model explore the solution space more effectively, particularly in complex physical landscapes.
  • SMC as Evolution: The SMC framework succeeds not merely as a sampler, but as an evolutionary algorithm. The diffusion step acts as "mutation," while physics-based weighting acts as "selection," keeping the model robust even when the effective sample size drops.
  • The Power of Tempering: A tempering parameter ($\rho$) allows tuning between trusting the physics versus the learned prior. Higher tempering values push the model toward a Maximum Likelihood estimate, bridging the gap between flexible generative frameworks and strict PINN-like operation.
  • Robustness and Visual Fidelity: The approach significantly outperformed baselines under increasing observation noise. Qualitatively, it produces sharper reconstructions that capture high-frequency details, avoiding the "smoothed out" artifacts common in deterministic baselines.

Limitations and Future Directions

Despite its success, the method presents certain trade-offs. Using multiple particles via SMC introduces computational overhead compared to single-path sampling, though vectorization can mitigate this. Additionally, the tempering parameter and PDE loss weights exhibit hyperparameter sensitivity and require problem-specific tuning. Finally, evaluating complex PDE residuals is computationally intensive; future work may explore using pre-trained PINNs as "distilled surrogates" for the likelihood to drastically accelerate the process.

Summary updated

BibTeX
@inproceedings{millard2026particle,
  author = {Andrew Millard and Fredrik Lindsten and Zheng Zhao},
  title = {{Particle-Guided Diffusion Models for Partial Differential Equations}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=tX1k4GQtLC},
}
Figure