arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.13504cs.AIcs.LG
收藏

Transformers对时间序列预测有效吗?

Are Transformers Effective for Time Series Forecasting?

The Chinese University of Hong Kong(香港中文大学);International Digital Economy Academy (IDEA)(国际数字经济研究院(IDEA))

Ailing Zeng, Muxi Chen, Lei Zhang, Qiang Xu

摘要:

最近,针对长期时间序列预测(LTSF)任务的基于Transformer的解决方案激增。尽管在过去的几年里,性能不断提高,但我们质疑这项工作中这条研究路线的有效性。具体来说,Transformers可以说是提取长序列中元素之间语义相关性的最成功的解决方案。然而,在时间序列建模中,我们要提取连续点的有序集合中的时间关系。虽然采用位置编码和使用令牌将子序列嵌入到Transformers中有助于保留一些排序信息,但\emph{permutation-invariant}自注意力机制的性质不可避免地导致时间信息丢失。为了验证我们的主张,我们引入了一组非常简单的一层线性模型,称为LTSF-Linear进行比较。在九个真实数据集上的实验结果表明,LTSF-Linear在所有情况下都出人意料地优于现有的基于Transformer的复杂LTSF模型,并且通常都有很大的优势。此外,我们进行了全面的实证研究,探讨LTSF模型的各种设计元素对它们的时间关系抽取能力的影响。我们希望这一惊人的发现为LTSF任务开辟了新的研究方向。我们还提倡重新审视基于Transformer的解决方案对其他时间序列分析任务的有效性(例如,异常检测)。代码可在:\url{https://github.com/cure-lab/LTSF-Linear} .

英文摘要:

Recently, there has been a surge of Transformer-based solutions for the long-term time series forecasting (LTSF) task. Despite the growing performance over the past few years, we question the validity of this line of research in this work. Specifically, Transformers is arguably the most successful solution to extract the semantic correlations among the elements in a long sequence. However, in time series modeling, we are to extract the temporal relations in an ordered set of continuous points. While employing positional encoding and using tokens to embed sub-series in Transformers facilitate preserving some ordering information, the nature of the \emph{permutation-invariant} self-attention mechanism inevitably results in temporal information loss. To validate our claim, we introduce a set of embarrassingly simple one-layer linear models named LTSF-Linear for comparison. Experimental results on nine real-life datasets show that LTSF-Linear surprisingly outperforms existing sophisticated Transformer-based LTSF models in all cases, and often by a large margin. Moreover, we conduct comprehensive empirical studies to explore the impacts of various design elements of LTSF models on their temporal relation extraction capability. We hope this surprising finding opens up new research directions for the LTSF task. We also advocate revisiting the validity of Transformer-based solutions for other time series analysis tasks (e.g., anomaly detection) in the future. Code is available at: \url{https://github.com/cure-lab/LTSF-Linear}.

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

↑