Physically Plausible Multi-System Trajectory Generation and Symmetry Discovery

Jiayin Liu, Yulong Yang, Vineet Bansal, Christine Allen-Blanchette

TL;DR

The authors introduce Symplectic Phase Space GAN (SPS-GAN), a generative model that learns the physics of multiple dynamical systems simultaneously and generalizes to unseen physical parameters. Crucially, it discovers a system's underlying symmetries and true degrees of freedom from raw data (like trajectories or video frames) without any prior knowledge of its configuration space.

What Problem Does This Paper Address?

Recent physics-informed neural networks, such as Hamiltonian Neural Networks (HNNs), have successfully embedded classical mechanics principles into deep learning. By enforcing energy conservation laws, these models generate highly realistic, physically plausible rollouts.

However, existing approaches suffer from three major limitations:

  1. Single-System Focus: They are typically trained on a single system with fixed physical parameters (e.g., a specific pendulum with a fixed mass and length).
  2. Prior Knowledge Dependency: They assume the dimension and structure of the system's configuration space (the number of generalized coordinates) are known beforehand.
  3. State-Space Constraints: They usually require direct access to clean state-space measurements (positions and momenta) rather than raw, high-dimensional observations like video.

SPS-GAN tackles these gaps by learning a unified representation for multiple heterogeneous systems, generalizing to unseen physical parameters, and discovering the intrinsic dimensionality of the system directly from raw data.

Methods

SPS-GAN combines a Conditional Generative Adversarial Network (cGAN) backbone with a latent space governed by Hamiltonian dynamics.

The architecture operates in three stages:

  1. Configuration Space Map: A mapping function $f$ takes a random motion sample and projects it onto an intermediate latent space of arbitrary dimension ($d_{lat}$). This space acts as the learned motion manifold.
  2. Latent Space Motion Model: An HNN module evolves the latent coordinates forward in time. To prevent numerical energy drift over long horizons, the model integrates Hamilton's equations using a symplectic Leapfrog integrator.
  3. Generator/Decoder: The latent trajectories are decoded into the target domain. The paper introduces two variants: SPS-GAN-traj (which uses an MLP to output Cartesian coordinates) and SPS-GAN-video (which uses a CNN decoder to generate RGB video frames).
Figure 1: SPS-GAN-traj for generating Cartesian trajectory. The random motion sample ϵm is mapped onto the manifold for the dynamical system to create the latent initial condition of the system. The initial conditional is propagated in time using an HNN block to generate a trajectory on the latent space. Cartesian trajectories are generated by passing the latent trajectories through the GT.

The Secret Sauce: Cyclic Coordinate Loss

To discover symmetries without supervision, the authors introduce a sparsity-inducing Cyclic Coordinate Loss: $$\mathcal{L}_{cyclic} = \lambda_{cyclic} \sum |\dot{p}_i|$$ In Hamiltonian mechanics, if a generalized position coordinate doesn't affect the system's total energy, its corresponding momentum derivative ($\dot{p}_i$) is zero (making it a "cyclic" or ignorable coordinate). By penalizing non-zero momentum derivatives, this loss forces the network to compress the latent space down to its absolute minimal physical degrees of freedom.

Datasets

The model was evaluated on several complex simulated and real-world datasets:

  • Simulated Systems (HGN Pipeline): Mass-spring oscillator, ideal pendulum, chaotic double pendulum, planar two-body system, and planar three-body system.
  • Real-World Data: Single pendulum trajectory data recorded from physical experiments by Schmidt & Lipson (2009).
  • Bifurcation System: A 1-Degree-of-Freedom Hamiltonian saddle-node bifurcation system used to test parameter variations across qualitative regime shifts.

Key Insights and Ideas

  • Unsupervised Symmetry Discovery: By simply minimizing the cyclic coordinate loss, the model automatically performs physical dimensionality reduction. For instance, even when a two-body system is naively represented in 4D Cartesian coordinates, SPS-GAN correctly identifies that its motion actually lives on a 1D radial manifold.
  • Disentangling Content and Motion: By conditioning the GAN on system labels and physical parameters (like mass), the architecture successfully separates what the object is (content/appearance) from how it moves (physics). This allows it to simulate completely unseen system configurations.

Key Results

  • Trajectory Prediction: Despite being an unsupervised generative model, SPS-GAN achieves trajectory prediction error (MSE) on par with fully supervised HNNs. For example, on a chaotic double pendulum, SPS-GAN achieved an MSE of $3.25 \times 10^{-2}$ compared to HNN's $1.25 \times 10^{-1}$.
  • Video Generation Quality: SPS-GAN drastically outperforms previous physics-informed generative models like Hamiltonian Generative Networks (HGN). On the chaotic double pendulum video generation task, SPS-GAN achieved a Fréchet Video Distance (FVD) of 24.12, compared to HGAN (73.21) and HGN (331.94)—lower is better.
  • Robustness to Friction: When tested on real-world pendulum data, PCA eigenvalue analysis of the latent space revealed a dominant 1D subspace, with a tiny second eigenvalue capturing the non-Hamiltonian effects of friction.

Limitations and Future Work

While SPS-GAN represents a major step forward, the authors note a few key limitations:

  • Unconstrained Decoder: Although the latent space strictly obeys Hamiltonian conservation laws, the decoding MLP/CNN is unconstrained. This means the final generated pixels or Cartesian coordinates might still exhibit minor physical inconsistencies or energy drift.
  • Standard Discriminator: The model currently relies on a standard RNN-based discriminator. The authors suggest that embedding general Hamiltonian constraints directly into the discriminator is a promising avenue for future work.
  • Downstream Applications: The learned representations have not yet been applied to downstream tasks like energy-based control or anomaly detection on entirely unknown real-world systems.

Summary updated

BibTeX
@misc{liu2025physically,
  author = {Jiayin Liu and Yulong Yang and Vineet Bansal and Christine Allen-Blanchette},
  title = {{Physically Plausible Multi-System Trajectory Generation and Symmetry Discovery}},
  year = {2025},
  eprint = {2509.23003},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.23003},
}
Figure