Skip to content
/ VE Public

Official implementation of variate embedding: "VE: Modeling Multivariate Time Series Correlation with Variate Embedding".

Notifications You must be signed in to change notification settings

swang-song/VE

Repository files navigation

VE: Modeling Multivariate Time Series Correlation with Variate Embedding

This repository contains the official PyTorch implementation of the VE: VE: Modeling Multivariate Time Series Correlation with Variate Embedding.

Below is an overview of our VE Pipeline architecture:

Alt text

The VE pipeline can be integrated into any model with a channel-independent (CI) final projection layer to improve multivariate forecasting. The learned VE effectively groups variates with similar temporal patterns and separates those with low correlations. This is confirmed in the figure below, where the second image shows the magnitude of the learned complex-value weights of FITS:

Alt text

Alt text

Our VE pipeline is effective for all methods with a CI projection layer. Below are the MSE results of our VE on the ETTh1, ETTh2, ECL, and Weather datasets at prediction lengths $H \in {92, 192}$.

Alt text

Our VE performs best when the multivariate time series data exhibit significant diversity, as demonstrated by the MSE results on the mixed dataset (ETTh1, ETTh2, ECL, and Weather combined) shown below.

Alt text

The VE layer file can be found at layers/VariateEmbedding.py

Getting Started

1. Environment Requirements

To get started, ensure you have PyTorch installed, then set up the environment by running:

pip install -r requirements.txt

For a detailed environment setup used in our experiments, please refer to EnvironmentSetup.md

2. Data Preparation

All four datasets can be obtained from Google Drive provided by Autoformer. Below is the tree structure of the dataset files:

VE Pipeline\dataset
│ .DS_Store
│
├─electricity
│
├─ETT-small
│
└─weather

3. Training Example

1. Multivariate forecasting on each dataset

bash ./scripts/VE/All_VE.sh

2. Multivariate forecasting on mixed dataset

bash ./scripts/VE/Mix/Mix_best.sh

Citation

If you find this repository useful, please cite our paper:

@article{wang2024ve,
  title={VE: Modeling Multivariate Time Series Correlation with Variate Embedding},
  author={Wang, Shangjiong and Man, Zhihong and Cao, Zhenwei and Zheng, Jinchuan and Ge, Zhikang},
  journal={arXiv preprint arXiv:2409.06169},
  year={2024}
}

Contact

If you have any questions or suggestions, feel free to contact:

Acknowledgement

We appreciate the useful code provided by the following GitHub repositories:

https://github.com/VEWOXIC/FITS

https://github.com/cure-lab/LTSF-Linear

https://github.com/thuml/iTransformer

https://github.com/yuqinie98/PatchTST

https://github.com/thuml/Time-Series-Library

About

Official implementation of variate embedding: "VE: Modeling Multivariate Time Series Correlation with Variate Embedding".

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published