ConceptioArchivearXiv CS
arXiv CSopen access

INDEQS: Informed Neural controlled Differential EQuationS

Unknown · 2026 · arxiv_cs
arXiv CS · Papers · License: Open Access · 2026
Open Source ↗Direct PDF ↓
machine learning, deep learning, neural networks

INDEQS: Informed Neural controlled Differential EQuationS Michael Detzel Fraunhofer Heinrich Hertz Institute

Gabriel Nobis Fraunhofer Heinrich Hertz Institute

Kristiyan Blagov

arXiv:2606.19138v1 [cs.LG] 17 Jun 2026

Fraunhofer Heinrich Hertz Institute

Juri Schubert Fraunhofer Heinrich Hertz Institute

Jackie Ma Fraunhofer Heinrich Hertz Institute

Wojciech Samek Fraunhofer Heinrich Hertz Institute Technische Universität Berlin

Abstract Neural Controlled Differential Equations (NCDE) provide a powerful continuous-time framework for forecasting time series, but standard graph-based extensions typically learn spatial structure purely from data, even in settings where a directed graph structure is known a priori. We introduce Informed Neural controlled Differential EQuationS (INDEQS), a graph-based NCDE forecasting method that incorporates prior knowledge of a directed graph at distinct architectural positions. INDEQS separates inner mixing of hidden states across graph nodes from outer mixing between vector field and control, and offers both a lightweight graph-constrained variant and a more expressive variant, learning additional graph connections from data via adaptive graph convolutions. To systematically study when graph informedness is beneficial in forecasting, we devise a continuous advection simulation on directed graphs, yielding synthetic spatio-temporal datasets with known ground-truth flow structure. We then evaluate INDEQS on two real-world tasks: river discharge forecasting on a hydrological network and traffic flow prediction on PeMS08. Across these synthetic and real-world benchmarks, outer informedness consistently improves mean absolute error over an uninformed NCDE with comparable parameter count, particularly on larger graphs, while inner informedness offers a more parameter-efficient alternative when strict adherence to a known adjacency is desired. A comparison of discrete convolutional and continuoustime decoders further shows that continuous decoders yield better accuracy and greater temporal flexibility on real-world tasks. An implementation of INDEQS and the advection simulation is available at https://github.com/Mitchi1/indeqs.

1

Introduction

Effect follows cause. When a problem is represented on a graph, the structure of that graph contains information on how causes at one spatial position are linked to effects at another, and learning physical dynamics from spatial time series data can often leverage this structural information. Schölkopf (2022) describes differential equations as the gold standard for understanding cause-effect structures and highlights how standard machine learning methods give limited treatment to time. Neural Differential Equations 1

lation on edges for every

3.5 3.0 2.5 2.0 1.5 1.0 0.5 0.0

e5 1 11.4 11.6

...

49.0

3.5 3.0 2.5 2.0 1.5 1.0 utilized for 0.5 0.0

Edge transition graph

49.4 49.2

Measurements at nod

e1

1 1 0.7

e2 0.3

e4

time step

1

3.5 3.0 2.5 2.0 1.5 1.0 0.5 0.0

49.4

11.4

49.4

49.2

11.6 48.8

12.0 12.2

49.0 11.8 transformed into 48.8 12.0 Node transition graph 48.6 12.2

3.5 3.0 2.5 2.0 1.5 1.0 0.5 0.0

for every

49.2

11.6

49.0

11.8

48.8

12.0

48.6

12.2

48.6

time step 49.4

11.4

11.4

49.2

11.6

49.0

11.8

48.8

12.0

11.6 hidden

12.2

48.6

11.8

informs shortcuts

hidden

yield 12.0

INDEQS Forecasting

1.5 1.0 0.5 0.0

2.5 2.0 1.5 1.0 0.5 0.0

49.4

11.4

...

49.0

11.8

e3 49.2

e5 B e4 e2 D A e1 C e3

2.5 Measurements at nodes 2.0

Simulation on edges

49.4 influx over time span 49.2 ∆s 49.0 48.8

Time series 48.6on graph nodes 12.2

t0

influx over time span ∆

t

provide

Zj (t)

t0

t0

B

Hj (t)

data

Zi (t)

t

A

D

t

C

Hi (t)

t0

nj

yield t

t0 t

T ni

observable

Figure 1: Overview: Starting from an edge transition graph with prior known structure, we simulate advection on the graph edges. Through measurements at vertices, one moves from a description as a continuum on edges to a node-wise time series description of the dynamic. These are used in INDEQS to forecast future state values. Graph information comes via the node transition graph, which can be transformed to the edge transition graph. Edges of the former become nodes in the latter. The first row shows the dynamics on an edge level, the second row on a node level, with the measurements being the bridge from edge representation to node representation. In a real-world application, one cannot observe the propagation along the edges continuously in space over time. One observes the system only at the measuring nodes. INDEQS allows supB plementing time series data on nodes with graph information coming from prior knowledge of the dynamics Hj (t) of interest. A

QS Forecasting

Time series on graph no t0

provide

Zj (t)

data

t

t0

D

t

C t0

t

T

(NDEs) Chennet al. (2018) address this gap by learning a hidden state that evolves continuously in time. j Neural Controlled Differential Equations (NCDEs) Kidger et al. (2020) extend this further, updating the hidden state continuously from data arriving at different points in time, and Spatio-Temporal Graph NCDEs (STG-NCDEs) Choi et al. (2022) additionally model spatial dependencies through learned node embeddings. n i

observable

In physical systems with known directed graph structure such as river networks, road networks, and other advective systems, the underlying graph structure carries information on how causes propagate to effects. Existing graph-NCDE approaches learn the spatial structure from data, even when this prior is available. We propose Informed Neural controlled Differential EQuationS (INDEQS), which inject prior information about an underlying directed graph into the vector field of a Neural Controlled Differential Equation (NCDE) to infer the future dynamics at the vertices. INDEQS comes in two variants — inner and outer informedness — that differ in where the graph structure enters the architecture. Intuitively, the inner position constrains where each node looks across the graph to assemble its update, while the outer position constrains how information from the control is distributed across nodes. To study in a controlled experiment when graph informedness helps, we develop a continuous-time advection simulation on directed graphs, which yields synthetic datasets with known ground-truth flow structure. We then evaluate INDEQS on two real-world tasks: river discharge forecasting on a hydrological network and traffic flow prediction on PeMS08. We restrict our scope to static graphs and use continuous-time models as our primary comparisons; discrete-time baselines are included to situate INDEQS within the broader forecasting literature. Our contributions are: • We introduce INDEQS, a graph-informed NCDE that incorporates prior directed-graph information into the vector field at two architectural positions: inner (mixing across nodes) and outer (mixing between hidden state and control), yielding a parameter-efficient variant that strictly respects the known adjacency and a more expressive, data-adaptive variant. • We propose a continuous-time advection simulation on directed graphs, which produces synthetic spatiotemporal datasets with known ground-truth flow structure and enables controlled study of when graph informedness benefits forecasting. 2

t

• Across synthetic and real-world benchmarks (river discharge and PeMS08 traffic), outer informedness reduces MAE relative to an uninformed NCDE at matched parameter count, with the largest gains on larger graphs; inner informedness offers a parameter-efficient alternative that strictly respects the known adjacency. Figure 1 shows an overview of the steps from continuous edge advection simulations to node measurements, and the incorporation of the underlying graph structure of the dynamic into the INDEQS forecasting method.

2

Related Work

Spatio-temporal forecasting encompasses a wide range of model families, differing in how they treat the spatial and temporal domains. Ju et al. (2024) give overviews for graph representation learning and Jin et al. (2024) give an overview of graph neural networks for time series forecasting. In Section A.13 we provide a tabular comparison with the most closely related Graph Neural Differential Equation methods to our work. In the following subsections, we outline different aspects of related works to outline the different treatments of the temporal dimension (discrete versus continuous), and the discrete spatial dimension of graphs versus discretizations of continuous space. Moreover, we address composites of continuous time plus graphs, and conclude with continuous simulations and general applications. 2.1

Graph information in time-discrete forecasting models

Some time-discrete methods learn the graph structure from the given time series data, others rely on a prior given graph. Spatial-Temporal Graph Neural Networks (GNNs) (Wu et al., 2021; Rossi et al., 2020) inform Neural Networks (NNs) with graph information, by combining Message Passing NNs (Gilmer et al., 2017) with Recurrent Neural Networks (RNNs) like Long Short Term Memorys (LSTMs) (Hochreiter & Schmidhuber, 1997) or Gated Recurrent Units (GRUs) (Cho et al., 2014) leading to methods like Diffusion Convolutional Recurrent Neural Networks (DCRNNs) (Li et al., 2018), which depend on a prior known graph structure. Wu et al. (2019) combine Graph Convolutional Networkss (GCNs) (Kipf & Welling, 2017) and dilated convolutions (Yu & Koltun, 2016) for the temporal processing, leading to Graph WaveNet (GWaveNet), which has one variant that learns the graph structure from data and another that uses a prior given graph. Spatial-Temporal Graph Convolutional Networks (STGCNs) (Yu et al., 2018) use graph convolution in both the spatial and the temporal processing, also requiring the prior graph structure. Graph Multi-Attention Network (GMAN) (Zheng et al., 2020) use attention (Kim et al., 2017; Bahdanau et al., 2014) for spatial and temporal processing and does not make use of a given graph topology, only learning graph connectivity from data. Attribute-Augmented Spatiotemporal Graph Convolutional Networks (AST-GCNs) (Zhu et al., 2021) combine graph convolutions on a fixed given graph and GRUs, along with additional node attribute information, while not performing graph adaptions based on data. Attention Based Spatial-Temporal Graph Convolutional Networkss (ASTGCNs) (Guo et al., 2019) use spatial and temporal attention, assuming a given graph structure and only dynamically reweigh edge connections from data. Xiao et al. (2025) use self-attention and learnable node-embeddings to capture graph dynamics and GRUs as the temporal processing. 2.2

Time-continuous models

The seminal work of NDEs (Chen et al., 2018), along with (Funahashi & Nakamura, 1993), allow continuous layer depth which can be arranged to reflect continuous time to align the data time dimension with the model’s internal, virtual time dimension. To naturally adapt to later incoming data points, the notion of Controlled Differential Equations (CDEs) is used in NCDEs (Kidger, 2021), allowing learning path-dependent maps from path-space to path-space. The control path construction and their properties is explored in (Morrill et al., 2021) and (Morrill et al., 2022). Walker et al. (2024) introduce a training method to increase efficiency of NCDEs using rough path theory (Lyons et al., 2007). Rubanova et al. (2019) and Dupont et al. (2019) augmented Neural Ordinary Differential Equations (NODEs). Jhin et al. (2024) use attention on the output 3

of an NCDE together with the data path. An overview over different NDE models on time series tasks is provided by Oh et al. (2025). 2.3

Graph time-continuous models

The continuous methods can be extended to allow treatment of time series on graphs. Poli et al. (2021) introduce spatial inductive bias as a node embedding into the vector field while generalizing the notion of NODEs to graphs. By evolving a latent space representation of the edge connections coupled with a latent state space of node features, Huang et al. (2021) proposed a method that allows modeling dynamic graph structures over time together with temporally varying node features. Hereby a GNN is used to compute the latent initial states for edges and nodes, respectively, based on the observed sequence of node attributes and adjacency matrix sequences, whereby the temporal dimension is treated discretely via temporal edges. These states are then evolved via a coupled ODE to predict future nodes and edges, via the likelihood of the states. Choi et al. (2022) consider time series on a graph by using a graph embedding to capture the spatial dependencies from data, without directly incorporating prior graph knowledge for traffic forecasting, as the graph connection between nodes is learned not given. In (Jiang et al., 2023a) the initial latent representation is first learned from initial observations at a point in time, then the continuous latent representation trajectory is learned as the solution to an ODE, which incorporates features as additional inputs via a GNN. Luo et al. (2023) use a graph with temporal edges to represent a time series and extract the initialization of latent states via graph convolution together with a spectral convolution, and evolve future node and edge representations using second-order ODEs. Qin et al. (2026) propose Graph Neural Controlled Differential Equationss (GN-CDEs), a method to learn a dynamic graph embedding by creating graph paths in the controlled differential equation, allowing for time dependent graph structures, rather then having a static graph, the whole graph control path over time has to be given. Berndt et al. (2026) introduce permutation equivariance into GN-CDEs. Chen et al. (2024) use two adaptive graph convolutions with opposite signs in their spatial architecture. Liu et al. (2025) give an overview of graphs and GNNs in NDEs. 2.4

Graphs as approximations of spatial continuum

Continuous methods exist that can be seen as a continuous version of GNNs, but they do not treat time series: Xhonneux et al. (2020) continuously diffuse along the spatial graph structure. GRAND (Chamberlain et al., 2021) is a method that treats a GNN as a discretization of an underlying diffusion process. CGNN (Xhonneux et al., 2020) generalize GNNs by seeing them as a specific discretization scheme. Continuous Graph Flow (Deng et al., 2019) are Ordinary Differential Equations (ODEs) that operate on a graph structure and Cranmer et al. (2020) distill symbolic representations of a learned deep model by introducing strong inductive bias via a GNN. 2.5

Simulations, applications, and other spatial information strategies

