Skip to Content
MathematicsMathematics
  • Article
  • Open Access

15 June 2026

41 Pages

Deep Learning-Based Residual Augmentation of Neural ODE Approximations: Rollout Error Propagation, Contraction Diagnostics, and CRN Case Study

Department of Mathematics, College of Sciences, King Saud University, Riyadh 11451, Saudi Arabia

Abstract

Neural ordinary differential equations (NODEs) have emerged as an effective methodology in artificial neural networks (ANNs) and deep learning for capturing unknown or unmodeled dynamics in compartmental and dynamical mathematical models arising from real-life applications, particularly under limited-data conditions, through learned data-driven corrections. Nevertheless, accurate one-step prediction errors do not necessarily guarantee reliable long-horizon rollouts. In this work, we study residual Neural ODE models of the form f ^ = f + h θ and derive a priori rollout-error estimates showing that long-time prediction behavior is generated by the incremental stability structure of the learned dynamics. Contracting regimes produce uniformly controlled rollout errors, whereas weakly contractive or expansive regimes can amplify persistent approximation errors over long time horizons. The analysis is illustrated on a flow-reactor chemical reaction network (CRN), where the washout parameter controls rollout reliability on the data-supported region. Numerical experiments further demonstrate that models with comparable empirical one-step prediction losses may exhibit substantially different multi-step behaviors. Rollout-error analysis and projected-gradient-descent (PGD) sensitivity directions additionally reveal that locally expansive regions align with worst-case perturbation amplification.

1. Introduction

Learning dynamical models from time-series data is a central task in systems biology and chemical kinetics. In chemical reaction networks (CRNs), mechanistic mass-action models provide an interpretable structure, but practical deployments often face model mismatch: unmodeled effects, coarse measurements, and simplified kinetics can lead to systematic discrepancies between the nominal ordinary differential equation (ODE) and observed trajectories [1,2,3]. Neural ordinary differential equations (NODEs) provide a continuous-time framework for incorporating data-driven corrections, for instance, by augmenting a mechanistic vector field with a learned residual while preserving a transparent mechanistic core [1].
While Neural Ordinary Differential Equations [4] introduce continuous-depth architectures and scalable training via the adjoint method, they do not investigate how approximation errors propagate in long-horizon rollouts of the learned dynamics. From a dynamical systems perspective, deep networks have also been interpreted as discretizations of differential equations, enabling the study of forward propagation through stability properties of the underlying flow [5]. However, these analyses primarily address qualitative stability properties of trajectories rather than explicit rollout-error propagation and amplification mechanisms generated by persistent approximation errors. A related issue has also been identified in sequence modeling with recurrent neural networks, where the discrepancy between one-step training objectives and autonomous inference can lead to the accumulation and amplification of errors along generated trajectories [6]. These works highlight the empirical impact of such mismatches and propose modified training strategies to mitigate them, but they do not provide a dynamical systems analysis or explicit rollout-error propagation bounds.
The present work focuses precisely on this gap by providing explicit rollout-error propagation bounds for approximate dynamics and identifying regimes under which learned NODE models remain stable or unstable under multi-step rollout.
A persistent difficulty is the mismatch between training and evaluation objectives in compartment models. Residual NODEs are frequently trained using empirical one-step prediction losses on sampled trajectories, yet they are ultimately evaluated through autonomous multi-step rollouts. Empirically, one may observe that the one-step prediction loss decreases and saturates while long-horizon rollouts either remain accurate or drift substantially. The main goal of this paper is to show that this gap is not merely an optimization detail, but is generated by the way errors propagate under the dynamics induced by the learned vector field, as characterized through dynamical systems theory.
To set notation and motivate the analysis, we compare the reference dynamical model (4) with the learned NODE dynamics (5). We use the residual parameterization
f ^ ( x ) = f ( x ) + h θ ( x ) ,
where f denotes the nominal (mechanistic) vector field and h θ is a learned residual map parameterized by a multilayer perceptron (MLP) [7,8,9]. Here θ ∈ Θ ⊂ R p collects all trainable parameters of the network (weights and biases in all layers) so that h θ denotes the induced input–output mapping generated by these parameters. The parameter vector θ is identified from trajectory data to compensate for model mismatch.
For background on the deep-learning and machine-learning concepts used throughout (hypothesis classes, empirical risk minimization, empirical cost functionals, and training dynamics), we refer to [7,8,9].
Over a numerical rollout, the combined effect of local vector-field discrepancy (including any remaining mismatch beyond the residual correction) and discretization error acts as a perturbation input propagated by the induced flow. Hence, long-horizon accuracy is generated by the incremental contraction properties of the dynamics on the region explored by the rollout: in incrementally contracting regimes, perturbations are damped, yielding uniform-in-time control of trajectory mismatch (Lemma 1), whereas in noncontracting regimes, perturbations may be amplified, with worst-case growth controlled by a Gronwall-type estimate under a Lipschitz assumption (Lemma 2).
A convenient sufficient condition for incremental contraction of a C 1 vector field g on a set D is the existence of β > 0 such that
λ max J g ( z ) + J g ( z ) ⊤ 2 ≤ − β , z ∈ D ,
where J g ( z ) = ∂ g ( z ) / ∂ z is the Jacobian matrix. In our CRN case study, g denotes the nominal mass-action CRN vector field from [1], which admits the representation
g ( y ) = S r ( y ) ,
where the stoichiometric matrix S and the reaction-rate vector r ( y ) encode the model structure and kinetic parameters. Condition (1) implies decay of trajectory separations as long as solutions remain in D and, in particular, yields the one-sided dissipation condition (7). This incremental stability viewpoint clarifies why accurate one-step prediction may yield reliable rollouts in some regimes but not in others: long-horizon fidelity depends not only on smoothness or Lipschitz bounds but also on whether the induced flow contracts (or at least does not expand) distances on the region explored by the dynamics. See [10,11] for background on matrix measures (logarithmic norms). In the CRN case, we derive an explicit dominance condition ensuring contraction of the nominal vector field on a bounded region (Theorem 1).
We instantiate the above contraction-based perspective on a flow-reactor CRN with a residual augmentation f θ = f + h θ , where h θ is an MLP [7,8,9]. The residual map is identified from discrete trajectory samples using a one-step forward-Euler prediction loss, and the resulting model is assessed through explicit multi-step Euler rollouts. We find that rollout-reliable versus rollout-unreliable behavior is well predicted by contraction diagnostics on the data-supported region (i.e., contraction versus noncontraction regimes). These diagnostics explain why models with comparable empirical one-step prediction losses can nevertheless exhibit markedly different long-horizon performance.
Beyond trajectory-level comparisons, we introduce contraction diagnostics for the nonlinear CRN interaction term based on one-sided Lipschitz and contraction proxies evaluated on states visited by the data and by the numerical rollouts. We further investigate rollout sensitivity by visualizing two-dimensional affine cross-sections of the rollout-loss landscape together with the associated direction fields: normalized gradient directions and projected-gradient-descent (PGD) directions approximating worst-case perturbations under a norm constraint. This follows the standard worst-case perturbation viewpoint from adversarial robustness [12], and we interpret the resulting geometric structure in light of recent mathematical perspectives on neural ODEs [13].
We provide a priori bounds quantifying how vector-field mismatch and numerical discretization generate multi-step rollout error [14,15], thereby clarifying the distinction between merely Lipschitz dynamics and incrementally contractive dynamics [10,11]. We further introduce practically computable one-sided Lipschitz and contraction diagnostics (both empirical and theoretical) for assessing whether accurate one-step prediction is likely to yield rollout-reliable or rollout-unreliable behavior on the region explored by the data and model trajectories. On controlled CRN examples, we investigate the relation between these diagnostics and long-horizon rollout behavior through autonomous rollout experiments, contraction analyses, and rollout-loss landscape together with PGD sensitivity visualizations, in the spirit of robustness analyses [12].
Section 2 introduces the learning and approximation setting together with the associated notation. Section 3 develops the rollout-error propagation analysis and contraction framework. Section 4 recalls universal approximation results motivating the residual MLP class. Section 5 presents the CRN model and its residual Neural ODE augmentation. Section 6 develops the one-step residual training framework, autonomous rollout analysis, contraction and rollout comparisons, and rollout-loss landscape together with PGD sensitivity visualizations for the CRN dynamics. Section 7 presents rollout-error propagation experiments, empirical one-sided Lipschitz diagnostics, and the transition between contracting and expansive rollout regimes. We conclude with a brief discussion in Section 8.

2. Model Setting

We begin by introducing the notation and terminology used throughout the paper. In particular, ODE denotes an ordinary differential equation, ANN an artificial neural network, and NODE a neural ordinary differential equation. Within this setting, the ODE model represents the dynamical equations of the reference dynamics considered in our experiments, whereas the ANN-driven NODE model is employed as a surrogate dynamical system for approximating unknown or partially modeled dynamics through learned data-driven corrections.
Fix a terminal time T > 0 and a dimension d ∈ N . Our objective is to analyze how perturbations in vector fields propagate to perturbations in the associated trajectories by comparing two initial value problems evolving from the same initial state.
  • Underlying initial value problems and solution maps. Let Ω t × Ω z ⊂ R × R d be open, and let F : Ω t × Ω z → R d be continuous. For an initial condition a ∈ A ⊂ Ω z , consider the initial value problem
z ˙ ( t ) = F ( t , z ( t ) ) , z ( 0 ) = a .
We denote by I a ⊂ Ω t the maximal interval of existence of the corresponding solution and by
z a : I a → R d
the associated solution trajectory corresponding to the initial datum a. Throughout, we assume that
[ 0 , T ] ⊂ I a for all a ∈ A ,
so that the associated time-t solution map is well defined on A for every t ∈ [ 0 , T ] ; cf. [13].
  • ODE model (reference dynamical system). Let f ∈ C 1 ( R d ; R d ) and fix an initial condition z 0 ∈ R d . We consider the autonomous ODE
z ˙ ( t ) = f z ( t ) , z ( 0 ) = z 0 .
Since f is locally Lipschitz continuous, problem (4) admits a unique maximal solution
z z 0 : I z 0 → R d .
For brevity, we write z : = z z 0 whenever no confusion can arise. Throughout, we assume that
[ 0 , T ] ⊂ I z 0 .
ANN-driven NODE model (surrogate dynamics). Let h : R d → R d be locally Lipschitz continuous, for example, the realization of a trained artificial neural network. We define the surrogate dynamics by
z ˜ ˙ ( t ) = h z ˜ ( t ) , z ˜ ( 0 ) = z 0 .
Since h is locally Lipschitz continuous, problem (5) admits a unique maximal solution
z ˜ z 0 : I ˜ z 0 → R d .
For brevity, we write z ˜ : = z ˜ z 0 whenever no confusion can arise. Throughout, we assume that
[ 0 , T ] ⊂ I ˜ z 0 .
Vector-field mismatch and stability constants. Let D ⊂ R d be a forward-invariant domain containing the trajectories under consideration. Whenever required in the subsequent analysis, we additionally assume that D is convex.
We quantify the discrepancy between the reference and surrogate dynamics through the uniform vector-field mismatch condition
∥ h ( x ) − f ( x ) ∥ ≤ ε , ∀ x ∈ D ,
for some constant ε > 0 .
We further introduce the following stability properties of the reference vector field f on D. We say that f is incrementally contracting on D if there exists μ > 0 such that
⟨ f ( x ) − f ( y ) , x − y ⟩ ≤ − μ ∥ x − y ∥ 2 , ∀ x , y ∈ D ,
and that f is Lipschitz continuous on D if there exists L > 0 such that
∥ f ( x ) − f ( y ) ∥ ≤ L ∥ x − y ∥ , ∀ x , y ∈ D .
The assumptions above constitute the standing hypotheses used in the sequel. In particular, Lemma 1 is established under the incremental contraction condition (7) together with the uniform mismatch assumption (6), whereas Lemma 2 relies on the Lipschitz continuity condition (8) and the same uniform mismatch estimate. These hypotheses provide the foundation for the a priori trajectory-error bounds derived later in the paper.

3. A Priori Trajectory-Error Bounds Under Vector-Field Mismatch

The analysis in this section is based on classical comparison arguments and Gronwall-type estimates from dynamical systems theory; see, for example, [14,15]. These tools quantify how discrepancies between vector fields propagate into trajectory errors over time.
Fix a terminal time T > 0 . Let
z : = z z 0 and z ˜ : = z ˜ z 0
denote the maximal solutions of (4) and (5), respectively, corresponding to the same initial condition
z ( 0 ) = z ˜ ( 0 ) = z 0 .
We write I z 0 and I ˜ z 0 for the associated maximal intervals of existence and assume throughout that
[ 0 , T ] ⊂ I z 0 ∩ I ˜ z 0 ,
so that both trajectories are well defined on [ 0 , T ] ; cf. [13].
We define the trajectory error by
e ( t ) : = z ˜ ( t ) − z ( t ) , t ∈ [ 0 , T ] .
This error arises from replacing the reference vector field f by the surrogate vector field h. The estimates derived below are formulated on a forward-invariant domain D and distinguish between incrementally contracting and merely Lipschitz regimes. In the incrementally contracting setting, perturbations are dissipated and the trajectory error remains uniformly bounded in time, whereas in the noncontracting Lipschitz regime, perturbations may be amplified, leading in general to at most exponential growth of the trajectory error.
To illustrate these mechanisms and their implications for Neural ODE rollouts, we also present a simple scalar example in which the vector-field mismatch is modeled through a constant bias perturbation. We begin with the incrementally contracting case.
Lemma 1
(Contraction yields a uniform trajectory-error bound). Let z ( · ) and z ˜ ( · ) be as above. Assume that there exists a forward-invariant set D ⊂ R d such that
z ( t ) , z ˜ ( t ) ∈ D for all t ∈ [ 0 , T ] ,
and suppose that the uniform vector-field mismatch condition (6) and the incremental contraction condition (7) hold on D. Then, for every t ∈ [ 0 , T ] ,
∥ z ˜ ( t ) − z ( t ) ∥ ≤ ε μ 1 − e − μ t ≤ ε μ .
In particular, the trajectory error remains uniformly bounded on [ 0 , T ] .
Proof. 
Define the trajectory error by
e ( t ) : = z ˜ ( t ) − z ( t ) .
Differentiating (12) and using (4) and (5), we obtain the error dynamics
e ˙ ( t ) = h ( z ˜ ( t ) ) − f ( z ( t ) ) .
Adding and subtracting f ( z ˜ ( t ) ) yields
e ˙ ( t ) = f ( z ˜ ( t ) ) − f ( z ( t ) ) + h ( z ˜ ( t ) ) − f ( z ˜ ( t ) ) .
Next, consider the Lyapunov function
V ( t ) : = 1 2 ∥ e ( t ) ∥ 2 .
Differentiating (15) along solutions and using (14), we obtain
V ˙ ( t ) = ⟨ e ( t ) , e ˙ ( t ) ⟩ = ⟨ e ( t ) , f ( z ˜ ( t ) ) − f ( z ( t ) ) ⟩ + ⟨ e ( t ) , h ( z ˜ ( t ) ) − f ( z ˜ ( t ) ) ⟩ .
We estimate the two terms on the right-hand side separately. By the incremental contraction condition (7),
⟨ e ( t ) , f ( z ˜ ( t ) ) − f ( z ( t ) ) ⟩ ≤ − μ ∥ e ( t ) ∥ 2 .
Moreover, by the Cauchy–Schwarz inequality together with the uniform vector-field mismatch bound (6),
⟨ e ( t ) , h ( z ˜ ( t ) ) − f ( z ˜ ( t ) ) ⟩ ≤ ∥ e ( t ) ∥ ∥ h ( z ˜ ( t ) ) − f ( z ˜ ( t ) ) ∥ ≤ ε ∥ e ( t ) ∥ .
Combining (16)–(18) yields
V ˙ ( t ) ≤ − μ ∥ e ( t ) ∥ 2 + ε ∥ e ( t ) ∥ .
Let
r ( t ) : = ∥ e ( t ) ∥ .
Whenever r ( t ) > 0 , we have V ˙ ( t ) = r ( t ) r ˙ ( t ) , and therefore
r ˙ ( t ) ≤ − μ r ( t ) + ε , t ∈ [ 0 , T ] ,
with initial condition r ( 0 ) = 0 .
Applying Gronwall’s inequality to (20) gives
r ( t ) ≤ ∫ 0 t ε e − μ ( t − s ) d s = ε μ 1 − e − μ t , t ∈ [ 0 , T ] .
Since r ( t ) = ∥ z ˜ ( t ) − z ( t ) ∥ , estimate (11) follows immediately. □
We next consider the case in which the contraction assumption is dropped, and f is assumed only to be Lipschitz continuous on the common forward-invariant set D. In this noncontracting regime, perturbations are no longer dissipated, and the trajectory mismatch may accumulate over time. The following Gronwall-type estimate shows that, even when the vector-field mismatch remains uniformly bounded, the induced trajectory error can, in general, grow at most exponentially, with growth rate determined by the Lipschitz constant of f on D.
Lemma 2
(Lipschitz dynamics imply at most exponential NODE error growth). Let z ( · ) and z ˜ ( · ) be as above. Assume that there exists a forward-invariant set D ⊂ R d such that
z ( t ) , z ˜ ( t ) ∈ D for all t ∈ [ 0 , T ] ,
and suppose that the uniform vector-field mismatch condition (6) and the Lipschitz continuity condition (8) hold on D. Then, for every t ∈ [ 0 , T ] ,
∥ z ˜ ( t ) − z ( t ) ∥ ≤ ε L e L t − 1 .
In particular, the trajectory error grows at most exponentially in time with growth rate L.
Proof. 
Define the trajectory error by
e ( t ) : = z ˜ ( t ) − z ( t ) .
Differentiating (22) and using (4) and (5), we obtain
e ˙ ( t ) = h ( z ˜ ( t ) ) − f ( z ( t ) ) .
Adding and subtracting f ( z ˜ ( t ) ) yields
e ˙ ( t ) = f ( z ˜ ( t ) ) − f ( z ( t ) ) + h ( z ˜ ( t ) ) − f ( z ˜ ( t ) ) .
Taking norms in (24) and applying the triangle inequality, together with the uniform vector-field mismatch bound (6) and the Lipschitz continuity condition (8), gives
∥ e ˙ ( t ) ∥ ≤ ∥ f ( z ˜ ( t ) ) − f ( z ( t ) ) ∥ + ∥ h ( z ˜ ( t ) ) − f ( z ˜ ( t ) ) ∥ ≤ L ∥ e ( t ) ∥ + ε , t ∈ [ 0 , T ] .
Let
r ( t ) : = ∥ e ( t ) ∥ .
Since z ( 0 ) = z ˜ ( 0 ) = z 0 , we have r ( 0 ) = 0 . Therefore,
r ˙ ( t ) ≤ L r ( t ) + ε , t ∈ [ 0 , T ] .
Applying Gronwall’s inequality to (26), we obtain
r ( t ) ≤ ∫ 0 t ε e L ( t − s ) d s = ε L e L t − 1 , t ∈ [ 0 , T ] .
Since r ( t ) = ∥ z ˜ ( t ) − z ( t ) ∥ , estimate (21) follows. □
The estimates established in Lemmas 1 and 2 describe two qualitatively distinct regimes of trajectory-error propagation. To make these mechanisms explicit and to provide further intuition for their implications in learned dynamical systems, we next consider a simple scalar example for which the vector-field mismatch can be analyzed explicitly. In this setting, the learned vector field is modeled by a single-hidden-layer artificial neural network in the sense of [7]. The example illustrates how the same magnitude of vector-field approximation error may lead to fundamentally different long-time trajectory behavior, depending on whether the underlying dynamics are contracting or noncontracting.
Example 1
(Scalar linear illustrations of contracting vs. expanding error propagation). We examine the contrast between contracting and expanding regimes by specializing (4) and (5) to the scalar case d = 1 .
In this setting, the learned vector field h : R → R is represented by a single-hidden-layer artificial neural network in the sense of [7], namely
h ( x ) = ∑ j = 1 m a j λ ( w j x + b j ) + c ,
with parameters ( a j , w j , b j , c ) ∈ R 3 m + 1 and width m ∈ N . The choice of activation function λ determines the regularity of h: if λ ∈ C 1 ( R ) , then h ∈ C 1 ( R ) , whereas for ReLU, λ ( s ) = max { 0 , s } , the map h is continuous and Lipschitz but generally not C 1 , being piecewise affine with possible nondifferentiability at points where w j x + b j = 0 .
We model the vector-field mismatch on the relevant scalar interval as
h ( x ) − f ( x ) = δ ( x ) ,
and idealize it by a constant bias δ ( x ) ≡ ε , where ε > 0 . Thus,
h ( x ) = f ( x ) + ε .
In the representation (27), this corresponds to a perturbation of the output bias c ↦ c + ε . In the Neural ODE setting, ε represents a simplified model of approximation or training error in the learned vector field.
  • Contracting case. Let f ( x ) = − μ x with μ > 0 . Then the scalar ode of (4) and (5) are
x ˙ ( t ) = − μ x ( t ) , x ^ ˙ ( t ) = − μ x ^ ( t ) + ε , x ( 0 ) = x ^ ( 0 ) = x 0 .
Defining the trajectory error
e ( t ) = x ^ ( t ) − x ( t ) ,
we obtain
e ˙ ( t ) = − μ e ( t ) + ε , e ( 0 ) = 0 .
Solving this scalar equation yields
| x ^ ( t ) − x ( t ) | = ε μ 1 − e − μ t ≤ ε μ , t ≥ 0 .
Thus, under contraction, the effect of model mismatch remains uniformly bounded in time and saturates as t → ∞ .
  • Expanding case. Let f ( x ) = L x with L > 0 . Then the scalar instances of (4) and (5) are
x ˙ ( t ) = L x ( t ) , x ^ ˙ ( t ) = L x ^ ( t ) + ε , x ( 0 ) = x ^ ( 0 ) = x 0 .
The error equation becomes
e ˙ ( t ) = L e ( t ) + ε , e ( 0 ) = 0 .
Hence,
| x ^ ( t ) − x ( t ) | = ε L e L t − 1 , t ≥ 0 .
In contrast, without contraction, the same model mismatch leads to exponential amplification of the rollout error.
  • Interpretation in the Neural ODE framework. Although the formulas (29) and (30) follow from elementary scalar calculations, this example highlights their implications for learned dynamical systems. In particular, for the neural network vector field (27), the constant bias ε corresponds to a perturbation of the learned parameters, specifically the output bias c, and therefore represents a simplified form of training or approximation error.
The analysis shows that the impact of such errors is determined not only by their magnitude but also by the stability properties of the underlying dynamics. Contracting systems suppress error accumulation and yield reliable long-time predictions, whereas expanding systems amplify even small errors, potentially leading to unstable rollouts. This provides a theoretical explanation for the observed sensitivity of Neural ODE models and suggests that enforcing contraction is essential for reliable prediction.
Figure 1 illustrates the qualitative distinction between contracting and expanding error propagation in the scalar Neural ODE setting. The left panel corresponds to the contracting regime, whereas the right panel corresponds to the expanding regime. In each case, the reference trajectory x ( t ) and the perturbed trajectory x ^ ( t ) are displayed together with the rollout error | x ^ ( t ) − x ( t ) | on a logarithmic scale and the corresponding theoretical error formula given by (29) and (30), respectively.
Figure 1. Scalar illustrations of contracting and expanding rollout-error propagation. Each panel shows the reference trajectory x ( t ) , the perturbed trajectory x ^ ( t ) , the rollout error | x ^ ( t ) − x ( t ) | , and the corresponding theoretical error formula. In the contracting regime, the error rapidly saturates to a bounded level, whereas in the expanding regime, the same constant perturbation produces exponential amplification of the rollout error.
Figure 1 numerically illustrates Example 1. In the contracting regime, where f ( x ) = − μ x with μ > 0 , the scalar systems are
x ˙ ( t ) = − μ x ( t ) , x ^ ˙ ( t ) = − μ x ^ ( t ) + ε .
The corresponding rollout error remains uniformly bounded and rapidly saturates, in agreement with the explicit formula (29). On the logarithmic scale, this behavior appears as a flattening of the error curve.
In contrast, in the expanding regime with f ( x ) = L x and L > 0 , we have
x ˙ ( t ) = L x ( t ) , x ^ ˙ ( t ) = L x ^ ( t ) + ε .
In this case, the same constant perturbation produces exponential growth of the rollout error, consistent with (30). On the logarithmic scale, the exponential amplification appears approximately linear in time.
To quantify the discrepancy over the interval [ 0 , T ] , define the rollout error
e ( t ) : = x ^ ( t ) − x ( t ) .
We measure the error in the norms
∥ e ∥ ∞ , [ 0 , T ] : = max t ∈ [ 0 , T ] | e ( t ) | , ∥ e ∥ 2 , [ 0 , T ] : = ∫ 0 T | e ( t ) | 2 d t 1 / 2 ,
and define the corresponding relative errors by
RE ∞ : = ∥ e ∥ ∞ , [ 0 , T ] ∥ x ∥ ∞ , [ 0 , T ] , RE 2 : = ∥ e ∥ 2 , [ 0 , T ] ∥ x ∥ 2 , [ 0 , T ] .
For the numerical experiments, we choose
x 0 = 1 , ε = 0.05 , T = 10 ,
with μ = 1 in the contracting case and L = 1 in the expanding case. The resulting error quantities are summarized in Table 1.
Table 1. Exact rollout-error quantities for the scalar contracting and expanding test cases with x 0 = 1 , ε = 0.05 , μ = L = 1 , and T = 10 .
The first part reports the global rollout-error norms and their corresponding relative errors on [ 0 , T ] . The second part distinguishes between global normalization by ∥ x ∥ ∞ , [ 0 , T ] and pointwise normalization by | x ( T ) | .
In the contracting regime, the rollout error remains uniformly bounded and rapidly saturates at a level of order ε / μ . Indeed,
| e ( t ) | = ε μ 1 − e − μ t , t ≥ 0 ,
and therefore
| e ( T ) | → ε μ as T → ∞ .
However, the exact trajectory
x ( T ) = x 0 e − μ T
decays exponentially to zero. Consequently, the pointwise normalized quantity
| e ( T ) | | x ( T ) | = ε μ x 0 e μ T − 1
grows exponentially in time, despite the fact that the absolute rollout error itself remains small and uniformly bounded. This shows that pointwise relative-error measures may fail to reflect the actual rollout behavior in strongly contracting regimes, since normalization by an exponentially decaying exact trajectory can artificially inflate the reported error. For this reason, the global quantities RE ∞ and RE 2 provide a more representative measure of rollout accuracy on the interval [ 0 , T ] .
In contrast, in the expanding regime,
| e ( T ) | | x ( T ) | = ε L x 0 1 − e − L T ,
which remains uniformly bounded as T → ∞ . Although the absolute rollout error undergoes exponential amplification, both the exact trajectory and the rollout error grow at the same exponential rate, so their ratio remains approximately constant throughout the evolution. Consequently, relative-error quantities alone may obscure the instability of expanding dynamics if the accompanying absolute-error growth is not taken into account.
These observations illustrate an important distinction between absolute and relative notions of rollout accuracy in Neural ODE models. Depending on the underlying dynamical regime, normalized error quantities may lead to substantially different interpretations of stability and prediction quality. In particular, exponential decay or growth of the exact trajectory can strongly distort pointwise relative-error measures. This underscores the importance of combining machine-learning evaluation with rigorous dynamical-systems and stability analysis.
Overall, these two scalar test problems illustrate the qualitative dichotomy between contracting and expanding Neural ODE flows. Contracting dynamics suppress the accumulation of model mismatch and yield stable long-time rollouts, whereas expanding dynamics amplify even small perturbations and may produce large absolute prediction errors.

4. Approximation of Vector Fields by Neural Networks

In the Neural ODE framework, the exact vector field in (4) is replaced by a neural-network approximation as in (5). The approximation capability of such architectures is motivated by classical universal approximation results for feedforward neural networks on compact sets; see, for example, [7,9,16].
More precisely, let D ⊂ R d be compact and let f : D → R d be continuous. Then, for every ε > 0 , there exists a neural-network realization
h ( x ) = W 2 λ ¯ ( W 1 x + b 1 ) + b 2 ,
with
W 1 ∈ R k × d , W 2 ∈ R d × k , b 1 ∈ R k , b 2 ∈ R d ,
such that
sup x ∈ D ∥ f ( x ) − h ( x ) ∥ < ε .
Here λ ¯ denotes the componentwise application of the activation function λ .
Therefore, on compact forward-invariant regions explored by the dynamics, neural networks are capable of approximating the underlying vector field with arbitrary uniform accuracy. However, approximation expressivity alone does not determine the reliability of long-time rollouts. The essential issue is how approximation and discretization errors propagate under the induced dynamics.
As the preceding scalar examples illustrate, rollout behavior is governed primarily by the stability properties of the dynamics rather than by approximation accuracy alone. In particular, persistent vector-field mismatch may either be damped or amplified depending on whether the dynamics are contractive or expansive. Consequently, accurate short-time approximation of the vector field does not by itself guarantee reliable long-time prediction.
The analysis developed in Section 3 and Section 5 makes this principle precise through contraction and one-sided Lipschitz estimates for the associated flows. These results show that stability properties play a central role in determining the long-time propagation of rollout errors in Neural ODE models.
Throughout this work, we keep the activation function λ general. Additional background on activation functions, ReLU-type architectures, and approximation theory for neural networks can be found in [7,8,16].

5. Chemical Reaction Network (CRN) Model and Neural ODE Augmentation

Chemical reaction networks (CRNs) provide a natural benchmark for studying the long-time reliability of Neural ODE models. Under mass-action kinetics, the temporal evolution of the species concentrations is described by a system of ordinary differential equations derived from the underlying reaction mechanism. In practice, however, even calibrated mechanistic models may fail to reproduce experimental trajectories quantitatively due to hidden interactions, unmodeled side reactions, imperfect mixing assumptions, uncertain parameters, or noisy measurements [1]. These effects become particularly pronounced in oscillatory flow-reactor regimes, where small perturbations may accumulate over time and lead to substantial phase drift in long-horizon rollouts.
Following [1], we consider an open-system oscillatory CRN involving autocatalytic and inhibitory pathways. The reactor continuously exchanges material with the environment through inflow and outflow terms, allowing sustained oscillatory behavior that would otherwise decay toward equilibrium in a closed system.
State variables. We collect the dynamic species concentrations in
y ( t ) = y 1 ( t ) , y 2 ( t ) , y 3 ( t ) , y 4 ( t ) , y 6 ( t ) , y 7 ( t ) ⊤ ∈ R ≥ 0 6 ,
where
y 1 ( t ) = [ piperidine ( 1 ) ] ( t ) , y 2 ( t ) = [ Fmoc - piperidine ( 2 ) ] ( t ) , y 3 ( t ) = [ p-piperidinenitrophenylacetate ( 3 ) ] ( t ) , y 4 ( t ) = [ phenylacetate ( 4 ) ] ( t ) , y 6 ( t ) = [ dibenzofulvene ( 6 ) ] ( t ) , y 7 ( t ) = [ N-acetylpiperidine ( 7 ) ] ( t ) .
Species ( 5 ) (N-methylpiperidine) is treated as a constant external species with concentration y 5 > 0 . The quantities
y 2 , in , y 3 , in , y 4 , in
denote the inflow concentrations of the corresponding feed species, while s v > 0 denotes the exchange (washout) rate of the continuous stirred-tank reactor.
CRN vector field in stoichiometric matrix form. Using the state representation (36), we define the mass-action reaction-rate vector by
r ( y ) : = r tr ( y ) r ac ( y ) r inh 1 ( y ) r inh 2 ( y ) = k tr y 5 y 2 k ac y 1 y 2 k inh 1 y 1 y 3 k inh 2 y 1 y 4 .
The corresponding inflow vector is
y in : = 0 y 2 , in y 3 , in y 4 , in 0 0 .
The CRN dynamics are then written as
y ˙ ( t ) = f y ( t ) , y ( t 0 ) = y 0 ,
where
f ( y ) : = S r ( y ) − s v y + s v y in .
Here S ∈ R 6 × 4 denotes the stoichiometric matrix
S = 1 1 − 1 − 1 − 1 − 1 0 0 0 0 − 1 0 0 0 0 − 1 1 1 0 0 0 0 1 1 .
The vector field (40) consists of the bilinear mass-action contribution S r ( y ) and the linear exchange term s v ( y in − y ) induced by the continuous-flow reactor. Thus, for species supplied through the feed, the flow contribution has the form s v ( y i , in − y i ) , whereas for species not supplied through the feed it reduces to − s v y i . The kinetic parameters, inflow concentrations, and physical units used in the model are summarized in Table 2.
Table 2. Parameters appearing in the CRN model (49).
Residual-augmented Neural ODE model. To account for discrepancies between the mechanistic CRN model and experimentally observed trajectories, we augment the vector field (40) with a learned residual term following [1]. The resulting Neural ODE model is
y ˙ ( t ) = f y ( t ) + h θ y ( t ) , y ( t 0 ) = y 0 ,
where
h θ : R 6 → R 6
denotes a neural-network correction term parameterized by a multilayer perceptron (MLP). The residual map h θ is intended to capture dynamical effects not represented by the mechanistic model (40), while preserving the interpretable CRN structure encoded in the original vector field.
  • Checking the contraction condition. To apply Lemma 1 to the CRN dynamics, we examine whether the vector field f satisfies the incremental contraction condition (7) on a forward-invariant region D containing both the exact and Neural ODE trajectories. From (40), the vector field admits the decomposition
f ( y ) = g ( y ) − s v y + s v y in , g ( y ) : = S r ( y ) ,
where g contains the nonlinear mass-action interaction terms, while the linear term − s v y represents the flow-induced damping. Thus, the exchange parameter s v acts as a stabilizing mechanism, whereas the nonlinear reaction terms may introduce local expansion.
The following result shows that, on a convex forward-invariant domain D, the CRN dynamics become incrementally contracting whenever the damping strength dominates the one-sided Lipschitz constant of the nonlinear interaction part. In this case, the vector field admits an explicit contraction rate determined by the balance between nonlinear reaction amplification and flow-induced dissipation.
Theorem 1
(Sufficient condition for contraction of the CRN vector field). Consider the CRN model
y ˙ ( t ) = f y ( t ) : = S r y ( t ) − s v y ( t ) + s v y in ,
where s v > 0 , y in ∈ R ≥ 0 6 is constant, S ∈ R 6 × 4 is the stoichiometric matrix, and
r ( y ) = k tr y 5 y 2 k ac y 1 y 2 k inh 1 y 1 y 3 k inh 2 y 1 y 4 , y 5 > 0 .
Let D ⊂ R ≥ 0 6 be a convex forward-invariant domain on which f is continuously differentiable, and define
g ( y ) : = S r ( y ) .
Furthermore, define the one-sided Lipschitz quantity
ℓ D ( g ) : = sup z ∈ D λ max J g ( z ) + J g ( z ) ⊤ 2 ,
where J g ( z ) denotes the Jacobian matrix of g.
If
s v > ℓ D ( g ) ,
then the vector field f is incrementally contracting on D. More precisely, setting
μ : = s v − ℓ D ( g ) > 0 ,
we obtain
⟨ f ( x ) − f ( y ) , x − y ⟩ ≤ − μ ∥ x − y ∥ 2 , ∀ x , y ∈ D .
Consequently, the contraction condition (7) from Lemma 1 holds on D.
Proof. 
Fix x , y ∈ D and set
w : = x − y .
Using the decomposition
f ( y ) = g ( y ) − s v y + s v y in ,
the constant inflow term cancels when taking differences. Hence
f ( x ) − f ( y ) = g ( x ) − g ( y ) − s v ( x − y ) = g ( x ) − g ( y ) − s v w .
Taking the inner product with w gives
⟨ f ( x ) − f ( y ) , w ⟩ = ⟨ g ( x ) − g ( y ) , w ⟩ − s v ∥ w ∥ 2 .
Since D is convex and g is continuously differentiable on D, we may write
g ( x ) − g ( y ) = ∫ 0 1 J g y + τ w w d τ .
Therefore,
⟨ g ( x ) − g ( y ) , w ⟩ = ∫ 0 1 J g y + τ w w , w d τ = ∫ 0 1 J g y + τ w + J g y + τ w ⊤ 2 w , w d τ ,
because w ⊤ J g ( z ) w is a scalar.
Define
H ( z ) : = J g ( z ) + J g ( z ) ⊤ 2 .
Then H ( z ) is real symmetric. Hence, by the Rayleigh quotient estimate [17] (Thm. 4.2.2(c)), and by the definition of ℓ D ( g ) in (44), we have
⟨ H ( z ) w , w ⟩ ≤ λ max H ( z ) ∥ w ∥ 2 ≤ ℓ D ( g ) ∥ w ∥ 2 , z ∈ D .
Since y + τ w ∈ D for every τ ∈ [ 0 , 1 ] , it follows that
⟨ g ( x ) − g ( y ) , w ⟩ ≤ ℓ D ( g ) ∥ w ∥ 2 .
Substituting this estimate into (47) yields
⟨ f ( x ) − f ( y ) , w ⟩ ≤ ℓ D ( g ) − s v ∥ w ∥ 2 = − s v − ℓ D ( g ) ∥ w ∥ 2 .
Since s v > ℓ D ( g ) , setting
μ : = s v − ℓ D ( g ) > 0
gives
⟨ f ( x ) − f ( y ) , x − y ⟩ ≤ − μ ∥ x − y ∥ 2 .
This is precisely (46), and the proof is complete. □
  • Checking the Lipschitz condition on bounded domains. To apply Lemma 2, we verify the Lipschitz continuity of the CRN vector field f on a bounded forward-invariant domain D. Since the CRN dynamics consist of polynomial mass-action terms together with linear flow/exchange contributions, the vector field f : R 6 → R 6 is continuously differentiable and therefore locally Lipschitz.
On bounded domains, boundedness of the Jacobian matrix implies the existence of a global Lipschitz constant. The following result provides an explicit Lipschitz estimate adapted to the stoichiometric representation (40) and verifies condition (8) for the CRN model.
Theorem 2
(Lipschitz continuity of the CRN vector field on bounded sets). Consider the CRN model written in the compact form
y ˙ ( t ) = f y ( t ) : = S r y ( t ) − s v y ( t ) + s v y in ,
where
y = ( y 1 , y 2 , y 3 , y 4 , y 6 , y 7 ) ⊤ ∈ R ≥ 0 6 ,
and
r ( y ) = k tr y 5 y 2 k ac y 1 y 2 k inh 1 y 1 y 3 k inh 2 y 1 y 4 , y 5 > 0 constant .
Let D ⊂ R ≥ 0 6 be bounded, and define
B : = sup y ∈ D ∥ y ∥ ∞ < ∞ .
Then the vector field f is Lipschitz continuous on D. More precisely, there exists a constant L D > 0 such that
∥ f ( x ) − f ( y ) ∥ ≤ L D ∥ x − y ∥ , ∀ x , y ∈ D .
Consequently, condition (8) of Lemma 2 holds on D.
Proof. 
Fix x , y ∈ D . From (49), we obtain
f ( x ) − f ( y ) = S r ( x ) − r ( y ) − s v ( x − y ) ,
since the constant inflow term s v y in cancels when taking differences. Therefore,
∥ f ( x ) − f ( y ) ∥ ≤ ∥ S ∥ ∥ r ( x ) − r ( y ) ∥ + s v ∥ x − y ∥ .
It thus suffices to estimate the reaction-rate vector r on the bounded set D.
Since
∥ x ∥ ∞ , ∥ y ∥ ∞ ≤ B ,
each reaction-rate component admits a Lipschitz estimate. First,
| r tr ( x ) − r tr ( y ) | = k tr y 5 | x 2 − y 2 | ≤ k tr y 5 ∥ x − y ∥ .
For the bilinear terms, we use the identity
a b − a ′ b ′ = a ( b − b ′ ) + b ′ ( a − a ′ ) .
Hence,
| r ac ( x ) − r ac ( y ) | = k ac | x 1 x 2 − y 1 y 2 | = k ac x 1 ( x 2 − y 2 ) + y 2 ( x 1 − y 1 ) ≤ k ac | x 1 | | x 2 − y 2 | + | y 2 | | x 1 − y 1 | ≤ 2 k ac B ∥ x − y ∥ .
Similarly,
| r inh 1 ( x ) − r inh 1 ( y ) | ≤ 2 k inh 1 B ∥ x − y ∥ ,
and
| r inh 2 ( x ) − r inh 2 ( y ) | ≤ 2 k inh 2 B ∥ x − y ∥ .
Then there exists a constant C r ( D ) > 0 such that
∥ r ( x ) − r ( y ) ∥ ≤ C r ( D ) ∥ x − y ∥ , ∀ x , y ∈ D .
Substituting (52) into (51) gives
∥ f ( x ) − f ( y ) ∥ ≤ ∥ S ∥ C r ( D ) + s v ∥ x − y ∥ .
Therefore, the vector field f is Lipschitz continuous on D with Lipschitz constant
L D : = ∥ S ∥ C r ( D ) + s v .
This verifies condition (8) on D and completes the proof. □
We now connect the regularity properties of the CRN vector field on bounded domains with the rollout and error-propagation estimates developed in Section 3. The Lipschitz condition yields the standard Gronwall-type control of trajectory errors, but it does not by itself prevent long-time error amplification. This motivates the stronger contraction-based conditions introduced above, which provide uniform stabilization of rollout errors under the induced dynamics.
Remark 1
(Lipschitz continuity on bounded sets and rollout error growth). By Theorem 2, the CRN vector field
f ( y ) = S r ( y ) − s v y + s v y in
is Lipschitz continuous on every bounded forward-invariant domain D ⊂ R ≥ 0 6 . Consequently, condition (8) of Lemma 2 holds on D with Lipschitz constant L D . If, in addition, the vector-field mismatch satisfies (6) on D for some ε > 0 , then Lemma 2 yields
∥ z ˜ ( t ) − z ( t ) ∥ ≤ ε L D e L D t − 1 , t ∈ [ 0 , T ] .
Thus, the rollout error may grow exponentially in time with rate L D . Therefore, Lipschitz continuity alone does not guarantee reliable long-time prediction: when L D is large, or when the dynamics contain locally expanding regions, even small vector-field errors may accumulate and produce substantial rollout drift, as illustrated in Example 1.
This motivates the contraction-based framework developed above. If the Jacobian satisfies the negative logarithmic norm condition [10,11],
μ 2 J f ( z ) = λ max J f ( z ) + J f ( z ) ⊤ 2 ≤ − β , z ∈ D ,
for some β > 0 , then perturbations are damped rather than amplified, leading to uniformly bounded or decaying rollout-error estimates. This distinction between merely Lipschitz and incrementally contracting dynamics plays a central role in the long-time reliability of residual Neural ODE models for prediction and parameter estimation.

6. Training, Rollout, and Theoretical Error Propagation

In this section, we investigate how one-step residual learning affects the autonomous multi-step rollout behavior of the residual-augmented CRN dynamics. We first describe the training procedure used to learn the neural residual correction h θ from observed trajectories, and then analyze the resulting rollouts in light of the contraction and Lipschitz estimates developed in Section 3.
The experiments illustrate that a small one-step prediction error alone does not guarantee reliable long-time rollouts. Rather, rollout accuracy is determined primarily by the incremental stability properties of the underlying dynamics.

6.1. Training of the Residual Neural ODE and Loss Curves

We consider the problem of learning a data-consistent correction to the nominal CRN dynamics in situations where the vector field f does not fully reproduce the observed state trajectories. Following the residual augmentation framework introduced in Section 5, we model the effective dynamics by f + h θ , where the residual correction term is parameterized by
h θ ∈ H : = { h θ : θ ∈ Θ ⊂ R p } .
The parameter vector θ is identified from discrete one-step trajectory samples extracted from the observed dynamics.
Let { y n data } n = 0 N denote the observed state measurements at sampling times { t n } n = 0 N , with
Δ t n : = t n + 1 − t n .
The observations are treated as noisy samples of the underlying state trajectory. In the numerical experiments, synthetic datasets are generated from the CRN model (49) on [ 0 , T ] using uniform temporal sampling with N + 1 = 1201 sample points, corresponding to the sampling step
Δ t = T N = 10 1200 .
The observed measurements are defined by
y n data = y ( t n ) + ξ n , ξ n ∼ N ( 0 , σ obs 2 I 6 ) ,
with σ obs = 0.01 . Thus, the observed trajectories are obtained by perturbing the underlying state trajectory with independent additive Gaussian noise.
From these observations, we construct the discrete one-step state-transition dataset
D = y n data , y n + 1 data , Δ t n n = 0 N − 1 .
The learned dynamics are described by the residual-augmented CRN model (42),
y ˙ ( t ) = f y ( t ) + h θ y ( t ) .
If Φ ˜ t θ denotes the flow generated by the residual-augmented dynamics, then the learning problem may be interpreted as identifying a perturbation of the underlying vector field whose associated flow reproduces the observed one-step state transitions.
In the numerical experiments, the continuous flow is approximated by a one-step integration operator Ψ Δ t θ associated with the vector field f + h θ . We employ the explicit Euler scheme
Ψ Δ t θ ( y ) = y + Δ t f ( y ) + h θ ( y ) ,
so that
y n + 1 ≈ Ψ Δ t n θ ( y n ) .
Accordingly, the learning problem is formulated by fitting the discrete-time predictor Ψ Δ t n θ to the observed one-step state transitions contained in D .
Training is performed by minimizing the empirical one-step prediction loss
L ( θ ) : = 1 N ∑ n = 0 N − 1 y n + 1 data − Ψ Δ t n θ y n data 2 ,
where ∥ · ∥ denotes the Euclidean norm in R 6 .
In all experiments, the residual correction term h θ is parameterized by a fully connected multilayer perceptron with two hidden layers of width 64 and componentwise activation function λ = tanh , using the notation introduced in (34). Since tanh is globally Lipschitz, the residual map h θ is globally Lipschitz on R 6 . Consequently, the residual-augmented vector field f θ = f + h θ is locally Lipschitz on R ≥ 0 6 , and the residual-augmented ODE (42) is locally well posed on forward-invariant domains.
The parameter values used in the rollout-reliable and rollout-unreliable regimes are summarized in Table 3. The two regimes differ primarily through the exchange parameter s v , which controls the strength of the flow-induced dissipation and therefore directly influences the contraction properties predicted by Theorem 1.
Table 3. Parameter values used in the CRN numerical experiments.
The residual-network training configuration used throughout the experiments is summarized in Table 4. In all reported experiments, the residual correction term is parameterized by a fully connected multilayer perceptron with two hidden layers of width 64 and componentwise tanh activation. The network parameters are optimized using the Adam method together with the empirical one-step mean squared prediction loss (53).
Table 4. Residual-network training configuration.
The objective (53) defines a finite-sum and generally nonconvex optimization problem due to the neural-network parametrization of h θ . In the numerical experiments, the loss functional L ( θ ) is minimized using the Adam optimizer [18] with learning rate η = 10 − 3 , full-batch gradient updates, and squared Euclidean loss. The optimization process is monitored through the loss sequence { L ( θ ( k ) ) } k ≥ 0 , where θ ( k ) denotes the network parameters after epoch k.
The resulting training-loss histories for the rollout-reliable and rollout-unreliable regimes are shown in Figure 2. In both regimes, the empirical one-step prediction loss decreases during training and eventually stabilizes near a plateau. The implications of these one-step approximation results for autonomous multi-step rollout accuracy are investigated in the following subsections using the contraction and Lipschitz framework developed in Section 3.
Figure 2. Training-loss histories for the rollout-reliable and rollout-unreliable regimes. In both cases, the empirical one-step prediction loss decreases during training and stabilizes near a plateau.

6.2. Rollout Interpretation and Theoretical Error Propagation

The training procedure described in Section 6.1 identifies a residual correction term h θ from discrete one-step state-transition data extracted from the observed trajectories. Once the network parameters are learned, the corresponding trajectory is generated by solving the autonomous residual-augmented CRN system (42). Relative to the reference trajectory y ( t ) generated by (49), the learned residual therefore acts as a persistent perturbation of the underlying vector field.
Let y ˜ θ ( t ) denote the trajectory generated by the learned dynamics. On a bounded forward-invariant domain D ⊂ R ≥ 0 6 containing both y ( t ) and y ˜ θ ( t ) , we define the empirical residual magnitude
ε θ ( D ) : = sup y ∈ D ∥ h θ ( y ) ∥ .
To analyze the propagation of rollout errors, we recall the decomposition
f ( y ) = g ( y ) − s v y − y in , g ( y ) : = S r ( y ) ,
introduced in Section 5. The nonlinear reaction component g determines whether perturbations introduced by the learned residual dynamics are damped or amplified during autonomous rollout.
If the contraction condition of Theorem 1 holds,
s v > ℓ D ( g ) , μ = s v − ℓ D ( g ) > 0 ,
where ℓ D ( g ) is defined in (44), then Lemma 1 yields the rollout-error estimate
∥ y ˜ θ ( t ) − y ( t ) ∥ ≤ ε θ ( D ) μ 1 − e − μ t ≤ ε θ ( D ) μ , t ∈ [ 0 , T ] .
Hence, in the incrementally contracting regime, perturbations generated by the learned residual remain uniformly bounded and are progressively damped during autonomous rollout.
If the contraction condition fails, then repeated accumulation of local approximation errors may produce long-time rollout degradation. In this case, Theorem 2 provides the admissible Lipschitz constant
L D : = ∥ S ∥ C r ( D ) + s v ,
and Lemma 2 yields
∥ y ˜ θ ( t ) − y ( t ) ∥ ≤ ε θ ( D ) L D e L D t − 1 , t ∈ [ 0 , T ] .
In contrast to the contracting case, the estimate (56) permits exponential amplification of persistent perturbations and therefore predicts possible long-time rollout instability in weakly contracting or locally expanding regimes.
To evaluate the contraction diagnostic in practice, we compute the Jacobian matrix
J g ( y ) = S J r ( y ) ,
where the Jacobian of the reaction-rate vector r is
J r ( y ) = 0 k tr y 5 0 0 0 0 k ac y 2 k ac y 1 0 0 0 0 k inh 1 y 3 0 k inh 1 y 1 0 0 0 k inh 2 y 4 0 0 k inh 2 y 1 0 0 .
Following (44) and (48), the quantity ℓ D ( g ) is estimated empirically from the maximal eigenvalue of the symmetric matrix
H ( z ) = J g ( z ) + J g ( z ) ⊤ 2 ,
evaluated along the sampled trajectories. This yields the empirical diagnostic ℓ ^ D ( g ) used throughout the numerical experiments.
The resulting empirical contraction diagnostics are summarized in Table 5. In the rollout-reliable regime, we obtain
ℓ ^ D ( g ) = 0.8745 , s v = 2.5 , μ = s v − ℓ ^ D ( g ) = 1.6255 > 0 ,
which is consistent with the contraction condition of Theorem 1. In contrast, in the rollout-unreliable regime,
ℓ ^ D ( g ) = 0.8665 , s v = 0.25 , μ = s v − ℓ ^ D ( g ) = − 0.6165 < 0 ,
so the contraction condition fails and persistent perturbations are no longer guaranteed to decay.
Table 5. Empirical contraction and rollout diagnostics.
For the rollout-reliable regime, the residual-augmented CRN trajectories remain close to the observed trajectories throughout the rollout interval; see Figure 3. This behavior is consistent with the positive contraction quantity
μ = s v − ℓ ^ D ( g ) > 0 ,
predicted by Theorem 1.
Figure 3. Autonomous rollout trajectories in the rollout-reliable regime. The learned residual-augmented CRN dynamics remain close to the observed trajectories over the entire rollout interval.
In contrast, the rollout-unreliable regime shown in Figure 4 exhibits visible long-time rollout degradation in several state components. Although the one-step prediction loss remains small, persistent local discrepancies accumulate during repeated time stepping and eventually produce substantial deviation from the observed trajectories. This behavior is consistent with the negative contraction quantity reported in Table 5.
Figure 4. Autonomous rollout trajectories in the rollout-unreliable regime. Persistent local discrepancies accumulate during repeated time stepping and lead to visible long-time rollout degradation in multiple state components.
These experiments provide a quantitative comparison between the theoretical error-propagation mechanisms of Lemmas 1 and 2 and the observed long-time behavior of the residual-augmented Neural ODE model.
A computable upper bound for the contraction diagnostic is obtained from the elementary estimate
λ max A + A ⊤ 2 ≤ ∥ A ∥ 2 .
Since J g ( z ) = S J r ( z ) , it follows that
ℓ D ( g ) ≤ sup z ∈ D ∥ J g ( z ) ∥ 2 ≤ ∥ S ∥ 2 sup z ∈ D ∥ J r ( z ) ∥ 2 .
Using the inequality
∥ A ∥ 2 ≤ ∥ A ∥ 1 ∥ A ∥ ∞ ,
and assuming that the forward-invariant domain D satisfies the componentwise bounds
0 ≤ y i ≤ B i ,
we obtain
sup z ∈ D ∥ J r ( z ) ∥ 2 ≤ ( sup z ∈ D ∥ J r ( z ) ∥ 1 ) ( sup z ∈ D ∥ J r ( z ) ∥ ∞ ) .
The sparse structure of J r yields the explicit estimates
sup z ∈ D ∥ J r ( z ) ∥ ∞ ≤ max k tr y 5 , k ac ( B 1 + B 2 ) , k inh 1 ( B 1 + B 3 ) , k inh 2 ( B 1 + B 4 ) = : M ∞ ,
and
sup z ∈ D ∥ J r ( z ) ∥ 1 ≤ max k ac B 2 + k inh 1 B 3 + k inh 2 B 4 , k tr y 5 + k ac B 1 , k inh 1 B 1 , k inh 2 B 1 = : M 1 .
Consequently,
ℓ D ( g ) ≤ ∥ S ∥ 2 M 1 M ∞ ,
and therefore the sufficient condition
s v > ∥ S ∥ 2 M 1 M ∞
guarantees incremental contraction of the CRN vector field on D by Theorem 1.
This estimate provides a computable contraction diagnostic expressed in terms of the stoichiometric matrix S, the kinetic parameters, and componentwise state bounds. In the numerical experiments, the empirical quantity ℓ ^ D ( g ) is computed directly from sampled trajectories using the logarithmic norm of J g , whereas the upper bound
∥ S ∥ 2 M 1 M ∞
This yields a rigorous sufficient condition ensuring contraction.
To assess whether minimizing the one-step loss (53) leads to accurate autonomous multi-step predictions, we compare forward-Euler rollouts on the sampling grid { t n } n = 0 N , initialized from
y 0 : = y data ( t 0 ) ,
according to
y n + 1 crn = y n crn + Δ t n f y n crn , y 0 crn = y 0 ,
y ˜ n + 1 θ = y ˜ n θ + Δ t n f ( y ˜ n θ ) + h θ ( y ˜ n θ ) , y ˜ 0 θ = y 0 .
The empirical contraction diagnostics are summarized in Table 5. The corresponding autonomous rollout trajectories for the rollout-reliable and rollout-unreliable regimes are shown in Figure 3 and Figure 4, respectively, together with the noisy observed trajectories.
The mechanistic CRN vector field contains the affine flow term
− s v ( y − y in ) ,
which induces linear relaxation toward the inflow equilibrium y in at rate s v . Increasing s v therefore strengthens the dissipative part of the dynamics and promotes incremental contraction, consistent with Theorem 1.
In the rollout-reliable regime ( s v = 2.5 ), the dissipative mechanism dominates the nonlinear interaction terms on the visited region, yielding the positive contraction margin reported in Table 5,
μ = s v − ℓ ^ D ( g ) > 0 .
Consequently, perturbations generated by the learned residual remain controlled during autonomous rollout, and the augmented trajectory { y ˜ n θ } stays close to the observed trajectory, as illustrated in Figure 3. This behavior is consistent with the contraction estimate (55).
In contrast, in the rollout-unreliable regime ( s v = 0.25 ), the flow-induced dissipation is weaker and contraction is no longer guaranteed since
μ = s v − ℓ ^ D ( g ) < 0 .
In this case, repeated application of the rollout dynamics (58) may amplify persistent local vector-field discrepancies. As a result, small one-step prediction errors accumulate during autonomous rollout and eventually produce visible long-time trajectory drift; see Figure 4. This behavior is consistent with the Lipschitz-type amplification mechanism predicted by (56), even though the one-step training losses shown in Figure 2 decrease and stabilize in both regimes.
These experiments demonstrate that minimizing the empirical one-step loss (53) alone does not guarantee reliable long-time autonomous predictions. Rather, rollout reliability is determined primarily by the contraction properties of the underlying CRN vector field, as predicted by Theorem 1 and the a priori estimates (55) and (56).
To further investigate the transition between rollout-reliable and rollout-unreliable behavior, we compute empirical one-sided Lipschitz diagnostics for the nonlinear interaction component
g ( y ) = S r ( y )
on the same ( ρ , κ ) grid used for the rollout-error maps. Writing
f ( y ) = g ( y ) − s v ( y − y in ) ,
we have
J f ( z ) = J g ( z ) − s v I ,
and therefore
λ max J f ( z ) + J f ( z ) ⊤ 2 ≤ ℓ D ( g ) − s v .
Hence, the condition
s v > ℓ D ( g )
implies incremental contraction with contraction rate
μ = s v − ℓ D ( g ) > 0 .
For each training fraction ρ ∈ ( 0 , 1 ] and rollout fraction κ ∈ ( 0 , 1 ] , with
m = ⌊ κ N ⌋ ,
we define the visited-state set
Ƶ ρ , κ : = { y n data } n = 0 m ∪ { y ˜ n θ ( ρ ) } n = 0 m ,
where y ˜ n θ ( ρ ) denotes the rollout (58) generated by the residual model trained on the first ⌊ ρ N ⌋ samples. We then compute the empirical diagnostic
ℓ ^ ρ , κ ( g ) : = max z ∈ Ƶ ρ , κ λ max J g ( z ) + J g ( z ) ⊤ 2 ,
which estimates the local one-sided Lipschitz behavior along the visited trajectories.
To obtain a computable upper estimate, we define the enclosing box
D ρ , κ : = y ∈ R ≥ 0 6 : 0 ≤ y i ≤ B i ρ , κ ,
where
B i ρ , κ : = max z ∈ Ƶ ρ , κ z i .
Applying the explicit bound derived above gives
ℓ D ρ , κ ( g ) ≤ ∥ S ∥ 2 M 1 ( B ρ , κ ) M ∞ ( B ρ , κ ) = : ℓ ¯ D ρ , κ ( g ) .
Hence,
s v > ℓ ¯ D ρ , κ ( g )
is a sufficient condition for incremental contraction on the box D ρ , κ .
The corresponding empirical diagnostics and upper estimates are shown in Figure 5. The left panels display the empirical quantities ℓ ^ ρ , κ ( g ) computed along the visited trajectories, whereas the right panels display the corresponding upper estimates ℓ ¯ D ρ , κ ( g ) obtained on the enclosing boxes D ρ , κ .
Figure 5. Empirical diagnostics and upper estimates on the ( ρ , κ ) grid. The left panels show the empirical quantities ℓ ^ ρ , κ ( g ) computed along the visited trajectories, while the right panels show the corresponding upper estimates ℓ ¯ D ρ , κ ( g ) on the enclosing boxes D ρ , κ .
In the rollout-reliable regime (top row), the empirical diagnostic is nearly uniform across the entire ( ρ , κ ) grid, with values close to
ℓ ^ ρ , κ ( g ) ≈ 0.874 .
This appears in the heat map as an almost uniformly yellow region, indicating that the local one-sided Lipschitz behavior varies only slightly along the visited trajectories. Since
s v = 2.5 > ℓ ^ ρ , κ ( g ) ,
the dissipative contribution dominates the nonlinear interaction terms, which is consistent with stable rollout behavior.
Similarly, in the rollout-unreliable regime (bottom row), the empirical diagnostic remains nearly constant, with values close to
ℓ ^ ρ , κ ( g ) ≈ 0.866 .
The corresponding dark-blue coloring reflects the smaller numerical values relative to the common color scale used in the figure. Although the empirical quantities in the two regimes are numerically close, the rollout behavior differs substantially because
s v = 0.25 < ℓ ^ ρ , κ ( g ) ,
so the nonlinear amplification is no longer dominated by the flow-induced dissipation.
The right panels show the upper estimates ℓ ¯ D ρ , κ ( g ) , whose values range roughly from 4.9 to 5.3 . These quantities are significantly larger than the empirical diagnostics because they are computed from enclosing boxes rather than from the sampled trajectories themselves. The gradual color variation with increasing rollout fraction κ reflects the growth of the enclosing domains and therefore the increase in the associated worst-case estimates.
Overall, the figure illustrates the distinction between trajectory-dependent diagnostics and global upper estimates, as well as the central role of the balance between nonlinear amplification and dissipation in determining long-horizon rollout reliability.
Finally, we investigate the influence of the residual-network width on one-step prediction accuracy and autonomous rollout behavior. Parameterizing
h θ : R 6 → R 6
by a two-hidden-layer MLP with componentwise tanh activation and hidden width
m ∈ { 16 , 32 , 64 , 128 } ,
we train models under identical optimization settings and compare both the one-step prediction loss (53) and the resulting rollout accuracy.
The resulting width sweep is shown in Figure 6. The quantity MSE denotes the mean squared prediction error computed over the corresponding training, validation, or rollout dataset.
Figure 6. Width sweep for the two-hidden-layer residual MLP. The one-step training and validation losses decrease moderately with increasing width, whereas the rollout error does not exhibit comparable improvement, particularly in the rollout-unreliable regime.
In the rollout-reliable regime, increasing the width from m = 16 to m = 64 reduces both the one-step training and validation losses, while the rollout error remains of comparable magnitude across the tested widths. Increasing the width further to m = 128 produces only negligible additional improvement in the one-step losses. In the rollout-unreliable regime, the one-step losses are also similar across all widths, whereas the rollout error remains substantially larger and does not improve with increasing network size. In particular, larger widths do not prevent the long-horizon rollout degradation observed in the weakly dissipative regime.
These observations indicate that increasing network expressivity alone does not guarantee reliable autonomous rollout behavior. Once the one-step approximation error reaches a sufficiently small level, the dominant mechanism governing long-time prediction accuracy is the stability structure of the underlying dynamics rather than the network width itself. Based on this trade-off between approximation accuracy and model complexity, we select the width m = 64 for all reported experiments.
Overall, the width-sweep experiments further support the conclusion that small one-step prediction error alone is insufficient to ensure reliable long-horizon autonomous rollouts. Instead, the observed rollout behavior is governed primarily by the contraction and stability properties of the underlying CRN dynamics rather than by network width alone.

6.3. Loss-Landscape Visualization of Rollout Reliability and Worst-Case Perturbations

We next investigate the geometric structure of the rollout-loss landscape associated with the residual Neural ODE model (42) and relate it to the perturbation-propagation mechanisms developed in Section 3.
Let y ( t ) ∈ R d , d = 6 , denote the CRN state vector. Following the model setting introduced in Section 2, we consider the flow-reactor dynamics (49) together with the residual-augmented Neural ODE model (42).
To visualize the dependence of long-horizon rollout behavior on the initial condition, we restrict y 0 ∈ R d to a two-dimensional affine section parameterized by ξ = ( y 0 , i , y 0 , j ) ∈ R 2 , while the remaining components are fixed at a baseline state y ¯ 0 ∈ R d . For each parameter value ξ , rollout trajectories are generated from the residual Neural ODE model (42) using explicit Euler time stepping with step size Δ t over a rollout horizon K.
The corresponding multi-step rollout loss is defined by
L ( ξ ) = 1 K ∑ k = 1 K 1 d y ^ k ( ξ ) − y k ref ( ξ ) 2 2 ,
where y ^ k ( ξ ) denotes the residual Neural ODE rollout initialized at ξ , and y k ref ( ξ ) denotes the corresponding reference trajectory generated by the mechanistic CRN dynamics.
On the same initialization section, we quantify rollout sensitivity through the normalized ascent field
v L ( ξ ) = ∇ ξ L ( ξ ) ∥ ∇ ξ L ( ξ ) ∥ 2 ,
which indicates the local direction of maximal increase of the rollout loss.
To identify perturbation directions producing maximal rollout amplification, we additionally compute projected-gradient-descent (PGD) perturbations
λ f ( ξ ) ∈ arg max δ ∈ R 2 , ∥ δ ∥ p ≤ ε L ( ξ + δ ) , p ∈ { 2 , ∞ } .
Thus, λ f ( ξ ) represents a local worst-case perturbation direction for the rollout loss under bounded initial-condition perturbations.
Starting from the initial perturbation δ 0 = 0 , where δ m ∈ R 2 denotes the perturbation after the m-th PGD iteration, the updates are defined by
δ m + 1 = Π ∥ δ ∥ p ≤ ε δ m + α PGD d m , m = 0 , … , M − 1 ,
where α PGD > 0 denotes the ascent step size and
Π ∥ δ ∥ p ≤ ε
denotes the projection onto the admissible ℓ p perturbation ball.
For p = 2 , the ascent direction is chosen as the normalized rollout-loss gradient
d m = ∇ ξ L ( ξ + δ m ) ∥ ∇ ξ L ( ξ + δ m ) ∥ 2 ,
whereas for p = ∞ , the ascent direction is defined componentwise by
d m = sign ∇ ξ L ( ξ + δ m ) .
The resulting perturbation λ f ( ξ ) : = δ M therefore approximates a local worst-case perturbation direction for the learned Neural ODE flow; cf. [12].
In all experiments, we use
M = 10 , α PGD = 0.01 , ε = 0.05 .
The PGD perturbations provide a geometric interpretation of the rollout-error propagation mechanisms established in Lemmas 1 and 2. Indeed, the perturbations generated by (61) correspond to directions producing the largest local amplification of the multi-step rollout loss under bounded perturbations of the initial condition.
Let
e ( t ) = y ˜ θ ( t ) − y ( t )
denote the rollout perturbation error between the perturbed Neural ODE trajectory and the corresponding reference trajectory. If the underlying dynamics satisfy the incremental contraction condition
ℓ D ( f ) = − μ < 0 ,
then Lemma 1 yields
∥ e ( t ) ∥ ≤ e − μ t ∥ e ( 0 ) ∥ + ε θ ( D ) μ 1 − e − μ t .
Hence, perturbations generated by the PGD dynamics are progressively damped during rollout, and the amplification of the rollout loss remains uniformly controlled in time. For PGD-generated perturbations, the perturbed rollout is initialized at ξ + λ f ( ξ ) , whereas the reference rollout is initialized at ξ . Since the initialization section depends affinely on ξ ∈ R 2 , the corresponding initial rollout perturbation satisfies
e ( 0 ) = y 0 ( ξ + λ f ( ξ ) ) − y 0 ( ξ ) = λ f ( ξ ) .
Therefore,
∥ e ( 0 ) ∥ = ∥ λ f ( ξ ) ∥ ≤ ε ,
since each PGD iterate is projected onto the admissible ℓ p perturbation ball.
Consequently, estimate (62) implies
∥ e ( t ) ∥ ≤ e − μ t ε + ε θ ( D ) μ 1 − e − μ t .
Using e − μ t ≤ 1 , 1 − e − μ t ≤ 1 , we obtain the uniform estimate
∥ e ( t ) ∥ ≤ ε + ε θ ( D ) μ .
Thus, in the incrementally contracting regime, perturbations generated by the PGD iterations remain uniformly bounded throughout autonomous rollout. In particular, even perturbation directions selected to maximize rollout amplification cannot produce unbounded long-time error growth when the underlying dynamics are contractive.
By contrast, in the noncontractive regime described by Lemma 2, positive one-sided Lipschitz values permit exponential amplification of local perturbations. In particular,
∥ e ( t ) ∥ ≤ e ℓ D ( f ) t ∥ e ( 0 ) ∥ + ε θ ( D ) ℓ D ( f ) e ℓ D ( f ) t − 1 , ℓ D ( f ) > 0 .
Hence, locally expansive dynamics permit persistent amplification of PGD perturbations and accumulated approximation errors along the rollout trajectory.

6.4. Rollout-Loss Landscapes and Perturbation Geometry

