Manuscript Offprint

arXiv:2610.01759

PhysDEM: Physics-Defined Energy-Matching Diffusion for Spatiotemporal Field Generation under Scarce Measurements

Zhenyu Liang, Yining Huang, Yubo Zhao, Jack C. P. Cheng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Generating and predicting spatiotemporal physical fields from scarce measurements is challenging, as observations are insufficient to characterize a distribution over complete fields. This limits conventional data-driven diffusion models that rely on full-field datasets. We introduce PhysDEM, a physics-defined diffusion framework that combines governing equations with spatially sparse observations to generate multiple plausible fields. First, we construct a Gibbs target by reweighting a measurement-conditioned Gaussian reference with PDE residual energy. Second, we derive an exact conditional-mean identity that reduces denoising to supervised learning of the standardized energy-induced mean correction. Third, a physics-displacement probability flow cancels Gaussian reference terms and enables amortized sampling with changing measurements through Gaussian conditioning, without retraining. Experiments on synthetic PDE systems and real-world-informed applications demonstrate that PhysDEM supports coherent field recovery and efficient sampling while maintaining stable diagnostics under tested noise levels, illustrating its practical value for field assessment. To our knowledge, PhysDEM is the first physics-defined diffusion model enabling amortized spatiotemporal field inference without preassembled full-field datasets.

1 INTRODUCTION

Generating and predicting spatiotemporal physical fields is essential for scientific modeling. To address this task, generative artificial intelligence uses neural networks to learn probability distributions over plausible field realizations and generate new fields by sampling from these distributions. Diffusion models, in particular, generate samples from high-dimensional distributions through iterative denoising (Song et al., 2020). Their key strengths include training stability, sample fidelity, distributional coverage (Dhariwal & Nichol, 2021), and flexible conditioning (Song et al., 2020; Rozet & Louppe, 2023), supporting the generation of spatially detailed field ensembles that represent diverse temporal evolutions and their uncertainty (Price et al., 2025; Rozet & Louppe, 2023).

Most existing diffusion models for physical-field generation are data-driven. Some learn physical patterns implicitly from extensive reanalysis or simulation datasets (Price et al., 2025; Rozet & Louppe, 2023), whereas others explicitly incorporate governing partial differential equations (PDEs) through physics-informed training losses (Bastek et al., 2025; Wang et al., 2026) or sampling guidance (Huang et al., 2024; Jacobsen et al., 2025). Both strategies typically rely on large collections of complete fields for training. This dependence limits their applicability when the available data consist only of scarce measurements, with time series recorded at a handful of spatial locations. These scarce measurements alone are insufficient to characterize a distribution over complete fields.

To address this limitation, we propose a physics-driven diffusion framework for spatiotemporal field generation, in which physics defines the target distribution, and measurements provide constraints. We use the governing equations to define a PDE residual energy and construct a target distribution from which we sample training fields, without requiring a preassembled full-field dataset from real-world measurements or external simulators. Once trained, the model serves as an amortized sampler, using scarce measurements at a handful of spatial locations to rapidly estimate unobserved field values and explore diverse plausible evolutions of complete spatiotemporal fields.

Table 1: Comparison of spatiotemporal physical generation methods. P: explicit use of prescribed PDE constraints in generative modeling; D: training without requiring a full-field dataset obtained from measurements or forward simulations; R: reuse across different numbers of measurements without retraining; S: full-field inference from spatially sparse measurements.

Method family and representativePDRS
Data-trained GANs (e.g., DGMR (Ravuri et al., 2021))××××
Physics-informed GANs (e.g., PI-GAN (Yang et al., 2020))✓✓×✓
Simulation-based flow matching (e.g., FNOPE (Moss et al., 2025))××✓✓
Data-trained diffusion (e.g., DPS (Chung et al., 2023))××✓✓
Physics-loss diffusion (e.g., PIDM (Bastek et al., 2025))✓×××
Physics-guided diffusion (e.g., DiffusionPDE (Huang et al., 2024))✓×✓✓
Learned-physics diffusion (e.g., PHDME (Tan et al., 2026))××××
Energy-based diffusion samplers (e.g., iDEM (Akhound-Sadegh et al., 2024))×✓××
Physics-defined diffusion (PhysDEM, ours)✓✓✓✓

Specially, we introduce PhysDEM, Physics-Defined Energy-Matching Diffusion, for spatiotemporal field generation under scarce measurements. Our mathematical derivation links the PDE residual energy to target distribution construction, denoiser training, and field sampling. In this framework, we define a Gibbs target distribution by reweighting a Gaussian reference that encodes assumed field variability with the PDE residual energy that promotes physical consistency. We then derive an energy-determined conditional-mean diffusion denoiser that implements energy matching by learning the remaining energy-induced mean correction, aligning denoiser training with the physics-defined target. At inference, scarce measurements update the Gaussian reference and denoiser inputs. The denoiser's predicted mean correction drives our physics-displacement probability-flow sampler, enabling amortized sampling of plausible complete spatiotemporal fields across measurement configurations without retraining. Our main contributions are as follows:

  • We propose a physics-defined and measurement-constrained Gibbs target distribution that enables denoiser training on internally sampled complete fields without requiring a pre-assembled full-field dataset from real-world measurements or external simulators.

  • We mathematically derive an energy-determined conditional-mean diffusion denoiser through an exact conditional-mean identity, establishing energy matching as supervised learning of the energy-induced mean correction relative to an analytic Gaussian estimate.

  • We develop an amortized physics-displacement probability-flow sampler that analytically cancels Gaussian reference terms and uses the learned normalized correction as its velocity, accommodating changing measurements through Gaussian conditioning without retraining.

