Learning Augmentation Policies from A Model Zoo for Time Series Forecasting

Haochen Yuan, Xuelin Li, Yunbo Wang, Xiaokang Yang · DOI

TL;DR

This paper introduces ReAugment, a novel data augmentation technique for time series forecasting that uses reinforcement learning (RL) to intelligently select and transform "overfit-prone" data samples. By leveraging a "model zoo" of forecasting models, ReAugment identifies data points that cause high prediction variance across models, then uses RL to generate augmented data that improves generalization, especially in low-data (few-shot) scenarios.

What Problem Does This Paper Address?

Time series forecasting is crucial for many applications, but it's particularly challenging when training data is scarce, as in few-shot learning scenarios. Existing data augmentation methods often rely on fixed transformations or are not "task-oriented," meaning they don't consider how the augmented data actually impacts the downstream forecasting model's performance. This can lead to augmented data that doesn't effectively improve generalization or even introduces noise. The paper aims to bridge this gap by creating a data augmentation strategy that is adaptive, data-dependent, and directly guided by the forecasting model's needs.

Methods

ReAugment employs a three-stage pipeline:

  1. Stage A: Pretraining a Variational Masked Autoencoder (VMAE): A VMAE is trained on the original data to learn a generative model of the time series. This VMAE acts as the backbone for augmentation.
  2. Stage B: Reinforcement Learning for Adaptive Augmentation:
    • Identifying Overfit-Prone Samples: A "model zoo" of forecasting models (e.g., multiple instances of iTransformer trained with k-fold cross-validation) is used. Data points that exhibit high variance in prediction errors across these models are identified as "overfit-prone." These are the anchor points for augmentation.
  3. RL-Guided Augmentation: The VMAE's latent space is treated as the action space in an RL framework. A reward function is designed to encourage augmented samples that increase prediction diversity across the model zoo (indicating better generalization) while staying close to the original data distribution. The REINFORCE algorithm is used to optimize the VMAE's policy network to generate these beneficial augmented samples.
  4. Stage C: Training the Forecasting Model: The forecasting model is trained using both the original data and the newly generated augmented data.

Datasets

The authors evaluated ReAugment on five real-world multivariate time series datasets:

  • ETT: (ETTh1, ETTh2, ETTm1, ETTm2) - Electricity transformer data.
  • Traffic: Road occupancy rates.
  • ECL: Hourly electricity consumption.
  • Weather: Meteorological indicators.
  • Exchange: Daily exchange rates.

They tested in both a "few-shot" setup (10-20% of training data) and a "standard" setup (full training data).

Key Insights and Ideas

  • Overfit-Prone Samples are Valuable Anchors: The core insight is that data points causing high prediction variance across a diverse set of forecasting models are precisely the ones that benefit most from augmentation. These are not necessarily "bad" data points, but rather challenging ones that reveal model weaknesses.
  • Model Zoo for Data-Centric Augmentation: Using a "model zoo" provides a data-dependent way to identify augmentation targets, moving beyond generic augmentation strategies. The variance in predictions across the zoo acts as a signal for where augmentation is most needed.
  • RL for Targeted Data Generation: Reinforcement learning is crucial for adaptively generating new data that specifically addresses the identified weaknesses. The RL reward function ensures that the augmented data is both diverse and relevant to improving forecasting performance.
  • Few-Shot Learning is a Key Beneficiary: The method shows significant improvements in few-shot scenarios, where data scarcity is a major hurdle. This suggests ReAugment can effectively expand the limited training data in a meaningful way.

Key Results

  • Consistent Improvements: ReAugment consistently improved forecasting accuracy (measured by MAE and MSE) across various forecasting models (iTransformer, PatchTST, DLinear) and datasets in both few-shot and standard settings.
  • Few-Shot Performance Boost: In the few-shot setup, ReAugment achieved substantial performance gains, often outperforming other augmentation methods like Gaussian augmentation, Convolve, TimeGAN, and ADA. For example, on ETTm2, ReAugment achieved a 2.75% MAE improvement over the raw data baseline in the few-shot setting.
  • Efficiency: The computational overhead of ReAugment (Stages A and B) was found to be significantly less than the time required to train the forecasting model itself (Stage C).

Limitations and Future Work

  • Reliance on Multiple Pretrained Models: The paper acknowledges that the method's reliance on a model zoo introduces computational overhead due to the need for training multiple forecasting models for variance estimation.
  • Augmenting All Samples vs. Targeted Augmentation: The study found that augmenting the entire few-shot dataset was less effective than the data-dependent approach of targeting overfit-prone samples. Augmenting different percentages of high-variance samples also showed varying degrees of improvement, suggesting there's an optimal balance.
  • Future Work: The authors suggest exploring more sophisticated RL algorithms and investigating how to further reduce the computational cost associated with the model zoo. They also highlight the potential for ReAugment to be integrated with other advanced forecasting architectures.

Summary updated

BibTeX
@misc{yuan2024learning,
  author = {Haochen Yuan and Xuelin Li and Yunbo Wang and Xiaokang Yang},
  title = {{Learning Augmentation Policies from A Model Zoo for Time Series Forecasting}},
  year = {2024},
  eprint = {2409.06282},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.06282},
}
Figure