OneNet: Enhancing Time Series Forecasting Models under Concept Drift by Online Ensembling

YiFan Zhang, Qingsong Wen, Xue Wang, Weiqi Chen, Liang Sun, Liang Wang, Rong Jin, Tieniu Tan

Abstract

Online time series forecasting faces the significant challenge of concept drift, where the underlying data distribution changes over time, rendering static models obsolete. We present OneNet, a novel framework designed to address this by dynamically ensembling two distinct modeling paradigms: cross-time and cross-variable dependencies. By utilizing a reinforcement learning-based weighting system and online convex programming, OneNet achieves a state-of-the-art reduction in forecasting error, outperforming existing methods by over 50% in Mean Squared Error (MSE).

Introduction

In real-world applications, time series data is rarely stationary. Patterns in energy consumption, weather, and financial markets shift due to external shocks or evolving trends—a phenomenon known as concept drift. Traditional deep learning models for time series are typically trained in a "batch" fashion, assuming that the relationships learned during training will persist during inference. When these models are deployed in online environments where data arrives as a continuous stream, their performance often degrades rapidly as the data distribution evolves.

Existing online forecasting methods generally rely on a single architectural bias. However, the optimal way to model a time series is not fixed. This paper identifies a fundamental tension between two primary modeling approaches:

  1. Cross-Time Models: These treat variables as independent and focus on temporal correlations. While robust to certain types of noise, they ignore potentially vital inter-variable dependencies.
  2. Cross-Variable Models: These explicitly capture the relationships between different variables (e.g., how humidity affects temperature). While powerful, these models are often fragile and prone to overfitting when the relationship between variables shifts.

The OneNet Framework

OneNet addresses the limitations of single-architecture models by maintaining a dynamic ensemble of both cross-time and cross-variable perspectives. The framework consists of three core components: a two-stream forecaster, an Online Convex Programming (OCP) block, and a Reinforcement Learning (RL) module.

Two-Stream Forecasters

OneNet operates two models in parallel. One branch ($f_1$) is configured to prioritize temporal patterns (Cross-Time), while the second branch ($f_2$) is configured to capture dependencies across different variables (Cross-Variable). To ensure that neither model dominates the learning process prematurely, OneNet employs decoupled training, where each forecaster is updated independently based on the incoming data stream.

Online Convex Programming (OCP)

The OCP block serves as the primary mechanism for combining the outputs of the two streams. It utilizes Exponential Gradient Descent (EGD) to maintain and update weights based on the long-term historical performance of each branch. This ensures that the framework converges toward the most reliable model over time.

Overcoming the "Slow Switch" with RL

A common failure mode in online learning is the "slow switch phenomenon," where gradient-based methods take too long to adjust weights after a sudden distribution shift. To provide the necessary agility, OneNet incorporates an Offline RL-based approach using the Reinforcement Learning via Supervised Learning (RvS) framework. This module learns to generate a "short-term weight" or bias term. When a sudden drift is detected, the RL component allows the model to pivot its strategy rapidly, bypassing the lag inherent in traditional convex optimization.

Experimental Evaluation

The researchers evaluated OneNet against several state-of-the-art (SOTA) benchmarks, including FSNet, using four multivariate time series datasets:

  • ETT (Electricity Transformer Temperature): Including ETTh2 and ETTm1 subsets.
  • WTH (Weather): Climate features from 1,600 US locations.
  • ECL (Electricity Consuming Load): A high-dimensional dataset featuring consumption data from 321 clients.

Key Results

OneNet demonstrated significant performance improvements across all benchmarks:

  • Error Reduction: Compared to the previous SOTA (FSNet), OneNet reduced the average MSE by 53.1% and MAE by 34.5%.
  • Scalability: On the complex ECL dataset, OneNet achieved a 59.2% reduction in MSE, highlighting its effectiveness in high-dimensional scenarios.
  • Efficiency: The authors also introduced OneNet-, a lightweight variant. Despite a reduced parameter count, OneNet- still significantly outperformed previous full-scale SOTA models, making it suitable for resource-constrained environments.

Discussion and Insights

The success of OneNet provides several key insights into the nature of time series forecasting:

  • Dynamic Bias: The "best" model architecture is not static. The paper proves that the optimal assumption (variable independence vs. dependency) changes as the data stream evolves.
  • Regularization through Independence: Treating variables independently (the Cross-Time approach) acts as a powerful stabilizer during periods of high volatility or drift, explaining the unexpected robustness of simpler models in complex environments.
  • Agility is Essential: The integration of RL to mitigate the "slow switch" suggests that future online learning research should focus on hybridizing long-term optimization with short-term adaptive mechanisms.

Conclusion and Future Work

OneNet represents a significant step forward in making deep learning models viable for non-stationary, online environments. While the framework introduces some computational overhead by running dual streams, its massive gains in accuracy justify the cost for critical applications. Future research may explore more adaptive normalization techniques to further enhance distribution alignment and the integration of additional "expert" models into the ensemble framework.

Summary updated

BibTeX
@inproceedings{zhang2023onenet,
  author = {YiFan Zhang and Qingsong Wen and Xue Wang and Weiqi Chen and Liang Sun and Zhang Zhang and Liang Wang and Rong Jin and Tieniu Tan},
  title = {{OneNet: Enhancing Time Series Forecasting Models under Concept Drift by Online Ensembling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=Q25wMXsaeZ},
}
Figure