arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.14730cs.LGcs.AI
收藏

一个时间序列值64个词:用Transformers进行长期预测

A Time Series is Worth 64 Words: Long-term Forecasting with Transformers

Princeton University(普林斯顿大学);IBM Research(IBM研究院)

Yuqi Nie, Nam H. Nguyen, Phanwadee Sinthong, Jayant Kalagnanam

摘要:

我们提出了一个有效的设计基于transformer的多变量时间序列预测和自我监督表示学习模型。它基于两个关键组件:(i)将时间序列分割成子序列级补丁,这些补丁用作Transformer的输入令牌;(ii)通道独立性,其中每个通道包含单个单变量时间序列,该序列在所有序列中共享相同的嵌入和Transformer权重。补丁设计自然有三重好处:本地语义信息保留在嵌入;在相同的回看窗口下,注意力地图的计算和内存使用量二次减少;模型可以参加更长的历史。我们的通道独立补丁时间序列Transformer(PatchTST)可以提高长期的预测精度显着相比,SOTA Transformer为基础的模型。我们还将我们的模型应用于自我监督的预训练任务,并获得了出色的微调性能,在大型数据集上优于监督训练。将一个数据集上的掩码预训练表示转移到其他数据集上也会产生SOTA预测准确性。代码可从以下网址获得:https://github.com/yuqinie98/PatchTST。

英文摘要:

We propose an efficient design of Transformer-based models for multivariate time series forecasting and self-supervised representation learning. It is based on two key components: (i) segmentation of time series into subseries-level patches which are served as input tokens to Transformer; (ii) channel-independence where each channel contains a single univariate time series that shares the same embedding and Transformer weights across all the series. Patching design naturally has three-fold benefit: local semantic information is retained in the embedding; computation and memory usage of the attention maps are quadratically reduced given the same look-back window; and the model can attend longer history. Our channel-independent patch time series Transformer (PatchTST) can improve the long-term forecasting accuracy significantly when compared with that of SOTA Transformer-based models. We also apply our model to self-supervised pre-training tasks and attain excellent fine-tuning performance, which outperforms supervised training on large datasets. Transferring of masked pre-trained representation on one dataset to others also produces SOTA forecasting accuracy. Code is available at: https://github.com/yuqinie98/PatchTST.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