Papers
Topics
Authors
Recent
Search
2000 character limit reached

Physics Constrained Deep Learning

Updated 10 July 2026
  • Physics-constrained deep learning is a framework that integrates physical laws, governing equations, and state constraints into neural networks to ensure physically consistent predictions.
  • It employs mechanisms such as physics residuals, hard enforcement, and constrained optimization to embed domain expertise, improving performance in areas like CFD, weather forecasting, and biomedical imaging.
  • This approach enhances model interpretability, stability, and data efficiency, offering significant speedups and improved accuracy compared to traditional black-box deep learning methods.

Physics-constrained deep learning is a family of scientific machine-learning methods in which governing equations, constitutive relations, conservation laws, admissible state constraints, or mechanistic update rules are embedded into neural architectures, objective functions, or projection operators so that learned predictors remain compatible with known physics. In the current literature, the paradigm spans postprocessing, surrogate modeling, inverse problems, uncertainty quantification, control, and generative modeling, with constraints drawn from thermodynamic state equations, Richards’ equation, incompressible Navier–Stokes dynamics, Fokker–Planck equations, Lagrangian mechanics, and domain-specific state-space models (Zanetta et al., 2022, Xie et al., 2024, Sun et al., 2019, Liu et al., 2023, Lutter et al., 2021).

1. Conceptual scope and motivation

A recurrent motivation is that purely statistical or black-box deep models can fit data while violating physical structure. In weather postprocessing, statistical correction can improve forecast skill but can also lead to predictions that violate physical principles or disregard dependencies between variables, which is problematic for downstream applications and trustworthiness; the same work argues that integrating meteorological expertise in the form of analytic equations yields physically-consistent predictions of temperature and humidity without compromising performance, and is especially advantageous when data is scarce (Zanetta et al., 2022).

The same concern appears in mechanics, biomedical inverse problems, and turbulence modeling. In robotics, unconstrained deep dynamics models may ignore the existing knowledge of physics, learn dynamics that violate the laws of physics, and produce inconsistent forward and inverse models; DeLaN was introduced precisely to guarantee physically plausible dynamics by incorporating Lagrangian mechanics and conserving energy (Lutter et al., 2021). In inverse ECG, the body-to-heart operator is rank-deficient and ill-conditioned, so embedding cardiac wave-propagation physics regularizes an otherwise unstable reconstruction problem (Xie et al., 2021). In turbulence-model uncertainty quantification, the Eigenspace Perturbation Method prescribes physically admissible perturbations but does not determine how much to perturb, which leads to very generous uncertainty envelopes; physics-constrained deep learning is used there to learn a spatially varying correction while retaining the physically grounded perturbation mechanism (Chu et al., 2024).

These examples indicate that the field is not defined by a single algorithmic template. Rather, its unifying feature is that the neural component is not free to represent arbitrary input–output maps: it is restricted, regularized, or post-corrected by known physical structure. This suggests that physics-constrained deep learning is best understood as a design principle for reducing the admissible hypothesis space in scientifically meaningful ways.

2. Mechanisms for enforcing physical structure

One major mechanism is the addition of physics residuals to a data-fitting objective. In soil-moisture estimation, the total loss is explicitly written as L(ΘNN)=LD+LRRE\mathcal{L}(\Theta_{NN}) = \mathcal{L}_D + \mathcal{L}_{RRE}, where the data term fits measured pressure head and the physics term penalizes the residual of the Richardson-Richards equation computed by automatic differentiation; the same general pattern appears in inverse ECG, where a body-heart data term is combined with boundary and PDE residuals from the Aliev–Panfilov model (Xie et al., 2024, Xie et al., 2021). Comparable residual-based formulations are used for incompressible cavity flow, where the network minimizes momentum and continuity residuals, and for data-free incompressible-flow surrogates, where Navier–Stokes residuals replace labeled CFD targets (McDevitt et al., 2022, Sun et al., 2019).

