When do neural ordinary differential equations generalize on complex networks?

Moritz Laber, Tina Eliassi-Rad, Brennan KleinarXiv 2026

TL;DR

This paper investigates how well Graph Neural Ordinary Differential Equations ($\mathtt{nODE}$s) generalize when predicting continuous dynamical systems on complex networks. By systematically testing across various network topologies, the authors reveal that degree heterogeneity (the presence of highly connected hubs) and the specific type of underlying dynamics are the primary bottlenecks for size generalization, fixed-point accuracy, and robustness to missing data.

What Problem Does This Paper Address?

Neural Ordinary Differential Equations (Neural ODEs) have become a powerful tool for learning continuous dynamical systems directly from time-series data. However, their behavior on graph-structured data—such as epidemic spreading through a population or neural activity across brain regions—remains poorly understood.

Specifically, if you train a Neural ODE on a small network, will it still make accurate predictions if deployed on a much larger network, or on a network with a completely different structure? This paper addresses this critical gap by evaluating how structural properties of complex networks (like size, heavy-tailed degree distributions, and clustering) impact the generalization capability and robustness of these models.

Methods

The authors focus on dynamical systems that follow the Barabási-Barzel (BB) form, where the interaction between nodes factorizes into separate components for the "ego" node and its neighbors. To give the machine learning model the best possible chance, they design a specialized architecture ($\mathtt{nODE}$) that mirrors this exact mathematical structure, replacing the unknown functions with multilayer perceptrons (MLPs).

Schematic depiction of nODEs on graphs and the four evaluation strategies.

To systematically isolate the effects of network topology, the authors use the hypercanonical $\mathbb{S}^1$ random graph model. This framework allows them to independently tune:

  1. Network size ($n$)
  2. Degree heterogeneity ($\gamma$, controlling the prominence of highly connected hub nodes)
  3. Clustering coefficient ($\beta$, controlling the probability that a node's neighbors are also connected to each other)

They evaluate the trained models using four distinct strategies: size generalization, structural property generalization, fixed-point/stability replication, and robustness to partially observed nodes.

Datasets

Because the study requires precise control over network topology and access to the true underlying equations, the paper relies entirely on synthetic datasets. They simulate five classic dynamical systems across various domains:

  • Susceptible-Infected-Susceptible (SIS) (Epidemiology)
  • Mass-Action Kinetics (MAK) (Chemistry)
  • Michaelis-Menten (MM) (Gene regulation)
  • Birth-Death (BD) process (Population dynamics)
  • Neuronal Dynamics (ND) (Neuroscience)

Models are trained on small graphs ($n_{\text{train}} = 64$) and tested on graphs scaling up to $n_{\text{test}} = 8192$.

Key Insights and Ideas

  • Hubs are the Enemy of Generalization: In highly heterogeneous networks, the state magnitude of a hub node often scales up dramatically with its degree. Because the $\mathtt{nODE}$ is trained only on small graphs, it never encounters these extreme state values during training. When deployed on larger networks with massive hubs, the model is pushed into unobserved regions of the state space, causing predictions to fail.
  • Dynamics and Topology are Intertwined: The failure to generalize to larger graphs isn't just a network problem; it depends heavily on the equations of the system. For SIS and MAK dynamics, node states remain bounded or scale down at hubs, allowing the $\mathtt{nODE}$ to generalize perfectly. For MM, ND, and BD dynamics, states explode at hubs, breaking generalization.
  • Fixed Points Drift, but Stability Remains: When generalizing to larger networks, $\mathtt{nODE}$s successfully settle into stable fixed points (the largest eigenvalue of the predicted Jacobian remains negative). However, the actual values of these fixed points drift significantly from the ground truth in heterogeneous networks.
  • Clustering is Secondary: While degree distribution ($\gamma$) drastically alters performance, changing the network's clustering coefficient ($\beta$) has a surprisingly minor impact on generalization error.

Key Results

  • Size Generalization: On degree-homogeneous networks, the Mean Absolute Error (MAE) remains low and flat as the network scales from 64 to 8192 nodes. On highly heterogeneous networks, the error increases by orders of magnitude for MM, ND, and BD dynamics.
Generalization performance across different graph sizes and topologies.
  • Robustness to Missing Data: When parts of the graph are unobserved at test time, $\mathtt{nODE}$s show a fascinating paradox: they tolerate more missing nodes on highly heterogeneous graphs than on homogeneous ones. This is because network activity in heterogeneous graphs concentrates heavily on a few major hubs; as long as those hubs are observed, losing random peripheral nodes doesn't severely degrade performance.
Robustness of predictions when dealing with unobserved nodes at test time.

Limitations and Future Work

  • Restricted Functional Form: The study explicitly builds the separable Barabási-Barzel form into the network's inductive bias. Systems that do not fit this form—such as the Kuramoto model or Laplacian diffusion, where interactions depend on state differences—cannot be modeled with this specific architecture.
  • Simplified Graph Topologies: While the $\mathbb{S}^1$ model generates realistic degree distributions and clustering, real-world networks feature complex mesoscopic structures like communities or degree-correlations that were not explored here.
  • Mitigation Strategies: The paper highlights failure modes but does not implement architectural fixes. Future work is needed to explore how advanced training techniques (like out-of-distribution regularization) might help Neural ODEs handle the extreme states introduced by network hubs.

Summary updated

BibTeX
@misc{laber2026when,
  author = {Moritz Laber and Tina Eliassi-Rad and Brennan Klein},
  title = {{When do neural ordinary differential equations generalize on complex networks?}},
  year = {2026},
  eprint = {2602.08980},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.08980},
}
Figure