ODEStream: A Buffer-Free Online Learning Framework with ODE-based Adaptor for Streaming Time Series Forecasting

Futoon M. Abushaqra, Hao Xue, Yongli Ren, Flora D. Salim

Abstract

Streaming time series forecasting faces significant challenges from temporal irregularity and concept drift. Traditional continual learning methods rely on memory-intensive replay buffers to mitigate forgetting, which often struggle with rapid distribution shifts. We present ODEStream, a novel buffer-free framework that leverages Neural Ordinary Differential Equations (ODEs) and a temporal isolation layer. By modeling the continuous dynamics of latent representations rather than storing raw samples, ODEStream achieves superior accuracy and efficiency in real-time forecasting tasks.

Introduction

In domains such as IoT monitoring, financial trading, and power grid management, data arrives as a continuous stream. Two primary obstacles hinder effective forecasting in these environments: temporal irregularity (unevenly spaced timestamps) and concept drift (evolving underlying data patterns).

Conventional approaches often utilize "replay buffers" to store historical data, which are not only memory-intensive but also prone to "historical bias," where outdated patterns interfere with the model's ability to adapt to new trends. ODEStream addresses these issues by shifting the focus from sample preservation to dynamics modeling. It treats time as a continuum, making it inherently better at handling irregular data compared to traditional discrete-time RNNs or Transformers.

Methodology

The ODEStream framework is structured into two main phases: an offline model warm-up and an online streaming adaptation.

1. Model Warm-up (Offline)

During the initial phase, the model is trained on historical sequence data using a Variational Autoencoder (VAE) integrated with a Neural ODE. An RNN-based encoder maps input sequences into a latent space defined by mean ($\mu$) and variance ($\sigma$). Instead of a static latent representation, a Neural ODE solver (using the Euler method) is employed to model the continuous evolution of these latent states over time. This allows the model to capture the underlying "flow" or derivative of the data distribution.

2. Online Learning (Streaming)

Once deployed, ODEStream operates in a buffer-free loop, adapting to incoming streaming signals in real-time. This phase utilizes two parallel components:

  • Dynamics Adaptive Network: This component reloads pre-trained ODE weights to track the evolving latent dynamics of the stream. It updates parameters at each time step to align with the current data distribution.
  • Temporal Isolation Layer: An LSTM-based component that functions as a dynamic window. It focuses exclusively on the most recent temporal patterns, effectively isolating them from broader latent dynamics to prevent the model from being anchored by obsolete historical data.
Architecture of the ODEStream framework, illustrating the offline pre-training and online streaming adaptation phases.

The model is optimized using a composite loss function that balances Mean Squared Error (MSE) for prediction accuracy, KL divergence for distribution alignment, and L1 regularization for model simplicity.

Key Insights and Results

ODEStream was evaluated against state-of-the-art baselines (e.g., FSNet, Experience Replay) on real-world benchmarks including Electricity Consumption Load (ECL), Electricity Transformer Temperature (ETT), and Weather (WTH) datasets.

  • Dynamics over Samples: The core innovation is shifting the focus from preserving historical samples to learning evolving dynamics. By modeling the rate of change via Neural ODEs, the model understands the "flow" of the data rather than just memorizing snapshots.
  • The Power of Isolation: The Temporal Isolation Layer proved crucial; ablation studies showed this layer alone improved performance by over 50%. It allows the model to "forget" obsolete patterns naturally by isolating recent temporal features.
  • Superior Accuracy and Efficiency: ODEStream consistently outperformed baselines, particularly in univariate and multivariate-to-univariate tasks. Remarkably, it required 88% less execution time on average compared to the FSNet baseline.
  • Robustness to Sparsity and Drift: When tested on irregular data (30% missing points), ODEStream maintained stable performance. Furthermore, using the ADWIN detection method, the authors demonstrated that ODEStream's MSE stays low and even decreases over time as it learns, whereas baseline models often see their error explode during concept drift.

Conclusion

ODEStream represents a significant advancement in online time series forecasting by replacing memory-heavy replay buffers with continuous-time dynamics modeling. The combination of Neural ODEs and a temporal isolation layer provides a robust solution for handling irregular timestamps and adapting to concept drift. While the model currently requires an offline warm-up phase, future work will explore extending this framework to task-incremental learning scenarios and further refining its performance in complex multivariate-to-multivariate forecasting.

Summary updated

BibTeX
@article{abushaqra2025odestream,
  author = {Futoon M. Abushaqra and Hao Xue and Yongli Ren and Flora D. Salim},
  title = {{ODEStream: A Buffer-Free Online Learning Framework with ODE-based Adaptor for Streaming Time Series Forecasting}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2025},
  url = {https://openreview.net/forum?id=qYio4ejXLG},
}
Figure