TL;DR
Nature is remarkably lazy: a chaotic double pendulum captured on a million-pixel video sensor still only cares about two simple angles. Structured Phase Space GAN (SPS-GAN) is a generative model that watches raw videos or trajectories of physical systems—even messy ones with friction or external pushes—and automatically discovers their true, minimal mechanical coordinates while generating realistic new motion.
What Problem Does This Paper Address?
Teaching neural networks classical physics—like Hamiltonian mechanics, which tracks a system's total energy via generalized positions ($\mathbf{q}$) and momenta ($\mathbf{p}$)—prevents them from predicting physically absurd futures. However, existing physics-informed networks usually ask for a massive handout: you have to feed them the exact, clean canonical coordinates (like pendulum angles) up front, and they typically assume an idealized universe with zero friction.
In the real world, we don't observe clean phase spaces; we observe pixel grids or 3D Cartesian coordinates $(x, y, z)$. Recent generative models have tried learning latent physics directly from raw video, but they struggle to simultaneously handle different physical regimes (conservative, dissipative, and externally forced) while boiling the latent space down to something compact and human-interpretable. How do we build a generative model that watches raw data, accounts for real-world energy loss, and discovers the underlying mechanical degrees of freedom on its own?
Methods
SPS-GAN pairs conditional adversarial generation (GANs) with a physics-structured latent backbone:
- Phase-Space Map: Instead of requiring a known starting state, an MLP maps random Gaussian noise and system conditioning info ($\xi$, such as system identity or object size) to an initial latent state $\mathbf{z}_0 = (\mathbf{q}_0, \mathbf{p}_0)$ inside an intentionally oversized 10-dimensional space.
- Port-Hamiltonian Latent Dynamics: Rather than using standard energy-conserving Hamiltonians, the latent state evolves forward in time via a Port-Hamiltonian Neural Network (pHNN). This standard control-theory formulation cleanly separates conserved energy from learned energy dissipation (like friction) and external forcing.
- Extended Cyclic-Coordinate Regularization (The Secret Sauce): In classical mechanics, if a coordinate doesn't affect the system's energy, it is "cyclic" (ignorable), and its momentum stays constant. While prior work penalized momentum changes to prune unneeded latent dimensions, friction and forcing naturally change momentum even for cyclic coordinates! The authors cleverly subtract out the learned dissipation and forcing terms inside their regularizer, isolating and penalizing only the Hamiltonian's coordinate derivatives. This forces redundant dimensions to go dormant without breaking non-conservative physics.
- Modality Decoders: Finally, either an MLP decodes the latent trajectory into Cartesian coordinates, or a CNN (paired with a static visual content code) renders it into video frames, judged by image and temporal discriminators.
Datasets
No new datasets are introduced; instead, the authors evaluate across simulated benchmarks and existing real-world recordings:
- Simulated Systems (Cartesian & Rendered Video): Conservative systems (mass-spring, single pendulum, chaotic double pendulum, two-body, and three-body gravitational systems) alongside non-conservative systems (damped pendulum and forced Duffing oscillator).
- Real-World Systems: Existing trajectory and video datasets of freely swinging real-world single and double pendulums, complete with natural air resistance, friction, and lighting quirks.
Key Insights and Ideas
- Untangling Friction from Redundancy: By mathematically isolating conservative forces from dissipative ones in the regularization loss, a network can compress its latent space without mistaking friction for a new degree of freedom.
- Discovering Textbook Coordinates from Pixels: When the authors apply Principal Component Analysis (PCA) to the learned 10D coordinate space, the dimensions needed to explain 95% of the variance match the exact analytical degrees of freedom across all 11 simulated and real settings (e.g., 1 DoF for a two-body orbit, 2 DoF for a three-body system). Even cooler: sweeping along those active PCA directions and decoding them reveals that the network organically discovered polar radius, orbital angles, and pendulum angles—despite only ever seeing Cartesian $(x,y)$ points or RGB pixels!
- Multi-System Sharing: Conditioning the phase-space map and pHNN on system labels (
cSPS-GAN) allows a single shared network to accurately simulate completely different physical systems and visual styles at once.
Key Results
- Trajectory Accuracy: By aligning generated initial states with a ground-truth simulator, SPS-GAN achieves the lowest Mean Squared Error (MSE) on 4 out of 5 conservative systems (e.g., $1.26 \times 10^{-3}$ on Three-Body vs. $2.81 \times 10^{-3}$ for HNN) and sweeps all non-conservative benchmarks ($4.57 \times 10^{-4}$ on Damped Pendulum, beating pHNN and NeuralODE).
- Chaos & Long-Horizon Stats: Over 200-step rollouts on the chaotic double pendulum, SPS-GAN best preserves long-term attractor geometry, logging a 4.52% relative energy drift (compared to 11.61% for HNN and 24.72% for NeuralODE) and the lowest Wasserstein distances across phase space and Poincaré sections.
- Video Realism: SPS-GAN achieves the best Fréchet Video Distance (FVD) across all five rendered benchmarks (e.g., 24.1 on Double Pendulum vs. 73.2 for HGAN and 331.9 for HGN). On real-world pendulum videos, it generates smooth, coherent swings whose extracted energy variance (2.9%) closely mirrors the real footage (2.7%), whereas baselines freeze or tear apart.
Limitations and Future Work
- Smoothness Assumptions: Because port-Hamiltonian dynamics assume smooth vector fields, SPS-GAN isn't built for discontinuous physics like rigid-body collisions, impacts, or heavily stochastic systems.
- Threshold & Noise Sensitivity: Estimating exact degrees of freedom relies on a 95% PCA variance threshold. While robust down to a 10 dB signal-to-noise ratio, heavier sensor noise or stricter thresholds cause the method to overestimate active dimensions.
- Planar Real-World Scope: Real-world tests were limited to planar pendulums; scaling up to full 3D, contact-rich robotic interactions remains an open frontier for future work.
Summary updated