Learning Hamiltonian Dynamics at Scale: A Differential-Geometric Approach

Katharina Friedl, Noémie Jaquier, Alyx Liao, Danica Kragic

Introduction

Embedding physical intuition into neural network architectures allows models to learn dynamics that enforce fundamental properties, such as energy conservation laws. This leads to physically-plausible predictions that standard black-box models often fail to achieve. The Reduced-order Hamiltonian Neural Network (RO-HNN) is a novel architecture designed to scale physics-informed learning to high-dimensional systems. By combining Hamiltonian mechanics with model order reduction, RO-HNN embeds differential-geometric constraints directly into a specialized autoencoder. This allows the model to learn a low-dimensional, "physics-aware" latent space that guarantees energy conservation and stability for complex, high-dimensional systems like fluids and robotics.

The Challenge: Scaling Hamiltonian Mechanics

In the realm of physics-informed machine learning, Hamiltonian Neural Networks (HNNs) are considered the gold standard for learning energy-conserving systems. By learning the underlying Hamiltonian function rather than just raw trajectories, HNNs inherently respect the fundamental laws of physics.

However, HNNs face a significant "scaling wall." They typically only succeed on low-dimensional systems (e.g., 2–5 degrees of freedom). Real-world physical challenges—such as simulating a piece of cloth, a fluid vortex, or a complex robotic manipulator—involve hundreds or thousands of dimensions. Standard deep learning approaches for dimensionality reduction, like vanilla autoencoders, often destroy the delicate geometric structure (the symplectic structure) required for Hamiltonian mechanics. Without preserving this structure, long-term simulations quickly become unstable and physically nonsensical.

Methodology: The RO-HNN Architecture

To bridge the gap between high-dimensional data and structured Hamiltonian learning, the authors introduce RO-HNN, which relies on three core innovations:

1. Geometrically-Constrained Symplectic Autoencoder

Instead of a standard autoencoder, the authors employ a "cotangent lift" approach. They first reduce the configuration space (positions) and then mathematically "lift" that reduction to the phase space (positions + momenta). This ensures that the latent space is, by construction, a symplectic manifold. By utilizing biorthogonal manifolds and specific activation functions, these geometric properties are enforced as hard architectural constraints rather than soft penalties in the loss function. This avoids the "stiff" optimization issues common in penalty-based physics-informed models.

2. Geometric HNN on the Submanifold

Once the data is mapped to the low-dimensional latent space, RO-HNN avoids using a generic multi-layer perceptron. Instead, it models the kinetic and potential energy separately. Crucially, the mass-inertia matrix is treated as an element of a Symmetric Positive Definite (SPD) manifold. By using Riemannian geometry (specifically Riemannian Adam) to optimize its parameters, the model achieves significantly better accuracy and data efficiency compared to standard Euclidean optimization.

3. Strang-Symplectic Integration

To evolve the system over time, RO-HNN utilizes a specialized integrator that preserves the symplectic volume. This prevents the "numerical drift" (artificial energy gain or loss) that plagues standard solvers like Runge-Kutta during long-horizon simulations.

Experimental Setup

The model was evaluated on three increasingly complex simulated systems:

  • Coupled Pendulum (15 DoF): A 3-link pendulum coupled with a 12-node mass-spring mesh.
  • Particle Vortex (90 DoF): A system of 90 particles interacting via logarithmic potentials, representing fluid-like dynamics.
  • Thin Cloth (600 DoF): A high-dimensional, damped system of 200 masses falling onto spheres, representing complex deformable objects.

Key Findings and Results

  • Unprecedented Stability: On the 15-DoF pendulum, standard HNNs diverged almost immediately. In contrast, RO-HNN produced stable, accurate trajectories over long horizons, matching the performance of an idealized model trained directly on ground-truth low-dimensional data.
  • Superior Accuracy: RO-HNN significantly outperformed the Hamiltonian Neural Koopman Operator (HNKO), a state-of-the-art baseline, particularly in long-term predictions and under noisy observation conditions.
  • Massive Speedups: For the 600-DoF cloth system, RO-HNN was approximately 16x faster than the full-order simulation (FOM) while maintaining high visual and physical fidelity.
  • Robust Generalization: The model successfully predicted dynamics for time steps well beyond its training window. For example, it accurately predicted cloth behavior up to $t=0.5s$ despite only being trained on data up to $0.3s$.

Limitations and Future Directions

While RO-HNN marks a significant step forward, the authors note a few limitations and avenues for future research:

  • Latent Dimension Trade-off: There is a "Goldilocks" problem in selecting the latent dimension: a space that is too small cannot capture the underlying physics, but one that is too large makes the latent HNN exceedingly difficult to train.
  • Canonical vs. Non-Canonical Systems: The current architecture assumes the system possesses a "canonical" symplectic form. Future work aims to extend this framework to more general Poisson systems and non-canonical forms using the Darboux theorem.
  • Real-Time Control: A natural next step is leveraging these high-speed, low-dimensional, physics-aware models for real-time model predictive control (MPC) in complex robotic systems.

Summary updated

BibTeX
@inproceedings{friedl2026learning,
  author = {Katharina Friedl and Noémie Jaquier and Alyx Liao and Danica Kragic},
  title = {{Learning Hamiltonian Dynamics at Scale: A Differential-Geometric Approach}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=dkcdYllv9f},
}
Figure