Structure Preserving Neural Networks for Physical Dynamics

This direction is split into other directions: violation of conservation laws. Its last version stays readable and citable here.

Version 1 of 196 papers98 conceptsfrozen 2026-10-04

When we train a standard neural network to predict the future state of a physical system, we are essentially asking it to be a sophisticated curve-fitter. Given enough data, a "black-box" model can mimic a pendulum or a fluid flow for a short period. However, these models inevitably fail over long horizons. They "leak" energy, gain mass, or violate the second law of thermodynamics, leading to trajectories that spiral into unphysical nonsense.

The core issue is that standard architectures lack inductive biases for the fundamental symmetries of our universe. A new direction in research seeks to move beyond curve-fitting by embedding the formal structures of classical mechanics—such as Hamiltonian and Lagrangian formulations—directly into the neural network's architecture.

The Problem of Energy Drift

In classical mechanics, many systems are "conservative," meaning quantities like total energy or momentum remain constant over time. When Miles Cranmer, Sam Greydanus, and others analyzed standard Neural Ordinary Differential Equations (ODEs), they found that these models treat every dimension of the state space as independent. They don't "know" that position and momentum are coupled in a specific way.

As Takashi Matsubara and Takaharu Yaguchi point out in FINDE: Neural Differential Equations for Finding and Preserving Invariant Quantities, small numerical errors in a black-box model accumulate. Without a structural constraint to keep the system on the "energy surface," the model drifts. This is why a simulated pendulum in a standard neural network will eventually either stop moving or start spinning faster and faster, violating the law of conservation of energy.

Learning the Energy Functional

Instead of learning to predict the next state directly, structure-preserving networks learn the underlying energy functional of the system.

In Lagrangian Neural Networks, the network parameterizes a scalar-valued function $L(q, \dot{q})$—the Lagrangian. The actual dynamics are then derived by passing this learned function through the Euler-Lagrange equations. Similarly, Symplectic ODE-Net learns a Hamiltonian $H(q, p)$.

By learning the energy function rather than the force field, the model is forced to respect the relationship between coordinates. As Michael Lutter and Jan Peters demonstrated with Deep Lagrangian Networks, this approach allows robots to learn complex control laws that are inherently stable and physically consistent, even when data is sparse.

Symplectic Integration: Physics in Discrete Time

Even if a neural network perfectly learns a Hamiltonian, the way we step through time matters. Standard integration schemes (like Euler or Runge-Kutta) do not preserve the geometric properties of Hamiltonian systems, such as phase-space volume.

To solve this, researchers like Alexander Terenin and Marc Peter Deisenroth introduced Variational Integrator Networks (VINs). These networks don't just learn the physics; they mirror the discrete-time equations of motion used in high-fidelity physics engines. By using symplectic integrators, these models ensure that the "area" in phase space is preserved, which prevents the long-term energy drift that plagues other models. Daniel M. DiPietro and Bo Zhu further refined this with Sparse Symplectically Integrated Neural Networks, showing that combining these integrators with symbolic regression can uncover the actual "source code" of physical laws from raw data.

Scaling to Particles and Graphs

Physical systems rarely consist of a single pendulum. They are often composed of many interacting parts—particles in a fluid, atoms in a molecule, or links in a robotic arm.

To handle this complexity, researchers have merged structure-preserving mechanics with Graph Neural Networks (GNNs). Ravinder Bhattoo, Sayan Ranu, and N. M. Anoop Krishnan developed Lagrangian Graph Neural Networks (LGNN). By treating the system as a graph where nodes are particles and edges are interactions, LGNNs can learn the energy of a small system (like a 4-link chain) and generalize "zero-shot" to massive systems (like a 100-link chain) because the underlying physical laws remain the same regardless of the number of components.

This scaling extends to continuous fields as well. Anthony Zhou and Amir Barati Farimani introduced Hamiltonian Neural Solvers (HNS), which apply these Hamiltonian principles to Partial Differential Equations (PDEs), ensuring energy conservation in complex fluid and wave simulations.

Beyond Conservation: Dissipation and Constraints

Real-world physics isn't always conservative; friction and heat cause energy to dissipate. Recent work has expanded structure-preserving networks to handle these "non-conservative" systems without losing stability.

  • Energy Dissipation: Yue Wu and colleagues developed EStable-Net, which incorporates energy stability directly into the network's block structure to solve gradient flow equations while strictly obeying the law of energy dissipation.
  • Algebraic Constraints: In complex networks like power grids, variables must satisfy rigid algebraic rules (like Kirchhoff's laws). Cyrus Neary and Ufuk Topcu introduced Neural Port-Hamiltonian Differential Algebraic Equations to "snap" together learned components into a larger, physically consistent network.

By shifting the focus from learning what happens to learning why it happens—through the lens of energy, symmetry, and geometry—these researchers are creating a new generation of AI that doesn't just mimic the world, but fundamentally understands its rules.

Papers in this version

Showing 60 of 96 papers.

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_structure_preserving_neural_networks_for_25b20ff7,
  title = {Structure Preserving Neural Networks for Physical Dynamics},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/structure-preserving-neural-networks-for-physical-dynamics/rdr_25b20ff7019b47a3bebc8ef834d4d185},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-24},
}

This exact version (version 1, frozen text):

@misc{lacuna_structure_preserving_neural_networks_for_25b20ff7_v1,
  title = {Structure Preserving Neural Networks for Physical Dynamics},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/structure-preserving-neural-networks-for-physical-dynamics/rdr_25b20ff7019b47a3bebc8ef834d4d185/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-24},
}