Home

Awesome

:triangular_flag_on_post: The complete code and scripts of TimesNet have been included in [Time-Series-Library].

:triangular_flag_on_post: The complete code and scripts of TimesNet have been included in [Time-Series-Library].

:triangular_flag_on_post: The complete code and scripts of TimesNet have been included in [Time-Series-Library].

TimesNet: Temporal 2D-Variation Modeling for General Time Series Analysis [ICLR 2023]

<p align="center"> <img src=".\pic\overall.png" height = "300" alt="" align=center /> </p>

In this paper, we present TimesNet as a powerful foundation model for general time series analysis, which can

Temporal 1D-Variation vs. 2D-Variation

Temporal variation modeling is the common key problem of extensive analysis tasks. Previous methods attempt to accomplish this directly from the 1D time series, which is extremely challenging due to the intricate temporal patterns. Based on the observation of multi-periodicity in time series, we present the TimesNet to transform the origianl 1D-timeseries into 2D Space, which can unfiy the intraperiod- and interperiod-variations.

<p align="center"> <img src=".\pic\timesnet.png" height = "300" alt="" align=center /> </p>

General Representation Learning Capacity

To demonstrate the model capacity in representation learning, we calculate the CKA similarity between representations from the bottom and top layer of each model. A smaller CKA similarity means that the representations of bottom and top layer are more distinct, indicating the hierarchical representations. From this representation analysis, We find that:

Benefiting from 2D kernel design, TimesNet (marked by red stars) can learn appropriate representations for different tasks, demonstrating its task generality as a foundation model.

<p align="center"> <img src=".\pic\representation.png" height = "200" alt="" align=center /> </p>

Leaderboard for Time Series Analysis

In this paper, we also provide a comprehensive benchmark to evaluate different backbones. More than 15 advanced baselines are compared. Till February 2023, the top three models for five different tasks are:

Model<br>RankingLong-term<br>ForecastingShort-term<br>ForecastingImputationClassificationAnomaly<br>Detection
🥇 1stTimesNetTimesNetTimesNetTimesNetTimesNet
🥈 2ndDLinearNon-stationary<br/>TransformerNon-stationary<br/>TransformerNon-stationary<br/>TransformerFEDformer
🥉 3rdNon-stationary<br>TransformerFEDformerAutoformerInformerAutoformer

See our paper for the comprehensive benchmark.

Citation

If you find this repo useful, please cite our paper.

@inproceedings{wu2023timesnet,
  title={TimesNet: Temporal 2D-Variation Modeling for General Time Series Analysis},
  author={Haixu Wu and Tengge Hu and Yong Liu and Hang Zhou and Jianmin Wang and Mingsheng Long},
  booktitle={International Conference on Learning Representations},
  year={2023},
}

Contact

If you have any questions, please contact wuhx23@mails.tsinghua.edu.cn.

Acknowledgement

We appreciate the following github repos for their valuable codebase: