Home

Awesome

<div align="center">

GLAFF: Robust Time Series Forecasting

preprint Visits Badge Stars Forks

</div>

Rethinking the Power of Timestamps for Robust Time Series Forecasting: A Global-Local Fusion Perspective

Time series forecasting has played a pivotal role across various industries, including finance, transportation, energy, healthcare, and climate. Due to the abundant seasonal information they contain, timestamps possess the potential to offer robust global guidance for forecasting techniques. However, existing works primarily focus on local observations, with timestamps being treated merely as an optional supplement that remains underutilized. When data gathered from the real world is polluted, the absence of global information will damage the robust prediction capability of these algorithms. To address these problems, we propose a novel framework named GLAFF. Within this framework, the timestamps are modeled individually to capture the global dependencies. Working as a plugin, GLAFF adaptively adjusts the combined weights for global and local information, enabling seamless collaboration with any time series forecasting backbone. Extensive experiments conducted on nine real-world datasets demonstrate that GLAFF significantly enhances the average performance of widely used mainstream forecasting models by 12.5%, surpassing the previous state-of-the-art method by 5.5%.

Get Started

  1. Install Python 3.10.13 and PyTorch 2.1.2.

  2. Download datasets and checkpoints from Google Cloud. The datasets have been well pre-processed.

  3. You can readily observe the superiority of GLAF through the checkpoints we provide:

    bash ./test.sh
    
  4. You can also retrain GLAFF independently:

    bash ./run.sh
    

Main Result

We conduct comprehensive experiments on nine real-world benchmark datasets across five domains. The result demonstrates that GLAFF significantly improves the robust prediction capability of mainstream forecasting models.

Note

We revise data processing strategies to prevent future information leakage and conduct validation experiments on two representative datasets. The length of the prediction window is set to 192. The experimental MSE results, presented in the table below, highlight the effectiveness of GLAFF. GLAFF effectively leverages global information represented by timestamps to supplement the limited information provided by local observations. As the history window narrows, the advantages of GLAFF become increasingly pronounced. Notably, our dataset is not exactly the same as the widely adopted version originating from TSLib, as we corrected several inaccurate timestamps. The experiments in our paper can also be reproduced using the older code, although it may pose a risk of information leakage.

MethodHistInformer+ OursDLinear+ OursTimesNet+ OursiTransformer+ Ours
Traffic960.84010.70270.63740.51040.66040.60340.45140.4292
Traffic480.81950.71910.79020.56630.69130.61720.51460.4936
Traffic240.81640.75610.8750.60280.72950.62860.60240.5807
Electricity960.45670.34370.20380.17530.20030.20320.16880.1675
Electricity480.39040.33900.24380.19910.19670.19860.19330.1874
Electricity240.40140.34560.28490.23180.21320.21120.24230.2212

Citation

If you find this repo or our work useful for your research, please consider citing the paper:

@inproceedings{
  author    = {Chengsen Wang and Qi Qi and Jingyu Wang and Haifeng Sun and Zirui Zhuang and Jinming Wu and Jianxin Liao},
  title     = {Rethinking the Power of Timestamps for Robust Time Series Forecasting: A Global-Local Fusion Perspective},
  booktitle = {Thirty-eighth Conference on Neural Information Processing Systems},
  year      = {2024},
}

Contact

If you have any question, please contact cswang@bupt.edu.cn.