Learning Networked Dynamical Systems via Neural ODE-based Graph Structure Inference
Organizations: MoE Key Laboratory of Artificial Intelligence, AI Institute, Shanghai Jiao Tong University
Abstract
Inferring the latent interaction graph from multivariate time series is fundamental to understanding complex dynamical systems in neuroscience, biology, and physics. Despite recent progress in neural relational inference, most methods rely on discrete-time modeling, which degrades under sparse and irregular observations and tends to entangle multi-hop dependencies into spurious direct edges. We show that a continuous-time formulation naturally decouples inference from any fixed observation schedule, allowing gradient signals to be integrated continuously between observations for both dynamics and structure learning. We propose NOGI (Neural ODE-based Graph Inference), a framework that couples a deterministic graph learner with an MPNN-based Neural ODE. The two modules are trained end-to-end via the adjoint method. Across four simulated dynamical systems at two scales, NOGI achieves the best structure recovery in 30 out of 32 evaluated cases with highly competitive forecasting performance, remaining robust under observation degradation. On the realistic Netsim fMRI benchmark, it attains an average AUPRC of 0.90 (AUROC 0.96). These results suggest that explicitly decoupling relational interactions from self-dynamics within a continuous-time vector field provides a powerful mechanism for graph structure learning under realistic observation conditions.
Figures & tables
| Spring | Kuramoto | MM | FHN | Spring | Kuramoto | MM | FHN | |||||||||
| Method | ER | BA | ER | BA | ER | BA | ER | BA | ER | BA | ER | BA | ER | BA | ER | BA |
| AUROC | ||||||||||||||||
| MI | 0.95 | 0.94 | 0.94 | 0.80 | 1.00 | 0.94 | 0.76 | 0.34 | 0.86 | 0.59 | 0.91 | 0.90 | 0.99 | 0.98 | 0.52 | 0.62 |
| PC | 0.87 | 0.79 | 0.40 | 0.78 | 0.83 | 0.78 | 0.74 | 0.56 | 0.81 | 0.67 | 0.63 | 0.64 | 0.69 | 0.84 | 0.64 | 0.73 |
| NRI | 0.80 | 0.86 | 0.56 | 0.51 | 0.65 | 0.68 | 0.50 | 0.61 | – | – | – | – | – | – | – | – |
| Dynamics | Metric | GRU | MTGNN | iTrans | AIDD | NODE | NGM | SCOTCH | NOGI | NOGI w/ GT |
|---|---|---|---|---|---|---|---|---|---|---|
| Spring | RMSE | 0.0245 | 0.0369 | 0.0127 | 0.0055 | 0.0203 | 0.0262 | 0.0241 | 0.0056 | 0.0073 |
| MAE | 0.0155 | 0.0223 | 0.0091 | 0.0003 | 0.0150 | 0.0192 | 0.0174 | 0.0010 | 0.0004 | |
| Kuramoto | RMSE | 0.7941 | 0.3046 | 0.0034 | 0.0027 | 0.0054 | 0.0056 | 0.0057 | 0.0013 | 0.0033 |
| MAE | 0.6594 | 0.2772 | 0.0020 | 0.0019 | 0.0025 | 0.0027 | 0.0024 | 0.0008 | 0.0018 | |
| MM | RMSE | 0.0945 | 0.0027 | 0.0044 | 0.0049 | 0.0635 | 0.0282 | 0.0324 | 0.0036 | 0.0105 |
| MAE | 0.0286 | 0.0017 | 0.0038 | 0.0014 | 0.0284 | 0.0212 | 0.0096 | 0.0017 | 0.0037 |
| Source of | ||||
|---|---|---|---|---|
| Target Graph | Metric | None (scratch) | ER-10 | ER-100 |
| BA-10 | AUROC | 0.7870 | 1.0000 | 0.9993 |
| AUPRC | 0.7104 | 1.0000 | 0.9970 | |
| BA-100 | AUROC | 0.9797 | 0.9973 | 0.9806 |
| AUPRC | 0.8942 | 0.9639 | 0.8870 | |
| Method | Metric | Sim. | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | ||
| NOGI | AUROC | 1.00 | 0.99 | 0.99 | 0.97 | 1.00 | 1.00 | 1.00 | 0.98 | 1.00 | 1.00 | 0.98 | 0.99 | – | 0.99 |
| AUPRC | 1.00 | 0.93 | 0.93 | 0.79 | 1.00 | 1.00 | 1.00 | 0.93 | 1.00 | 1.00 | 0.90 | 0.91 | – | 0.95 | |
| SCOTCH | AUROC | 0.91 | 0.96 | 0.96 | 0.94 | 0.93 | 0.95 | 0.93 | 0.84 | 0.89 | 0.80 | 0.84 | 0.95 | – | 0.85 |
| AUPRC | 0.71 | 0.72 | 0.60 | 0.34 | 0.72 | 0.56 | 0.78 | 0.55 | 0.60 | 0.64 | 0.31 | 0.64 | – | 0.42 | |
| Method | Metric | Sim. | |||||||||||||
| Variant | Spring | Spring | Kuramoto | Kuramoto |
|---|---|---|---|---|
| NOGI | ||||
| w/o continuous time | ||||
| w/o sparsity | ||||
| w/o unbounded | ||||
| w/o deterministic | ||||
| w/o pairwise message |
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
| System | Solver | Step / sampling | Coupling | |||
|---|---|---|---|---|---|---|
| Spring | 4 | 1 | 10000 | leapfrog | , save every 100 steps | |
| Kuramoto | 1 | 200 | 1000 | odeint | , horizon 10 | |
| FHN | 2 | 20 | 1000 | odeint | , horizon 10 | |
| MM | 1 | 2000 | 10 | odeint | , horizon 10 | degree-normalized |
| Setting | Metric | |||||
|---|---|---|---|---|---|---|
| Spring | Top-4% Jaccard | 0.93 | 0.97 | 0.97 | 0.17 | 0.93 |
| AUPRC | 1.00 0.00 | 1.00 0.00 | 1.00 0.00 | 0.39 0.53 | 0.25 0.23 | |
| Kuramoto | Top-4% Jaccard | 0.33 | 0.95 | 0.33 | 0.07 | 0.66 |
| AUPRC | 0.69 0.43 | 1.00 0.00 | 0.69 0.53 | 0.45 0.48 | 0.22 0.26 | |
| MM | Top-4% Jaccard | 0.66 | 0.55 | 0.58 | 0.91 | 0.18 |
| AUPRC | 0.88 0.21 | 0.85 0.26 | 0.83 0.29 | 1.00 0.00 | 0.54 0.42 |
| Adjoint | Direct backpropagation | |
|---|---|---|
| 10, 1 | 1.1 s / 43 MiB / 168, 168 | 0.8 s / 192 MiB / 168, 0 |
| 100, 1 | 5.4 s / 1879 MiB / 168, 168 | 3.5 s / 15954 MiB / 168, 0 |
| 100, 10 | 1.2 s / 1873 MiB / 52, 70 | OOM |
| 100, 50 | 0.8 s / 449 MiB / 50, 104 | 0.3 s / 13616 MiB / 50, 0 |
| 100, 100 | 1.3 s / 232 MiB / 74, 224 | 0.3 s / 10030 MiB / 74, 0 |
| System | Unobserved component | AUROC | AUPRC |
|---|---|---|---|
| Spring | Velocity | 0.55 | 0.05 |
| FHN | Recovery variable | 0.89 | 0.52 |
| Spring | 10% of nodes | ||
| Spring | 30% of nodes | ||
| FHN | 10% of nodes | ||
| FHN | 30% of nodes |
| Spring | Kuramoto | MM | FHN | Spring | Kuramoto | MM | FHN | |||||||||
| Method | ER | BA | ER | BA | ER | BA | ER | BA | ER | BA | ER | BA | ER | BA | ER | BA |
| AUROC | ||||||||||||||||
| NRI | 0.21 | 0.07 | 0.03 | 0.01 | 0.01 | 0.08 | 0.04 | 0.12 | – | – | – | – | – | – | – | – |
| MTGNN | 0.04 | 0.01 | 0.07 | 0.06 | 0.12 | 0.03 | 0.06 | 0.14 | 0.01 | 0.01 | 0.00 | 0.02 | 0.00 | 0.03 | 0.02 | 0.02 |
| AIDD | 0.00 | 0.00 | 0.10 | 0.06 | 0.00 | 0.00 | 0.03 | 0.28 | 0.00 | 0.00 | 0.03 | 0.03 | 0.00 | 0.01 | 0.27 | 0.06 |
| Method | Metric | Sim. | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | ||
| NOGI | AUROC | 0.00 | 0.00 | 0.00 | 0.02 | 0.00 | 0.00 | 0.00 | 0.02 | 0.00 | 0.00 | 0.02 | 0.00 | – | 0.02 |
| AUPRC | 0.00 | 0.01 | 0.01 | 0.04 | 0.00 | 0.00 | 0.00 | 0.06 | 0.00 | 0.00 | 0.06 | 0.02 | – | 0.08 | |
| Method | Metric | Sim. | |||||||||||||
| 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | ||
| NOGI | AUROC | 0.06 | 0.05 | 0.00 | 0.00 | 0.02 | 0.01 | 0.00 | 0.06 | 0.02 | 0.04 | 0.02 | 0.04 | 0.10 | 0.00 |
Graph Structure Learning
Graph structure learning infers or adapts network connections from data for statistical discovery and downstream prediction.
See all 149 papers