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

局部注意力机制:面向长序列时间序列预测的Transformer架构增强方法

Local Attention Mechanism: Boosting the Transformer Architecture for Long-Sequence Time Series Forecasting

Andalusian Institute of Data Science and Computational Intelligence (DaSCI)(安达卢西亚数据科学与计算智能研究所);University of Granada(格拉纳达大学)

Ignacio Aguilera-Martos, Andrés Herrera-Poyatos, Julián Luengo, Francisco Herrera

AI总结:

针对长序列时间序列预测需求,提出时间复杂度为O(nlogn)的局部注意力机制LAM及配套评估数据集,实验证明加入LAM的Transformer性能优于现有最优模型。

摘要:

Transformer已超越其他深度学习架构,成为自然语言处理领域的主流选择。这一趋势也渗透到时间序列分析领域,尤其是在长周期预测任务中,在性能和运行时间上均展现出可观的效果。\n本文提出了一种专为时间序列分析设计的高效注意力机制——局部注意力机制(Local Attention Mechanism,LAM)。该机制利用时间序列的连续性特性,减少了需要计算的注意力得分数量。我们提出了一种基于张量代数的LAM实现算法,其时间和内存复杂度均为O(nlogn),相较于传统注意力机制O(n²)的时间和内存复杂度有显著提升。我们还注意到目前缺乏用于评估长周期预测模型的合适数据集,因此提出了一组全新的数据集,以完善针对长周期预测挑战的模型评估工作。\n实验分析表明,加入LAM的原生Transformer架构性能超过了包括原生注意力机制在内的当前最优模型。这些结果验证了所提方法的有效性,同时也指出了长序列时间序列预测领域未来的一系列挑战。

英文摘要:

Transformers have become the leading choice in natural language processing over other deep learning architectures. This trend has also permeated the field of time series analysis, especially for long-horizon forecasting, showcasing promising results both in performance and running time. In this paper, we introduce Local Attention Mechanism (LAM), an efficient attention mechanism tailored for time series analysis. This mechanism exploits the continuity properties of time series to reduce the number of attention scores computed. We present an algorithm for implementing LAM in tensor algebra that runs in time and memory O(nlogn), significantly improving upon the O(n^2) time and memory complexity of traditional attention mechanisms. We also note the lack of proper datasets to evaluate long-horizon forecast models. Thus, we propose a novel set of datasets to improve the evaluation of models addressing long-horizon forecasting challenges. Our experimental analysis demonstrates that the vanilla transformer architecture magnified with LAM surpasses state-of-the-art models, including the vanilla attention mechanism. These results confirm the effectiveness of our approach and highlight a range of future challenges in long-sequence time series forecasting.

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

↑