A second mechanism is hard enforcement by construction. In cavity-flow learning, boundary conditions are embedded exactly through output transformations, and the stream-function formulation guarantees incompressibility exactly via u=ψ/yu=\partial\psi/\partial y and v=ψ/xv=-\partial\psi/\partial x (McDevitt et al., 2022). In PINF, the log-density parameterization ϕθ(x,t)=logp0(x)+tu(x,t;θ)\phi_\theta(x,t)=\log p_0(x)+t\,u(x,t;\theta) enforces the initial condition exactly, while the flow formulation gives normalization “for free” in the time-dependent Fokker–Planck setting (Liu et al., 2023). In VB-NET, the non-trainable differentiable physics layer updates the virtual-battery state of charge as S^t+1=Clamp ⁣(S^t+ΔtC^f[ηPac(t)P^loss(t)],0,1)\hat{S}_{t+1}=\text{Clamp}\!\left(\hat{S}_t+\frac{\Delta t}{\hat{C}_f}[\eta P_{ac}(t)-\hat{P}_{loss}(t)],0,1\right), which prevents arbitrary state trajectories (Qi et al., 8 Mar 2026). DAE-HardNet goes further by projecting predictions onto a constraint manifold so that algebraic and differential constraints are satisfied through a differentiable projection layer rather than soft penalties (Golder et al., 5 Dec 2025).

A third mechanism replaces penalty balancing with constrained optimization. PECANN argues that the standard PINN objective, in which PDE residuals and boundary conditions are lumped into a single soft-penalty loss with manually tuned weights, is the source of severe limitations. It reformulates learning as a constrained optimization problem solved with the augmented Lagrangian method, enforcing boundary, initial, and high-fidelity constraints as equality constraints rather than as ordinary penalties (Basir et al., 2021). This distinction between soft penalties, architectural hard constraints, and explicit constrained optimization is one of the central methodological fault lines in the literature.

3. Structured dynamical models and gray-box formulations

A prominent branch of the field constrains latent or reduced-order dynamics rather than only enforcing instantaneous PDE residuals. In partially observed geophysical systems, bounded nonlinear forecasts are obtained by learning an augmented latent state utT=[M(xt)T,ytT]u_t^T=[\mathcal{M}(x_t)^T,y_t^T] and evolving it with a neural ODE whose vector field is restricted to a linear-quadratic form. Energy-preserving quadratic constraints and a negative-definite symmetric linear part are imposed through regularizers C1\mathcal{C}_1 and C2\mathcal{C}_2, yielding a monotonically attracting trapping region and bounded trajectories for arbitrary initial conditions (Ouala et al., 2022).

In mechanics, Deep Lagrangian Networks encode physics at the level of system energy. Rather than learning accelerations directly, DeLaN parameterizes the Lagrangian L(q,q˙)=12q˙H(q)q˙V(q)\mathcal{L}(q,\dot q)=\frac{1}{2}\dot q^\top H(q)\dot q - V(q) with neural networks for the mass matrix and potential energy, and obtains forward and inverse dynamics from the Euler–Lagrange equation. Because H(q)H(q) is constructed from a Cholesky factor, the mass matrix remains positive definite and the kinetic energy remains physically meaningful (Lutter et al., 2021). This is a particularly clear example of a structure-preserving model: the network does not merely approximate trajectories but inherits the algebraic organization of classical mechanics.

Control-oriented building models adopt an analogous gray-box strategy. Physics-constrained deep learning of multi-zone building thermal dynamics uses a block-structured recurrent architecture with separate components for autonomous propagation, HVAC input, disturbances, output mapping, and a learned observer. Stability and dissipativeness are encoded through a Perron–Frobenius-based constrained matrix parameterization with dominant eigenvalues bounded in u=ψ/yu=\partial\psi/\partial y0, while temperature predictions are kept within physically realistic and safe operating ranges by inequality penalties (Drgona et al., 2020). VB-NET applies the same gray-box logic to air conditioning systems by proving an isomorphic equivalence between AC dynamics and a virtual battery, decoupling shared meteorological drivers from private building thermal fingerprints, and learning only physically interpretable parameters passed to a differentiable physics evolution layer (Qi et al., 8 Mar 2026).

Across these works, physics constraints are not limited to conservation laws. They also include boundedness, dissipativity, eigenvalue location, admissible operating ranges, and shared-vs-private decompositions of physical drivers. This broadens the meaning of “physics” from explicit PDEs to mechanistic dynamical structure.

4. PDE-constrained surrogates, generative models, and scientific solvers

A large portion of the literature uses neural networks as surrogates for families of PDE solutions. One early direction eliminates labeled simulation data entirely. For Darcy flow, a convolutional encoder-decoder surrogate and a conditional flow-based generative model are trained by minimizing PDE and boundary violations, where the reference conditional density is posed as a Boltzmann-Gibbs distribution and the learning objective is a reverse Kullback–Leibler divergence between model and physics-defined densities (Zhu et al., 2019). For incompressible fluid flow, a structured fully connected network is trained without CFD labels by embedding initial and Dirichlet boundary conditions in the ansatz and minimizing Navier–Stokes residuals at collocation points; the paper reports roughly 2000× speedup for Monte Carlo uncertainty propagation compared to CFD (Sun et al., 2019).

Parameterized surrogate learning is especially visible in fluid mechanics. In incompressible cavity flow, a single neural network learns the five-dimensional map u=ψ/yu=\partial\psi/\partial y1 or u=ψ/yu=\partial\psi/\partial y2, with hard boundary constraints and exact incompressibility in the stream-function formulation. The paper shows that zero-data training is accurate up to intermediate Reynolds numbers, but fails to train for sufficiently high Reynolds numbers, whereas a small quantity of flow data enables accurate description up to u=ψ/yu=\partial\psi/\partial y3 in the square-cavity example (McDevitt et al., 2022). For multiphase flow in 3D heterogeneous porous media, a physics-constrained U-Net uses 3D-to-2D layer decomposition, a continuity-based smoother for pressure, and transient-region penalties; it achieves a speedup of ~1400 times, average temporal errors of 0.27% for pressure and 0.099% for saturation plumes, and mean water-rate error less than 5% (Yan et al., 2021).

Physics-constrained generative formulations extend the same logic beyond deterministic surrogates. PINF reformulates time-dependent and steady-state Fokker–Planck equations as characteristic ODEs within continuous normalizing flows, enforcing probability conservation through change-of-variables and continuity relations while remaining mesh-free and causality-free (Liu et al., 2023). DAE-HardNet likewise reframes constraint enforcement by learning both functions and derivatives simultaneously and then projecting them onto the feasible set defined by differential-algebraic equations (Golder et al., 5 Dec 2025). These models are notable because the learned object is not necessarily a single field value; it may be a normalized probability density, a feasible DAE state, or a parameterized family of PDE solutions.

5. Application domains and reported performance

The breadth of applications is unusually wide. In hydrology, physics-constrained deep learning reconstructs pressure head, soil moisture, and hydraulic conductivity fields from sparse sensors by combining Richards-type transport with the van Genuchten constitutive model. A direct optimizer comparison found that Adam consistently outperforms RMSProp and GD, with full-batch Adam reaching final loss 0.0010, u=ψ/yu=\partial\psi/\partial y4, and u=ψ/yu=\partial\psi/\partial y5 in the reported setup (Xie et al., 2024). The same domain also produced a unified physics-constrained active learning framework for sensor placement, where combining residual-based sampling with maximin space-filling design reduced relative error by 42.4% in evaporation and improved accuracy by 51.8% in infiltration compared with random placement (2403.07228).

In turbulence and CFD uncertainty quantification, the dominant pattern is hybridization of a physics backbone with learned modulation. Physics Constrained Deep Learning for turbulence model uncertainty quantification retains eigenspace perturbations of Reynolds stresses but uses a lightweight 1D-CNN or CNN-based correction to control the degree of eigenvalue perturbation spatially. On separated flows such as the SD7003 airfoil and periodic hills, the corrected prediction reduces u=ψ/yu=\partial\psi/\partial y6 error by about two orders of magnitude relative to RANS in difficult regions, while also concentrating uncertainty in separation bubbles and reattachment zones instead of distributing worst-case perturbations uniformly (Chu et al., 2024, Chu et al., 4 Sep 2025).

