Research
PILD: Physics-Informed Learning via Diffusion
PILD: Physics-Informed Learning via Diffusion Overview Research area: Physics-informed machine learning, specifically the integration of physical constraints into diffusion-based generative models for

- arXiv
- 2601.21284
- Published
- 2026-01-29
- Authors
- Tianyi Zeng, Tianyi Wang, Jiaru Zhang, Zimo Zeng, Feiyang Zhang, Yiming Xu, Sikai Chen, Junfeng Jiao, Christian Claudel, Xinbo Chen
AI summary
PILD: Physics-Informed Learning via DiffusionOverview
Research area: Physics-informed machine learning, specifically the integration of physical constraints into diffusion-based generative models for scientific and engineering problems.
Technical level: Advanced. The paper assumes familiarity with denoising diffusion probabilistic models (DDPM), score-based/VLB training objectives, DDIM sampling, physics-informed neural networks (PINNs), and diffusion transformer (DiT) conditioning.
Scope: The paper proposes and empirically validates PILD, a framework that embeds physical law residuals directly into the diffusion training objective through a Laplace-distributed virtual residual observation, an adaptive Jensen-gap-aware residual scale, and a physics-conditional alignment regularizer for conditional tasks.
What This Paper Is About
Diffusion models are strong generative learners of complex data distributions, but their purely data-driven nature means that generated samples need not obey the differential equations governing the underlying physical system, which limits their reliability in engineering and scientific settings. The paper's goal is to fold physical constraints into diffusion training through a probabilistic residual likelihood, so that data fitting and physical fidelity are optimized under one unified training objective rather than through penalties or post-processing added on top.
Key Contributions
-
A probabilistic physics-informed diffusion framework based on Laplace residual modeling. The authors introduce a virtual residual observation (set to zero) whose likelihood under the physical residual operator is modeled with a Laplace distribution, then derive a tractable training surrogate using a DDIM estimate of the clean state.
-
A Jensen-gap-aware adaptive residual scale. Because the exact residual likelihood requires marginalizing over latent clean states under a logarithm, a leading-order bias appears. The authors derive this bias and introduce a timestep-adaptive effective residual scale that corrects it while preserving the positive residual-penalty form used in diffusion training.
-
A physics-conditional alignment strategy for conditional tasks. Intermediate latent representations of the diffusion backbone are aligned with a frozen MAE-based target representation of the observation condition via a cosine-similarity regularizer with stop-gradient.
-
Broad empirical validation across engineering and scientific benchmarks. Four benchmarks are evaluated (vehicle tracking, tire force estimation, Darcy flow, plasma dynamics) against classical estimators, deterministic neural predictors, PINN-style models, and diffusion or flow-based generative baselines.
Main Findings
-
Vehicle tracking: PILD achieves the lowest error on all six reported metrics. On Downtown Driving, PILD records e_x&y = 4.796, e_ψ = 5.391, e_vx = 3.048, versus the best DDPM values of 9.653, 6.109, and 4.317 and EKF values of 6.602, 6.930, and 5.476. On Rural Driving, PILD records 3.562, 5.837, and 3.033. The paper attributes the weaker performance of basic and LSTM-based methods to variation in physical model parameters across a mixed-vehicle dataset, and notes that PINN-based models are constrained by fixed physical models and show error accumulation over time.
-
Tire force estimation: PILD obtains the lowest e_F in all three driving conditions: 958.578 (aggressive), 520.631 (smooth), and 607.274 (sporty). For comparison, DDPM gives 980.328, 560.796, and 660.897, and PIDM gives 988.642, 579.546, and 630.543. The paper notes significant sensor noise in the chassis dataset and describes an appendix ablation on whether denoising is applied to the input.
-
Darcy flow: PILD obtains a lower physical residual than the compared baselines (DDPM, FNO, DiffusionPDE, CoCoGen, PBFM, PIDM) while maintaining comparable data loss, which the authors interpret as evidence that the physical improvement does not come from sacrificing data consistency. This task is unconditional and the analysis is presented in figures rather than a numeric table.
-
Plasma dynamics: PILD reports the lowest errors: density error 0.074 ± 0.011 (in 10^19) and temperature error 0.451 ± 0.055. For comparison, DDPM gives 0.122 ± 0.020 and 1.766 ± 0.284, DiffusionPDE gives 0.112 ± 0.014 and 0.728 ± 0.067, PIDM gives 0.107 ± 0.012 and 0.831 ± 0.061, FNO gives 0.153 ± 0.046 and 1.609 ± 0.258, PBFM gives 0.127 ± 0.025 and 1.293 ± 0.116, and PINN gives 0.531 ± 0.095 and 5.292 ± 0.538.
-
Both Gaussian and Laplace residuals help, Laplace more so: Under a shared DiT backbone, the diffusion-only baseline scores 0.122 (plasma density error) and 734.007 (tire force, averaged over three operating conditions). Adding a Gaussian residual improves these to 0.102 and 723.252; adding a Laplace residual without the Jensen correction gives 0.088 and 713.044; adding the Jensen correction gives 0.081 and 702.430.
-
Alignment alone is not consistently beneficial: The alignment term on its own yields 0.083 and 719.795, while the full model reaches 0.074 and 695.494, indicating the alignment mechanism works best combined with the probabilistic residual formulation and the Jensen-gap-aware scaling.
-
More diffusion timesteps improve accuracy: Plasma density error and tire force error move from 0.095 and 820.793 at 20 timesteps, to 0.089 and 702.538 at 50 timesteps, to 0.074 and 695.494 at 100 timesteps. The paper clarifies that these timesteps are the full discretization horizon of the forward/reverse process, not the number of DDIM reverse steps used for clean-state estimation or generation.
-
Stated limitation: The Jensen gap is mitigated rather than eliminated in a fully rigorous sense.
Methodology in Plain English
The starting point is that a standard diffusion model is trained to reconstruct clean data from noisy versions. PILD adds a second thing to reconstruct: the physical law. It does this by pretending there is an extra measurement, a "virtual residual observation," which always reads zero. The physical residual operator applied to a clean sample tells you how badly the physics is violated; the virtual observation says that quantity should be zero. Modeling the error in this observation with a Laplace distribution (rather than a Gaussian) gives a residual penalty that is more robust to outliers.
The problem is that during training the model only has noisy states, not clean samples, so the residual must be evaluated on a stand-in. PILD follows prior work by using a DDIM estimate of the clean sample. But even so, the exact objective contains a logarithm of an expectation over possible clean states, which cannot be swapped for an expectation of a logarithm. The authors expand this term to second order and find the leading-order discrepancy (a Jensen-type bias) depends on the conditional variance of the residual magnitude divided by twice the squared base scale. They then adjust the residual scale to absorb this term, using minibatch statistics of residual magnitudes smoothed by exponential moving averages during training. The resulting loss is a residual penalty scaled by a timestep-adaptive effective scale, combined with the usual noise-prediction loss weighted by Min-SNR.
For conditional tasks, they add a second mechanism. The DiT backbone's intermediate token features are pooled and projected, then compared by cosine similarity to the output of a frozen MAE encoder trained on the corresponding observations. A stop-gradient prevents gradients from flowing into the target. This keeps internal representations consistent with the conditioning observation during denoising.
At inference, a two-step DDIM sampler starts from Gaussian noise, maps to an intermediate state near t = 1, and reconstructs the clean sample. By varying the input conditions, the trained model supports "what-if" analysis and uncertainty characterization through sample ensembles. The framework is presented as applicable to ODEs, PDEs, and algebraic equations or inequality constraints. System identification is explicitly out of scope, and the method assumes training data from simulators or measurements that conform to the correct physical principles in a probabilistic sense.
Why This Matters
Impact on research: The paper reframes physical constraints in diffusion models as a probabilistic observation problem rather than an additive penalty or a post-hoc distillation step. By identifying and quantifying a specific bias (the Jensen gap from residual likelihood log-marginalization) and offering a cheap correction, it gives the physics-informed generative modeling community a concrete, diagnosable failure mode to work on. The connection to the score-based interpretation of diffusion is also discussed for the idealized case where the target data distribution satisfies the governing constraints.
Real-world applications:
- Vehicle state estimation and trajectory prediction for autonomous and assisted driving, including mixed fleets where a single fixed physical model does not fit all vehicles.
- Tire force estimation for vehicle safety and dynamic stability, where chassis-mounted sensor data are noisy and multiple driving conditions coexist.
- Subsurface flow and pressure field modeling governed by Darcy's law, relevant to hydrology and reservoir characterization.
- Edge plasma turbulence prediction governed by drift-reduced Braginskii equations, relevant to fusion energy research.
Industry relevance: Automotive and motorsport engineering (tracking, chassis dynamics, tire force estimation), energy and geoscience (subsurface flow), and fusion research are the directly implicated sectors. The framework's plug-in nature means it can be added to existing diffusion pipelines with what the authors describe as little overhead beyond residual evaluation, which lowers the barrier to adoption in simulation-driven design workflows.
Future Directions
-
Rigorously eliminating the Jensen gap. The authors state that their correction mitigates the gap rather than removing it, and call for principled approaches that do so without additional post-training or distillation stages.
-
Broadening the constraint types evaluated. The framework is described as applicable to algebraic equations and inequality constraints in addition to ODEs and PDEs, but the four benchmarks are differential-equation governed; the algebraic and inequality formulations are placed in the appendix.
-
Training cost and scalability. The ablation study shows accuracy improves from 20 to 100 diffusion timesteps; how the method scales to larger discretization horizons and more complex dynamical systems is left open.
-
Uncertainty characterization in practice. The paper notes that sample ensembles under fixed conditions enable uncertainty quantification, but does not report a dedicated evaluation of calibrated uncertainty across the benchmarks.
-
Robustness to noisy and corrupted inputs. The paper notes an appendix ablation on input denoising for the noisy chassis dataset, and describes system identification as out of scope; how the method behaves when data systematically deviate from the governing physics remains an open question.
Target Audience
Researchers and practitioners working at the intersection of generative modeling and scientific computing: diffusion model researchers interested in constrained generation, PINN researchers interested in probabilistic and generative formulations, and engineers in automotive, geoscience, and plasma physics who need predictions that respect governing equations. It is also relevant to machine learning practitioners who already have a diffusion pipeline for simulation data and want a modular way to inject known physical structure. Readers without a background in diffusion training objectives or physics-informed learning will find the methodological sections dense.
Authors’ abstract
Diffusion models have emerged as powerful generative tools for modeling complex data distributions, yet their purely data-driven nature limits applicability in engineering and scientific problems where physical laws must be respected. This paper proposes Physics-Informed Learning via Diffusion (PILD), a framework that unifies diffusion modeling and physical constraints through a probabilistic residual formulation with a virtual residual observation sampled from a Laplace distribution. To make this formulation practical under noisy diffusion states, we introduce a Jensen-gap-aware adaptive residual scale, which reduces the bias induced by residual likelihood marginalization. Additionally, we develop a physics-conditional alignment mechanism for conditional tasks that encourages intermediate latent representations to remain consistent with the observation conditions during denoising. The proposed framework is concise, modular, and broadly applicable to problems governed by ordinary differential equations, partial differential equations, as well as algebraic equations or inequality constraints. Extensive experiments across engineering and scientific tasks show that PILD improves physical fidelity and predictive accuracy over representative physics-informed and diffusion-based baselines.