Abstract
Modeling continuous-time dynamics constitutes a foundational challenge, and uncovering inter-component correlations within complex systems holds promise for enhancing the efficacy of dynamic modeling. The prevailing approach of integrating graph neural networks with ordinary differential equations has demonstrated promising performance. However, they disregard the crucial signed information potential on graphs, impeding their capacity to accurately capture real-world phenomena and leading to subpar outcomes. In response, we introduce a novel approach: a signed graph neural ordinary differential equation, adeptly addressing the limitations of miscapturing signed information. Our proposed solution boasts both flexibility and efficiency. To substantiate its effectiveness, we seamlessly integrate our devised strategies into three preeminent graph-based dynamic modeling frameworks: graph neural ordinary differential equations, graph neural controlled differential equations, and graph recurrent neural networks. Rigorous assessments encompass three intricate dynamic scenarios from physics and biology, as well as scrutiny across four authentic real-world traffic datasets. Remarkably outperforming the trio of baselines, empirical results underscore the substantial performance enhancements facilitated by our proposed approach.
Introduction
Many real-world systems, ranging from gene regulatory networks to urban traffic flows, are governed by complex, nonlinear dynamics that evolve over continuous time. A common modeling paradigm involves fusing Graph Neural Networks (GNNs) with Ordinary Differential Equations (ODEs) to capture spatial dependencies and temporal evolution simultaneously. However, existing GNN-ODE models typically treat graphs as unsigned, considering only the presence or absence of connections. This ignores whether a relationship is positive (cooperative) or negative (antagonistic). In systems like predator-prey ecosystems or gene repression, nodes often exhibit opposing trends. Failing to capture this "push and pull" leads to inaccurate representations of real-world phenomena.
Methodology: The SGODE Framework
To address these limitations, we propose SGODE (Signed Graph Neural Ordinary Differential Equation), which rethinks the fundamental ODE layer to incorporate signed information.
Signed Coefficient Matrix ($K$)
Instead of a standard adjacency matrix, SGODE utilizes a matrix $K$ that explicitly separates positive ($K_{pos}$) and negative ($K_{neg}$) relations. We explore several implementations for $K$, including a sophisticated embedding-based approach where $K = \sigma(E_1E_2^T) - \sigma(E_3E_4^T)$, utilizing multiple node embedding matrices to learn complex interactions.
Self-Trend Features ($B(t)$)
Learning an unknown signed graph can be an unstable optimization problem. To improve stability and prevent model drift, we introduce a self-evolution term $B(t)$. This accounts for a node's inherent changes over time, independent of its neighbors, based on its initial state and current features. This term acts as a regularizer, ensuring the ODE solver produces stable trajectories during training.
Framework Integration
SGODE is designed as a flexible module that can be integrated into various architectures. We demonstrate its effectiveness by applying it to Neural Dynamics on Complex Networks (NDCN), Spatio-Temporal Graph Neural Controlled Differential Equations (STG-NCDE), and Diffusion Convolutional Recurrent Neural Networks (DCRNN).
Experimental Evaluation
We evaluated SGODE across synthetic dynamics (Heat Diffusion, Mutualistic Interaction, Gene Regulation) and real-world traffic forecasting.
Traffic Forecasting Performance
On benchmark datasets like PeMSD4 and PeMSD8, SGODE-RNN consistently achieves lower Mean Absolute Error (MAE) across various prediction horizons compared to state-of-the-art baselines.
Efficiency and Robustness
SGODE is not only more accurate but also highly efficient. By using an embedding-based approach to learn the signed matrix $K$, the model maintains a low parameter count while achieving superior performance.
Furthermore, SGODE demonstrates significant robustness to missing data. In experiments with 50% missing data on the PeMSD8 dataset, SGODE maintained a MAPE of 10.33%, outperforming the baseline STG-NCDE (11.02%).
Conclusion
SGODE addresses a critical gap in continuous-time dynamic modeling by incorporating signed graph information. By accounting for both cooperative and antagonistic interactions, the framework provides a more accurate and stable representation of complex systems. Empirical results across diverse domains—from biology to traffic engineering—confirm that SGODE offers a flexible, efficient, and high-performance solution for modeling real-world dynamics.
Summary updated