Batch Training for Streaming Time Series: A Transferable Augmentation Framework to Combat Distribution Shifts

Weiyang Zhang, Xinyang Chen, Yu Sun, Weili Guan, Liqiang NieTMLR 2025

Abstract

Multivariate time series forecasting is essential for modern data analysis, yet real-world streaming data presents significant challenges due to continuous distribution shifts. Traditional online forecasting methods often rely on single-sample updates, which are susceptible to noise and outliers. This paper introduces Batch Training with Transferable Online Augmentation (BTOA), a framework designed to bring the stability of batch training to streaming environments. BTOA utilizes three core components: Transferable Historical Sample Selection (THSS) to identify relevant past data, Transferable Online Augmentation (TOA) to generate diverse training samples in the frequency domain, and a specialized prediction module. Experimental results across seven benchmark datasets show that BTOA reduces Mean Squared Error (MSE) by up to 13.7% compared to state-of-the-art methods.

Introduction

In many practical applications, such as electricity grid management or traffic monitoring, time series data arrives incrementally. This streaming nature introduces two primary hurdles. First, distribution shifts occur as underlying patterns change over time, rendering static models obsolete. Second, the "single-sample" trap in online learning—where models update based on the most recent individual data point—often leads to poor generalization due to noise. While batch training offers more stable learning, it is difficult to implement online without a pool of relevant, labeled data. BTOA bridges this gap by enabling robust batch training through intelligent sample selection and augmentation.

The BTOA Framework

The BTOA framework is composed of three main pillars designed to enhance model performance while enabling stable batch training in a streaming context.

The BTOA framework architecture, featuring the THSS, TOA, and Prediction blocks.

1. Transferable Historical Sample Selection (THSS)

To leverage historical information effectively, BTOA uses a pre-trained Variational Autoencoder (VAE) to map the current test sample and historical samples into a latent space. By selecting historical samples that are semantically most similar to the current distribution—rather than just the most recent ones—the model can "remember" relevant past experiences more effectively.

2. Transferable Online Augmentation (TOA)

To facilitate batch training, the model requires more data than what is immediately available. TOA generates synthetic versions of selected historical samples in the frequency domain using Fast Fourier Transforms (FFT). By separately mixing the amplitude and phase of the current sample with historical ones, TOA avoids the frequency distortion common in time-domain averaging, preserving the physical characteristics of the signal.

3. Series Decomposition Prediction

The final prediction module utilizes a series decomposition module to split the augmented batch into "trend" and "seasonal" components. Two separate forecasters then process these components to capture complex, hierarchical patterns in the time series data.

Experimental Results

The framework was evaluated on seven popular real-world benchmark datasets, including ETT (Electricity Transformer Temperature), Weather, ECL (Electricity Consumption Load), and Traffic.

Performance comparison of BTOA against state-of-the-art models across seven benchmark datasets.

As shown in the performance table, BTOA consistently achieves superior accuracy across all datasets and metrics. Key findings include:

  • Significant MSE Reduction: BTOA reduced MSE by up to 13.7% compared to previous state-of-the-art (SOTA) methods like Proceed and OneNet.
  • Robustness to Shifts: Visualization of loss curves indicates that BTOA handles distribution shifts with smaller error spikes and faster recovery times than competing models.
  • Generality: BTOA is a plug-and-play approach that can be integrated into existing deep learning backbones (e.g., TCN or iTransformer) to boost their online performance.

Key Insights and Discussion

  • Frequency Domain Advantages: Traditional data augmentation often destroys the periodic nature of time series. By performing augmentation on amplitude and phase separately, BTOA provides diverse training examples while maintaining signal integrity.
  • Latent Space Similarity: The use of VAEs as semantic filters proves more effective than simple chronological memory, allowing the model to retrieve past data that is truly relevant to the current context.
  • Batching vs. Streaming: The results suggest that training on a small, high-quality batch of augmented data is significantly more robust than updating on a single, potentially noisy data point.

Conclusion

BTOA addresses the critical challenges of distribution shifts and noise in streaming time series forecasting. By combining intelligent historical sample selection with frequency-domain augmentation, it enables stable and accurate batch training in real-time environments. While it relies on a pre-trained VAE, its generality and superior performance make it a powerful tool for modern time series analysis.

Summary updated

BibTeX
@article{zhang2025batch,
  author = {Weiyang Zhang and Xinyang Chen and Yu Sun and Weili Guan and Liqiang Nie},
  title = {{Batch Training for Streaming Time Series: A Transferable Augmentation Framework to Combat Distribution Shifts}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=Ht7rlkRCHq},
}
Figure