To investigate the geometric structure of rollout sensitivity, we visualize the multi-step rollout loss L ( ξ ) , ξ = ( y 0 , 1 , y 0 , 2 ) , on a two-dimensional initialization cross-section of the CRN state space.
The color scale represents the rollout loss magnitude. Dark-blue regions correspond to smaller rollout errors, whereas green and yellow regions correspond to larger accumulated rollout errors during autonomous rollout.
The red arrows denote the normalized ascent field
v L ( ξ ) = ∇ ξ L ( ξ ) ∥ ∇ ξ L ( ξ ) ∥ ,
which indicates the local direction of maximal increase of the rollout loss. The purple arrows denote the PGD perturbation directions λ f ( ξ ) , computed under the prescribed norm constraint. Since the PGD iterations are generated from successive ascent directions of the rollout loss, the PGD directions are frequently aligned with the ascent field. This alignment indicates dominant local directions of rollout-error amplification.
Rollout-reliable regime: Figure 7 corresponds to the rollout-reliable regime, for which
μ = s v − ℓ ^ D ( g ) ≈ 1.6255 > 0 .
Figure 7. Rollout-loss landscapes and perturbation directions in the rollout-reliable regime. Heat maps represent the rollout loss L ( ξ ) . Red arrows denote the normalized ascent field v L ( ξ ) , whereas purple arrows denote the PGD perturbation directions λ f ( ξ ) . (a) One-step residual training with ascent directions. (b-left) ℓ 2 ascent field. (b-right) ℓ 2 PGD perturbation directions. (c-left) ℓ ∞ ascent field. (c-right) ℓ ∞ PGD perturbation directions.
The rollout-loss landscape remains concentrated in a uniformly small range,
L ( ξ ) ∼ 10 − 2 ,
and is dominated by broad low-loss regions with relatively smooth variation across the initialization section. Although directional fields are present, the associated rollout-loss variation remains weak, and no coherent large-scale escape pattern emerges.
Consequently, perturbations of the initialization remain controlled during autonomous rollout. This behavior is consistent with the contraction estimate (55), which predicts damping of persistent perturbations in the incrementally contracting regime.
Moreover, the ascent and PGD fields do not exhibit strong coherent alignment toward isolated high-loss regions. Instead, the directional fields remain relatively diffuse and spatially smooth, indicating that small perturbations of the initialization do not trigger persistent error amplification. Although local directional sensitivity is still present, the corresponding rollout-loss variations remain moderate and uniformly bounded across the initialization cross-section.
Rollout-unreliable regime: Figure 8 corresponds to the rollout-unreliable regime, for which
μ = s v − ℓ ^ D ( g ) ≈ − 0.6165 < 0 .
Figure 8. Rollout-loss landscapes and perturbation directions in the rollout-unreliable regime. Heat maps represent the rollout loss L ( ξ ) . Red arrows denote the normalized ascent field v L ( ξ ) , whereas purple arrows denote the PGD perturbation directions λ f ( ξ ) . (a) One-step residual training with ascent directions. (b-left) ℓ 2 ascent field. (b-right) ℓ 2 PGD perturbation directions. (c-left) ℓ ∞ ascent field. (c-right) ℓ ∞ PGD perturbation directions.
The rollout-loss landscape now develops substantially larger high-loss regions, with rollout losses reaching values of order
L ( ξ ) ∼ 8 × 10 − 2 .
The heat maps contain pronounced green and yellow regions, indicating stronger accumulation of rollout error during autonomous time stepping.
Moreover, the ascent and PGD fields exhibit more coherent directional alignment toward these higher-loss regions. Such coherent alignment indicates the existence of preferred perturbation directions along which rollout errors are amplified. Geometrically, this behavior reflects locally expansive rollout dynamics and is consistent with the Lipschitz-type estimate (56), which permits amplification of persistent perturbations when incremental contraction is absent.
The dependence on the perturbation norm also reflects the geometry of the admissible perturbation set. Under the ℓ 2 constraint, the PGD perturbations follow smoother directions that remain closely aligned with the rollout-loss gradient field. Under the ℓ ∞ constraint, the perturbations saturate componentwise, producing the more axis-aligned directional structures observed in the corresponding panels.
Overall, the rollout-loss landscapes and associated directional fields provide complementary geometric information. The color distribution quantifies the magnitude of the rollout error, whereas the directional fields identify perturbation directions along which the rollout loss increases most rapidly. In the rollout-reliable regime, the rollout loss remains uniformly small and perturbations remain bounded despite local directional sensitivity. In the rollout-unreliable regime, coherent ascent and PGD directions combine with larger rollout-loss regions, revealing preferred amplification pathways for long-time rollout-error growth.

7. Rollout Error Propagation and One-Sided Lipschitz Diagnostics

In this section, we investigate how the contraction and Lipschitz frameworks developed in Section 3 govern long-horizon Neural ODE rollouts for the residual-augmented CRN dynamics introduced in Section 5.
We combine the a priori trajectory-error estimates of Lemmas 1 and 2 with empirical one-sided Lipschitz diagnostics computed along the true and learned trajectories.
Throughout these experiments, the residual Neural ODE is trained from noisy trajectory observations using the one-step learning framework of Section 6, and evaluated through autonomous multi-step rollouts and contraction diagnostics derived from the logarithmic norm of the CRN Jacobian.
Neural ODE learning framework: Following the framework introduced in Section 2, we consider the residual Neural ODE approximation of the true dynamics (4) together with the residual augmentation framework described in (42).
The residual correction term h θ is parameterized by a fully connected multilayer perceptron with componentwise tanh activation, and the observed trajectories are generated from noisy measurements, consistent with the framework introduced in Section 6.
The Neural ODE is trained using one-step prediction pairs
X n = Z data ( t n ) , Y n = Z data ( t n + 1 ) ,
and the parameters are obtained by minimizing the empirical one-step prediction loss
L ( θ ) = 1 N ∑ n = 0 N − 1 Φ Δ t θ ( X n ) − Y n 2 2 ,
where Φ Δ t θ denotes the one-step Neural ODE flow map.
One-sided Lipschitz diagnostics: To relate the observed rollout behavior to the a priori estimates of Lemmas 1 and 2, we evaluate the one-sided Lipschitz quantity associated with the true vector field:
ℓ D ( f ) = sup z ∈ D λ max J f ( z ) + J f ( z ) ⊤ 2 .
Similarly, for the residual-augmented Neural ODE dynamics f + h θ , we compute the empirical diagnostic
ℓ ^ D ( f + h θ ) = sup z ∈ D λ max J f + h θ ( z ) + J f + h θ ( z ) ⊤ 2 .
Negative one-sided Lipschitz values correspond to incrementally contracting dynamics and uniformly bounded rollout errors, whereas positive values permit amplification of perturbations during autonomous rollout.
Rollout-error estimate: Using the trajectory-error definition (10), assume that the vector-field mismatch satisfies (6) on a forward-invariant domain D and that the true vector field satisfies the contraction condition (7). Since the true and learned trajectories are initialized from the same state, we have e ( 0 ) = 0 . Then, by Lemma 1,
∥ e ( t ) ∥ ≤ ε μ 1 − e − μ t ≤ ε μ , t ∈ [ 0 , T ] .
Equivalently, if the one-sided Lipschitz diagnostic satisfies
ℓ D ( f ) = − μ < 0 ,
then
∥ e ( t ) ∥ ≤ ε | ℓ D ( f ) | 1 − e ℓ D ( f ) t .
Thus, negative one-sided Lipschitz values suppress long-time amplification of rollout perturbations, whereas noncontracting dynamics permit progressive rollout-error amplification.

7.1. Contracting Nonlinear Dynamics

We first consider a nonlinear system whose vector field is globally contracting. This example illustrates the regime described by Lemma 1, where persistent vector-field mismatch is damped and rollout errors remain uniformly controlled.
Dynamical equations: We consider the nonlinear system
z ˙ ( t ) = f ( z ( t ) ) , f ( z ) = − z 1 − α z 1 3 − z 2 − α z 2 3 , α = 0.5 .
The Jacobian matrix is
J f ( z ) = − 1 − 3 α z 1 2 0 0 − 1 − 3 α z 2 2 .
Hence,
λ max J f ( z ) + J f ( z ) ⊤ 2 ≤ − 1 , z ∈ R 2 .
Therefore,
ℓ D ( f ) ≤ − 1
on any domain D ⊂ R 2 , and the system is globally incrementally contracting.

7.1.1. Case A: Accurate Contracting Rollout

We first consider a regime in which the learned Neural ODE preserves the contraction structure of the true dynamics. In this setting, the empirical one-sided Lipschitz diagnostics remain negative and the resulting autonomous rollout remains close to the true trajectory, consistent with the contraction-based estimate of Lemma 1.
The training quantities used in this experiment are summarized in Table 6. The quantities L train and L val denote the empirical one-step prediction loss (64) evaluated on the training and validation datasets, respectively, at the final optimization epoch.
Table 6. Training quantities for Case A.
The principal rollout and contraction diagnostics are summarized in Table 7. The maximum rollout error is computed as
E max : = max 0 ≤ n ≤ N − 1 z ˜ ( t n ) − z ( t n ) 2 ,
where z ( t n ) denotes the reference trajectory and z ˜ ( t n ) denotes the learned Neural ODE rollout.
Table 7. Diagnostic quantities for Case A.
In Case A, the learned Neural ODE accurately preserves the incremental contraction structure of the true dynamics. Although the training data contain additive observation noise, the learned vector field remains strongly dissipative and produces stable autonomous rollouts over long prediction horizons. The empirical one-sided Lipschitz diagnostic remains close to that of the true vector field, indicating that the residual augmentation does not destroy the underlying contraction mechanism.
Since
ℓ ^ D ( f + h θ ) ≈ ℓ ^ D ( f ) < 0 ,
the learned dynamics remain in the incrementally contracting regime. Consequently, rollout perturbations are damped during autonomous prediction and the Neural ODE accurately reproduces the true trajectory over long horizons.
The corresponding rollout trajectories, training losses, and phase-plane comparison are shown in Figure 9.
Figure 9. Case A: contracting rollout regime. (Top): autonomous rollout comparison with noisy observations. (Bottom left): training and validation losses. (Bottom right): phase-plane comparison. The learned Neural ODE preserves the contraction structure of the true dynamics and accurately reproduces the rollout trajectory.
The rollout-error evolution and empirical one-sided Lipschitz diagnostics are displayed in Figure 10.
Figure 10. Case A rollout diagnostics. (Left): observed rollout error together with the contraction-based estimate from Lemma 1. (Right): empirical one-sided Lipschitz diagnostics for the true and learned vector fields. The one-sided Lipschitz diagnostics remain negative throughout the rollout interval, consistent with incrementally contracting dynamics.

7.1.2. Case B: Weakly Contracting Rollout

We next consider a regime in which the learned Neural ODE remains incrementally contracting but exhibits a weaker contraction margin than in Case A. In this setting, the empirical one-sided Lipschitz diagnostic remains negative, although the resulting autonomous rollout displays larger trajectory deviations over long prediction horizons.
The training quantities for this experiment are summarized in Table 8, while the corresponding rollout performance and contraction diagnostics are reported in Table 9.
Table 8. Training quantities for Case B.
Table 9. Diagnostic quantities for Case B.
In Case B, the learned Neural ODE preserves the qualitative contraction structure of the true dynamics, but with a substantially weaker contraction margin than in Case A. Although the learned vector field remains dissipative, perturbations are less strongly damped during autonomous rollout, producing larger trajectory deviations and a visibly less accurate long-horizon prediction.
Since
ℓ ^ D ( f + h θ ) > ℓ ^ D ( f ) , ℓ ^ D ( f + h θ ) < 0 ,
the learned dynamics remain incrementally contracting, but only weakly so. This explains why the rollout error remains controlled, while its magnitude is larger than in Case A.
The corresponding rollout trajectories, training losses, and phase-plane comparison are shown in Figure 11.
Figure 11. Case B: weakly contracting rollout regime. (Top): autonomous rollout comparison with noisy observations. (Bottom left): training and validation losses. (Bottom right): phase-plane comparison. The learned Neural ODE preserves the qualitative contraction structure of the true dynamics, but produces larger rollout deviations than in Case A.
The rollout-error evolution and empirical one-sided Lipschitz diagnostics are displayed in Figure 12.
Figure 12. Case B rollout diagnostics. (Left): observed rollout error together with the contraction-based estimate from Lemma 1. (Right): empirical one-sided Lipschitz diagnostics for the true and learned vector fields. The learned dynamics remain incrementally contracting, but the contraction margin is weaker than in Case A, resulting in larger rollout errors.

7.2. Nonlinear Oscillator: Transition from Weak Amplification to Expansive Rollout

