Abstract
Forecasting time series and time-dependent data is a common problem in many applications. One typical example is solving ordinary differential equation (ODE) systems $\dot{x}=F(x)$. Oftentimes the right hand side function $F(x)$ is not known explicitly and the ODE system is described by solution samples taken at some time points. Hence, ODE solvers cannot be used. In this paper, a data-driven approach to learning the evolution of dynamical systems is considered. We show how by training neural networks with ResNet-like architecture on the solution samples, models can be developed to predict the ODE system solution further in time. By evaluating the proposed approaches on three test ODE systems, we demonstrate that the neural network models are able to reproduce the main dynamics of the systems qualitatively well. Moreover, the predicted solution remains stable for much longer times than for other currently known models.
Introduction
In many scientific and engineering domains, systems evolve over time according to Ordinary Differential Equations (ODEs), typically expressed as $\dot{x} = F(x)$. When the governing function $F(x)$ is known, numerical solvers such as the Runge-Kutta or Euler methods provide reliable predictions. However, in many real-world scenarios, $F(x)$ remains a "black box," and researchers only have access to discrete snapshots of the system's state over time.
While machine learning offers a data-driven alternative for forecasting these systems, predicting chaotic dynamics is notoriously difficult. Small errors in initial predictions tend to compound rapidly, causing standard neural network models to diverge from the true trajectory. This paper investigates whether specific neural network architectures can capture the underlying dynamics of a system and maintain stability over extended forecasting horizons.
Methodology: The ResNet Advantage
The core innovation of this research lies in the application of Residual Networks (ResNets) to learn system dynamics. The authors identify a fundamental structural similarity between ResNet blocks and the explicit Euler method for solving differential equations.
In the Euler method, the next state is calculated as: $$x_{n+1} = x_n + hF(x_n)$$
In a ResNet, the output of a block is defined as: $$x_{n+1} = x_n + G(x_n)$$
where $G$ represents the learned transformation. This alignment provides ResNets with a natural "inductive bias" suited for integrating dynamical systems over time. The researchers evaluated four ResNet architectures (RN1 through RN4), varying in depth (4 to 6 blocks) and width (10 to 50 neurons per layer). Each block utilized a sequence of Fully Connected, Batch Normalization, ReLU, and Fully Connected layers. These were benchmarked against a standard Multi-Layer Perceptron (MLP).
To optimize training efficiency, a stepwise algorithm was employed. Rather than training on the entire dataset immediately, the model began with a small subset of training data, with additional samples added iteratively every few epochs.
Experimental Setup and Datasets
The models were tested on three simulated ODE systems generated via SciPy’s odeint solver:
- Van der Pol Oscillator: A non-chaotic system characterized by a stable limit cycle.
- Lorenz System: A highly chaotic 3D system known for its complex "butterfly" attractor.
- Rössler System: A chaotic system featuring continuous, complex dynamics.
For each system, 12,000 trajectories were generated, split into 8,000 for training, 2,000 for testing, and 2,000 for final evaluation.
Key Insights and Results
The study revealed that architecture is the primary determinant of long-term stability in physical forecasting. Standard MLPs failed significantly; when forced to predict far into the future, MLP trajectories typically collapsed into static clusters, losing the system's dynamics entirely. In contrast, ResNets maintained the qualitative shape of the systems' attractors for much longer periods.
Performance Summary:
- Van der Pol: The ResNets captured the dynamics with high precision. The simplest network (RN1) performed best, yielding an average relative error between 0.42 and 0.61.
- Rössler: The networks successfully reconstructed the chaotic attractor. RN3, the deepest architecture, proved most effective for long-term windows with a relative error of approximately 0.31.
- Lorenz: This system presented the greatest challenge. While RN2 achieved a respectable relative error (0.34 to 0.38), other ResNet variants suffered from overflow errors (NaN). This highlights the extreme sensitivity of chaotic systems, where even minor errors compound into numerical instability.
Conclusion and Future Directions
ResNets demonstrate a clear superiority over standard MLPs for dynamical system prediction due to their mathematical alignment with numerical integration. While they successfully maintain the qualitative "physics" of a system, chaotic divergence remains a significant hurdle for long-term point-to-point accuracy.
Future research will focus on applying these architectures to noisy, real-world data and exploring advanced architectures like Reversible Residual Networks (RevNets), which may offer enhanced stability and accuracy for complex physical modeling.
Summary updated