PGODE: Towards High-quality System Dynamics Modeling

Xiao Luo, Yiyang Gu, Huiyu Jiang, Hang Zhou, Jinsheng Huang, Wei Ju, Zhiping Xiao, Ming Zhang, Yizhou Sun

TL;DR

PGODE (Prototypical Graph ODE) is a novel framework for modeling multi-agent dynamical systems that combines the continuous-time modeling of Neural ODEs with a "mixture-of-experts" approach to graph interactions. By disentangling individual agent attributes from global system parameters, it achieves state-of-the-art performance and remarkable generalization in challenging out-of-distribution (OOD) scenarios.

What Problem Does This Paper Address?

Predicting the future trajectories of interacting agents—whether they are particles in a box, atoms in a protein, or vehicles on a road—is a fundamental challenge in scientific machine learning. While Graph Neural Networks (GNNs) have become the standard for capturing these interactions, they face three major hurdles:

  1. Error Accumulation: Most models predict trajectories step-by-step (autoregressively). Small errors in one step compound over time, leading to "drift" in long-term predictions.
  2. Limited Expressivity: Real-world systems often follow complex, non-linear rules that a single global GNN might struggle to capture for every agent simultaneously.
  3. Out-of-Distribution (OOD) Shift: A model trained on a physical system at one temperature or pressure often fails when those global parameters change. Current models struggle to separate the "laws of physics" from the specific "environment" they were trained in.

Methods

The authors introduce PGODE, which tackles these issues through three core components:

  • Hierarchical Context Discovery & Disentanglement: The model uses a temporal graph to extract two types of information from historical trajectories: object-level contexts (unique to each agent, like initial state) and system-level contexts (shared across the system, like viscosity). Crucially, they use mutual information minimization to disentangle these representations, ensuring that object-level features remain invariant even when system parameters change.
  • Prototypical Graph ODE: Instead of using one GNN to model all interactions, PGODE learns a set of $K$ GNN prototypes (interaction "experts"). Each agent's dynamics are modeled as a weighted combination of these prototypes. The weights are determined by the agent's specific context, allowing for highly individualized and expressive dynamics modeling.
  • Continuous-Time Evolution: By framing the problem as a Neural ODE, the model determines the entire trajectory through continuous integration rather than discrete steps, significantly reducing error accumulation.
Figure 1. An overview of the proposed PGODE. Our PGODE first constructs a temporal graph and then utilizes different encoders to extract object-level and system-level contexts using representation disentanglement and system parameters. These contexts would generate weights for a prototypical graph ODE framework, which models the evolution of interacting objects. In the end, the latent states of objects are fed into a decoder to output the trajectories at any timestamp.

Datasets

The model was evaluated across several diverse benchmarks:

  • Physical Simulations: Springs (interconnected particles) and Charged (electromagnetic particles).
  • Molecular Dynamics: Two protein datasets, 5AWL and 2N5C, involving hundreds of atoms governed by Langevin dynamics.
  • Real-world Data: COVID-19 regional transmission trajectories.
  • OOD Benchmarks: The authors specifically created OOD test sets by varying system parameters (e.g., box size, interaction strength, solvent pressure) outside the ranges seen during training.

Key Insights and Ideas

  • Disentanglement is the Key to OOD: By explicitly forcing the model to separate "who the agent is" from "what the environment is like" via adversarial training, the model learns to adapt its predictions when the environment changes, rather than failing blindly.
  • The "Mixture-of-Experts" ODE: Marrying the Mixture-of-Experts (MoE) principle with Neural ODEs provides a powerful way to handle heterogeneity. Different agents can "choose" which interaction prototypes best describe their behavior at any given time.
  • Theoretical Robustness: The authors provide a theoretical proof (Theorem 3.1) showing that a multi-prototype system is inherently more robust to small input perturbations than a single-prototype system, as the weighted averaging effect tends to dampen errors.

Key Results

PGODE consistently outperformed strong baselines like SocialODE and HOPE:

  • Physical Systems: On the Springs and Charged datasets, PGODE achieved an average MSE reduction of ~47-48% compared to the previous state-of-the-art (HOPE) in both in-distribution and OOD settings.
  • Molecular Dynamics: It showed superior performance in predicting 3D atomic coordinates, demonstrating its ability to scale to systems with hundreds of interacting components.
  • Qualitative Success: Visualizations show that while baseline models often diverge or predict physically impossible paths in OOD scenarios, PGODE maintains high fidelity to the ground truth.
Figure 2. Visualization of different methods on Springs. Semi-transparent paths denote observed trajectories and solid paths represent our predictions.

Limitations and Future Work

The primary limitation acknowledged by the authors is that PGODE does not currently incorporate physical symmetries (like equivariance to rotation or translation) directly into its architecture. While it learns these patterns from data, hard-coding these constraints could further improve sample efficiency and accuracy.

Future work directions include:

  • Integrating equivariance into the prototypical graph ODE framework.
  • Applying the model to diverse domains like traffic flow prediction and stock price modeling.
  • Exploring more complex scientific applications like rigid body dynamics and single-cell dynamics.

Summary updated

BibTeX
@inproceedings{luo2024pgode,
  author = {Xiao Luo and Yiyang Gu and Huiyu Jiang and Hang Zhou and Jinsheng Huang and Wei Ju and Zhiping Xiao and Ming Zhang and Yizhou Sun},
  title = {{PGODE: Towards High-quality System Dynamics Modeling}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=jrE7geZekq},
}
Figure