Chapman & Mesbahi (2011) formulated advection on graphs, Zang & Wang (2020) simulate network dynamics based on heat diffusion, mutualistic interaction of species and gene regulatory dynamics, and Arndt et al. (2025) use Partial Differential Equations (PDEs) to generate synthetic data for spatio-temporal graph forecasting. All three do not consider advection along graph edges. Maddix et al. (2022) describe a similar simulation to ours, with continuous time evolution at the nodes, but do not consider a continuous edge domain between nodes. Kirschstein & Sun (2024) investigate graph topology information for GNNs on a river discharge problem. Kratzert et al. (2018) forecast rainfall runoffs using LSTMs, however use additional weather data as features and predict gauge-wise, different to our setting. Jiang et al. (2023b) and Liu & Zhang (2024) give an overview of GNN for traffic forecasting. Apart from the discrete-time methods for traffic forecasting (Fang et al., 2021; Liu et al., 2023; Li et al., 2018; Lan et al., 2022; Xiao et al., 2025; Wu et al., 2019; Yu & Koltun, 2016; Yu et al., 2018; Zheng et al., 2020; Zhu et al., 2021; Guo et al., 2019; Shao et al., 2022; Weng et al., 2023), continuous-time methods were also used for this domain (Poli et al., 2021; Choi et al., 2022; Choi & Park, 2023). Kosma et al. (2023) use NODEs for epidemic spreading on graphs and Verma et al. (2024) use NODEs for climate and weather forecasting on discretized continuous space. Other attempts of incorporating prior spatial knowledge into NN architecture include Physics Informed Neural 4

Networks (PINNS) Raissi et al. (2019), which enforce a prior defined PDE but do not act on graphs, as they avail oneself of a discretized continuous description of the spatial domain.

3

Background

NDEs model the evolution of a hidden state as the solution to a differential equation parameterized by a NN (Chen et al., 2018; Kidger, 2021). By treating time as continuous, NDEs process irregularly sampled observations naturally and admit memory-efficient training. This section recapitulates NODEs and the variants of NDEs that INDEQS builds on: NCDEs and their graph-based extensions. 3.1

Neural Ordinary Differential Equations

NODEs Chen et al. (2018) are time-continuous models that describe the evolution of a hidden state y ∈ Rdy via a differential equation up to time T > 0 y(0) = y0 ,

dy(t) = fθ (t, y(t)), dt

t ∈ [0, T ],

where the vector field on the right-hand side is a neural network fθ : [0, T ]×Rdy → Rdy , with parameters θ — rendering the differential equation “neural”. Lipschitz continuity of fθ ensures the existence and uniqueness of a solution Kidger (2021). For some data input x0 ∈ Rdx −1 at time t0 , an affine mapping mθ is applied to obtain the initial value for the differential equation y0 = mθ ((t0 , x0 )) ∈ Rdy , and thereby augmenting the NDE (Dupont et al., 2019). After evolving through virtual time up to T , the final state y(T ) serves as input to another affine layer lθ to obtain the output of the model. NODEs can be considered the continuous-time limit of residual networks He et al. (2016) and can also be formulated in integral form via Z T y(0) = y0 ,

y(T ) = y(0) +

fθ (s, y(s)) ds. 0

3.2

Neural Controlled Differential Equations n

For modeling multivariate time series with observations {(ti , xi )}i=0 , one can turn to NCDEs (Kidger et al., 2020), which incorporate new observations continuously over time rather than only at initialization. To do so, the discrete observations are interpolated into a continuous path x : [0, T ] → Rdx that acts as the control for the differential equation. An NCDE driven by x is then defined by Z T y(0) = y0 ,

y(T ) = y(0) +

fθ (y(s)) dx(s), 0

with solution y : [0, T ] → Rdy , where fθ : Rdy → Rdy ×dx is a neural network assumed to be Lipschitz continuous and the integral is taken in the Riemann–Stieltjes sense against the control path x, wherein the integrand fθ (y(t)) dx(t) is a matrix-vector product. This control path x allows a continuous information inflow from data across [0, T ], in contrast to the NODE setting, where information enters only at t = 0. NCDEs can be considered operators that map from path space to path space. The initial state y0 is obtained via a learnable function nγ : Rdx → Rdy , x(0) 7→ nγ (x(0)) = y0 . Due to the recurrent nature, NCDEs can be viewed as the continuous version of RNNs. The output is obtained through application of an affine layer lθ via ot = lθ (yt ). For a differentiable path of bounded variation, reduction of the NCDE to an NODE is possible to attain Z T dx(s) y(0) = y0 , y(T ) = y(0) + fθ (y(s)) ds, ds 0 which allows the use of the training techniques of NODEs, with the integral now being a Riemann integral and the integrand fθ (y(t)) dx(t) dt again refering to a matrix-vector product. 5

3.3

Graph Neural Controlled Differential Equations

We write in the following {Gti ≜ (V, E, Yti )}ni=0 for a multivariate time series Yt0 , . . . , Ytn ∈ Rdy observed at times t0 , . . . , tn on a directed graph G with vertices v ∈ V and edges e ∈ E. To model this setting, Choi et al. (2022) rewrite the states of NCDEs to matrices in order to represent the additional graph dimensionality |V| by (see appendix A.2 for dimensional details) Z T H(T ) = H(0) + 0

  dX(t) dt, fθ H(t) dt

(1)

wherein for all nodes, a dh -dimensional hidden state H(t) ∈ R|V|×dh is continuously updated in time, starting from H(0) = H0 ∈ R|V|×dh , X(t) ∈ R|V|×dx is the control on the graph with dimensionality dx for every node and fθ : R|V|×dh → R|V|×dh × R|V|×dx the guiding vector field. Jhin et al. (2024) and Kidger (2021, p. 66) show that NCDEs can be coupled to use the encoded hidden path H as a control for a second NCDE with hidden state Z(t) ∈ R|V|×dz , with dz being the dimensionality of Z, which reduces to the NODE Z T Z(T ) = Z(0) + 0

  dH(t) gγ Z(t) dt, dt

(2)

with initial value Z(0) = Z0 ∈ R|V|×dz and vector field gγ : R|V|×dz → R|V|×dz × R|V|×dh . The coupled NODE describing the dynamics takes the form (intermediary steps can be found in A.3)         gγ Z(t) fθ H(t) dX(t) d Z(t) dt .   (3) = dt H(t) fθ H(t) dX(t) dt

One now constrains fθ to process information for every node separately to only capture the temporal dependencies individually, without mixing information across nodes, whereas gγ learns the spatial dependencies. For forecasting, the final state Z(T ) encodes the information gathered from time 0 up to T and is used as input to a final convolutional layer to make the final predictions {Ŷti }ni=0 with T < ti ≤ T + τ at time T for the next M time steps up to time T + τ . One can solve and backpropagate through the NCDE given a loss function L({Ŷti }ni=0 , {Yti }ni=0 ) and optimize the parameters θ and γ.

4

Informed Graph Neural Controlled Differential Equations (INDEQS)

We present Informed Neural controlled Differential EQuationS (INDEQS) to incorporate prior directed graph structure into NCDEs, which act as an encoder of the features in the context window. We define two variations of INDEQS: inner and outer informedness. To highlight the differences in graph informing positions within the architecture of an NCDE, we distinguish between the inner mapping gγ (Z(t)) : RdZ → RdZ × RdH

(4)

gγ (Z(t)) • · : RdH → RdZ ,

(5)

and the outer mapping that the vector field gγ in Equation (2) describes, using • to emphasize the tensor product, where dZ = |V|×dz and dH = |V| × dh . Whereas Equation (4) describes the inner workings of the update of the hidden state Z on itself, the control, the tensor multiplication in Equation (5) describes the direct connection between control (and thereby the data) to the hidden state. Naturally, both happens simultaneously. The function in Equation (4) describes how a hidden state entry at a node has to encode “where to look” based on the entries of other hidden states and itself, to then “find” the information in the control. In contrast, the function in Equation (5) describes the situation in which one “knows where to look” (at least spatially) to read out the right hidden state update information from the control which is given. Figure 2 schematically illustrates the differences in the connections. 6

Zj (t) Hj (t) Zi (t) Hi (t) nj t0 T ni

t

Figure 2: Difference in information transport between hidden state Hi at node ni and hidden state Zj at (blue) leads to a direct connection node nj , occurring at every point in time t. Connection with Aouter V (violet). versus connecting nodes via Ainner V

Z(0)

Z(T )

Z(t) dZ(t) dt

g

· A

H(t)

dH(t) dt

f

X(t)

· dX(t)

dt t0

t1 . . .

tk

T

T +τ

t

Figure 3: NCDE encoder and convolutional decoder. Encoding (left half): Up to time T , the data points at the bottom are interpolated to obtain a continuous path X, whose derivative is then multiplied with f , to obtain dH. A allows now direct mixing – at the outer position – of the nodes’ control dH, depending on dH. Only after occurs the multiplication with g to obtain the final update dZ. A mixing at the inner position within g can only be dependent on Z. Multiplication here means tensor multiplication, and the 1-dimensionally depicted data and the paths, are multidimensional with multiple nodes and multiple dimensions per node. Decoding (right half): Based on the last hidden state Z(T ), the convolution head (red arrows) directly makes all future prediction at only at predefined times.

7

4.1

Outer informed with inner node embedding: INDEQSouter

To define INDEQSouter , we use the prior known transposed vertex transition matrix Aouter to inform our V NCDE at the outer postion via Z T   dH(t) Z(T ) = Z(0) + gγ Z(t) Aouter dt, (6) V dt 0 where “outer” is referring to the position of the transposed node adjacency matrix. The internal mapping is given by gγ (Z(t)) = g3 ◦ g2 ◦ g1 (Z(t)), with g1 : RdZ → RdZ , g3 : RdZ → RdZ ×dH being fully connected layers with ReLU and hyperbolic tangent activation. INDEQSouter follows the parameterization of the inner g2 via g2 (B) = (I + ϕ(σ(E · E T )))BW,

(7)

as proposed in Choi et al. (2022), where W ∈ RdZ × RdZ is a trainable weight transformation matrix, that reweighs each nodes’s high dimensional representation the same way, E ∈ R|V|×C is a learnable node embedding with embedding dimension C ∈ N, ϕ is a row wise softmax activation and σ is meant to represent elementwise ReLU. Equation (7) is a graph convolutional operation Kipf & Welling (2017) with an adaptive, learnable adjacency matrix. Setting Aouter to the identity fully recovers the setting of Choi et al. (2022). V Throughout our experiments, this setting serves as the baseline, which we denote as STG-NCDE, following Choi et al. (2022). 4.2

Inner informed with outer identity: INDEQSinner

to the identity matrix but replace the node embedding in Equation (7) To define INDEQSinner we set Aouter V with g2 (B) = (Ainner )B, V at the inner position of the internal directly incorporating the transposed vertex transition matrix Ainner V mapping. INDEQSinner has fewer parameters than STG-NCDE and INDEQSouter , as the adjacency matrix is hardcoded without any learnable parameters, replacing the node embedding. INDEQSinner constrains the flow of information to allow only communication between nodes which are connected via the adjacency matrix. This way one can make sure, that causally unrelated nodes are not allowed to communicate directly. For INDEQSouter the model has graph structure information, but is not constrained, as the model still is able to learn other patterns apart from the given adjacency connections. In the setting of STG-NCDE, one allows connections between all nodes and these connections are learned. In addition, we would like to point out that the configuration with both the outer and inner mechanisms set to an identity matrix, would keep each node information completely separate from each other, only processing the nodes’ own state temporally, which would be equal to having n−many 1−node models processed separately. The outer position of INDEQS can be seen analogous to a shortcut connection in a Residual Neural Network (ResNet) He et al. (2016), only between spatial nodes and not in the virtual time dimension. The encoding is visually depicted in Figure 3, illustrating the different information positions with A at the outer position and g containing the inner graph connectivity position. 4.3

Higher order adjacencies

A predecessor of node m is a node n such that there exists a directed edge from n to m. In pursuit of integrating information from the predecessors of predecessors and higher degrees into our NCDEs, we replace AV in INDEQSouter and INDEQSinner by the sum over the k-th power adjacency matrices AV (k) =

k X i=0

8

AiV ,

(8)

where k can be any integer less than or equal to the longest possible path length in the given directed graph. When informing our NCDE with adjacencies up to the l-th power via Equation (8), we refer to this configuration as INDEQSouter (k = l). 4.4

Continuous decoders

Instead of predicting future time steps with the default convolutional decoder, one can also continuously evolve the hidden states to be able to obtain predictions at continuous times via NODE based decoders that we outline in the appendix Section A.7.

5

Simulating Advection on Graph Edges

Continuous advection on a graph is most easily understood by following pulses as they travel along edges, fork at nodes according to predefined split ratios, and merge additively where multiple edges meet. One exemplary Gaussian pulse being advected on a 4-node graph is depicted in Figure 4. In the following, we

3.5 3.0 2.5 2.0 1.5 1.0 0.5 0.0

3.5 3.0 2.5 2.0 1.5 1.0 0.5 0.0 49.4

11.4

49.2

11.6

49.0

11.8

48.8

12.0 12.2

48.6

49.4

11.4

12.2

12.2

49.2

11.6

48.8

12.0

48.6

49.4

11.4

49.0

11.8

48.8

12.0

49.2

11.6

49.0

11.8

49.4

11.4

49.2

11.6

2.5 2.0 1.5 1.0 0.5 0.0

2.5 2.0 1.5 1.0 0.5 0.0

49.0

11.8

48.8

12.0

48.6

12.2

48.6

Figure 4: Advection of an initial Gaussian pulse on a 4 node graph with 5 edges over time present the mathematical details behind the simulation of advection on graph edges. For a controlled experimental setting, we propose a simulation for linear advection along graph edges. In contrast to Chapman & Mesbahi (2011), where the quantities on the vertices are updated discretely in time, we advect quantities that move continuously in time along the edges of a graph and fork or merge at vertices. For the advection simulation, we consider a directed graph G with a set of vertices V and edges E. Every edge e ∈ E has a time-static continuous domain Ωe = {x ∈ R | 0 ≤ x < δ(e)} and a function space Ve = {ye (x, t) | Ω(e) × T → Rd } attached to it, where δ(e) is the length of edge e and t ∈ T = [0, T ] is a point in time. We first focus on the description of the advection on the interior of the edges without considering transitions between edges: Given an initial state of the dynamic system it evolves according to an advection differential equation ∂y + ∇ · (y ⊙ v) = 0, y( · , 0) = y0 (9) ∂t with v = (v1 , . . . , v|E| )⊺ being the vector of scalar velocity fields ve : Ωe → R, with e ∈ {1, . . . , |E|}, that advect the quantity y = (ye1 , . . . , ye|E| )⊺ through space over time. The divergence is intended row-wise and ⊙ signifies element-wise multiplication. We restrict the entries of y to positive values, so that the flow direction is always the direction of the directed edge. We assume that the velocity field is constant. In the ∂ye e case of a one-dimensional quantity and velocity field along the edges, this leads to ∂y ∂t = −ve ∂x , which 0 0 has the analytical solution ye (x, t) = ye (x − vt), with initial condition ye := ye (x, 0), for all x ∈ Ω(e), for all e ∈ E and ve t ≤ x ≤ δ(e). With this description of the dynamic, ye for e ∈ E is not required to be differentiable. Now, we describe the dynamic on the transition between adjacent edges. For x < ve t one would look back “beyond the edge”. We therefore resort to a matrix formulation to represent the edge transitions of y: y(x, t) = AE y(x, 0)



