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

利用二维信息进行基于朴素 Transformer 的长期时间序列预测

Leveraging 2D Information for Long-term Time Series Forecasting with Vanilla Transformers

Renmin University of China(中国人民大学);Microsoft(微软公司);Peking University(北京大学);KAUST(阿卜杜拉国王科技大学)

Xin Cheng, Xiuying Chen, Shuqi Li, Di Luo, Xun Wang, Dongyan Zhao, Rui Yan

AI总结:

GridTST基于朴素Transformer,通过网格化时间序列并采用水平与垂直多方向注意力,同时捕捉时间与变量相关性,实现长期预测的最先进性能。

摘要:

时间序列预测对于理解并预测从金融、经济到气候、医疗等各个领域的复杂动态至关重要。基于Transformer架构,一种方法是将同一时间戳的多个变量编码为单个时间令牌,以建模全局依赖关系。相反,另一种方法将各个序列的时间点嵌入到单独的变量令牌中。前者在学习以变量为中心的表示方面面临挑战,而后者则可能遗漏对准确预测至关重要的时间信息。在我们的工作中,我们引入了GridTST,一种基于朴素Transformer的模型,通过创新的多方向注意力机制结合了两种方法的优点。我们将输入时间序列数据视为一个网格,其中x轴表示时间步,y轴表示变量。对该网格的垂直切片将每个时间步的变量组合成时间令牌,而水平切片则将所有时间步的各个序列嵌入为变量令牌。相应地,水平注意力机制聚焦于时间令牌以理解不同时间步数据之间的相关性,而垂直的、变量感知的注意力则用于捕捉多变量相关性。这种结合使得信息在时间和变量维度上都能得到高效处理,从而增强了模型的分析能力。我们还集成了分块技术,将时间令牌分割为子序列级的分块,确保局部语义信息保留在嵌入中。GridTST模型在各种真实世界数据集上持续实现了最先进的性能。

英文摘要:

Time series prediction is crucial for understanding and forecasting complex dynamics in various domains, ranging from finance and economics to climate and healthcare. Based on Transformer architecture, one approach involves encoding multiple variables from the same timestamp into a single temporal token to model global dependencies. In contrast, another approach embeds the time points of individual series into separate variate tokens. The former method faces challenges in learning variate-centric representations, while the latter risks missing essential temporal information critical for accurate forecasting. In our work, we introduce GridTST, a model that combines the benefits of two approaches using innovative multi-directional attentions based on a vanilla Transformer. We regard the input time series data as a grid, where the $x$-axis represents the time steps and the $y$-axis represents the variates. A vertical slicing of this grid combines the variates at each time step into a \textit{time token}, while a horizontal slicing embeds the individual series across all time steps into a \textit{variate token}. Correspondingly, a \textit{horizontal attention mechanism} focuses on time tokens to comprehend the correlations between data at various time steps, while a \textit{vertical}, variate-aware \textit{attention} is employed to grasp multivariate correlations. This combination enables efficient processing of information across both time and variate dimensions, thereby enhancing the model's analytical strength. % We also integrate the patch technique, segmenting time tokens into subseries-level patches, ensuring that local semantic information is retained in the embedding. The GridTST model consistently delivers state-of-the-art performance across various real-world datasets.

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

↑