In imaging, the same paradigm appears in both inverse reconstruction and modality fusion. PtychoPINN combines the diffraction forward map with real-space overlap constraints and a Poisson photon-counting likelihood, retaining the factor of 100-to-1000 speedup of deep learning-based reconstruction while improving reconstruction quality with a typical 10 dB PSNR increase and a 2- to 6-fold gain in linear resolution (Hoidn et al., 2023). In proton therapy, the PDMI framework combines MRI, dual-energy CT, and a physics-constrained loss tied to an empirical HU model; the paper reports that PRN-MR-DE predicted the densities of soft tissue and bone within expected intervals based on the literature survey, while PRN-DE generated large density deviations (Chang et al., 2022).

In biomedical and building applications, physics constraints are likewise tied to robustness and interpretability. The inverse ECG model combines the torso-heart transfer matrix with the Aliev–Panfilov reaction-diffusion system and, at u=ψ/yu=\partial\psi/\partial y7, reports u=ψ/yu=\partial\psi/\partial y8 and u=ψ/yu=\partial\psi/\partial y9, outperforming Tikhonov and spatiotemporal regularization baselines (Xie et al., 2021). For a real-world office building with 20 thermal zones, the structured constrained recurrent model uses only 10 days’ measurements for training, generalizes over 20 consecutive days, and reaches a normalized open-loop test MSE of about 0.0052, corresponding to roughly 0.18 K error per output (Drgona et al., 2020). VB-NET extends the same philosophy to demand-side flexibility, reporting high-precision modeling for new AC units using only 2% to 6% of historical data (Qi et al., 8 Mar 2026).

6. Methodological tensions, limitations, and open questions

The central controversy concerns soft versus hard enforcement. PECANN explicitly argues that the standard PINN formulation is limited because PDE residuals and boundary conditions are treated as soft penalties with manually tuned weights, and reports orders of magnitude improvements in accuracy when constraints are enforced through an augmented Lagrangian formulation instead (Basir et al., 2021). DAE-HardNet makes a related argument for DAEs, stating that traditional PINNs do not always satisfy physics-based constraints and that hard projection can achieve orders of magnitude reduction in the physics loss while maintaining prediction accuracy (Golder et al., 5 Dec 2025). By contrast, other works deliberately retain soft penalties because they are easy to implement and differentiable in standard frameworks, as in soil moisture, inverse ECG, and building thermal modeling (Xie et al., 2024, Xie et al., 2021, Drgona et al., 2020).

Optimization remains a substantive issue rather than a mere implementation detail. The soil-moisture study shows that, in a highly nonlinear physics-constrained objective, adaptive optimization matters markedly: GD converges slowest, RMSProp improves adaptivity, and Adam gives the best empirical convergence in both mini-batch and full-batch training (Xie et al., 2024). This optimization sensitivity is consistent with broader reports that training remains nonconvex, that penalty balancing can destabilize learning, and that even physically correct formulations may fail without appropriate architectures or optimizers (Basir et al., 2021, Sun et al., 2019).

Generalization is another qualified success. Several papers report improved sample efficiency or cold-start behavior when physical structure reduces the effective hypothesis space: weather postprocessing is especially advantageous when data is scarce, the building model generalizes from only 10 training days, and VB-NET adapts to new AC units with only 2% to 6% of historical data (Zanetta et al., 2022, Drgona et al., 2020, Qi et al., 8 Mar 2026). Yet extrapolation limits remain explicit. In periodic hills, performance deteriorates as v=ψ/xv=-\partial\psi/\partial x0 increases beyond the training case (Chu et al., 4 Sep 2025). In high-dimensional probabilistic PDE surrogates, uncertainty does not always inflate on far-away out-of-distribution inputs (Zhu et al., 2019). In cavity flow, zero-data learning fails for sufficiently high Reynolds numbers (McDevitt et al., 2022). These results caution against equating physics constraints with universal extrapolation guarantees.

A final limitation is that “physics” is itself model-dependent. Reaction-diffusion priors in inverse ECG, screened-collision assumptions in runaway-electron modeling, or specific constitutive laws in soil hydrology can all be imperfect representations of the underlying system (Xie et al., 2021, McDevitt et al., 2024, Xie et al., 2024). Physics-constrained deep learning therefore inherits both the strengths and the misspecification risks of the embedded model. The literature nonetheless converges on a common conclusion: when the governing structure is known well enough to be encoded, neural networks that learn within that structure tend to be more interpretable, more stable, and more data-efficient than unconstrained alternatives.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (20)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Physics Constrained Deep Learning.