References (100)

  • Iterated denoising energy matching for sampling from boltzmann densities
  • Physics-informed diffusion models
  • Pattern recognition and machine learning, volume 4
  • Tenth spe comparative solution project: A comparison of upscaling techniques
  • Diffusion posterior sampling for general noisy inverse problems
  • Mcmc methods for functions: modifying old algorithms to make them faster
  • Diffusion models beat gans on image synthesis
  • Analysis of circulant embedding methods for sampling stationary random fields
  • Diffusionpde: Generative pde-solving under partial observation
  • Cocogen: Physically consistent and conditioned score-based generative models for forward and inverse problems
  • Di-bilps: Denoising induced bidirectional latent-pde-solver under sparse observations (opens arXiv in a new tab)
  • Fnope: Simulation-based inference on function spaces with fourier neural operators
  • Nature, 637(8044):84–90, 2025
  • Nature, 597(7878):672–677, 2021
  • Score-based data assimilation
  • Dyffusion: A dynamics-informed diffusion model for spatiotemporal forecasting
  • f-divergence inequalities
  • Score-Based Generative Modeling through Stochastic Differential Equations
  • Validating bayesian inference algorithms with simulation-based calibration (opens arXiv in a new tab)
  • Phdme: Physics-informed diffusion models without explicit governing equations (opens arXiv in a new tab)
  • Data sets from the national crude oil spill fate and natural attenuation research site near bemidji, minnesota, usa (ver
  • Denoising diffusion samplers
  • Fundiff: Diffusion models over function spaces for physics-informed generative modeling
  • Gaussian processes for machine learning, volume 2
  • Pathwise conditioning of gaussian processes
  • Principled probabilistic imaging using diffusion models as plug-and-play priors
  • Physics-informed generative adversarial networks for stochastic differential equations
  • Guided diffusion sampling on function spaces with applications to pdes (opens the publisher in a new tab)
  • Improving diffusion inverse problem solving with decoupled noise annealing
  • The vectors collect the discretized static parameter and state fields, including all modeled state components
  • The analysis concerns the finite-dimensional field representation in Section 3.1
  • General Gaussian queries are admitted only when their normalizers and required weighted moments are finite
  • The Jacobian $J(x) = \nabla \mathcal{R}(x) \in \mathbb{R}^{n_r \times d}$ acts on a field increment by $J(x)\delta x$
  • For $\lambda \geq 0$, the Gaussian normalization integral is
  • For $\lambda > 0$, the same tilt is conditioning on a virtual linear observation with value b, operator L, and noise covariance $V_{\lambda}$
  • Matérn covariance models specify the static and state blocks, with variances, correlation lengths, and smoothness supplied by the physical problem configuration
  • Let $S = AC_0A^\top + \Gamma$ and $G_A = C_0A^\top S^{-1}$
  • Draw $X_{\mathrm{p}} \sim \mathcal{N}(\mu_0, C_0)$ and $\eta_{\mathrm{p}} \sim \mathcal{N}(0, \Gamma)$ independently, and set
  • Independent measurement groups may be incorporated sequentially using Appendix D.2
  • Let $P_{ext}$ restrict an extended periodic grid with M points to the modeled grid
  • If spectral clipping changes an embedding, it constitutes a covariance approximation
  • Available initial values give $\mathcal{R}_{\mathrm{ic}}(x) = A_{\mathrm{ic}}x - b_{\mathrm{ic}} \in \mathbb{R}^{n_{\mathrm{ic}}}$, where $A_{\mathrm{ic}}$ extracts the corresponding initial-state coordinates and $b_{\mathrm{ic}}$ contains their prescribed values
  • For two fields with finite residual energies, their relative density changes according to
  • For every feasible p with finite relative entropy
  • The proposition explains how physics enters target definition through the selected residual score
  • The selected residual coordinates are the real and imaginary parts of
  • It does not require centering or whitening the residual vector
  • Conjugate redundancy and zero imaginary parts at self-conjugate frequencies mean that this row count need not equal a covariance rank
  • The current penalty is retained when the stated conditions fail
  • For $\bar{\rho}(\mathrm{d}z, \mathrm{d}u) = \bar{\rho}_{z}(\mathrm{d}z)\bar{\rho}(\mathrm{d}u \mid z)$, integration over the state gives
  • Multiplication by $e^{-\vartheta \mathbf{1}^{\top} z}$ changes only its mean:
  • Thus the prescribed moment is selected before inference measurements arrive
  • Theorem 2 gives the augmented reference parameters:
  • If the residual is affine in the complete field, the linearization is exact, $E_{\text{cal}} = 0$, and the augmented reference already equals the target
  • It need not equal a conditioned mean
  • Finite solves, variance estimates, and covariance approximations contribute numerical error separately from the exact identities above
  • It then describes the local Gaussian proposals and measurement configurations that generate training fields under the fixed calibrated model
  • The augmented factorization is
  • For later use, write the mean correction and its normalization as
  • Its mean is $D(m_a(x_a), \Sigma_a)$, proving equation 10
  • It expresses the denoising correction as a covariance-scaled conditional average of the remaining energy gradient
  • Under these conditions, equation 56 approaches the Gibbs target score
  • The identities in equation 58 therefore turn target draws into supervised labels for the standardized energy-induced correction, without evaluating either the energy-weighted Gaussian expectation or the conditional energy-gradient expectation
  • For a residual affine in the complete field, exact augmentation gives $E_{\mathrm{cal}} = 0$ and attains the bound
  • The local point $p$ can depend on the training configuration; the global point $p_0$ and the denoising energy $E_{\mathrm{cal}}$ remain fixed
  • Covariance products, Jacobian actions, and linear solves follow Appendix B.2.5, with $J_p$ replacing $J_0$
  • Evaluating the energy requires residual evaluation on a candidate complete field, rather than a forward PDE solution for each candidate parameter field
  • With exact Gaussian draws and fixed $p$ and $b_{\text{pcn}}$, the proposal is reversible with respect to $Q_J$
  • Gauss–Newton iterations initialize the local point p
  • These retention decisions can change the effective training distribution and do not establish equilibration or the moment assumptions required for regression
  • The full covariance still enters Gaussian conditioning, reference sampling, and perturbation generation
  • Lemma 2 gives $T_{\text{reg}}$ as the conditional label mean given the full configuration, $a$, and $X_a$
  • The conditional projection in equation 68 characterizes its population prediction, and equation 69 identifies any remaining encoding error
  • Measurements are simulated from the pseudo-field through equation 2, with the specified noise covariances; measurements of the static field z may also be included
  • Retained fields are perturbed using the globally augmented reference $\tilde{\rho}_{C}$
  • $\tilde{\rho}_{\mathcal{C}} = \mathcal{N}(\tilde{\mu}, \tilde{C}), \tilde{C} \succ 0$, and $\pi_{\mathcal{C}} \propto \tilde{\rho}_{\mathcal{C}} e^{-E_{\mathrm{cal}}}$
  • Introduce an auxiliary time $v \in [0, v_{\text{end}})$ and a continuously differentiable schedule $a_v$ with $a_0 = 1$, $a_v > 0$, $\mathrm{d}a_v/\mathrm{d}v < 0$ in the interior, and $a_v \to 0$ as $v \to v_{\text{end}}$
  • The limit $a_v \to 0$ corresponds to an infinite integrated noise rate; $v_{\text{end}}$ may be infinite
  • The score identity equation 56 separates the Gaussian reference score from the energy-induced correction:
  • Substituting equation 74 gives
  • Sampling follows increasing $a$ from the Gaussian reference at $a = 0$
  • At the other endpoint, the moving-query concentration and gradient-integrability conditions in Appendix C.2 give
  • For nonlinear residuals, the learned flow supplies the remaining correction while preserving the target decomposition
  • The implementation uses the saved exponential moving average of the denoiser parameters, denoted by $\theta$, and draws $x_0$ from the augmented reference using the Gaussian operations in Appendix B.2.5
  • Second-order Heun steps update the complete field for $j = 0, \ldots, N - 1$:
  • Its velocity evaluations span $[0, a_{\max}]$; if $a_{\min} > 0$ in training, the initial portion relies on extrapolation below that range
  • This bound isolates endpoint truncation for the exact flow
  • Heun's second-order convergence holds when the implemented velocity is sufficiently regular on that interval
  • Consider an additional block $y_{\text{new}} \in \mathbb{R}^{n_{\text{new}}}$ with operator $A \in \mathbb{R}^{n_{\text{new}} \times d}$ and noise covariance $\Gamma \succ 0$, as in equation 2
  • Multiplication by the new likelihood yields
  • likelihood multiplication and multiplication by $e^{-E_{\text{lin}}}$ commute
  • The trained network is reused with the resulting Gaussian inputs, with its approximation described in Appendix C.6
  • A direction is unchanged precisely when $A\tilde{C}w = 0$
  • Writing $V_{C_0}$ and $V_C$ for the target covariances before and after the new measurements
  • This average is taken under the fixed model; the next subsection relates model-based credible sets to coverage under the true field law
  • All laws below are conditional on H, suppressed in the notation
  • For a measurable reported quantity $g : \mathbb{R}^d \to \mathbb{R}^k$, let $\mathcal{T}(x, y) = (g(x), y)$ and define the projected joint discrepancy
  • The assumption $\mathcal{D}_g < \infty$ includes absolute continuity and integrability for these projected joint laws
  • The exact-model field law is $\pi_C$ from equation 84
  • Conditional independence and two total-variation comparisons yield

Couldn't load all references. Reload the page to try again.