Time-varying Interaction Graph ODE for Dynamic Graph Representation Learning

Xiaoyi Wang, Zhiqiang Wang, Jianqing Liang, Xingwang Zhao, Chuangyin Dang, Zhen Jin, Jiye LiangarXiv 2026

TL;DR

Traditional graph neural ODEs assume all nodes interact via a single, unchanging message-passing function, failing to capture the complex, evolving reality of dynamic networks. This paper introduces TI-ODE (Time-varying Interaction Graph Ordinary Differential Equations), which decomposes graph evolution into a set of learnable "interaction basis functions" combined via time-dependent weights. This approach achieves state-of-the-art performance across physical, molecular, and real-world datasets while offering superior mathematical robustness and interpretability.

What Problem Does This Paper Address?

Dynamic graphs—where nodes and edges change over time, such as in social networks, traffic systems, or protein structures—are notoriously difficult to model. Graph Neural Ordinary Differential Equations (Graph Neural ODEs) have emerged as a powerful continuous-time modeling paradigm, treating node state changes as a continuous vector field.

However, existing graph ODEs rely on a unified message-passing mechanism. They assume that every interaction between any two nodes uses the exact same mathematical function at any given time. In the real world, interactions are highly diverse (e.g., liking vs. sharing a post) and time-varying (e.g., a virus changing its primary transmission mode across different seasons or policy implementations). Failing to capture this functional diversity limits the expressive power, robustness, and interpretability of current models.

Methods

TI-ODE addresses these limitations by embedding a functional basis expansion directly into the continuous evolution function of a graph ODE.

Figure 1: An overview of the proposed TI-ODE. Our TI-ODE first constructs temporal graphs from historical dynamic graph sequences and employs an attention-driven spatio-temporal encoder to obtain node sequence representations through message passing and temporal aggregation, thereby inferring the primary posterior distribution. We then introduce a random mapping network to generate multiple auxiliary posterior distributions, which are adaptively fused with the primary posterior distribution to yield a refined posterior distribution for sampling the initial latent states. Finally, the sampled initial state is propagated forward by TI-ODE in continuous time, and a decoder maps the evolved latent states back to the observation space to predict future node trajectories.

The pipeline consists of three main phases:

  1. Initial Condition Construction: An attention-driven spatio-temporal encoder processes historical graph snapshots to infer a primary posterior distribution. To enhance representation diversity and prevent overfitting, the authors introduce untrained, fixed-parameter Random Feed-Forward Networks (RandNets) to stochastically perturb and refine this distribution within a Variational Autoencoder (VAE) framework.
  2. Continuous Evolution via Basis Functions: Instead of parameterizing pairwise relationships with a single shared function, TI-ODE models the derivative of node states as a combination of $K$ learnable interaction basis functions ($f^r_k$).
  3. Dynamic Weighting: The contribution of each basis function is scaled by a time-dependent weight ($w^t_{i,j,k}$). This weight is cleverly factorized into two parts: node $i$'s receptivity (response weight) and node $j$'s propagation strength (activation weight), allowing the model to capture role-specific differences between nodes over time.

Datasets

The authors evaluated TI-ODE across six datasets spanning three distinct categories:

  • Physical Dynamics: Spring (masses connected by springs governed by Hooke's law) and Charged (particles interacting via Coulomb forces).
  • Molecular Dynamics: 2N5C (a highly flexible protein complex) and 5AWL (a structurally stable protein).
  • Real-World: Motion (3D human joint trajectories) and a newly curated Covid dataset tracking daily new and cumulative cases across 31 Chinese provinces from February 2020 to December 2022, capturing shifting viral variants and macro-level policy changes.

Key Insights and Ideas

  • Decomposition over Reweighting: Conventional graph attention mechanisms simply reweight a single shared interaction function. TI-ODE represents interaction dynamics through a functional basis expansion, meaning entirely different types of physical or behavioral laws can coexist and shift in dominance over time.
  • The Power of Fixed Randomness: Utilizing untrained RandNets to perturb the initial latent states surprisingly improves the model's expressiveness and generalizability without adding optimization complexity during training.
  • Provable Robustness: Using Lyapunov stability theory, the authors mathematically prove that decomposing the network into modular basis functions distributes the gradient norm. This yields a tighter upper bound on the model's Lipschitz constant, making TI-ODE significantly more robust to initial state noise than unified models.

Key Results

  • State-of-the-Art Performance: TI-ODE consistently achieved the lowest Mean Squared Error (MSE) and Mean Absolute Error (MAE) across all six benchmarks, outperforming 11 baseline models (including advanced graph ODEs like CSG-ODE and PG-ODE). For instance, on the Spring dataset (12-step prediction), TI-ODE achieved an MSE of $0.16 \times 10^{-2}$ compared to CSG-ODE's $0.23 \times 10^{-2}$.
  • Long-Horizon Robustness: In a perturbation experiment where initial states were injected with noise and simulated 36 steps forward, TI-ODE maintained a flat, stable error accumulation curve, whereas baselines suffered from rapid error propagation.
  • Real-World Interpretability: When evaluated on the Covid dataset, the learned weights for "Basis Function 1" dropped sharply during regional lockdowns and recovered as restrictions eased, directly mirroring real-world macro-level human mobility patterns without being explicitly trained on mobility data.

Limitations and Future Work

While TI-ODE excels at capturing diverse and time-evolving interactions, it encounters scalability constraints. When the number of nodes or edges reaches the million-scale, the computational overhead of solving the multi-basis ODE becomes a bottleneck.

The authors note that future research will focus on developing approximation methods, sparse representations, and more efficient training strategies to scale TI-ODE for massive networks and multimodal graph data.

Summary updated

BibTeX
@misc{wang2026time,
  author = {Xiaoyi Wang and Zhiqiang Wang and Jianqing Liang and Xingwang Zhao and Chuangyin Dang and Zhen Jin and Jiye Liang},
  title = {{Time-varying Interaction Graph ODE for Dynamic Graph Representation Learning}},
  year = {2026},
  eprint = {2604.24811},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.24811},
}
Figure