Abstract
This paper studies the problem of modeling interacting dynamical systems, which is critical for understanding physical dynamics and biological processes. Recent research predominantly uses geometric graphs to represent these interactions, which are then captured by powerful graph neural networks (GNNs). However, predicting interacting dynamics in challenging scenarios such as out-of-distribution shift and complicated underlying rules remains unsolved. In this paper, we propose a new approach named Graph ODE with factorized prototypes (GOAT, also referred to as PGODE) to address the problem. The core of GOAT is to incorporate factorized prototypes from contextual knowledge into a continuous graph ODE framework. Specifically, GOAT employs representation disentanglement and system parameters to extract both object-level and system-level contexts from historical trajectories, which allows us to explicitly model their independent influence and thus enhances the generalization capability under system changes. Then, we integrate these disentangled latent representations into a graph ODE model, which determines a combination of various interacting prototypes for enhanced model expressivity. The entire model is optimized using an end-to-end variational inference framework to maximize the likelihood. Extensive experiments in both in-distribution and out-of-distribution settings validate the superiority of GOAT.
Introduction
Predicting the evolution of multi-agent systems—ranging from traffic flow to molecular dynamics—is a cornerstone of modern scientific computing. While Graph Neural Networks (GNNs) have become the standard for capturing spatial interactions, they face significant limitations in temporal modeling. Specifically, autoregressive GNNs suffer from error accumulation over long horizons, and they often fail to generalize when underlying system parameters (like temperature or viscosity) change. This paper introduces PGODE (Prototypical Graph ODE), a framework designed to disentangle the "rules of the game" from the "state of the players" to achieve robust, long-term predictions.
Methodology
PGODE addresses the shortcomings of discrete models by framing dynamics as a continuous evolution governed by Ordinary Differential Equations (ODEs). The architecture is built on three pillars:
- Hierarchical Context Discovery: The model utilizes dual encoders to extract contexts from historical data. It disentangles these into object-level features (individual agent states) and system-level features (global environmental constants). This separation is enforced through a mutual information loss, ensuring the model learns invariant physical laws.
- Prototypical Graph ODE: Rather than a single static GNN, PGODE maintains $K$ learnable "GNN prototypes." These act as a mixture-of-experts. The extracted contexts dynamically weight these prototypes, allowing each object to evolve according to a personalized combination of interaction rules.
- Continuous Integration: By defining the derivative of the system's state, the model can leverage sophisticated numerical solvers (e.g., Runge-Kutta). This approach is inherently more stable than discrete-step predictions and avoids the rapid "drift" seen in autoregressive models.
Experiments and Results
The model was rigorously tested on physics simulations (Springs, Charged particles) and real-world molecular dynamics (5AWL, 2N5C protein structures). The researchers evaluated performance in both In-Distribution (ID) and Out-of-Distribution (OOD) settings, where system parameters were altered during testing.
Quantitative Performance
PGODE demonstrated state-of-the-art accuracy across all benchmarks. On the Springs and Charged datasets, it achieved an average MSE reduction of approximately 47-48% compared to the previous leading model, HOPE. Its advantage was even more pronounced in OOD scenarios; for 36-step-ahead predictions in the Springs OOD task, PGODE's error was nearly an order of magnitude lower than traditional RNN-based baselines.
Qualitative Visualizations
Qualitative results highlight the model's stability. While baseline models like SocialODE and HOPE often see their predicted trajectories diverge wildly from the ground truth after a short period, PGODE’s predictions remain remarkably consistent with the actual physical paths.
Key Insights and Discussion
- Contextual Generalization: By explicitly modeling system-level parameters, PGODE learns to adapt to environmental changes. It understands that while the environment (e.g., viscosity) may change, the fundamental interaction patterns follow a predictable, factorized structure.
- Robustness through Factorization: Theoretical analysis (Theorem 3.1 in the paper) suggests that a multi-prototype system is more robust to perturbations than a single-prototype one. The "averaging" effect of multiple experts prevents the model from over-fitting to specific, brittle interaction functions.
Conclusion and Future Work
PGODE represents a significant step forward in modeling complex interacting dynamics by combining the stability of Neural ODEs with the flexibility of prototypical learning. While highly effective, the current model does not explicitly incorporate physical symmetries (like rotational equivariance). Future research will focus on integrating these geometric constraints to further enhance physical plausibility and data efficiency in 3D simulations.
Summary updated