This paper, published in Transactions on Machine Learning Research, presents a robust Bayesian framework for learning the laws of physics directly from observed motion. By combining Gaussian Processes (GPs) with the structural constraints of Hamiltonian mechanics, the authors provide a method that is not only data-efficient but also provides well-calibrated uncertainty—a critical feature missing from standard "black-box" neural network approaches.
The Challenge: Uncertainty and Stability in Physical Learning
In classical mechanics, many systems are "Hamiltonian," meaning they conserve a quantity called energy. While we can often derive these equations from first principles, many real-world systems are too complex for manual derivation. Recent "Physics-Informed" machine learning, like Hamiltonian Neural Networks (HNNs), can learn these systems from data. However, they face two major hurdles:
- Uncertainty: Neural networks provide "point solutions." They don't quantify their confidence, which is dangerous when extrapolating physical systems.
- Long/Noisy Data: Learning from long trajectories is numerically unstable because small errors at the start of a simulation compound exponentially (the "exploding gradient" problem).
Methodology: Hamiltonian Gaussian Processes
The authors introduce Hamiltonian Gaussian Processes (HGPs), a model that learns energy-conserving dynamics from noisy, long-duration trajectory data. The proposed solution is two-pronged:
1. The Hamiltonian GP Prior
Instead of using a GP to model the velocity field (the derivative of the state), they place the GP prior directly on the Hamiltonian function $H(\mathbf{q}, \mathbf{p})$. Because differentiation is a linear operator and GPs are closed under linear operators, the resulting velocity field is automatically a joint GP. This "hard-codes" energy conservation into the model's DNA, ensuring it respects the laws of thermodynamics even when making errors.
2. Energy-Conserving Multiple Shooting
To handle long trajectories, the authors adapt a technique called Multiple Shooting. They break a long trajectory into smaller segments (shots). While standard shooting ensures that the end of one segment matches the start of the next in position and momentum, the authors add an energy-matching constraint. They force the model to ensure the Hamiltonian value (total energy) remains consistent across these segment boundaries, which significantly stabilizes the optimization process.
Evaluation and Results
The model was evaluated on three classic physical systems: the Fixed Pendulum (FP), the Spring Pendulum (SP), and the Henon-Heiles (HH) system. The latter is a 4D system modeling stellar motion known for complex, non-linear dynamics.
Key results include:
- Superior Forecasting: On the chaotic Henon-Heiles system, the HGP achieved significantly lower Root Mean Square Error (RMSE) and better Negative Log Likelihood (MNLL) than both Neural ODEs and HNNs.
- Massive Speedup: The multiple shooting implementation allowed for parallelization, resulting in a 15x speedup for the longest trajectories compared to standard GP-ODE inference.
- Robustness to Noise: While standard GP models degraded sharply as noise increased, the HGP remained remarkably stable thanks to its physical constraints.
Insights and Future Work
The research demonstrates that inductive bias beats data volume. By forcing the model to be Hamiltonian, the HGP requires far less data to reach high accuracy. However, the authors note limitations: the current model assumes closed systems where energy is perfectly conserved. Future work could extend this to "dissipative" systems (with friction) or systems with external control forces. Additionally, while the HGP excelled at forecasting, its performance on "Initial Condition Extrapolation" was more modest, suggesting that distributing inducing points effectively over a large phase space remains a challenge.
Summary updated