Abstract
In dynamical systems reconstruction (DSR) we aim to recover the dynamical system (DS) underlying observed time series. Specifically, we aim to learn a generative surrogate model which approximates the underlying, data-generating DS, and recreates its long-term properties ('climate statistics'). In scientific and medical areas, in particular, these models need to be mechanistically tractable -- through their mathematical analysis we would like to obtain insight into the recovered system's workings. Piecewise-linear (PL), ReLU-based RNNs (PLRNNs) have a strong track-record in this regard, representing SOTA DSR models while allowing mathematical insight by virtue of their PL design. However, all current PLRNN variants are discrete-time maps. This is in disaccord with the assumed continuous-time nature of most physical and biological processes, and makes it hard to accommodate data arriving at irregular temporal intervals. Neural ODEs are one solution, but they do not reach the DSR performance of PLRNNs and often lack their tractability. Here we develop theory for continuous-time PLRNNs (cPLRNNs): We present a novel algorithm for training and simulating such models, bypassing numerical integration by efficiently exploiting their PL structure. We further demonstrate how important topological objects like equilibria or limit cycles can be determined semi-analytically in trained models. We compare cPLRNNs to both their discrete-time cousins as well as Neural ODEs on DSR benchmarks, including systems with discontinuities which come with hard thresholds.
Introduction
Dynamical Systems Reconstruction (DSR) involves observing time-series data and reverse-engineering the mathematical rules that generated it. For scientific utility, these models must be interpretable, allowing researchers to analyze underlying mechanisms rather than treating them as black boxes.
Piecewise-linear RNNs (PLRNNs) are currently state-of-the-art for DSR due to their mathematical tractability. However, existing PLRNNs are discrete-time models, assuming perfectly spaced time bins. This limitation conflicts with the continuous nature of physical processes and complicates the handling of irregularly sampled data. While Neural ODEs offer a continuous-time alternative, they rely on computationally expensive numerical integration and often lack the transparency of PLRNNs. This work introduces continuous-time PLRNNs (cPLRNNs), which retain mathematical tractability while eliminating the need for traditional numerical ODE solvers.
Methods
The cPLRNN is formulated as a continuous-time differential equation. The primary innovation is the method for solving this equation during training and inference:
- Bypassing Numerical Integration: ReLU activations divide the state space into subregions where dynamics are strictly linear. The authors derive an exact analytical solution (a sum of exponentials) for trajectories within these regions.
- Interval Root-Finding: Instead of numerical stepping, the algorithm calculates the exact trajectory and uses an interval Newton method to find the "switching time" when a trajectory hits a ReLU boundary. It then updates parameters and continues analytically in the next region.
- Topological Analysis: The piecewise-linear structure allows for semi-analytical location of fixed points (equilibria) and limit cycles (periodic orbits) directly from the model weights.
Results and Discussion
The cPLRNN was evaluated against Neural ODEs and discrete PLRNNs on several benchmarks, including the Lorenz-63 chaotic system and the Leaky Integrate-and-Fire (LIF) neuron model.
Performance and Robustness
- Speed: Training the cPLRNN is significantly faster than Neural ODEs. On Lorenz-63, cPLRNNs trained in 21–36 seconds, whereas Neural ODEs required 144–178 seconds using advanced solvers.
- Irregular Data: On the LIF dataset with irregular sampling, discrete PLRNNs failed, while the cPLRNN maintained high performance.
- Discontinuities: The cPLRNN handles sharp transitions (like neuron spikes) gracefully. In contrast, Neural ODEs using simple Euler solvers diverged in 40% of trials on the stiff LIF dataset.
Topological Insights
A key advantage of the cPLRNN is its ability to infer the underlying "rules" of a system. It can identify fixed points and limit cycles even in regions not explicitly visited by the training data.
Conclusion
The cPLRNN offers a powerful framework for continuous-time DSR, combining the speed and accuracy of analytical solutions with the interpretability of piecewise-linear models. While numerical instabilities can occasionally arise from ill-conditioned eigen-decompositions, the model's ability to handle irregular data and provide semi-analytical topological insights makes it a significant advancement over both discrete PLRNNs and standard Neural ODEs. Future work will focus on improving numerical robustness and scaling the boundary-switching algorithm for larger models.
Summary updated