Encoding Physical Laws into Gaussian Process Priors

275 concepts168 papers1 proposal

Gaussian Processes (GPs) are the workhorses of Bayesian non-parametric modeling, prized for their ability to provide well-calibrated uncertainty estimates. However, a standard GP is "physics-blind." It assumes that data points are related through simple smoothness or periodicity, ignoring the fundamental laws—like energy conservation, fluid dynamics, or thermodynamics—that govern the physical world.

When data is sparse or noisy, a standard GP might propose solutions that are mathematically possible but physically absurd. To bridge this gap, researchers have developed Physics-Informed Gaussian Processes (PIGPs). By embedding differential equations and physical symmetries directly into the GP’s mathematical structure, these models gain the ability to "reason" with the consistency of a simulator while maintaining the flexibility of a machine learning model.

The Linear Operator Property

The most elegant way to inject physics into a GP relies on a fundamental property of Gaussian distributions: any linear transformation of a Gaussian random variable is itself Gaussian. Since differentiation is a linear operator, if we assume a system's state follows a GP, its derivatives must also follow a GP.

Raissi and Karniadakis demonstrated that by applying linear differential operators directly to a covariance kernel, one can construct a joint GP that models both the unknown solution and the physical forces acting upon it. This allows the model to treat the parameters of a differential equation as hyperparameters, enabling the discovery of physical constants from as few as seven observations. As the authors argue, this transformation ensures the probabilistic model inherently respects the underlying physics during inference, effectively using the laws of nature as a powerful regularizer.

This approach is particularly potent in fluid dynamics. Păun et al. showed that by linearizing nonlinear partial differential equations (PDEs), the relationship between a solution and its derivatives can be preserved in a joint Gaussian distribution. This allows for the estimation of complex variables, like vessel stiffness in blood flow, without ever needing a traditional numerical solver.

Kernels Derived from First Principles

If the linear operator approach is about transforming kernels, another strategy is to derive them from the fundamental solutions of physical equations.

  • Green’s Functions: In physics, a Green’s function describes the impulse response of a differential operator. Wang et al. derived kernels from the Green’s functions of Stochastic Differential Equations (SDEs), allowing GPs to naturally incorporate mechanisms like heat diffusion. Similarly, Baldwin-McDonald et al. used these functions as random features to build "Deep Latent Force Models" that remain physically grounded even when extrapolating far beyond the training data.
  • Vector Field Constraints: Some physical laws dictate the "shape" of a field. For instance, magnetic fields must obey Maxwell’s equations. Solin et al. and the authors developed specialized kernels that are explicitly curl-free or divergence-free. By baking these constraints into the prior, the model is prevented from predicting physically impossible trajectories, such as a system gaining energy out of nowhere.
  • Hamiltonian Dynamics: For conservative systems, Ross and Heinonen introduced Hamiltonian GPs. By constraining the GP prior to follow the structural requirements of Hamiltonian mechanics, they ensure that the model adheres to the law of energy conservation, providing a "thermodynamic safety net" for the model's predictions.

Mechanistic Mean Functions

While kernels define the correlation between points, the mean function defines the expected behavior. A common "gray-box" approach is to use a simplified physical model as the GP's mean function.

Machac et al. utilized simplified ordinary differential equations (ODEs) as the prior mean for hydrological modeling, turning a six-day computation into a fraction of that time. In epidemiology, Qian developed Compartmental GPs, which use the structured backbone of SEIR models as a prior mean. This ensures that even when the machine learning model corrects for real-world data discrepancies, the overall curve remains biologically plausible.

Enforcing Boundaries and Symmetries

Physical systems are rarely infinite; they are bounded by walls, edges, and symmetries. Standard GPs often struggle at these boundaries, where data is usually thinnest.

To solve this, Dalton and Gao introduced Physics and Lie Symmetry Informed GPs (PSGPs). They explicitly enforced boundary conditions by weighting the model's output with distance functions, ensuring the function strictly adheres to known values at the domain edges. Furthermore, Zhou et al. demonstrated that incorporating fundamental constraints like monotonicity and convexity is essential for solving high-stakes problems like the "proton radius puzzle," where unconstrained models produce too much variance to be useful.

For even stricter adherence, researchers have turned to symbolic algebra. By using Gröbner bases, the authors of "Linearly Constrained Gaussian Processes with Boundary Conditions" showed how to construct kernels whose every possible realization is guaranteed to satisfy specific linear PDEs and boundary conditions exactly, without requiring soft penalties or numerical approximations.

Why It Works: The Intuition of Search Space

The success of these methods comes down to the restriction of the hypothesis space. A standard GP searches for a solution in a massive space of all possible smooth functions. By informing the GP with physics, we collapse that search space.

As Nicoli et al. noted in the context of quantum circuits, incorporating the known periodic functional form of an objective landscape acts as a natural filter against noise. The model no longer has to "learn" that the world is consistent; it is told so from the start. This results in models that require orders of magnitude less data, provide safer predictions for robotics (as seen in the work of Evangelisti), and offer a rigorous statistical foundation for scientific discovery.

History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 182 papers
  2. Version 1 · 2026-10-04 · 260 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_physics_informed_gaussian_processes_a15b7103,
  title = {physics-informed Gaussian Processes},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/physics-informed-gaussian-processes/rdr_a15b7103071744d1a7fe76b9df7c3b24},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 2, frozen text):

@misc{lacuna_physics_informed_gaussian_processes_a15b7103_v2,
  title = {physics-informed Gaussian Processes},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/physics-informed-gaussian-processes/rdr_a15b7103071744d1a7fe76b9df7c3b24/v/2},
  note = {Version 2, frozen 2026-10-04. Accessed 2026-11-25},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake