Giter Site home page Giter Site logo

elaina1111 / channel_independent_mtsf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hanlu-nju/channel_independent_mtsf

0.0 0.0 0.0 660 KB

Official code for "The Capacity and Robustness Trade-off: Revisiting the Channel Independent Strategy for Multivariate Time Series Forecasting"

License: MIT License

Shell 37.71% Python 62.29%

channel_independent_mtsf's Introduction

The Capacity and Robustness Trade-off: Revisiting the Channel Independent Strategy for Multivariate Time Series Forecasting

The code repository for "The Capacity and Robustness Trade-off: Revisiting the Channel Independent Strategy for Multivariate Time Series Forecasting" in PyTorch. If you use any content of this repo for your work, please cite the following bib entry:

@article{han2023capacity,
  author       = {Lu Han and
                  Han{-}Jia Ye and
                  De{-}Chuan Zhan},
  title        = {The Capacity and Robustness Trade-off: Revisiting the Channel Independent
                  Strategy for Multivariate Time Series Forecasting},
  journal      = {CoRR},
  volume       = {abs/2304.05206},
  year         = {2023}
}

Abstract

Multivariate time series data comprises various channels of variables. The multivariate forecasting models need to capture the relationship between the channels to accurately predict future values. However, recently, there has been an emergence of methods that employ the Channel Independent (CI) strategy. These methods view multivariate time series data as separate univariate time series and disregard the correlation between channels. Surprisingly, our empirical results have shown that models trained with the CI strategy outperform those trained with the Channel Dependent (CD) strategy, usually by a significant margin. Nevertheless, the reasons behind this phenomenon have not yet been thoroughly explored in the literature. This paper provides comprehensive empirical and theoretical analyses of the characteristics of multivariate time series datasets and the CI/CD strategy. Our results conclude that the CD approach has higher capacity but often lacks robustness to accurately predict distributionally drifted time series. In contrast, the CI approach trades capacity for robust prediction. Practical measures inspired by these analyses are proposed to address the capacity and robustness dilemma, including a modified CD method called Predict Residuals with Regularization (PRReg) that can surpass the CI strategy. We hope our findings can raise awareness among researchers about the characteristics of multivariate time series and inspire the construction of better forecasting models.

The Channel Dependent (CD) and Channel Independent (CI) Strategy:

Performance comparison:

Prerequisites

  • matplotlib==3.5.1
  • numpy==1.23.4
  • pandas==1.2.3
  • torch==1.11.0
  • tqdm==4.62.3
  • xgboost==1.7.4

Datasets

We refer to this repository for downloading datasets.

Scripts

Results in Table.2

To reproduce the Channel Dependent (CD) results in Table.2. Run the script files under folder scripts/performance/channel_dependent. For example run Transformer (CD) by

sh scripts/performance/channel_dependent/Transformer.sh

To reproduce the Channel Independent (CI) results in Table.2. Run the script files under folder scripts/performance/channel_independent. For example run Transformer (CI) by

sh scripts/performance/channel_independent/Transformer.sh

Results of Figure.9

Run the script file under folder scripts/low_rank.

sh scripts/low_rank/Transformer.sh

Results of PRReg

To reproduce the PRReg results in Table.4. Run the script files under folder scripts/prreg. For example run Transformer (PRReg) by

sh scripts/prreg/Transformer.sh

Results of Table.5

Run the script files under folder scripts/loss:

sh scripts/loss/Transformer_mae_mse.sh

Acknowledgement

We appreciate the following github repos a lot for their valuable code base or datasets:

https://github.com/zhouhaoyi/Informer2020

https://github.com/thuml/Autoformer

https://github.com/Daniela-Shereen/GBRT-for-TSF

https://github.com/unit8co/darts

https://github.com/zhouhaoyi/ETDataset

https://github.com/laiguokun/multivariate-time-series-data

channel_independent_mtsf's People

Contributors

hanlu-nju avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.