, x=(δ(e)−ve t 1|E| )

9

x < ve t,

(10)

where t < mine∈E δ(e)/ve has to hold for every edge to not look further back than the previous edge and where AE is a directed edge transition matrix, signifying to which edge a quantity transitions when the quantity reaches the end of an edge. AE acts as a function operator on the vector of functions y0 = 0 ⊺ (y10 , . . . , y|E| ) , and x = (x1 , . . . , x|E| )⊺ is a collection vector of spatial coordinates on the different edges and 1 = (1, . . . , 1)⊺ ∈ R|E| . The entries aij of AE are defined as ( pij ∈ (0, 1], if ei follows on ej , aij = 0, else P with pij being the proportion of the quantity on ei transported to ej and i∈E pij = 1 to enforce conservation. The matrix AE can be obtained from the the vertex adjacency matrix AV (details in A.4). We then iteratively advect with a recurrence equation derived from Equation (10) to derive y(x, t + ∆t) = AE (y(x, t))



, x=(δ(e)−v∆t 1|E| )

which can be used for simulating data.

6

Experiments

We begin by describing the generation of the simulated data, followed by the description of the river discharge dataset and the traffic flow forecasting dataset. 6.1

Description of datasets

6.1.1

Advection simulation data

3.0 2.5 2.0 1.5 1.0 0.5 0.0 1.0

3.0 2.5 2.0 1.5 1.0 0.5 0.0 1.0

0.5 1.0

0.0 0.5

0.0

0.5 0.5

1.0 1.0

3.0 2.5 2.0 1.5 1.0 0.5 0.0 1.0

0.5 1.0

0.5

0.0 0.5

0.0

1.0

0.5 0.5

3.0 2.5 2.0 1.5 1.0 0.5 0.0

1.0 1.0

0.0 0.5

0.0

0.5 0.5

1.0 1.0

2 1 0 1 2 3 4

2

0 1

1

2

3

4

Figure 5: Advection on graph edges for a 4-node graph for 3 time steps and increasing node resolution. The additional intermediate nodes are depicted as black dots. The last image additionally shows a zoomed out view of another time step with future masses along the virtual edges (green) where masses enter at the top right edges and leave the graph on the bottom edge. For the experiments on graph advection data, we first randomly sample graphs with number of nodes being 4, 8, 16, 32,64 and 128, respectively, and hold these constant for the advection simulation along the edges. The (directed) graphs represent randomly generated Growing Network with Redirection (GNR) graphs (Krapivsky & Redner, 2001) (see A.5 for details), resembling the graph structure of a river network K   X y0 (x) = max 0, a0 + ak cos(2πkx/L) + bk sin(2πkx/L) ,

(11)

k=1

where K is a small random positive integer uniformly drawn from {2,. . . , 20}, a0 = 0.2, and the coefficients ak , bk are independent Gaussian variables with decaying variance k −α with α = 5 (i.e. higher modes are damped), so that each edge carries a smooth, spatially correlated random profile with most power in low spatial frequencies. 10

We simulate the advection dynamic along the edges 2000 times with different initial conditions, for each of the graphs, and use ∆t = 8 minutes to evolve for 24 steps into the future. To have enough mass influx into the graph system for future steps, virtual edges are initialized accordingly (see Figure 5). To obtain data measurements at the nodes, the quantity that passed through the vertices in a given time span is aggregated. We take measurements at the nodes for ∆t = 8 and acquire time series on the graph nodes {Gti ≜ (V, E, Yti )}ni=0 that are used for training. The edges are of length 64 and the quantities move at speed v = 1. The task is to predict the quantities for the next 12 time points given the previous 12 time points, such that the previous nodes provide enough information to be able to infer the quantities at the subsequent nodes, which renders an adjacency matrix power of 1 the reasonable choice. We train on 80% of the data, use 10 % for validation and 10 % as a holdout test set. We train, validate and test on the non-source nodes, i.e. the nodes that have preceding nodes with measurements that would allow perfect prediction. For testing the stability of the methods for different spatial node resolutions k, we divide each edge into k intervals, leading to k − 1 additional intermediate nodes, where additional measurements are taken. The graph adjacency matrix is rewired to reflect these additional nodes. Apart from the resolution, the graph structure, the initialization and the advective behavior stay the same. The different node resolutions are depicted in Figure 5. The code of the simulation and the generated data can be found in the code repository (https://github.com/Mitchi1/indeqs). 6.1.2

River discharge data

In our real-world data experiments, we use runoff data from “The Global Runoff Data Centre, 56068 Koblenz, Germany”. It includes daily measurements of mean discharges of the river Weser, recorded starting 1 Jul 1820 up till 25 Jul 2023 for at least one station. We selected the time span from January 6, 1998, to October 31, 2016 (6874 days), as it provided the longest possible overlapping period during which measurements were available for all stations. We excluded two stations because they contained no information on connected stations. The unit of measure for the discharge data is cubic meters per second (m3 /s). This dataset provides valuable insights into the hydrological dynamics of the Weser River over an extended period. The dataset for the experiments features 45 nodes and 44 edges. We selected the Weser River network, as this river basin has a comparable size to our simulation experiments and provides information of the next downstream stations, allowing to create an adjacency matrix for informedness. The data can be found in the code repository. The task is to predict future discharges of the next 5 days given a context of the last 7 days, leading to 572 complete, disjoint time series fragments. For the training, we use a chronological 80/10/10 split for training, validation and test set, respectively. We use a stride of 1 to augment the number of samples to obtain 5489, 676 and 676 samples for training, validation and test set. 6.1.3

Traffic flow data

The PeMS08 dataset comprises district 8 of the the Caltrans Performance Measurement System (PeMS). It captures traffic flow measurements across the California highway system at a frequency of 5 minutes (288 measurements per day), spanning from 01 Jan 2016 to 31 Aug 2016. The monitored network consists of 170 nodes and 295 edges, providing a detailed representation of the sensor network in the San Bernardino area. To leverage the spatial dependencies, we construct an informed adjacency matrix A ∈ RN ×N using a thresholded Gaussian kernel (Shuman et al., 2013) based on the physical distances di,j between sensors: d2i,j wi,j = exp − 2 σ

! (12)

where σ is the standard deviation of all recorded distances. We apply a threshold r = 0.01 such that Ai,j = wi,j if wi,j ≥ r, and 0 otherwise. This high-resolution temporal data enables in-depth studies of traffic fluctuations and dynamics within the network. Similar to the hydrological experiments, the task is to predict future traffic flow of the next hour given a context of the last hour, leading to 445 complete, disjoint time series fragments. For the training, we use a chronological 60/20/20 split for training, validation and test set, respectively. We use a stride of 1 to augment the number of samples to obtain 14,271, 1,784, and 1,784 samples, respectively, allowing for a precise analysis of the traffic patterns over the monitored period. 11

6.2

Results

We demonstrate the performance of INDEQS on the advection simulation data and a river discharge forecasting tasks on a river network while only using the endogenous discharges and no exogenous features, as the natural phenomenon of water flow exhibits an advective behavior, conserving masses moving steadily over time and we observe benefits of graph information for our advection simulation data. We also expect the river flows to behave conservatively to a degree and be more predictable than tasks solely involving human-interactions like traffic flow forecasting, which we will also study as the final task. To train INDEQS we use hermite cubic splines with backward differences (Morrill et al., 2021) to construct differentiable paths X(t) from the given data points and RK4, a 4th order Runge-Kutta method (Runge, 1895; Kutta, 1901) to solve the differential equations. We train for 200 epochs for the advection simulation experiments, the river discharge and traffic flow problem and select the model that attained the best validation loss over the whole training period. For the simulation data, the discharge and traffic flow predictions, we train INDEQS in both variations and STG-NCDE with 5 random seeds. 6.2.1

Advection Experiment

For the advection simulation experiment, we compare graph informed INDEQSouter and INDEQSinner to STG-NCDE. We observe in Figure 6 that the informed INDEQSouter (orange) is attaining a lower MAE compared to the uninformed STG-NCDE (blue) method for all graph sizes for spatial node resolution of 1 (see Figure 6 (a)) and 4 (see Figure 6 (c)), and also having lower MAE for spatial node resolution 2 for all considered graph sizes, except for a graph of size 8, where the performance is almost on par (see Figure 6 (b)). For a spatial resolution of 1 and 2, INDEQSouter exhibits a relatively stable MAE level over the node numbers, while the MAE of STG-NCDE is increasing with increasing graph sizes and then plateauing for 64 nodes and 128 nodes. For spatial resolution of 2, STG-NCDE exhibits increasing MAE for higher node numbers, a pattern observed also for spatial resolution of 4. INDEQSinner (green) has higher MAE than STG-NCDE for low node numbers, however exhibits lower MAE than STG-NCDE starting for higher node numbers. The turning point of this behavior increases with spatial resolution. All methods degenerate with increasing spatial resolution, while INDEQSinner ’s MAE increases most sharply for the 4-,8- and 16-node compared to INDEQSouter (see Figure 7). The results suggest that INDEQSouter is more stable across graph size and spatial resolution. All results are also provided in Table 4. STG-NCDE INDEQS_outer INDEQS_inner

STG-NCDE INDEQS_outer INDEQS_inner

4.5 4.0

4 3 2

STG-NCDE INDEQS_outer INDEQS_inner

5

3.5

MAE (mean over 5 seeds)

MAE (mean over 5 seeds)

MAE (mean over 5 seeds)

5

3.0 2.5 2.0

4

3

2

1.5 1.0

1 4 8

16

32

64 Number of graph nodes

128

(a) Spatial node resolution = 1

1 4

8

16 Number of graph nodes

32

(b) Spatial node resolution = 2

4

8

16 Number of graph nodes

32

(c) Spatial node resolution = 4

Figure 6: MAE over 5 seed runs over graphs with increasing number of nodes for the Advection Experiment with fixed spatial node resolution.

6.2.2

River discharges

For the river discharge experiment, we compare INDEQS to the uninformed STG-NCDE (Choi et al., 2022) and the continuous graph informed Graph Convolutional ODE with Gated Recurrent Units (GCDE-GRU) (Poli et al., 2021). To contextualize the performance of our continuous model, we include comparisons with informed discrete-time recurrent model DCRNN Li et al. (2018), and informed discrete-time convolutionbased GWaveNet (Wu et al., 2019). 12

1.75 1.50 1.25

2.25 2.00 1.75 1.50 1.25

1.00

1

2 Spatial resolution on graph edges

4

4.5

3.0 2.5 2.0

4.0 3.5 3.0 2.5 2.0 1.5 1.0

1

(a) 4-node graph

STG-NCDE INDEQS_outer INDEQS_inner

5.0

1.5

1.00

0.75

STG-NCDE INDEQS_outer INDEQS_inner

3.5

MAE (mean over 5 seeds)

2.00

4.0

STG-NCDE INDEQS_outer INDEQS_inner

2.50 MAE (mean over 5 seeds)

MAE (mean over 5 seeds)

2.75

STG-NCDE INDEQS_outer INDEQS_inner

2.25

MAE (mean over 5 seeds)

2.50

2 Spatial resolution on graph edges

4

1

(b) 8-node graph

2 Spatial resolution on graph edges

(c) 16-node graph

4

1

2 Spatial resolution on graph edges

4

(d) 32-node graph

Figure 7: Mean MAE over 5 runs for increasing spatial node resolution for the Advection experiment with fixed graph size.

STG-NCDE INDEQS_outer INDEQS_inner

5.8 5.7

MAE

5.6 5.5 5.4 5.3 5.2 5.1 1

2

3

4

5 6 7 8 9 Adjacency matrix power

10

11

12

Figure 8: Average performance of INDEQS with increasing adjacency matrix powers vs. the uninformed STG-NCDE for the task of water discharges over 5 runs, showing a trend for increased performance for higher adjacencies.

We consider for this task higher adjacency matrix powers and different decoders for the INDEQS methods. The results versus other methods on the water discharge task can be found in Table 1. INDEQSouter has an MAE of 5.34 compared to uninformed STG-NCDE with MAE of 5.59. We further investigate the forecasting performance for matrix adjacency powers from k = 1 up to k = 12, the maximum steps one can take upstream, in the water discharge graph. Higher adjacency matrix powers lead to lower MAE for INDEQSinner and to a smaller degree also for INDEQSouter (see Figure 8), attaining MAEs of 5.34 and 5.20, respectively, for an adjacency matrix power of 12. INDEQSouter incurs only marginal overhead in VRAM and compute time, while INDEQSinner slightly reduces VRAM use and trains 24% faster than STG-NCDE , owing to the lower parameter count of the Adaptive Graph Convolution (AGC). The continuous NODEg and NODEctrl decoders lead to additional MAE performance gains for an informed INDEQSouter , improving the MAE of the convolutional decoder of 5.20 to 5.07 and 5.01, respectively — surpassing the uninformed STG-NCDE baseline and the additionally considered informed NODE baseline GCDE-GRU. In Table 1 we further compare to discrete-time graph-informed methods and observe that INDEQSouter achieves a lower MAE compared to DCRNN but does not match GWaveNet, which achieves the best MAE on the task of water discharges. Given the superior performance of INDEQSouter compared to INDEQSinner , due to the additional dataadaptivity, we focus on the former for the following traffic forecasting task. 13

Table 1: Comparison of INDEQS vs. the uninformed STG-NCDE and other baselines regarding quantitative performance in terms of averaged MAE and RMSE over five runs in the task of water discharges prediction. Performance and model specs.

Water discharges

Model type

MAE ↓

RMSE ↓

#Params.

Time (Epoch/Total)

VRAM

DCRNN Li et al. (2018) GWaveNet Wu et al. (2019)

5.09 ±0.03 4.95 ±0.13

16.66 ±0.18 14.89 ±0.42

23, 729 302, 537

13.8 s/ 38.4 min 3.6 s/ 5.93 min

117 MB 1, 808 MB

informed discrete-time RNN informed discrete-time CNN

GCDE-GRU Poli et al. (2021) STG-NCDE Choi et al. (2022) INDEQSNODEctrl (ours) INDEQSNODEg (ours) INDEQSinner (k = 12) (ours) INDEQSouter (k = 12) (ours)

6.28 ±0.29 5.59 ±0.13 5.01 ±0.16 5.07 ±0.08 5.34 ±0.07 5.20 ±0.12

17.75 ±0.37 18.73 ±0.65 16.10 ±0.65 16.43 ±0.34 17.73 ±0.64 16.97 ±0.40

33, 281 415, 879 416, 500 415, 619 291, 909 415, 879

91.7 s/ 62 min 11.3 s/ 37.8 min 28.0 s / 93.2 min 17.13 s / 57.1 min 8.5 s / 28.6 min 12.1 s / 40.2 min

74 MB 560 MB 902 MB 833 MB 535 MB 573 MB

informed NODE uninformed NCDE informed NCDE informed NCDE informed NCDE informed NCDE

6.2.3

Traffic forecasting

For the PeMS08 traffic flow dataset, we compare INDEQSouter to STG-NCDE to demonstrate that the graph information also works for a task that is more influenced by human behavioral patterns and individual decisions, with a less clear causal graph structure. Additionally, the dataset is an established benchmark dataset in spatio-temporal graph forecasting. We observe in Table 2 that INDEQSouter performs slightly better on the PeMS08 traffic flow dataset than the uninformed STG-NCDE model with a Mean Absolute Error (MAE) over 5 runs of 16.50 vs. 16.55 (see Table 2), demonstrating that the graph topology information is also useful for application domains that exhibit additional random behavior. The results are not directly comparable to the traffic flow forecasting literature, as we report the results over multiple seeds, while in the literature mostly only one seed result is reported. By additionally optimizing for the best graph adjacency power, one even attains an MAE of 16.39 (see Table 3). Table 2: Overview of MAE, number of parameters, training time and the epoch when validation loss last improved, with standard deviations, for uninformed STG-NCDE vs. informed INDEQSouter for the PeMS08 traffic prediction over 5 runs with different random seeds.

STG-NCDE INDEQSouter

Outer

Inner

MAE (test)

#Params.

MAE (val.)

Train time

Last improvement

Identity Informed

AGC AGC

16.55 ±0.20 16.50 ±0.19

45,152 45,152

17.00 ±0.22 16.88 ±0.28

129.31 min ±1.04 143.18 min ±1.45

183.00 ±3.94 169.00 ±11.20

We find empirical evidence that INDEQSouter is preferred, when best performance is required and one wants to inform the model with a pre-defined graph structure in addition to having the adaptive graph convolutional component that is able to learn patterns apart from the pre-defined graph. Additional communication between non-connected nodes in the pre-defined graph is possible in this variant. The pre-defined graph structure is in this sense informing. In INDEQSinner on the other hand, the pre-defined graph structure is constraining the direct communication between nodes according to the pre-defined graph. This can be desired, if one is certain about the underlying process of the data and wants to hinder communication Table 3: MAE with standard deviation over 5 runs for different outer-inner graph configurations for increasing powers of the adjacency matrix for the PeMS08 traffic prediction. Adjacency matrix power

INDEQSouter STG-NCDE

1

2

3

4

5

16.50 ±0.17 16.55 ±0.18

16.39 ±0.18 -

16.53 ±0.13 -

16.53 ±0.19 -

16.53 ±0.12 -

14

between unconnected nodes. We provide further experiments regarding continuous decoders, and an analysis of solvers and solver step sizes in Section A.9.3 and Section A.9.4, respectively.

7

Discussion

Our empirical study provides several insights into when and how graph-informed NCDE models are beneficial for spatio-temporal forecasting. Across the controlled advection simulations, the river discharge task, and the PeMS08 traffic forecasting benchmark, we consistently observe that incorporating prior knowledge about the underlying graph structure into the NCDE improves predictive performance over the uninformed baseline STG-NCDE, particularly when the graph encodes physically meaningful flow or connectivity patterns. INDEQSouter with convolutional decoder head is the overall best choice of the different INDEQS variants, if useful graph information is available. INDEQSinner is favorable if one wants to restrict the connectivity between graph nodes to the given graph adjacency matrix, leading to a lighter and faster model with only slightly worse performance than INDEQSouter , due to not possesing the data adaptive capabilities of the AGC. For real world problems it is advantageous to use the continuous decoder setups, due to their higher expressivity. However they require more training than the convolutional decoder. On the advection simulation data, INDEQSouter and INDEQSinner both benefit from access to the true adjacency matrix of the underlying dynamic. Informing the model at the outer position (INDEQSouter ) leads to robust gains and these increase up to a point, as the number of graph node increases. We suspect gains of the same magnitude for larger graphs. The inner variant (INDEQSinner ) exploits graph structure more aggressively through a constrained spatial vector field. The inner variant is performing worse than STG-NCDE for higher spatial resolution, but increasingly better for higher numbers of graph nodes. This suggests that for smaller graphs the AGC is compensating for the lacking graph structure and can learn it from data. As the graph becomes larger, the higher the importance of the underlying structure, which cannot be adequately be learned from the data as for smaller graphs. The experiments on varying node resolution indicate that the proposed mechanisms remain effective to a certain degree when the graph is refined. The degrading performance in this case shows that the problem is becoming more difficult, as information now has to travel via multiple hops. The uninformed NCDE, however, is unable to learn the graph structure from the limited given amount of samples, even with clean signal data in the controlled advection simulation setting. For the river discharge task, INDEQSinner achieves lower MAE than an uninformed NCDE with learnable graph embedding when the adjacency power is chosen appropriately. This highlights that constraining the propagation of information to physically plausible connections can be more beneficial than allowing arbitrary spatial long-range communication, especially in settings where mass conservation and directed flow are central. At the same time, INDEQSouter achieves competitive or better performance while adding only marginal overhead in terms of VRAM and compute time. On the PeMS08 traffic forecasting benchmark, where the dynamics are influenced by additional unobserved factors and noise, the performance gap between informed and uninformed models is smaller. Nevertheless, INDEQSouter still slightly outperforms the uninformed STG-NCDE, indicating that real-world road network information remains useful even when the graph structure does not fully explain the observations. This suggests that INDEQS can serve as a flexible method that combines pre-defined topology with data-driven adjustments through the adaptive graph convolution component. A second set of insights concerns the choice of decoder. In both the river discharge and traffic experiments, continuous-time decoders (NODEg and NODEctrl ) consistently outperform the discrete convolutional decoder in terms of validation and test MAE. This supports the view that continuous latent dynamics are a natural fit for NCDE-based models on graph time series, especially when predictions at arbitrary time points are of interest. However, these gains come at increased computational cost, most noticebly for NODEctrl , which requires solving an additional ODE for the learned control signal. In practice, NODEg offers a favorable trade-off between accuracy, parameter count, and runtime. Surprisingly, the continuous decoders do not perform well on the advection simulation. 15

One obvious limitations is the requirement of knowing the underlying graph structure, which is not always obtainable. Also our evaluations only encompass limited graph types, graph sizes and domains. It is also difficult to distinguish true underlying graph structure of the dynamic from a mere spatial proximity graph structure, or to discern if a given graph structure is valuable. Overall, our results indicate that graph-informed NCDEs are particularly beneficial when (i) a reliable graph describing flow or interaction structure is available, (ii) the forecasting horizon and spatial resolution require information to propagate over multiple hops, and (iii) continuous-time evolution of latent trajectories is advantageous. In such settings, INDEQSouter is a strong choice when performance and flexibility are prioritized, whereas INDEQSinner is appealing when one wishes to enforce strict adherence to a known topology. We believe that these findings encourage further exploration of informed neural differential equation models for spatio-temporal problems beyond the domains considered in this work.

8

Conclusion

We introduced INDEQS, a graph-informed Neural Controlled Differential Equation model that separates inner mixing of hidden states from outer mixing between vector field and control. By injecting prior knowledge of directed graph structure at these distinct positions, INDEQS can achieve lower forecasting errors than uninformed NCDE baselines with comparable parameter counts, particularly on larger graphs and tasks that require information to propagate over multiple hops. Through the introduced controlled advection simulations and real-world experiments on river discharge and traffic flow, we showed that outer informedness is a strong and flexible default, while inner informedness offers a more parameter-efficient alternative when strict adherence to a known adjacency is desired. Our results highlight the promise of combining neural differential equations with explicit spatial structure, and motivate further work on informed continuous-time models for further spatio-temporal applications.

16

References Martín Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S. Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dandelion Mané, Rajat Monga, Sherry Moore, Derek Murray, Chris Olah, Mike Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viégas, Oriol Vinyals, Pete Warden, Martin Wattenberg, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. TensorFlow: Large-Scale Machine Learning on Heterogeneous Systems, 2015. URL https://www.tensorflow.org/. Software available from tensorflow.org. Jost Arndt, Utku Isil, Michael Detzel, Wojciech Samek, and Jackie Ma. Synthetic datasets for machine learning on spatio-temporal graphs using pdes, 2025. URL https://arxiv.org/abs/2502.04140. Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In The Twelfth International Conference on Learning Representations, 2014. Shaojie Bai, J. Zico Kolter, and Vladlen Koltun. An Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Modeling. CoRR, abs/1803.01271, 2018. URL http://arxiv.org/abs/ 1803.01271. Torben Berndt, Benjamin Walker, Tiexin Qin, Jan Stühmer, and Andrey Kormilitzin. Permutation Equivariant Neural Controlled Differential Equations for Dynamic Graph Representation Learning. In The Thirtyninth Annual Conference on Neural Information Processing Systems, 2026. URL https://papers.nips. cc/paper_files/paper/2025/file/8d54ecfb4ffc95c8994c479671a46b66-Paper-Conference.pdf. Ben Chamberlain, James Rowbottom, Maria I Gorinova, Michael Bronstein, Stefan Webb, and Emanuele Rossi. GRAND: Graph Neural Diffusion. In Marina Meila and Tong Zhang (eds.), Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pp. 1407–1418. PMLR, 18–24 Jul 2021. URL https://proceedings.mlr.press/v139/chamberlain21a. html. Airlie Chapman and Mehran Mesbahi. Advection on graphs. In 2011 50th IEEE Conference on Decision and Control and European Control Conference, pp. 1461–1466, 2011. doi: 10.1109/CDC.2011.6161471. Lanlan Chen, Kai Wu, Jian Lou, and Jing Liu. Signed Graph Neural Ordinary Differential Equation for Modeling Continuous-Time Dynamics. Proceedings of the AAAI Conference on Artificial Intelligence, 38(8):8292–8301, Mar. 2024. doi: 10.1609/aaai.v38i8.28670. URL https://ojs.aaai.org/index.php/ AAAI/article/view/28670. Ricky T. Q. Chen. torchdiffeq, 2018. URL https://github.com/rtqichen/torchdiffeq. Ricky T. Q. Chen, Yulia Rubanova, Jesse Bettencourt, and David K Duvenaud. Neural Ordinary Differential Equations. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. CesaBianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc., 2018. URL https://proceedings.neurips.cc/paper_files/paper/2018/file/ 69386f6bb1dfed68692a24c8686939b9-Paper.pdf. Kyunghyun Cho, B van Merrienboer, Caglar Gulcehre, F Bougares, H Schwenk, and Yoshua Bengio. Learning phrase representations using RNN encoder-decoder for statistical machine translation. In Conference on Empirical Methods in Natural Language Processing (EMNLP 2014), 2014. Jeongwhan Choi and Noseong Park. Graph Neural Rough Differential Equations for Traffic Forecasting. ACM Trans. Intell. Syst. Technol., 14(4), July 2023. ISSN 2157-6904. doi: 10.1145/3604808. URL https://doi.org/10.1145/3604808. Jeongwhan Choi, Hwangyong Choi, Jeehyun Hwang, and Noseong Park. Graph Neural Controlled Differential Equations for Traffic Forecasting. Proceedings of the AAAI Conference on Artificial Intelligence, 36(6): 6367–6374, Jun. 2022. doi: 10.1609/aaai.v36i6.20587. URL https://ojs.aaai.org/index.php/AAAI/ article/view/20587. 17

Miles Cranmer, Alvaro Sanchez Gonzalez, Peter Battaglia, Rui Xu, Kyle Cranmer, David Spergel, and Shirley Ho. Discovering Symbolic Models from Deep Learning with Inductive Biases. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 17429–17442. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper_files/ paper/2020/file/c9f2f917078bd2db12f23c3b413d9cba-Paper.pdf. Zhiwei Deng, Megha Nawhal, Lili Meng, and Greg Mori. Continuous Graph Flow, 2019. URL https: //arxiv.org/abs/1908.02436. Emilien Dupont, Arnaud Doucet, and Yee Whye Teh. Augmented Neural ODEs. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. URL https://proceedings.neurips.cc/paper_ files/paper/2019/file/21be9a4bd4f81549a9d1d241981cec3c-Paper.pdf. Zheng Fang, Qingqing Long, Guojie Song, and Kunqing Xie. Spatial-Temporal Graph ODE Networks for Traffic Flow Forecasting. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, KDD ’21, pp. 364–373, New York, NY, USA, 2021. Association for Computing Machinery. ISBN 9781450383325. doi: 10.1145/3447548.3467430. URL https://doi.org/10.1145/3447548. 3467430. Ken-ichi Funahashi and Yuichi Nakamura. Approximation of dynamical systems by continuous time recurrent neural networks. Neural Networks, 6(6):801–806, January 1993. ISSN 08936080. doi: 10.1016/S0893-6080(05)80125-X. URL https://linkinghub.elsevier.com/retrieve/pii/ S089360800580125X. Justin Gilmer, Samuel S. Schoenholz, Patrick F. Riley, Oriol Vinyals, and George E. Dahl. Neural Message Passing for Quantum Chemistry. In Doina Precup and Yee Whye Teh (eds.), Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 1263–1272. PMLR, 06–11 Aug 2017. URL https://proceedings.mlr.press/v70/gilmer17a.html. Shengnan Guo, Youfang Lin, Ning Feng, Chao Song, and Huaiyu Wan. Attention Based Spatial-Temporal Graph Convolutional Networks for Traffic Flow Forecasting. Proceedings of the AAAI Conference on Artificial Intelligence, 33(01):922–929, July 2019. ISSN 2374-3468, 2159-5399. doi: 10.1609/aaai.v33i01. 3301922. URL https://ojs.aaai.org/index.php/AAAI/article/view/3881. Aric Hagberg, Pieter J. Swart, and Daniel A. Schult. Exploring network structure, dynamics, and function using NetworkX. In Proceedings of the 7th Python in Science Conference (SciPy2008). Los Alamos National Laboratory (LANL), 01 2008. URL https://www.osti.gov/biblio/960616. Charles R. Harris, K. Jarrod Millman, Stéfan J. van der Walt, Ralf Gommers, Pauli Virtanen, David Cournapeau, Eric Wieser, Julian Taylor, Sebastian Berg, Nathaniel J. Smith, Robert Kern, Matti Picus, Stephan Hoyer, Marten H. van Kerkwijk, Matthew Brett, Allan Haldane, Jaime Fernández del Río, Mark Wiebe, Pearu Peterson, Pierre Gérard-Marchant, Kevin Sheppard, Tyler Reddy, Warren Weckesser, Hameer Abbasi, Christoph Gohlke, and Travis E. Oliphant. Array programming with NumPy. Nature, 585(7825):357–362, September 2020. doi: 10.1038/s41586-020-2649-2. URL https: //doi.org/10.1038/s41586-020-2649-2. Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997. Zijie Huang, Yizhou Sun, and Wei Wang. Coupled graph ode for learning interacting system dynamics. In Proceedings of the 27th ACM SIGKDD conference on knowledge discovery & data mining, pp. 705–715, 2021. J. D. Hunter. Matplotlib: A 2D graphics environment. Computing in Science & Engineering, 9(3):90–95, 2007. doi: 10.1109/MCSE.2007.55. 18

Sheo Yon Jhin, Heejoo Shin, Sujie Kim, Seoyoung Hong, Minju Jo, Solhee Park, Noseong Park, Seungbeom Lee, Hwiyoung Maeng, and Seungmin Jeon. Attentive neural controlled differential equations for timeseries classification and forecasting. Knowledge and Information Systems, 66(3):1885–1915, March 2024. ISSN 0219-1377, 0219-3116. doi: 10.1007/s10115-023-01977-5. URL https://link.springer.com/10. 1007/s10115-023-01977-5. Song Jiang, Zijie Huang, Xiao Luo, and Yizhou Sun. CF-GODE: Continuous-Time Causal Inference for Multi-Agent Dynamical Systems. In Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, KDD ’23, pp. 997–1009, New York, NY, USA, 2023a. Association for Computing Machinery. ISBN 9798400701030. doi: 10.1145/3580305.3599272. URL https: //doi.org/10.1145/3580305.3599272. Weiwei Jiang, Jiayun Luo, Miao He, and Weixi Gu. Graph Neural Network for Traffic Forecasting: The Research Progress. ISPRS International Journal of Geo-Information, 12(3):100, February 2023b. ISSN 2220-9964. doi: 10.3390/ijgi12030100. URL https://www.mdpi.com/2220-9964/12/3/100. Ming Jin, Huan Yee Koh, Qingsong Wen, Daniele Zambon, Cesare Alippi, Geoffrey I. Webb, Irwin King, and Shirui Pan. A Survey on Graph Neural Networks for Time Series: Forecasting, Classification, Imputation, and Anomaly Detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, 46(12):10466– 10485, 2024. doi: 10.1109/TPAMI.2024.3443141. Wei Ju, Zheng Fang, Yiyang Gu, Zequn Liu, Qingqing Long, Ziyue Qiao, Yifang Qin, Jianhao Shen, Fang Sun, Zhiping Xiao, Junwei Yang, Jingyang Yuan, Yusheng Zhao, Yifan Wang, Xiao Luo, and Ming Zhang. A Comprehensive Survey on Deep Graph Representation Learning. Neural Networks, 173:106207, May 2024. ISSN 0893-6080. doi: 10.1016/j.neunet.2024.106207. URL http://dx.doi.org/10.1016/j.neunet. 2024.106207. P Kidger. On neural differential equations. PhD thesis, University of Oxford, 2021. Patrick Kidger, James Morrill, James Foster, and Terry Lyons. Neural Controlled Differential Equations for Irregular Time Series. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 6696–6707. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper_files/paper/2020/file/ 4a5876b450b45371f6cfe5047ac8cd45-Paper.pdf. Yoon Kim, Carl Denton, Luong Hoang, and Alexander M. Rush. Structured Attention Networks. In International Conference on Learning Representations, 2017. URL https://openreview.net/pdf?id= HkE0Nvqlg. Thomas N. Kipf and Max Welling. Semi-Supervised Classification with Graph Convolutional Networks. In International Conference on Learning Representations, 2017. URL https://openreview.net/pdf?id= SJU4ayYgl. Nikolas Kirschstein and Yixuan Sun. The Merit of River Network Topology for Neural Flood Forecasting. In Ruslan Salakhutdinov, Zico Kolter, Katherine Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp (eds.), Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 24713–24725. PMLR, 21–27 Jul 2024. URL https://proceedings.mlr.press/v235/kirschstein24a.html. Chrysoula Kosma, Giannis Nikolentzos, George Panagopoulos, Jean-Marc Steyaert, and Michalis Vazirgiannis. Neural Ordinary Differential Equations for Modeling Epidemic Spreading. Transactions on Machine Learning Research, 2023. ISSN 2835-8856. URL https://openreview.net/pdf?id=yrkJGne0vN. Featured Certification, Expert Certification. P. L. Krapivsky and S. Redner. Organization of growing random networks. Phys. Rev. E, 63:066123, May 2001. doi: 10.1103/PhysRevE.63.066123. URL https://link.aps.org/doi/10.1103/PhysRevE. 63.066123. 19

F. Kratzert, D. Klotz, C. Brenner, K. Schulz, and M. Herrnegger. Rainfall–runoff modelling using Long Short-Term Memory (LSTM) networks. Hydrology and Earth System Sciences, 22(11):6005–6022, 2018. doi: 10.5194/hess-22-6005-2018. URL https://hess.copernicus.org/articles/22/6005/2018/. Wilhelm Kutta. Beitrag zur näherungsweisen Integration totaler Differentialgleichungen. Teubner, 1901. Shiyong Lan, Yitong Ma, Weikang Huang, Wenwu Wang, Hongyu Yang, and Pyang Li. DSTAGNN: Dynamic Spatial-Temporal Aware Graph Neural Network for Traffic Flow Forecasting. In Kamalika Chaudhuri, Stefanie Jegelka, Le Song, Csaba Szepesvari, Gang Niu, and Sivan Sabato (eds.), Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pp. 11906–11917. PMLR, 17–23 Jul 2022. URL https://proceedings.mlr.press/v162/lan22a.html. Yaguang Li, Rose Yu, Cyrus Shahabi, and Yan Liu. Diffusion Convolutional Recurrent Neural Network: Data-Driven Traffic Forecasting. In International Conference on Learning Representations (ICLR), 2018. URL https://openreview.net/pdf?id=SJiHXGWAZ. Aoyu Liu and Yaying Zhang. Spatial–Temporal Dynamic Graph Convolutional Network With Interactive Learning for Traffic Forecasting. IEEE Transactions on Intelligent Transportation Systems, 25(7): 7645–7660, July 2024. ISSN 1558-0016. doi: 10.1109/tits.2024.3362145. URL http://dx.doi.org/10. 1109/TITS.2024.3362145. Zewen Liu, Xiaoda Wang, Bohan Wang, Zijie Huang, Carl Yang, and Wei Jin. Graph ODEs and Beyond: A Comprehensive Survey on Integrating Differential Equations with Graph Neural Networks. In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.2, KDD ’25, pp. 6118–6128, New York, NY, USA, 2025. Association for Computing Machinery. ISBN 9798400714542. doi: 10.1145/3711896.3736559. URL https://doi.org/10.1145/3711896.3736559. Zibo Liu, Parshin Shojaee, and Chandan K. Reddy. Graph-based Multi-ODE Neural Networks for SpatioTemporal Traffic Forecasting. Transactions on Machine Learning Research, 2023. ISSN 2835-8856. URL https://openreview.net/pdf?id=Oq5XKRVYpQ. Xiao Luo, Jingyang Yuan, Zijie Huang, Huiyu Jiang, Yifang Qin, Wei Ju, Ming Zhang, and Yizhou Sun. HOPE: High-order graph ODE for modeling interacting dynamics. In Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett (eds.), Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 23124–23139. PMLR, 23–29 Jul 2023. URL https://proceedings.mlr.press/v202/luo23f.html. Terry J Lyons, Michael Caruana, and Thierry Lévy. Differential equations driven by rough paths. Springer, 2007. Danielle C Maddix, Nadim Saad, and Yuyang Wang. Modeling advection on directed graphs using matérn gaussian processes for traffic flow, 2022. URL https://arxiv.org/abs/2201.00001. James Morrill, Patrick Kidger, Lingyi Yang, and Terry Lyons. Neural Controlled Differential Equations for Online Prediction Tasks, June 2021. URL http://arxiv.org/abs/2106.11028. James Morrill, Patrick Kidger, Lingyi Yang, and Terry J. Lyons. On the Choice of Interpolation Scheme for Neural CDEs. Trans. Mach. Learn. Res., 2022, 2022. URL https://openreview.net/pdf?id= caRBFhxXIG. YongKyung Oh, Seungsu Kam, Jonghun Lee, Dong-Young Lim, Sungil Kim, and Alex A. T. Bui. Comprehensive review of neural differential equations for time series analysis. In Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI ’25, 2025. ISBN 978-1-956792-06-5. doi: 10.24963/ijcai.2025/1179. URL https://doi.org/10.24963/ijcai.2025/1179. The pandas development team. pandas-dev/pandas: Pandas, February 2020. URL https://doi.org/10. 5281/zenodo.3509134. 20

Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. In NIPS 2017 Workshop on Autodiff, 2017. URL https://openreview.net/pdf?id=BJJsrmfCZ. Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. PyTorch: An Imperative Style, High-Performance Deep Learning Library. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. URL https://proceedings. neurips.cc/paper_files/paper/2019/file/bdbca288fee7f92f2bfa9f7012727740-Paper.pdf. Michael Poli, Stefano Massaroli, Junyoung Park, Atsushi Yamashita, Hajime Asama, and Jinkyoo Park. Graph Neural Ordinary Differential Equations, 2021. URL https://arxiv.org/abs/1911.07532. Tiexin Qin, Benjamin Walker, Terry Lyons, Hong Yan, and Haoliang Li. Learning Dynamic Graph Embeddings With Neural Controlled Differential Equations. IEEE Transactions on Pattern Analysis and Machine Intelligence, 48(2):2096–2103, 2026. doi: 10.1109/TPAMI.2025.3617660. M. Raissi, P. Perdikaris, and G. E. Karniadakis. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational Physics, 378:686–707, 2019. ISSN 0021-9991. doi: https://doi.org/10.1016/j.jcp.2018. 10.045. URL https://www.sciencedirect.com/science/article/pii/S0021999118307125. Emanuele Rossi, Ben Chamberlain, Fabrizio Frasca, Davide Eynard, Federico Monti, and Michael Bronstein. Temporal Graph Networks for Deep Learning on Dynamic Graphs. In ICML 2020 Workshop on Graph Representation Learning, 2020. URL https://arxiv.org/abs/2006.10637. Yulia Rubanova, Ricky T. Q. Chen, and David K Duvenaud. Latent Ordinary Differential Equations for Irregularly-Sampled Time Series. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. URL https://proceedings.neurips.cc/paper_files/paper/2019/file/ 42a6845a557bef704ad8ac9cb4461d43-Paper.pdf. Carl Runge. Ueber die numerische Auflösung von Differentialgleichungen. Mathematische Annalen, 46(2): 167–178, 1895. doi: 10.1007/BF01446807. URL https://doi.org/10.1007/BF01446807. Bernhard Schölkopf. Causality for Machine Learning. In Probabilistic and Causal Inference: The Works of Judea Pearl, pp. 765–804. Association for Computing Machinery, New York, NY, USA, 1 edition, 2022. ISBN 9781450395861. URL https://doi.org/10.1145/3501714.3501755. Zezhi Shao, Zhao Zhang, Fei Wang, and Yongjun Xu. Pre-training Enhanced Spatial-temporal Graph Neural Network for Multivariate Time Series Forecasting. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, KDD ’22, pp. 1567–1577. ACM, August 2022. doi: 10.1145/3534678.3539396. URL http://dx.doi.org/10.1145/3534678.3539396. David I Shuman, Sunil K. Narang, Pascal Frossard, Antonio Ortega, and Pierre Vandergheynst. The emerging field of signal processing on graphs: Extending high-dimensional data analysis to networks and other irregular domains. IEEE Signal Processing Magazine, 30(3):83–98, 2013. doi: 10.1109/MSP.2012.2235192. Yogesh Verma, Markus Heinonen, and Vikas Garg. ClimODE: Climate and Weather Forecasting with Physics-informed Neural ODEs. In International Conference on Learning Representations, 2024. URL https://openreview.net/pdf?id=xuY33XhEGR. Pauli Virtanen, Ralf Gommers, Travis E. Oliphant, Matt Haberland, Tyler Reddy, David Cournapeau, Evgeni Burovski, Pearu Peterson, Warren Weckesser, Jonathan Bright, Stéfan J. van der Walt, Matthew Brett, Joshua Wilson, K. Jarrod Millman, Nikolay Mayorov, Andrew R. J. Nelson, Eric Jones, Robert Kern, Eric Larson, C J Carey, İlhan Polat, Yu Feng, Eric W. Moore, Jake VanderPlas, Denis Laxalde, 21

Josef Perktold, Robert Cimrman, Ian Henriksen, E. A. Quintero, Charles R. Harris, Anne M. Archibald, Antônio H. Ribeiro, Fabian Pedregosa, Paul van Mulbregt, and SciPy 1.0 Contributors. SciPy 1.0: Fundamental Algorithms for Scientific Computing in Python. Nature Methods, 17:261–272, 2020. doi: 10.1038/s41592-019-0686-2. Benjamin Walker, Andrew Donald Mcleod, Tiexin Qin, Yichuan Cheng, Haoliang Li, and Terry Lyons. Log Neural Controlled Differential Equations: The Lie Brackets Make A Difference. In Ruslan Salakhutdinov, Zico Kolter, Katherine Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp (eds.), Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 49822–49844. PMLR, 21–27 Jul 2024. URL https://proceedings. mlr.press/v235/walker24a.html. Wenchao Weng, Jin Fan, Huifeng Wu, Yujie Hu, Hao Tian, Fu Zhu, and Jia Wu. A Decomposition Dynamic graph convolutional recurrent network for traffic forecasting. Pattern Recognition, 142:109670, 2023. ISSN 0031-3203. doi: https://doi.org/10.1016/j.patcog.2023.109670. URL https://www.sciencedirect.com/ science/article/pii/S0031320323003710. Wes McKinney. Data Structures for Statistical Computing in Python. In Stéfan van der Walt and Jarrod Millman (eds.), Proceedings of the 9th Python in Science Conference, pp. 56 – 61, 2010. doi: 10.25080/ Majora-92bf1922-00a. Zonghan Wu, Shirui Pan, Guodong Long, Jing Jiang, and Chengqi Zhang. Graph wavenet for deep spatialtemporal graph modeling. In Proceedings of the 28th International Joint Conference on Artificial Intelligence, IJCAI’19, pp. 1907–1913. AAAI Press, 2019. ISBN 9780999241141. Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and Philip S. Yu. A Comprehensive Survey on Graph Neural Networks. IEEE Transactions on Neural Networks and Learning Systems, 32(1): 4–24, January 2021. ISSN 2162-237X, 2162-2388. doi: 10.1109/TNNLS.2020.2978386. URL https: //ieeexplore.ieee.org/document/9046288/. Louis-Pascal Xhonneux, Meng Qu, and Jian Tang. Continuous Graph Neural Networks. In Hal Daumé III and Aarti Singh (eds.), Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pp. 10432–10441. PMLR, 13–18 Jul 2020. URL https: //proceedings.mlr.press/v119/xhonneux20a.html. Zhiguo Xiao, Qi Shen, Changgen Li, Dongni Li, and Qian Liu. An adaptive spatiotemporal dynamic graph convolutional network for traffic prediction. Scientific Reports, 15(1):27098, 2025. doi: 10.1038/s41598-025-12261-7. Chuanyu Yao and Wen Zhou. Attention Graph Neural Controlled Differential Equations Approach for Traffic Flow Forecasting. In 2025 IEEE 6th International Conference on Pattern Recognition and Machine Learning (PRML), pp. 402–410, 2025. doi: 10.1109/PRML66062.2025.11159776. Bing Yu, Haoteng Yin, and Zhanxing Zhu. Spatio-temporal Graph Convolutional Networks: A Deep Learning Framework for Traffic Forecasting. In Proceedings of the 27th International Joint Conference on Artificial Intelligence, IJCAI’18, pp. 3634–3640. AAAI Press, 2018. ISBN 9780999241127. Fisher Yu and Vladlen Koltun. Multi-Scale Context Aggregation by Dilated Convolutions. In Yoshua Bengio and Yann LeCun (eds.), 4th International Conference on Learning Representations, ICLR 2016, San Juan, Puerto Rico, May 2-4, 2016, Conference Track Proceedings, 2016. URL http://arxiv.org/abs/1511. 07122. Chengxi Zang and Fei Wang. Neural Dynamics on Complex Networks. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD ’20, pp. 892–902, New York, NY, USA, 2020. Association for Computing Machinery. ISBN 9781450379984. doi: 10.1145/3394486. 3403132. URL https://doi.org/10.1145/3394486.3403132. 22

Chuanpan Zheng, Xiaoliang Fan, Cheng Wang, and Jianzhong Qi. GMAN: A Graph Multi-Attention Network for Traffic Prediction. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34(01), pp. 1234–1241, 2020. doi: 10.1609/aaai.v34i01.5477. Jiawei Zhu, Qiongjie Wang, Chao Tao, Hanhan Deng, Ling Zhao, and Haifeng Li. AST-GCN: AttributeAugmented Spatiotemporal Graph Convolutional Network for Traffic Forecasting. IEEE Access, 9:35973– 35983, 2021. doi: 10.1109/ACCESS.2021.3062114.

23

A

Appendix A.1 A.2 A.3 A.4 A.5 A.6 A.7

List of Acronyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System of Differential Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Edge transition matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Generating Growing Network with Redirection Graph . . . . . . . . . . . . . . . . . . . . . . Causality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Continuous decoder architectures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A.7.1 NODEg continuous decoder. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A.7.2 NODEctrl continuous decoder. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A.8 Additional Experimental Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A.9 Advection simulation data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A.9.1 Water discharges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A.9.2 PeMS08 traffic flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A.9.3 Result comparison among decoder types . . . . . . . . . . . . . . . . . . . . . . . . . . A.9.4 Comparison of solvers and step-sizes for all decoder architectures . . . . . . . . . . . . A.10 Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A.11 Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A.12 Notational conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A.13 Comparative overview of Graph Neural Differential Equation methods . . . . . . . . . . . . . A.14 River network maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

A.1

List of Acronyms

Acronyms AGC AST-GCN ASTGCN CDE DCRNN GCDE-GRU GCN GMAN GN-CDE GNCDE GNN GNR GRU GWaveNet LSTM MAE NCDE NDE NN NODE ODE PDE ResNet RNN STG-NCDE STGCN TCN

Adaptive Graph Convolution Attribute-Augmented Spatiotemporal Graph Convolutional Network Attention Based Spatial-Temporal Graph Convolutional Networks Controlled Differential Equation Diffusion Convolutional Recurrent Neural Network Graph Convolutional ODE with Gated Recurrent Units Graph Convolutional Networks Graph Multi-Attention Network Graph Neural Controlled Differential Equations Graph Neural Controlled Differential Equation Graph Neural Network Growing Network with Redirection Gated Recurrent Unit Graph WaveNet Long Short Term Memory Mean Absolute Error Neural Controlled Differential Equation Neural Differential Equation Neural Network Neural Ordinary Differential Equation Ordinary Differential Equation Partial Differential Equation Residual Neural Network Recurrent Neural Network Spatial Temporal Graph Neura Controlled Differential Equations Spatial-Temporal Graph Convolutional Network Temporal Convolutional Network 24

24 25 25 26 26 26 26 27 27 27 28 29 29 29 29 30 30 34 34 38

A.2

Dimensions

The dimensions of the domains and codomains of the vector field functions fθ and gγ can be described even more precisely with fθ (·) : R|V|×dh → R|V|×dh × R|V|×dx gγ (·) : R|V|×dz → R|V|×dz × R|V|×dh and H(t) ∈ R|V|×dh , Z(t) ∈ R|V|×dz , X(t) ∈ R|V|×dx , with dh , dz and dx being the dimensionality of the corresponding (hidden) states or control per vertex, leading to a description of the tensor product in Equation (1) with einstein notation while omitting the indices of f and g — θ and γ — for more clarity       dH dX dX = f = fmhnx dt mh dt mh dt nx and for Equation (2) 

dZ dt



 = kz

dH g dt



 = gkzmh kz

dH dt

 ,

(13)

mh

where n, m, and k are indices for the vertices, h and z are the indices for the dimension of hidden states H and Z, respectively and x is the index for the dimension of the control path X. If one now wants to incorporate graph information at the outer position in Equation (6), one would insert AV into Equation (13) and obtain       dZ dH dH = g = gkzmh (AV )mn . dt kz dt kz dt nh A.3

System of Differential Equations

Starting from the coupled differential equations    RT    dH(t) Z(0) + g Z(t) γ Z(T ) 0   dt = RT  H(T ) H(0) + fθ H(t) dX(t)

(14)

dt

0

with dH(t) d = dt dt d = dt



Z t

 dX(s)  H(0) + fθ H(s) ds ds 0 Z Z   dX(s)   dX(s) fθ H(s) ds ds − fθ H(s) ds ds 

s=t

dX(t) = fθ (H(t)) , dt

! s=0

(15)

it follows that 

Z(t) H(t)



    RT  Z(0) + 0 gγ Z(t) fθ H(t) dX(t) dt  . = RT  H(0) + 0 fθ H(t) dX(t) dt 

Differentiating and using Equation (15) for H and analogously for Z gives         dX(t) g Z(t) f H(t) γ θ d Z(t) dt   . = dX(t) dt H(t) fθ H(t) dt

25

(16)

(17)

A.4

Edge transition matrix

P To obtain the edge transition matrix AE from a weighted vertex adjacency matrix AE with j∈|E| (AE )ij = 1, one first starts off with the vertex incidence matrix I. Let us define some matrix operations for I ∈ R|V|×|E| , namely ( (I)ij , if (I)ij > 0 + (I )ij = , 0, else

(

−(I)ij , 0,

if (I)ij < 0 , else

( 1, (I )ij = (I)ij ,

if (I)ij > 0 , else

(I− )ij =

c

thereby (·)c is making I conservative. In total the edge transition matrix IE is given by AE = (I− )⊺ (Ic )+ . On the one side (I− )⊺ ∈ R|E|×|V| considers the incoming magnitude of the transported quantities from edges to vertices and also the amount of quantities, on the other side (Ic )+ ∈ R|V|×|E| distributes the outgoing quantites from the vertices to the edges while solely encoding connectivity and neglecting magnitude. A.5

Generating Growing Network with Redirection Graph

The GNR graph is built with networkx (Hagberg et al., 2008) by sequentially adding nodes with a link to one previously added node. The previous target node is chosen uniformly at random. With probability p the edge connection is instead “redirected” to the successor node of the target. A probability p closer to 1 leads to broader networks, rather having many edges leading in one central node, while p closer to 0 leads to deeper networks with longer chains leading into a central node. We use an redirection probability of p = 0 to attain a deeper network that resembles a river network more closely. A.6

Causality

In total we moved from a space-continuous description of the state on the edges and vertices during the simulation to a discrete space on the vertices for the measurements. In the continuous advection description, we had a clear cause-effect relation due to the fact that we could look back along an edge or back to previous edges with the edge transition matrix. This continuous description of the causal structure is now subsumed to aggregated, discrete values at nodes and edge connections without an attached domain between them. To be able to incorporate this causal structure into the Graph Neural Controlled Differential Equations (GNCDEs) we have to consider a long enough context window to be able to receive information from the previous vertices at earlier times. The task then resembles learning a delay differential equation. A.7

Continuous decoder architectures

For forecasting future time steps of the target feature we propose two alternative decoder architectures based on continuous-time extrapolation using NODEs. Both decoder variants replace the final convolutional decoder (see Figure 9), but differ in how the continuous extrapolation is learned: either directly in latent space as a continuation of Z(t) or through a learned extrapolation of the control path X(t) in real space. The decoder variants allow generating predictions within an NCDE framework, where the control path is unknown over the forecasting horizon. 26

A.7.1

NODEg continuous decoder.

The first decoder we propose uses Z(T ) as the initial condition to an additional NODE whose solution is evaluated at future times T < ti ≤ T + τ to obtain the final predictions {Ŷti }M i=1 for the next M time steps up to time T + τ (see Section A.7.2). This yields the continuous-time evolution Z T +t P (t) = Z(T ) +

  gγ P (t′ ) 1 dt′ ,

(18)

T

where 1 ∈ |V| × dh is the matrix of ones and the vector field gγ shares its parameters with the encoding gγ in Equation (3). Through gγ , the continued trajectory P (t) contains graph information, depending on the informedness of the inner vector field gγ . Predictions are obtained by evaluating P (ti ) in latent space at times T < ti ≤ T + τ and projecting to the data space via a learnable affine layer lδ : R|V|×dz → R|V|×dx , P (ti ) 7→ lδ (P (ti )) = Ŷti . The choice of 1 in Equation (18) reflects the absence of an external control signal beyond time point T . While this is the simplest option, alternative formulations could instead incorporate a learnable control signal. An alternative approach, including such a learnable control is introduced in the following.

A.7.2

NODEctrl continuous decoder.

For the second decoder type, instead of evolving from Z(T ) by a separate NODE and thereby temporally extending the latent space, the observed control X(t) is extended beyond time T by an NODE which learns the vector field hλ from data up till T . The state C(t) can be described by Z t C(t) = X(0) +

hλ (t′ , C(t′ )) dt′ .

(19)

0

To drive the total system, one uses the piecewise control ( X(t), 0 ≤ t ≤ T, X̄(t) = C(t), T < t ≤ T + τ.

(20)

Using X̄(t) in place of the original control yields the jointly coupled system      gγ Z(t) fθ H(t) dX̄(t) dt Z(t)     d    H(t)  =  fθ H(t) dX̄(t) . dt dt     C(t) hλ t, C(t) 

(21)

Accordingly, the hidden states H(t) and Z(t) are driven by the observed path on [0, T ] and by the learned continuation on (T, T +τ ]. Forecasts are again obtained by evaluating the evolved latent states Z(ti ) at times T < ti ≤ T + τ and mapping them to the target space via a learnable linear layer Z(ti ) 7→ lδ (Z(ti )) = Ŷti , analogous to the NODEg decoder (see Section A.7.1). Since, in this decoder setting, the NODE of C(t) is trained in parallel to the NCDE, we employ two loss terms: the standard NCDE loss and an additional loss L({Ctj }, {Xtj }) on the control, which is evaluated over the entire time window 0 ≤ tj ≤ T + τ . During training, this term is scaled by a factor of 1/epoch, such that the control loss receives a substantially higher relative weight at the beginning of training, which gradually decreases towards the end. A.8

Additional Experimental Results

In this section we provide further material regarding the experimental results for the advection data, river discharge task and the PeMS08 traffic flow dataset, and results regarding the different Decoder settings. 27

Z(0)

Z(T ) = P (0)

Z(t)

P (T + τ )

Z(0)

P (t)

Z(T + τ )

Z(t) lδ

t0

H(t)

H(t)

X(t)

X(t)

t1 . . .

tk

T +τ

T

t

t0

C(t)

t1 . . .

(a) NODE decoder

tk

T +τ

T

t

(b) NODEctrl decoder

Figure 9: Graphical overview of the NCDE encoder-decoder structure in combination with two continuous decoder variants on the right halves in (a) and (b). (a): NODEg -decoder evolves a hidden state P for t > T via an NODE, based on the last hidden state Z(T ) over time via an NODE. Predictions can be read out at any given time via an affine layer (red). (b): NODEctrl -decoder allows for continuous evolution of Z and H into the prediction time window by learning an extrapolation C of the control signal X. The readout of predictions is identical to NODEg .

A.9

Advection simulation data

For the advection simulation data, we additionally provide the table results of the variants of the main part in Table 4. Moreover we compared further outer-inner graph informedness variations whose results can be found in Table 5. Table 4: MAE for different outer-inner informedness mechanisms for graphs with increasing graph nodes, and increasing node resolution along the edges Outer STG-NCDE STG-NCDE STG-NCDE STG-NCDE STG-NCDE STG-NCDE INDEQSouter INDEQSouter INDEQSouter INDEQSouter INDEQSouter INDEQSouter INDEQSinner INDEQSinner INDEQSinner INDEQSinner INDEQSinner INDEQSinner

Identity Identity Identity Identity Identity Identity Informed Informed Informed Informed Informed Informed Identity Identity Identity Identity Identity Identity

Inner AGC AGC AGC AGC AGC AGC AGC AGC AGC AGC AGC AGC Informed Informed Informed Informed Informed Informed

Spatial resolution

Nodes 4 8 16 32 64 128 4 8 16 32 64 128 4 8 16 32 64 128

28

1

2

4

0.75 ±0.0513 0.96 ±0.0476 1.65 ±0.1424 2.90 ±0.2319 5.64 ±0.1174 5.42 ±0.0614 0.72 ±0.0297 0.91 ±0.0292 1.18 ±0.0806 1.07 ±0.0981 1.01 ±0.0563 0.89 ±0.0391 0.92 ±0.0716 1.11 ±0.0716 1.41 ±0.1144 1.39 ±0.2397 1.44 ±0.2252 1.60 ±0.2624

0.76 ±0.0526 0.99 ±0.0678 2.10 ±0.2567 4.58 ±0.7343 – – 0.73 ±0.0524 1.03 ±0.0680 1.39 ±0.0563 1.25 ±0.0579 – – 1.07 ±0.1482 1.40 ±0.0868 1.73 ±0.2232 1.55 ±0.1440 – –

0.83 ±0.0926 1.22 ±0.1951 2.98 ±0.4047 5.07 ±0.4969 – – 0.79 ±0.0422 1.07 ±0.0624 2.11 ±0.1038 2.93 ±0.3218 – – 2.01 ±0.1266 2.50 ±0.1993 3.36 ±0.4732 3.10 ±0.5847 – –

A.9.1

Water discharges

For the water discharge task, we additionally compared different mechanisms at the outer and inner positions shown in Table 6 and different adjacency matrix powers in Section A.9.1 and Table 7.

STG-NCDE INDEQS_outer INDEQS_inner AGC-Identity Informed-Identity

6.0

MAE

5.8 5.6 5.4 5.2 1

2

3

4

5 6 7 8 9 Adjacency matrix power

10

11

12

Figure 10: Average performance of INDEQS and additional informedness variations, with increasing adjacency matrix powers vs. the uninformed STG-NCDE for the task of water discharges over 5 runs.

A.9.2

PeMS08 traffic flow

For the traffic flow task, we show results and properties of 2 additional outer-inner graph information strategies in Table 8 and also results for higher adjacency matrix powers in Table 9. A.9.3

Result comparison among decoder types

We compare the discrete convolutional decoder with the continuous decoder architectures introduced in Section A.7, namely NODEg and NODEctrl , on the advection simulation, river discharge and traffic forecasting tasks. The corresponding results are reported in Tables 10-13. In both real-world settings, the continuous decoders outperform the discrete convolutional decoder in terms of both validation and test MAE, indicating the advantage of continuous-time decoding for these tasks. While NODEctrl achieves the best performance on the river discharge task, NODEg appears, on average, to be the strongest option for traffic forecasting. A practical advantage of NODEg over NODEctrl is that it improves MAE without introducing additional hyperparameters, while also requiring fewest trainable parameters. More generally, the superior performance of the continuous decoder architectures comes at the cost of increased computational time, since in both cases the hidden-state trajectories Z must also be solved over the prediction window. This effect is most pronounced for NODEctrl , as the NODE governing the learned control signal C must be solved in addition to the continuation of the hidden-state trajectories Z and H. For the advection simulation task however, the continuous decoders perform significantly worse than the convolutional prediction head (see Table 10 and Table 11). A.9.4

Comparison of solvers and step-sizes for all decoder architectures

We compare the three decoder architectures on the water discharge task across combinations of numerical solvers and solver step sizes. The results are shown in Figure 11, which reports validation MAE and training time as a function of the solver step size. Across all decoders, we observe a solver-specific optimal step size that yields the best trade-off between predictive performance and computational cost. Decreasing the step size beyond this point consistently increases training time, while providing little or no additional improvement in MAE. For the smallest step sizes, Euler and RK4 achieve comparable MAE, although RK4 remains substantially more expensive computationally. To ensure consistency across experiments, we 29

use RK4 with step size 1 in all main results. However, if the best performance needs to be achieved, the solver configuration may depend on the decoder architecture. For example, the NODEctrl decoder (Fig. 11, right) appears to perform best with the computationally cheaper Euler solver at step size 0.5, while the convolutional decoder (Fig. 11, left) may benefit from Euler with step size 0.25 and NODEg may be used with either Euler 0.25 or RK4 1.0. 8.0

300

rk4 euler MAE (left axis) Runtime (right axis)

8.0 7.5

250

250

100

6.0

50

5.5 1.25

1

0.75

Solver stepsize

0.5

7.0

200

6.5

150

6.0

100

Train time [min]

150

6.5

1.5

Validation MAE

200

Train time [min]

Validation MAE

7.5 7.0

5.5 5.0 1.5

0 0.25 0.125

6.75

1.25

1

0.75

Solver stepsize

0.5

0.25 0.125

300

6.50

250

6.25

Train time [min]

Validation MAE

50

350

7.00

200

6.00 5.75

150

5.50

100

5.25 5.00 1.5

300

50 1.25

1

0.75

Solver stepsize

0.5

0.25 0.125

Figure 11: MAE and runtime for different solver and step-size combinations for the discrete convolutional decoder (left), the continuous NODEg decoder (center) and the continuous NODEctrl decoder (right). All experiments were performed on the water discharge prediction task and run for 200 epochs. Standard deviation over 5 runs is displayed as shaded area.

A.10

Software

For data preparation numpy (Harris et al., 2020), scipy (Virtanen et al., 2020) and pandas (Wes McKinney, 2010; pandas development team, 2020) was used. Plots were created with matplotlib (Hunter, 2007). The model code is based on Choi et al. (2022)’s code and relies on pytorch (Paszke et al., 2017; 2019), torchdiffeq Chen (2018) and controldiffeq (Kidger et al., 2020). To monitor training runs we used tensorboard (Abadi et al., 2015). The cluster for the experiments ran images of Ubuntu 20.04 with NVIDIA CUDA 11.7.1 and CUDNN 9. A.11

Hardware

All experiments were conducted on a cluster node with an AMD EPYC 73F3 3.5 GHz with 16 cores and 64 GB RAM, and a NVIDIA A100 with 40 GB VRAM.

30

Table 5: MAE for different outer-inner informedness mechanisms for graphs with increasing graph nodes, and increasing node resolution along the edges Label

Outer

Inner

Nodes

Spatial resolution 2 4 0.79 ±0.0321 0.72 ±0.0358 0.85 ±0.0850 0.98 ±0.0614 1.05 ±0.1154 2.51 ±0.9738 1.66 ±0.3254 3.70 ±1.1690 5.08 ±0.6714 4.49 ±1.1091 5.33 ±0.0875 5.41 ±0.0370 5.78 ±0.0332 – – 5.52 ±0.0324 – – 1.41 ±0.3518 1.19 ±0.1933 1.50 ±0.3887 2.23 ±0.7419 1.79 ±0.6673 1.80 ±0.2517 3.08 ±0.5545 2.99 ±0.8873 4.27 ±1.1252 3.33 ±0.4909 4.41 ±0.9618 5.34 ±0.0546 5.24 ±0.5101 – – 5.46 ±0.0434 – – 0.80 ±0.0760 0.94 ±0.0750 0.91 ±0.0909 1.01 ±0.0251 1.19 ±0.0274 1.29 ±0.3112 1.38 ±0.0502 1.67 ±0.0789 2.90 ±0.0532 1.56 ±0.0428 1.76 ±0.0430 2.85 ±0.1536 2.22 ±0.0421 – – 2.44 ±0.0316 – – 0.75 ±0.0513 0.76 ±0.0526 0.83 ±0.0926 0.96 ±0.0476 0.99 ±0.0678 1.22 ±0.1951 1.65 ±0.1424 2.10 ±0.2567 2.98 ±0.4047 2.90 ±0.2319 4.58 ±0.7343 5.07 ±0.4969 5.64 ±0.1174 – – 5.42 ±0.0614 – – 4.05 ±0.0451 4.03 ±0.0421 4.03 ±0.0390 4.92 ±0.0167 4.92 ±0.0274 4.93 ±0.0351 6.21 ±0.0365 6.21 ±0.0472 6.25 ±0.0217 5.89 ±0.0179 5.92 ±0.0327 5.98 ±0.0474 6.30 ±0.0513 – – 6.25 ±0.0292 – – 0.92 ±0.0716 1.07 ±0.1482 2.01 ±0.1266 1.11 ±0.0716 1.40 ±0.0868 2.50 ±0.1993 1.41 ±0.1144 1.73 ±0.2232 3.36 ±0.4732 1.39 ±0.2397 1.55 ±0.1440 3.10 ±0.5847 1.44 ±0.2252 – – 1.60 ±0.2624 – – 0.72 ±0.0297 0.73 ±0.0524 0.79 ±0.0422 0.91 ±0.0292 1.03 ±0.0680 1.07 ±0.0624 1.18 ±0.0806 1.39 ±0.0563 2.11 ±0.1038 1.07 ±0.0981 1.25 ±0.0579 2.93 ±0.3218 1.01 ±0.0563 – – 0.89 ±0.0391 – – 0.98 ±0.0822 1.10 ±0.1529 2.42 ±0.7735 1.17 ±0.1452 1.43 ±0.3069 2.73 ±0.7580 1.40 ±0.1421 1.96 ±0.2817 3.91 ±0.8507 1.44 ±0.3059 1.65 ±0.1366 3.27 ±0.6967 1.49 ±0.1657 – – 1.57 ±0.2370 – – 0.91 ±0.1468 0.98 ±0.1601 1.80 ±0.5672 1.02 ±0.0843 1.50 ±0.2582 2.17 ±0.2936 1.29 ±0.1230 1.76 ±0.1038 2.80 ±0.2686 1.50 ±0.1785 1.94 ±0.2183 2.35 ±0.1228 1.59 ±0.2592 – – 1.63 ±0.2187 – – 1

STG-NCDE STG-NCDE STG-NCDE STG-NCDE STG-NCDE STG-NCDE

INDEQSinner INDEQSinner INDEQSinner INDEQSinner INDEQSinner INDEQSinner INDEQSouter INDEQSouter INDEQSouter INDEQSouter INDEQSouter INDEQSouter

AGC AGC AGC AGC AGC AGC AGC AGC AGC AGC AGC AGC AGC AGC AGC AGC AGC AGC Identity Identity Identity Identity Identity Identity Identity Identity Identity Identity Identity Identity Identity Identity Identity Identity Identity Identity Informed Informed Informed Informed Informed Informed Informed Informed Informed Informed Informed Informed Informed Informed Informed Informed Informed Informed

AGC AGC AGC AGC AGC AGC Identity Identity Identity Identity Identity Identity informed Informed Informed Informed Informed Informed AGC AGC AGC AGC AGC AGC Identity Identity Identity Identity Identity Identity Informed Informed Informed Informed Informed Informed AGC AGC AGC AGC AGC AGC Identity Identity Identity Identity Identity Identity Informed Informed Informed Informed Informed Informed

4 8 16 32 64 128 4 8 16 32 64 128 4 8 16 32 64 128 4 8 16 32 64 128 4 8 16 32 64 128 4 8 16 32 64 128 4 8 16 32 64 128 4 8 16 32 64 128 4 8 16 32 64 128

31

Table 6: Overview of MAE, number of parameters, training time and epoch of last improvement, with standard deviations, for different outer-inner configurations for the water discharge prediction over 5 runs with different random seeds.

STG-NCDE

INDEQSinner INDEQSouter

Outer

Inner

MAE

# Params.

MAE (val.)

Train time

Last improvement

AGC AGC AGC Identity Identity Identity Identity Informed Informed Informed

Identity LGC Informed AGC Identity LGC Informed AGC Identity LGC

5.36 ±0.04 5.43 ±0.10 5.33 ±0.04 5.59 ±0.13 5.94 ±0.01 5.86 ±0.03 5.80 ±0.06 5.33 ±0.12 5.89 ±0.08 5.95 ±0.02

415,879 539,399 415,879 415,879 291,909 415,429 291,909 415,879 291,909 415,429

5.31 ±0.05 5.36 ±0.09 5.31 ±0.05 5.64 ±0.18 6.13 ±0.01 5.94 ±0.02 5.92 ±0.03 5.43 ±0.09 5.99 ±0.06 6.01 ±0.03

40.11 min ±0.25 50.34 min ±0.41 39.97 min ±0.14 37.85 min ±0.13 28.06 min ±0.14 38.34 min ±0.13 28.02 min ±0.12 40.14 min ±0.09 30.28 min ±0.06 40.40 min ±0.23

191.20 ±3.27 161.20 ±39.95 186.00 ±7.11 188.40 ±10.92 175.60 ±8.08 128.00 ±16.23 177.40 ±26.52 167.60 ±29.42 181.00 ±14.00 88.00 ±10.02

Table 7: MAE with standard deviation over 5 runs for different outer-inner graph configurations for increasing powers of the adjacency matrix for the water discharge prediction. Adjacency matrix power

Informed - Identity INDEQSouter INDEQSinner AGC - Informed

1

2

3

4

5

6

7

8

9

10

11

12

5.89 ±0.07 5.33 ±0.10 5.80 ±0.06 5.33 ±0.03

5.91 ±0.12 5.33 ±0.11 5.77 ±0.03 5.33 ±0.02

5.86 ±0.05 5.31 ±0.12 5.63 ±0.04 5.33 ±0.06

5.77 ±0.07 5.34 ±0.13 5.62 ±0.06 5.33 ±0.05

5.58 ±0.03 5.28 ±0.14 5.51 ±0.10 5.32 ±0.05

5.65 ±0.14 5.35 ±0.09 5.54 ±0.09 5.29 ±0.02

5.63 ±0.07 5.27 ±0.18 5.44 ±0.04 5.26 ±0.02

5.55 ±0.03 5.24 ±0.18 5.37 ±0.06 5.29 ±0.04

5.53 ±0.07 5.23 ±0.14 5.43±0.04 5.33 ±0.03

5.54 ±0.09 5.27 ±0.14 5.39 ±0.12 5.28 ±0.07

5.51 ±0.05 5.23 ±0.12 5.38 ±0.10 5.29 ±0.02

5.66 ±0.17 5.20 ±0.12 5.34 ±0.07 5.28 ±0.08

Table 8: Overview of MAE, number of parameters, training time and the epoch when validation loss last improved, with standard deviations, for different outer-inner configurations for the PeMS08 traffic prediction over 5 runs with different random seeds.

STG-NCDE INDEQSouter

Outer

Inner

MAE (test)

#Params.

MAE (val.)

Train time

Last improvement

AGC AGC Identity Informed

Identity Informed AGC AGC

17.85 ±0.40 17.24 ±0.12 16.55 ±0.20 16.50 ±0.19

45,152 45,152 45,152 45,152

18.51 ±0.48 17.80 ±0.17 17.00 ±0.22 16.88 ±0.28

135.49 min ±0.88 135.24 min ±1.19 129.31 min ±1.04 143.18 min ±1.45

196.60 ±1.82 175.80 ±30.78 183.00 ±3.94 169.00 ±11.20

Table 9: MAE with standard deviation over 5 runs for different outer-inner graph configurations for increasing powers of the adjacency matrix for the PeMS08 traffic prediction. Adjacency matrix power

AGC - Informed AGC - Identity INDEQSouter STG-NCDE

1

2

3

4

5

17.24 ±0.11 17.85 ±0.36 16.50 ±0.17 16.55 ±0.18

17.22 ±0.30 16.39 ±0.18 -

17.13 ±0.18 16.53 ±0.13 -

17.27 ±0.21 16.53 ±0.19 -

17.23 ±0.23 16.53 ±0.12 -

Table 10: Mean test MAE with standard deviation over 5 runs, the best test MAE of these, number of parameters, mean validation MAE with standard deviation and train time for different decoder architectures for INDEQSouter for the advection simulation prediction on a graph with 64 nodes with training for 200 epochs.

Decoder type

MAE

best MAE

#Params.

MAE (Val.)

Train time

convolutional(discrete) NODEg (continuous) NODEctrl (continuous)

1.01 ±0.06 2.81 ±0.51 2.95 ±0.20

0.92 2.28 2.62

72,396 72,033 74,274

1.00 ±0.05 2.76 ±0.53 2.92 ±0.19

20.31 min ±0.11 30.91 min ±0.18 51.63 min ±1.33

32

Table 11: Mean test MAE with standard deviation over 5 runs, the best test MAE of these, number of parameters, mean validation MAE with standard deviation and train time for different decoder architectures for INDEQSouter for the advection simulation prediction on a graph with 64 nodes with training for 400 epochs.

Decoder type

MAE

best MAE

#Params.

MAE (Val.)

Train time

convolutional(discrete) NODEg (continuous) NODEctrl (continuous)

0.92 ±0.05 2.14 ±0.47 2.15 ±0.24

0.86 1.48 1.98

72,396 72,033 74,274

0.91 ±0.05 2.10 ±0.47 2.11 ±0.25

41.22 min ±0.13 62.86 min ±0.41 104.51 min ±1.30

Table 12: Mean test MAE with standard deviation over 5 runs, the best test MAE of these, number of parameters, mean validation MAE with standard deviation and train time for different decoder architectures for INDEQSouter for the water discharges prediction.

Decoder type

MAE

best MAE

#Params.

MAE (Val.)

Train time

convolutional(discrete) NODEg (continuous) NODEctrl (continuous)

5.30 ±0.15 5.07 ±0.08 5.01 ±0.16

5.15 4.96 4.84

415,879 415,619 416,500

5.43 ±0.09 5.20 ±0.10 5.20 ±0.14

41.35 min ±2.05 54.78 min ±1.31 92.00 min ±0.84

Table 13: Mean test MAE with standard deviation over 5 runs, the best test MAE of these, number of parameters, mean validation MAE with standard deviation and train time for different decoder architectures for INDEQSouter for the PeMS08 traffic prediction.

Decoder type

MAE

best MAE

#Params.

MAE (Val.)

Train time

convolutional(discrete) NODEg (continuous) NODEctrl (continuous)

16.50 ±0.19 16.27 ±0.09 16.37 ±0.12

16.25 16.12 16.20

45,152 44,789 47,030

16.88 ±0.28 16.63 ±0.09 16.75 ±0.21

143.72 min ±0.47 220.87 min ±2.85 365.49 min ±2.24

33

A.12

Notational conventions

A.13

Comparative overview of Graph Neural Differential Equation methods

In Table 14 and Table 15 we compare INDEQS to Graph Neural Differential Equations methods that are most similar.

34

Table 14: Comparative overview of Graph Neural Differential Equations methods. INDEQS (this work)

STG-NCDE (Choi et al., 2022)

GDE (Poli et al., 2021)

GN-CDE (Qin et al., 2026)

NDCN Zang & Wang (2020)

STGODE (Fang et al., 2021)

Code available

Control

Continuoustime node feature control

Continuoustime node feature control

Discrete node feature control via GRU

Continuoustime (graph structure + feature) control

NDE/DE structure

2 stacked 1st order NCDEs

2 stacked 1st order NCDEs

1st/2nd order NODE

1st order NCDE

1st order NODE

2 chained sets of 3 parallel blocks of 1st order NODEs

Graph dynamics

Static

Static

Discretely dynamic

Continuously Static dynamic

Static

Graph informed

Spatial processing

Adjacency matrix + adaptive graph convolution

Adaptive graph convolution

Graph convolution (laplacian) in vector field

Adjacency matrix as Control

Linear diffusion operator in vector field

2 adjacency matrices in vector field

Edge features processing

Spatial main

Discrete

Discrete

Discrete

Discrete

Discrete

Discrete

Temporal architecture

NCDE, convolutional layer

NCDE, convolutional layer

NODE with GRU jumps

NCDE

NODE

TCN (Bai et al., 2018)

Irregular data

Internal temporal data processing

Continuous encoding on context window, Discrete decoding on horizon

Continuous along NCDE time dimension

Continuous with virtual jumps along NODE time dimension

Continuous along NCDE time dimension

Continuous along NODE time dimension

all-at-once (NODE orthogonal to time dimension)

do-

Continued on next page

35

Table 14: Comparative overview of Graph Neural Differential Equations methods. (Continued) INDEQS (this work)

STG-NCDE (Choi et al., 2022)

GDE (Poli et al., 2021)

GN-CDE (Qin et al., 2026)

NDCN Zang & Wang (2020)

STGODE (Fang et al., 2021)

Application domains

Hydrology, traffic flow, graph edge advection

Traffic flow

Citation networks, mechanical multiparticle system, traffic speed

Heat diffusion, mutualistic interaction, gene regulation

Heat diffusion, mutualistic interaction, gene regulation

Traffic speed/flow

Tasks

Structured sequence forecasting

Structured sequence forecasting

Transductive node classification, Multi–agent trajectory extrapolation, Forecasting

Continuoustime network dynamics prediction, Structured sequence prediction, Node semisupervised classification

Continuoustime network dynamics prediction, Structured sequence prediction,NDE Node semisupervised classification

Structured sequence forecasting

Table 15: Comparative overview of Graph Neural Differential Equations methods. INDEQS (this work)

CG-ODE Huang et al. (2021)

CF-GODE Jiang et al. (2023a)

HOPE Luo et al. (2023)

GRAMODE Liu et al. (2023)

AG-NCDE Yao & Zhou (2025)

Code available

Control

Continuoustime node feature control

Continuoustime node feature control

NDE/DE structure

2 stacked 1st order NCDEs

2 coupled ODEs (nodes, edges)

ODE parametr. by GNN

2 coupled 2nd order ODEs (nodes, edges)

3 coupled blocks of GNN based ODEs (global, local, edge)

2 stacked 1st-order NCDEs

Graph dynamics

Static

Dynamic

Static

Dynamic

Dynamic

Dynamic

Graph informed

✗ Continued on next page

36

Table 15: Comparative overview of Graph Neural Differential Equations methods. (Continued) INDEQS (this work)

CG-ODE Huang et al. (2021)

CF-GODE Jiang et al. (2023a)

HOPE Luo et al. (2023)

GRAMODE Liu et al. (2023)

AG-NCDE Yao & Zhou (2025)

Spatial processing

Adjacency matrix + adaptive graph convolution

GNN in initial encoder

GNN in vector field

Spatial + spectral convolution

Adjacency (connection map + DTW graph) + dynamic semantic edges

NCDE + inferred, dynamic adjacency Matrix + graph convolution

Edge features processing

Spatial main

Discrete

Discrete

Discrete

Discrete

Discrete

Discrete

Temporal architecture

NCDE, convolutional layer

GNN + temp. self attention

NODE

Spatial + spectral convolution + temp. self attention

TCN + multi ODEGNN + multi-head attention

NCDE + external attention on two time scales

Irregular data

Internal temporal data processing

Continuous encoding on context window, discrete decoding on horizon

Discrete encoding along context window, continuous decoding along horizon window

Continuous decoding via NODE

Discrete encoding, continuous decoding

Discrete encoding via TCN, continuous processing via ODEGNNs, discrete decoding on horizon

Continuous encoding on context window, discrete decoding on horizon

Application domains

Hydrology, traffic flow, graph edge advection

Disease spread

Disease control

Disease spread, Opinion migration on social networks, Spring oscillation

Traffic flow

Traffic flow

Tasks

Structured sequence forecasting

Forecasting

Causal inference, counterfactual outcomes

Sequence representation Learning

Forecasting

Forecasting

do-

37

A.14

River network maps

The river topology of the river discharge task is depicted in Figure 12.

INTSCHEDE

DOERVERDEN RETHEM

SCHWARMSTEDT MARKLENDORF HEIDE OP

CELLE

LIEBENAU

GRAFHORST 1 HERRENHAUSEN

PORTA VLOTHO HERFORD

BODENWERDER OELKASSEN GREENE

HATTORF

KARLSHAFEN WAHMBECK

HANN.-MUENDEN LETZTER HELLERRECKERSHAUSEN GOETTINGEN ZIEGENHAGEN 1 ARENSHAUSEN

HELMINGHAUSEN

ALLENDORF

SCHMITTLOTHEIMAFFOLDERN

GUNTERSHAUSEN GREBENAU HELDRA UTTERSHAUSEN

RAUMLAND

AUHAMMER ROTENBURG

ROELLSHAUSEN

EISENACH-PETERSBERG

DORNDORF 2 HERMANNSPIEGEL MITTELSCHMALKALDEN

KAEMMERZELL

MEININGEN ELLINGSHAUSEN RAPPELSDORF

Figure 12: The graph network of the discharge stations of the Weser river and their catchments

38

Record · ID 287145 · SHA-256 7bb2828d22f9911e
Retrieved via Conceptio — every document is proof-bundled with source, license, and retrieval metadata.