Learning Integrable Dynamics with Action-Angle Networks

Ameya Daigavane, Arthur Kosmala, Miles D. Cranmer, Tess E. Smidt, Shirley HoarXiv 2022 · DOI

Introduction

Simulating physical systems, from planetary orbits to molecular vibrations, is fundamental to scientific discovery. While traditional machine learning approaches like Neural ODEs and Hamiltonian Neural Networks (HNNs) have made strides, they often struggle with three key issues: integration drift over long trajectories, high computational costs for distant future predictions, and the need for large parameter sets to capture non-linearities.

This work introduces Action-Angle Networks (AANs), a class of physics-informed simulators designed specifically for integrable systems. These are Hamiltonian systems with sufficient symmetries to be mathematically "solvable." Although their behavior appears complex in standard coordinates (position $q$ and momentum $p$), AANs learn to map them into a latent space where their evolution becomes perfectly linear.

Methodology: The Action-Angle Architecture

The core innovation of the AAN is transforming a difficult numerical integration problem into a simple algebraic one. The architecture consists of three distinct stages:

  1. Encode ($\mathcal{T}$): The model employs Symplectic Normalizing Flows (specifically G-SympNets) to map input coordinates $(q, p)$ to "action-angle" coordinates $(I, \theta)$. This transformation is constrained to be symplectic, preserving the geometric structure of Hamiltonian mechanics.
  2. Evolve ($\mathcal{D}$): In the latent action-angle space, the "actions" ($I$) remain constant, while the "angles" ($\theta$) evolve at a constant rate ($\dot{\theta}$). A simple MLP predicts these rates from the actions. Evolution is a single linear step: $\theta(t + \Delta t) = \theta(t) + \dot{\theta}(t) \cdot \Delta t$.
  3. Decode ($\mathcal{T}^{-1}$): The evolved state is mapped back to the original coordinate space.
The Action-Angle Network architecture: Encoding complex dynamics into a linear latent space for efficient evolution.

To handle the circular topology of angles, the authors utilize a "polar coordinate trick," outputting Cartesian components to avoid mathematical singularities.

Key Results and Performance

The researchers evaluated AANs against Euler Update Networks (EUN), Neural ODEs, and HNNs using a system of coupled harmonic oscillators.

Constant-Time Inference

A standout feature of AANs is that inference time is independent of the simulation jump size ($\Delta t$). Because the model evolves states linearly in the latent space without iterative numerical integration, predicting a state far in the future takes the same amount of time as a near-term prediction.

Comparison of inference time and prediction error across different jump sizes. AANs maintain $O(1)$ inference time and superior accuracy.

Efficiency and Stability

  • Data Efficiency: AANs achieve low error rates with significantly fewer training samples than baselines, thanks to the strong inductive bias of symplectic constraints and linear latent dynamics.
  • Model Compactness: The AAN achieved superior performance with only ~8.5K parameters, a fraction of the size of Neural ODEs (~100K) or HNNs (~200K).
  • Long-term Stability: By avoiding iterative stepping, AANs eliminate the "integration drift" that typically plagues learned simulators over long roll-outs.

Conclusion and Future Directions

AANs represent a significant step forward for simulating integrable systems, offering $O(1)$ inference speed and exceptional data efficiency. While currently limited to integrable dynamics, future research aims to apply AANs as "integrable approximations" for more complex, non-integrable systems like turbulent fluids or cosmological simulations, potentially handling chaotic elements as perturbations to a learned integrable core.

Summary updated

BibTeX
@misc{daigavane2022learning,
  author = {Ameya Daigavane and Arthur Kosmala and Miles D. Cranmer and Tess E. Smidt and Shirley Ho},
  title = {{Learning Integrable Dynamics with Action-Angle Networks}},
  year = {2022},
  eprint = {2211.15338},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.15338},
}
Figure