Phase2vec: dynamical systems embedding with a physics-informed convolutional network

Matt Ricci, Noa Moriel, Zoe Piran, Mor Nitzan

In the physical and biological sciences, we are surrounded by dynamical systems—from the rhythmic firing of neurons to the swirling patterns of global weather. While we have powerful tools to simulate specific systems, we often struggle to generalize across them. How do we categorize a system we’ve never seen before? Is it stable? Does it conserve energy?

In a paper presented at ICLR 2023, researchers introduce Phase2vec, an unsupervised embedding method that learns to represent the fundamental "semantics" of dynamical systems by looking at their geometry.

TL;DR

Phase2vec is a physics-informed convolutional network that maps dynamical systems into a low-dimensional embedding space without supervision. By analyzing the geometry of vector fields, it can reconstruct governing equations and identify core physical properties (like stability and energy conservation) for entirely unseen systems, outperforming traditional time-series classifiers.

The Challenge of Generalization

Traditionally, analyzing a dynamical system involves fitting a specific model to a specific set of observations. While methods like SINDy (Sparse Identification of Non-linear Dynamics) are great at finding the "best fit" equation for a single system, they don't naturally generalize. If you show a standard model a new system with a different functional form, it often has to start from scratch.

The authors identify a major gap: we lack a way to represent dynamical systems in a way that captures their shared "equivalence classes." For example, many different equations describe "dissipative" or "stable" systems. Phase2vec aims to create a universal "feature vector" for dynamics—much like Word2vec does for language—allowing researchers to compare, cluster, and decode the physics of diverse systems in a unified framework.

How Phase2vec Works

Phase2vec treats the phase space (the vector field representing the system's velocity at every point) as an image-like input.

Extracted figure from page 2 of Phase2vec: dynamical systems embedding with a physics-informed convolutional network
  1. The Encoder: A three-layer Convolutional Neural Network (CNN) processes the vector field. Because CNNs are designed to extract geometric features, they are perfectly suited to "see" patterns like vortices, sinks, and sources in the flow data.
  2. The Embedding: The CNN compresses the input into a 100-dimensional vector. This is the "Phase2vec" embedding.
  3. The Decoder: To ensure the embedding is physically meaningful, the model must use it to reconstruct the system's governing equations. It does this by outputting coefficients for a library of basis functions (e.g., polynomials like $x, y, x^2, xy$).
  4. Physics-Informed Loss: This is the "secret sauce." The authors use a reconstruction loss that is normalized by the magnitude of the vector field. This forces the network to pay extra attention to "slow" regions and fixed points (where the velocity is near zero), as these are the areas where the most critical qualitative behavior of a system is determined.
Extracted figure from page 6 of Phase2vec: dynamical systems embedding with a physics-informed convolutional network

Key Insights and Results

The model was trained on synthetic polynomial ODEs and tested on "classical" systems (like Lotka-Volterra and Lorenz) that were excluded from the training set, as well as real-world climate data.

  • Geometry Over Trajectories: Most existing methods look at time-series (trajectories). Phase2vec looks at the whole vector field. This allows it to capture global properties—like whether a flow is "incompressible"—that are nearly impossible to detect from a single trajectory.
  • Zero-Shot Reconstruction: Because the model learns the relationship between geometry and equations, it can predict the parameters of a system it has never seen before more accurately than standard regression techniques like LASSO (achieving a parameter estimation error of 2.70 vs LASSO's 3.96).
  • Physics Decoding: The embeddings were used to train simple classifiers to detect physical properties. Phase2vec achieved an F1 score > 0.9 on identifying linear stability, conservativity, and incompressibility, while state-of-the-art time-series classifiers (like TapNet) struggled (F1 < 0.3 on stability).
  • Climate Discovery: When applied to real-world wind data, the embeddings naturally clustered by atmospheric pressure, identifying distinct circumglobal streamlines. In temperature data, Phase2vec embeddings predicted Köppen climate zones significantly better than raw data.

Limitations and Future Work

While Phase2vec is a powerful proof-of-concept, the authors note several areas for growth:

  • Dimensionality: The current work focuses on 2D and 3D systems. Scaling to high-dimensional systems will require more advanced architectures, perhaps using Graph Neural Networks to handle sparse data.
  • Basis Dependency: The decoder currently relies on a predefined library of polynomials. If the underlying physics involves transcendental functions not in the library, the reconstruction will only be an approximation.
  • Symmetry: Future versions could explicitly encode physical symmetries (like rotational invariance) into the network architecture to make the embeddings even more robust.

Phase2vec represents a significant step toward "automated physics," providing a bridge between raw data and the high-level concepts that scientists use to understand the world.

BibTeX
@inproceedings{ricci2023phase,
  author = {Matt Ricci and Noa Moriel and Zoe Piran and Mor Nitzan},
  title = {{Phase2vec: dynamical systems embedding with a physics-informed convolutional network}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=z9C5dGip90},
}
Figure