Continuous-Depth Neural Models for Dynamic Graph Prediction

Michael Poli, Stefano Massaroli, Clayton M. Rabideau, Junyoung Park, Atsushi Yamashita, Hajime Asama, Jinkyoo ParkarXiv 2021

Abstract

We introduce the framework of continuous-depth graph neural networks (GNNs). Neural graph differential equations (Neural GDEs) are formalized as the counterpart to GNNs where the input-output relationship is determined by a continuum of GNN layers, blending discrete topological structures and differential equations. The proposed framework is shown to be compatible with static GNN models and is extended to dynamic and stochastic settings through hybrid dynamical system theory. Here, Neural GDEs improve performance by exploiting the underlying dynamics geometry, further introducing the ability to accommodate irregularly sampled data. Results prove the effectiveness of the proposed models across applications, such as traffic forecasting or prediction in genetic regulatory networks.

Introduction

Traditional Graph Neural Networks (GNNs) operate as discrete models, processing data through a fixed sequence of layers. While effective for many tasks, this architecture struggles with systems that are inherently continuous, such as physical particles in motion or biological processes. Standard GNNs face three primary challenges: irregular sampling of real-world data, the phenomenon of oversmoothing in deep architectures, and the difficulty of modeling dynamic topologies where relationships change over time.

Methodology: Neural Graph Differential Equations

To address these limitations, we propose Neural Graph Differential Equations (Neural GDEs). This framework defines the evolution of node features as a continuous flow governed by an Ordinary Differential Equation (ODE). Instead of discrete layer transitions, the hidden state $Z$ evolves smoothly over a continuous depth dimension $s$.

Key Architectural Components

  • Neural Hybrid GDEs: Utilizing hybrid dynamical system theory, these models handle dynamic graphs by flowing continuously between observations and performing discrete updates (jumps) upon receiving new data.
  • Latent Neural GDEs: This encoder-decoder architecture maps observations into a compact latent space, where a GDE decoder "unrolls" the dynamics to generate predictions.
  • Neural GSDEs: An extension to Stochastic Differential Equations (SDEs) allows the model to account for inherent noise and uncertainty.
  • Sequential Adjoint Method: A specialized training technique enables efficient backpropagation through the ODE solver, even when the loss function depends on the entire prediction sequence.
The Latent Neural GDE architecture encodes observations into a compact representation and uses a GDE decoder to unroll dynamics.

Experimental Evaluation

The Neural GDE framework was evaluated across three distinct domains: synthetic multi-agent systems, traffic forecasting (PeMS), and biological circuits (Elowitz-Leibler Repressilator).

Key Results

In the particle system, Neural GDEs maintained high accuracy for 50 steps of extrapolation, significantly outperforming standard Neural ODEs and static networks. For traffic forecasting on undersampled data, the GCDE-GRU model outperformed discrete baselines. With 50% undersampling, GCDE-GRU achieved a Mean Absolute Percentage Error (MAPE) of 20.46, compared to 27.20 for a standard GRU. As visualized in the traffic forecasting results, the continuous-depth approach provides a much tighter and smoother fit to ground truth observations compared to discrete baselines.

Traffic prediction results showing that GCDE-GRUs provide a more accurate and continuous fit than discrete baselines across multiple stations.

Discussion and Insights

Neural GDEs combine the relational inductive bias of GNNs with the temporal continuity of Neural ODEs. This synergy offers several advantages:

  • Resilience to Oversmoothing: Unlike deep discrete GNNs, Neural GDEs do not necessarily settle into stable equilibria, allowing node features to remain distinct at greater depths.
  • Handling Irregular Time Intervals: The continuous nature of the model allows integration over arbitrary time intervals, making it naturally robust to missing data or varying sensor frequencies.
  • Interpretability: In biological tasks, attention-based GDEs allow for the visualization of evolving attention weights, identifying critical network interactions at different phases.

While promising, Neural GDEs face challenges regarding computational cost, as training and inference time depend on the complexity of the learned vector field. Future work will explore scaling these models to massive graphs and applying Partial Differential Equations (PDEs) to model spatial-temporal diffusion processes more effectively.

Summary updated

BibTeX
@misc{poli2021continuous,
  author = {Michael Poli and Stefano Massaroli and Clayton M. Rabideau and Junyoung Park and Atsushi Yamashita and Hajime Asama and Jinkyoo Park},
  title = {{Continuous-Depth Neural Models for Dynamic Graph Prediction}},
  year = {2021},
  eprint = {2106.11581},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.11581},
}
Figure