Continuous-Time Piecewise-Linear Recurrent Neural Networks
Organizations: Dept. of Theoretical Neuroscience, Central Institute of Mental Health (CIMH), Mannheim, Germany · Faculty of Physics and Astronomy, Heidelberg University · Hector Institute for Artificial Intelligence in Psychiatry, CIMH · Faculty of Mathematics and Computer Science, Heidelberg University ·
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.
Figures & tables
| Model | Prediction time | ||
|---|---|---|---|
| Neural ODE (Euler) † | |||
| Neural ODE (RK4) | |||
| Neural ODE (Tsit5) | |||
| cPLRNN | |||
| standard PLRNN | |||
| SINDy |
| Model | |||
|---|---|---|---|
| Neural ODE (Euler) | |||
| Neural ODE (RK4) | |||
| Neural ODE (Tsit5) | |||
| cPLRNN | |||
| standard PLRNN |
| System | Regularly sampled | Irregulary sampled | ||||
|---|---|---|---|---|---|---|
| Model | MAE | MAE | ||||
| Neural ODE (Euler) † | ||||||
| Neural ODE (RK4) | ||||||
| Neural ODE (Tsit5) | ||||||
| cPLRNN | ||||||
| standard PLRNN | ||||||
| Model | MAE | ||
|---|---|---|---|
| Neural ODE (RK4) † | |||
| Neural ODE (Tsit5) | |||
| cPLRNN | |||
| standard PLRNN † | |||
| SINDy | |||
| Neural CDE |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Experiment | |||||
| Hyperparameter | Lorenz-63 | LIF regular | LIF irregular | Membrane potential | |
| continuous | standard | ||||
| Latent dimension | 20 | 25 | 25 | 25 | 25 |
| PL units | [2, 5, 10] | 2 | 2 | 2 | 6 |
| Start learning rate | |||||
| Teacher forcing interval | 16 | 25 | 3 | 25 | 25 |
| Hyperparameter | Neural ODE | cPLRNN | standard PLRNN |
|---|---|---|---|
| Optimizer | RAdam | RAdam | RAdam |
| Batch size | 16 | 16 | 16 |
| Batches per epoch | 50 | 50 | 50 |
| Epochs | 2000 | 2000 | 2000 |
| End learning rate | |||
| Gradient clipping norm | 0.0 | 10.0 | 0.0 |
| Model | 10% LIF | 20% LIF | Izhikevich | 10% LIF | 20% LIF | Izhikevich |
|---|---|---|---|---|---|---|
| cPLRNN | ||||||
| standard PLRNN | ||||||
| Measure | Neural ODE (Euler) | Neural ODE (RK) | Neural ODE (Tsit5) | cPLRNN | standard PLRNN |
|---|---|---|---|---|---|
| MSE (test) |
| Model | ||||||
|---|---|---|---|---|---|---|
| Neural ODE (Euler) † | ||||||
| Neural ODE (RK4) | ||||||
| Neural ODE (Tsit5) | ||||||
| cPLRNN | ||||||
| standard PLRNN | ||||||
Recurrent Neural Networks
Recurrent neural networks process sequences by updating a persistent hidden state, enabling temporal modeling, memory, and streaming computation.
See all 302 papers