[Paper Review] Enhancing Continuous Time Series Modelling with a Latent ODE-LSTM Approach
This paper proposes a novel Latent ODE-LSTM model that replaces the ODE-RNN encoder in Latent ODE-RNN with an ODE-LSTM architecture to better handle long-term dependencies in continuous time series with irregular sampling. By integrating norm gradient clipping, the model effectively mitigates vanishing and exploding gradients, demonstrating superior reconstruction and extrapolation performance on synthetic and real-world time series compared to baseline models.
Due to their dynamic properties such as irregular sampling rate and high-frequency sampling, Continuous Time Series (CTS) are found in many applications. Since CTS with irregular sampling rate are difficult to model with standard Recurrent Neural Networks (RNNs), RNNs have been generalised to have continuous-time hidden dynamics defined by a Neural Ordinary Differential Equation (Neural ODE), leading to the ODE-RNN model. Another approach that provides a better modelling is that of the Latent ODE model, which constructs a continuous-time model where a latent state is defined at all times. The Latent ODE model uses a standard RNN as the encoder and a Neural ODE as the decoder. However, since the RNN encoder leads to difficulties with missing data and ill-defined latent variables, a Latent ODE-RNN model has recently been proposed that uses a ODE-RNN model as the encoder instead. Both the Latent ODE and Latent ODE-RNN models are difficult to train due to the vanishing and exploding gradients problem. To overcome this problem, the main contribution of this paper is to propose and illustrate a new model based on a new Latent ODE using an ODE-LSTM (Long Short-Term Memory) network as an encoder -- the Latent ODE-LSTM model. To limit the growth of the gradients the Norm Gradient Clipping strategy was embedded on the Latent ODE-LSTM model. The performance evaluation of the new Latent ODE-LSTM (with and without Norm Gradient Clipping) for modelling CTS with regular and irregular sampling rates is then demonstrated. Numerical experiments show that the new Latent ODE-LSTM performs better than Latent ODE-RNNs and can avoid the vanishing and exploding gradients during training.
Motivation & Objective
- To address the vanishing and exploding gradient problems in Latent ODE-RNN when modeling continuous time series with irregular sampling.
- To improve long-term sequence modeling by replacing the RNN encoder with an ODE-LSTM architecture that better preserves temporal dependencies.
- To enhance training stability and performance through the integration of norm gradient clipping in the latent space optimization.
- To evaluate the new architecture on synthetic and real-world time series with varying sampling patterns and sequence lengths.
Proposed method
- Proposes a Variational Autoencoder framework with an ODE-LSTM encoder, where hidden state transitions are governed by a neural ODE.
- Uses a Neural ODE as the decoder to model continuous-time dynamics in the latent space.
- Applies norm gradient clipping to control gradient growth during backpropagation, preventing exploding gradients.
- Employs a continuous-time variational inference approach to learn a latent trajectory that supports forward and backward time extrapolation.
- Trains the model using stochastic backpropagation with reparameterization, optimizing the variational lower bound (ELBO).
- Uses numerical solvers (e.g., Dopri5) to integrate the ODEs in both encoder and decoder, enabling end-to-end training on irregularly sampled data.

Experimental results
Research questions
- RQ1Can replacing the ODE-RNN encoder with an ODE-LSTM encoder improve performance on long-term continuous time series with irregular sampling?
- RQ2Does the integration of norm gradient clipping effectively prevent gradient explosion in the Latent ODE-LSTM architecture?
- RQ3How does the Latent ODE-LSTM model compare to Latent ODE-RNN in reconstructing and extrapolating synthetic time series with increasing sparsity?
- RQ4What is the performance of the Latent ODE-LSTM on real-world time series with both regular and irregular sampling intervals?
- RQ5Does the model maintain robustness and generalization across different sequence lengths and data characteristics?
Key findings
- The Latent ODE-LSTM model outperforms the Latent ODE-RNN baseline in reconstructing bidirectional spiral dynamics, especially under sparser sampling conditions.
- Latent ODE-LSTM+gradient clipping achieves the best backward and forward extrapolation performance on synthetic spirals, maintaining accuracy even at t < 0 and t > 0.
- On the DJIA stock price dataset, the Latent ODE-LSTM model achieves lower mean squared error (MSE) than Latent ODE-RNN when trained on long sequences (N=365), with MSE of 0.232 ± 0.046 compared to 0.245 ± 0.012.
- For short-term predictions (7-day horizon), the Latent ODE-RNN slightly outperforms the Latent ODE-LSTM (0.025 ± 0.002 vs. 0.044 ± 0.005 MSE), indicating a trade-off in short vs. long-term performance.
- The model with norm gradient clipping (Latent ODE-LSTM+GC) shows stable training and avoids gradient explosion, as evidenced by consistent performance across all sequence lengths and datasets.
- The numerical experiments confirm that the ODE-LSTM encoder effectively mitigates the vanishing gradient problem, enabling better learning of long-term dependencies in time series.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.