We next consider a nonlinear oscillator in which the parameter α controls the transition from weak amplification to locally expansive dynamics. Unlike the globally contracting example above, the one-sided Lipschitz diagnostic varies significantly with α , allowing the transition from rollout-reliable to rollout-unreliable behavior to be observed directly.
Dynamical equations: The oscillator dynamics are given by
z ˙ ( t ) = f ( z ( t ) ) , z = ( x , y ) ⊤ , f ( z ) = y − δ y − x − α x 3 .
On the bounded trajectory domain
D R = { ( x , y ) ∈ R 2 : | x | ≤ R } ,
the Jacobian matrix is
J f ( z ) = 0 1 − 1 − 3 α x 2 − δ .
Hence,
λ max J f ( z ) + J f ( z ) ⊤ 2 = − δ + δ 2 + 9 α 2 x 4 2 ,
and therefore
ℓ D R ( f ) = − δ + δ 2 + 9 α 2 R 4 2 .
Thus, increasing α increases the one-sided Lipschitz diagnostic and progressively weakens rollout stability. In particular, weak amplification may transition into the expansive regime described by Lemma 2.
The training quantities and diagnostic values for the three regimes are summarized in Table 10 and Table 11. The accumulated rollout error is defined by
E acc : = Δ t ∑ n = 0 N − 1 z ˜ ( t n ) − z ( t n ) 2 ,
where z ( t n ) denotes the reference trajectory and z ˜ ( t n ) denotes the learned Neural ODE rollout.
Table 10. Training quantities for the nonlinear oscillator.
Table 11. Diagnostic quantities for the nonlinear oscillator.
The corresponding rollout trajectories, phase-plane comparisons, rollout-error evolutions, and one-sided Lipschitz diagnostics are shown in Figure 13.
Figure 13. Detailed rollout diagnostics for the nonlinear oscillator trained using noisy observations. From left to right: near-critical ( α = 0.2 ) , rollout-unreliable ( α = 2 ) , and strongly expansive ( α = 5 ) regimes. For each regime, the panels show the rollout trajectory, phase-plane comparison, rollout-error evolution, and one-sided Lipschitz diagnostic. The increasing one-sided Lipschitz values are associated with progressively stronger rollout-error amplification.
In the near-critical regime, the empirical one-sided Lipschitz diagnostics are only mildly positive and the rollout remains close to the true trajectory. In the rollout-unreliable and strongly expansive regimes, the diagnostics increase substantially, indicating stronger local expansion and allowing persistent approximation errors to be amplified during autonomous rollout. The accumulated rollout error also increases across the three regimes, showing that larger one-sided Lipschitz diagnostics are associated with progressively stronger long-horizon rollout-error amplification.

8. Discussion

This work identifies a fundamental mismatch between one-step training objectives for residual neural ODE augmentations and the multi-step accuracy required for reliable long-horizon rollouts. In particular, a small one-step loss primarily constrains the learned correction on sampled states (up to discretization and measurement effects) and therefore does not, by itself, control prediction errors in the training trajectory or their accumulation over extended horizons. This issue is closely related to stability and perturbation propagation in Neural ODE architectures [4,5]. Our theoretical analysis and CRN case study show that rollout reliability is instead generated by the incremental stability properties of the learned augmented dynamics on the region explored by the rollout. In the rollout-reliable regime, perturbations remain controlled and prediction errors stay bounded over long horizons, whereas in the unstable regime, small local discrepancies are amplified, eventually producing catastrophic divergence despite accurate one-step fitting. This demonstrates that the transition between successful and failed rollouts is not explained by one-step training error alone, but by the geometry of the learned flow and its perturbation amplification mechanisms [5,19].
These observations motivate contraction and one-sided Lipschitz diagnostics as practical tools for assessing rollout reliability. Empirical diagnostics computed along visited trajectories help explain observed rollout behavior, while rigorous enclosure-based bounds provide mathematical guarantees at the cost of conservatism. The discrepancy between empirical and enclosure-based diagnostics thus quantifies the pessimism introduced by coarse invariant regions, interval overestimation, and norm relaxations. In particular, our experiments show that empirical trajectory-wise estimates can remain moderate even when worst-case enclosure constants become large, illustrating the gap between local rollout behavior and global enclosure-based guarantees.
In our opinion, Neural ODE modeling should first be accompanied by a qualitative dynamical analysis of the underlying system before introducing ANN-based approximations. As emphasized throughout this work, stable rollout behavior is generated not only by one-step approximation accuracy, but also by the contraction, perturbation amplification, and geometric stability properties of the learned dynamics. From this perspective, the present framework suggests a broader connection between the theory of dynamical systems, machine learning, deep learning, and Neural ODE modeling, including links with contraction analysis, one-sided Lipschitz theory, Lyapunov-based stability methods, robustness-oriented learning strategies, stability-aware deep architectures, and perturbation-sensitive learning dynamics [5,11,12,19]. Such a viewpoint may serve as an important preliminary step prior to validation, forecasting, parameter inference, or deployment of learned dynamical surrogates in scientific applications.
Although our focus is on residual neural ODE augmentation, the same mismatch becomes a critical bottleneck in downstream scientific workflows, particularly in mechanistic parameter inference from time-series data arising in systems biology and chemical kinetics. In data-limited settings (short trajectories, sparse observations, noisy measurements), indirect or two-stage pipelines are frequently employed to reduce computational cost by first learning a flexible dynamical surrogate and then recovering mechanistic parameters from derivative or defect information extracted from the surrogate; see, for example, [2]. However, accurate one-step fitting of the surrogate does not guarantee that the learned dynamics remain trustworthy over the rollout horizons required for parameter recovery or scientific interpretation, particularly in data-limited and noisy biological settings where identifiability and generalization remain challenging [2,3]. Consequently, parameter estimates inferred from unstable surrogates may inherit systematic dynamical errors unrelated to the underlying mechanistic model. From this perspective, the diagnostics developed here provide a foundational reliability pre-check: before using learned dynamical surrogates for validation, forecasting, or scientific inference, one should verify that the augmented dynamics exhibit sufficiently stable behavior on the regions and horizons relevant to the downstream task.
Several extensions are natural. First, the proposed diagnostics can be integrated directly into training, for example, through regularization strategies that penalize large empirical one-sided Lipschitz constants or Jacobian growth along visited trajectories, thereby explicitly biasing optimization toward incrementally stable dynamics [5,19]. In addition, perturbation-aware and robustness-oriented training strategies may further help control sensitivity amplification in learned dynamics [12]. Second, the enclosure-based analysis can be strengthened by replacing coarse axis-aligned boxes with sharper forward-invariant enclosures such as trajectory tubes, polytopic regions, or data-driven reachable sets, thereby reducing conservatism in the resulting worst-case bounds. Third, while we focused on explicit Euler rollouts for transparency and analytical tractability, the same mechanisms also appear in higher-order and adaptive time discretizations; understanding the interaction between solver structure, residual augmentation, and perturbation propagation remains an important direction for future work. Finally, extending the analysis to noisy observational settings and partially observed systems would further clarify the practical reliability limits of Neural ODE and universal differential equation surrogates in real-world applications [3].
Overall, residual neural ODE augmentation can generate reliable long-horizon predictions, but only when the learned dynamics do not strongly amplify perturbations on the rollout-relevant region of state space. The theoretical framework and diagnostics developed here provide concrete tools for assessing such reliability prior to deploying learned dynamical surrogates for forecasting, validation, interpretation, or downstream inference in data-limited scientific settings.

Funding

This research received no external funding.

Institutional Review Board Statement

Not Applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

This work was supported by the Ongoing Research Funding program (ORF-2026-963), King Saud University, Riyadh, Saudi Arabia.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Thöni, A.C.M.; Robinson, W.E.; Bachrach, Y.; Huck, W.T.S.; Kachman, T. Modeling Chemical Reaction Networks Using Neural Ordinary Differential Equations. J. Chem. Inf. Model. 2025, 65, 4346–4352. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  2. Bradley, W.; Boukouvala, F. Two-Stage Approach to Parameter Estimation of Differential Equations Using Neural ODEs. Ind. Eng. Chem. Res. 2021, 60, 16330–16344. [Google Scholar] [CrossRef] [Scilit]
  3. Philipps, M.; Schmid, N.; Hasenauer, J. Current State and Open Problems in Universal Differential Equations for Systems Biology. npj Syst. Biol. Appl. 2025, 11, 101. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Chen, R.T.Q.; Rubanova, Y.; Bettencourt, J.; Duvenaud, D.K. Neural Ordinary Differential Equations. In Proceedings of the Advances in Neural Information Processing Systems; Bengio, S., Wallach, H., Larochelle, H., Grauman, K., Cesa-Bianchi, N., Garnett, R., Eds.; Curran Associates, Inc.: Red Hook, NY, USA, 2018; Volume 31. [Google Scholar]
  5. Haber, E.; Ruthotto, L. Stable Architectures for Deep Neural Networks. Inverse Probl. 2018, 34, 014004. [Google Scholar] [CrossRef] [Scilit]
  6. Bengio, S.; Vinyals, O.; Jaitly, N.; Shazeer, N. Scheduled Sampling for Sequence Prediction with Recurrent Neural Networks. In Proceedings of the Advances in Neural Information Processing Systems; Cortes, C., Lawrence, N., Lee, D., Sugiyama, M., Garnett, R., Eds.; Curran Associates, Inc.: Red Hook, NY, USA, 2015; Volume 28. [Google Scholar]
  7. Berlyand, L.; Jabin, P.E. Mathematics of Deep Learning: An Introduction; Walter de Gruyter GmbH: Berlin, Germany; Boston, MA, USA, 2023. [Google Scholar] [CrossRef] [Scilit]
  8. Zhang, A.; Lipton, Z.C.; Li, M.; Smola, A.J. Dive into Deep Learning; Cambridge University Press: Cambridge, UK, 2024. [Google Scholar]
  9. Pinkus, A. Approximation theory of the MLP model in neural networks. In Acta Numerica; Cambridge University Press: Cambridge, UK, 1999; Volume 8, pp. 143–195. [Google Scholar] [CrossRef] [Scilit]
  10. Desoer, C.A.; Vidyasagar, M. Feedback Systems. In Classics in Applied Mathematics; Society for Industrial and Applied Mathematics (SIAM): Philadelphia, PA, USA, 2009; Volume 55, pp. xx+264. [Google Scholar] [CrossRef] [Scilit]
  11. Söderlind, G. The logarithmic norm. History and modern theory. BIT Numer. Math. 2006, 46, 631–652. [Google Scholar] [CrossRef] [Scilit]
  12. Haldar, R.; Song, Q. On Neural Network Approximation of Ideal Adversarial Attack and Convergence of Adversarial Training. SIAM J. Math. Data Sci. 2025, 7, 1568–1593. [Google Scholar] [CrossRef] [Scilit]
  13. Kuehn, C.; Kuntz, S.V. Analysis of the geometric structure of neural networks and neural ODEs via Morse functions. Adv. Comput. Math. 2026, 52, 9. [Google Scholar] [CrossRef] [Scilit]
  14. Hairer, E.; Nørsett, S.P.; Wanner, G. Solving Ordinary Differential Equations. I: Nonstiff Problems, 2nd ed.; Springer Series in Computational Mathematics; Springer: Berlin/Heidelberg, Germany, 1993; Volume 8, pp. xvi+528. [Google Scholar]
  15. Butcher, J.C. Numerical Methods for Ordinary Differential Equations, 2nd ed.; John Wiley & Sons, Ltd.: Chichester, UK, 2008; pp. xx+463. [Google Scholar] [CrossRef] [Scilit]
  16. Kratsios, A. The Universal Approximation Property: Characterization, Construction, Representation, and Existence. Ann. Math. Artif. Intell. 2021, 89, 435–469. [Google Scholar] [CrossRef] [Scilit]
  17. Horn, R.A.; Johnson, C.R. Matrix Analysis, 2nd ed.; Cambridge University Press: Cambridge, UK, 2013; pp. xviii+643. [Google Scholar]
  18. Kingma, D.P.; Ba, J. Adam: A Method for Stochastic Optimization. In Proceedings of the 3rd International Conference on Learning Representations (ICLR), San Diego, CA, USA, 7–9 May 2015. [Google Scholar]
  19. Lohmiller, W.; Slotine, J.J.E. On Contraction Analysis for Non-linear Systems. Automatica 1998, 34, 683–696. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.