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

Introduction

Modeling how multiple agents—whether they are vehicles in traffic, particles in a fluid, or atoms in a protein—interact over time is a fundamental challenge in machine learning. While Graph Neural Networks (GNNs) have become the standard tool for this task, they face two major hurdles:

  1. Error Accumulation: Most models predict the next time step and feed it back as input. Over long periods, small errors snowball, leading to wildly inaccurate trajectories.
  2. Generalization Shifts: Real-world systems are governed by parameters like friction, temperature, or viscosity. If these change between training and testing (an "out-of-distribution" shift), standard models often fail because they haven't learned to separate individual agent properties from environmental rules.

To address these challenges, researchers have introduced Prototypical Graph ODE (PGODE), a novel framework that combines Neural Ordinary Differential Equations (ODEs) with a "mixture-of-experts" approach to model complex multi-agent interactions. By disentangling individual agent traits from global system parameters, PGODE achieves state-of-the-art accuracy and generalizes remarkably well to out-of-distribution scenarios where underlying physical rules change.

The PGODE Framework

PGODE Architecture

PGODE stands out through several key architectural innovations designed to capture both local and global dynamics:

  • Hierarchical Context Discovery: The model uses a temporal graph to mine two types of information from historical data: object-level contexts (e.g., an agent's initial state) and system-level contexts (e.g., global environmental factors).
  • Representation Disentanglement: Using a variational inference framework and mutual information minimization, the model explicitly separates these contexts. This ensures that if the global "rules" change, the model's understanding of individual agent behavior remains intact.
  • Prototypical GNN Experts: Instead of using one rigid GNN, PGODE learns a set of "prototypes" (experts) that represent different interaction patterns. For every agent, the model calculates a unique weighted combination of these experts. This "Mixture-of-Experts" (MoE) approach significantly boosts the model's expressivity.
  • Continuous ODE Framework: Rather than discrete steps, the model defines the derivative of the system's state. This allows for continuous-time evolution, which is more physically grounded and helps mitigate error accumulation.

Experimental Validation

The researchers evaluated PGODE on a diverse set of benchmarks, including physical simulations (Springs and Charged particles), molecular dynamics (new benchmarks 5AWL and 2N5C derived from real protein structures), and real-world COVID-19 regional pandemic trends.

Key Insights and Results

The core insight of PGODE is that complex multi-agent dynamics can be decomposed into a weighted sum of simpler, learnable interaction "prototypes." This makes the model both more flexible and mathematically robust. The authors provide theoretical proof showing that their multi-prototype system has smaller error bounds and is more stable against input perturbations than standard single-prototype models. Furthermore, by explicitly modeling system parameters, the model achieves impressive zero-shot generalization, adapting to new environments unseen during training simply by adjusting the weights assigned to its learned prototypes.

Qualitative Trajectory Comparison

Empirically, PGODE consistently outperformed strong baselines like SocialODE and HOPE across all datasets:

  • Superior Accuracy: On physical simulations, it achieved an average MSE reduction of roughly 47-48% compared to previous state-of-the-art models.
  • OOD Performance: In out-of-distribution tests where system parameters were intentionally changed, PGODE maintained high accuracy while competitors degraded significantly.
  • Efficiency: Despite its mixture-of-experts approach, PGODE remains computationally competitive, running significantly faster than complex baselines like I-GPODE while delivering better results.
  • Qualitative Success: As seen in the trajectory visualizations, PGODE successfully recovers complex particle trajectories—such as sudden directional changes due to collisions—that other models completely miss, closely matching the ground truth.

Limitations and Future Work

The primary limitation acknowledged by the authors is that PGODE does not currently incorporate the symmetry of physics (specifically, equivariance). In many physical systems, laws remain the same regardless of rotation or translation. Standard PGODE has to "learn" these symmetries from data rather than having them baked into the architecture. Future work will focus on building equivariant graph ODE models to further enhance the model's physical grounding and expressivity.

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