Abstract
The Hamiltonian GAN (HGAN) framework integrates physical laws directly into the generative process of a Generative Adversarial Network. By leveraging Hamiltonian mechanics as an inductive bias, HGAN generates physically plausible videos of dynamical systems while simultaneously discovering interpretable, low-dimensional representations of the underlying physics without prior knowledge of the system's configuration space.
Introduction
Generating realistic video requires ensuring temporal coherence and physical consistency between frames. In physics-guided machine learning, the Hamiltonian formalism—describing systems via energy conservation—is often used to enforce physical laws. However, existing methods, primarily Variational Autoencoders (VAEs), often require prior knowledge of a system's physical structure to learn interpretable latent spaces. Without this, they frequently produce high-dimensional, uninterpretable latent representations. HGAN addresses this by learning the simplest possible physical representation directly from raw video data.
Methodology
HGAN employs a three-stage pipeline that replaces standard recurrent units with physics-informed modules:
- Configuration-Space Map ($f$): Maps Gaussian noise into an intermediate "configuration space" representing physical coordinates.
- Hamiltonian Neural Network (HNN) Module: Evolves the system's state using Hamilton’s equations, ensuring continuous trajectories and energy conservation.
- Cyclic-Coordinate Loss ($\mathcal{L}_{cyc}$): This novel loss function encourages a minimal representation by penalizing unnecessary momentum changes in latent dimensions that do not contribute to the system's total energy.
The entire system is trained within a GAN framework, where a generator creates videos and a discriminator distinguishes them from real physics simulations.
Experimental Setup
The model was evaluated on the Hamiltonian Dynamics Suite, featuring simulations of mass-spring systems, single/double pendulums, and two/three-body systems. These simulations are frictionless and conservative, focusing on pure dynamical motion without dissipative forces.
Results and Discussion
HGAN demonstrates several advantages over standard GANs (e.g., MoCoGAN) and VAE-based models (e.g., HGN):
- Physical Regularization: By obeying Hamilton’s equations, HGAN produces smoother transitions and avoids the jitter common in black-box models. Visual results show HGAN maintains object structure (like pendulum bobs) better over long sequences.
- Dimensionality Discovery: The cyclic-coordinate loss allows HGAN to "discover" the true degrees of freedom. For a pendulum, it compresses motion onto a 1D manifold even within a higher-dimensional latent space.
- Quantitative Performance: HGAN consistently outperforms baselines in Frechet Video Distance (FVD) across several complex systems, including the Pendulum, Double Pendulum, and Two-body systems.
Limitations and Future Work
While HGAN excels in "Toy Physics" environments, extending it to real-world video with complex backgrounds and non-conservative forces (like friction) remains a challenge. Future work may explore Lagrangian mechanics or dissipative systems to better model real-world dynamics where energy is not perfectly conserved.
Summary updated