When we train a standard neural network to predict the motion of a pendulum or the flow of a fluid, we are essentially asking it to be a sophisticated curve-fitter. While these "black-box" models are excellent at mimicking patterns in the short term, they often fail catastrophically over long horizons. A pendulum might start swinging higher and higher, gaining energy out of nowhere, or a fluid simulation might "leak" mass until it disappears.
This phenomenon, often called energy drift or numerical drift, occurs because standard architectures have no inherent understanding of the laws of physics. They do not know that energy must be conserved or that mass cannot vanish. To solve this, a growing body of research focuses on "baking" physical conservation laws directly into the structure of neural networks.
The Problem of Energy Drift
In classical physics, the state of a system is governed by invariants—quantities like total energy, momentum, or mass that remain constant over time. However, as Greydanus et al. point out, standard neural networks often fail to conserve these quantities, leading to cumulative numerical errors. Even a tiny violation of a physical law at each time step can aggregate into a physically impossible trajectory, causing simulations to "explode" or drift into unphysical states.
This is particularly problematic in safety-critical applications. As Sivaranjani et al. argue, high-capacity networks that fail to inherit properties like dissipativity are unreliable for control systems where stability and robustness are non-negotiable.
Learning the Energy Function
The most influential approach to this problem is to shift the learning target. Instead of training a network to predict the next state directly, researchers propose learning the underlying Hamiltonian or Lagrangian—the scalar energy functions that define the system's "source code."
- Hamiltonian Neural Networks (HNNs): Greydanus et al. introduced models that learn to discover a conserved energy-like quantity. By using the gradients of this learned energy to update the system state, the model becomes perfectly reversible in time and significantly more stable.
- Symplectic Integration: Even if a network learns the correct energy function, the way we step through time matters. Zhong et al. and DiPietro et al. use symplectic integrators, which are specialized numerical schemes designed to preserve the geometry of physical systems (phase space volume). This combination ensures that the predicted states do not spiral away from realistic trajectories.
Enforcing Constraints by Design
Beyond energy, other conservation laws like mass and momentum require different architectural strategies.
For instance, Hoedt et al. developed the Mass-Conserving LSTM (MC-LSTM). Unlike a standard LSTM that can erase or scale its internal memory arbitrarily, the MC-LSTM uses redistribution matrices to ensure that the total "mass" within the system is strictly preserved. This makes it far more effective for modeling physical processes like flooding.
Similarly, in particle-based simulations, Bishnoi et al. introduced BroGNet, which embeds Newton’s third law (equal and opposite reactions) as a hard constraint. By forcing interactions between particles to be symmetric, the model guarantees the conservation of linear momentum, allowing it to generalize to systems much larger than those seen during training.
Stability in Complex Systems
The benefits of these physics-constrained approaches become most apparent in large-scale, long-term simulations like weather forecasting or molecular dynamics.
In climate modeling, Wang et al. demonstrate that enforcing physical limits on condensation prevents the numerical crashes that typically plague deep learning emulators. In the realm of molecular dynamics, Bigi et al. show that energy-conservation filters allow for much larger time strides, speeding up simulations by orders of magnitude without sacrificing physical grounding.
Ultimately, this research direction suggests that the path to more powerful AI for the physical sciences is not just more data or larger models, but a more disciplined adherence to the fundamental rules of the universe. By treating physical laws as inductive biases rather than mere suggestions, researchers like Matsubara and Kasim are creating models that are not just accurate, but physically trustworthy.
Key Foundational Work
Variational Integrator Networks for Physically Meaningful Embeddings (2019) — contributed 1 concept elements to this direction.
Sparse Symplectically Integrated Neural Networks (2020) — contributed 1 concept elements to this direction.
Hamiltonian Neural Networks (2019) — contributed 1 concept elements to this direction.