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

用于多元时间序列的 Transformer 中的相关注意力

Correlated Attention in Transformers for Multivariate Time Series

Massachusetts Institute of Technology(麻省理工学院);IBM Research(IBM研究院);MIT-IBM Watson AI Lab(麻省理工学院-IBM沃森人工智能实验室);Thomas J. Watson Research Center(托马斯·J·沃森研究中心)

Quang Minh Nguyen, Lam M. Nguyen, Subhro Das

AI总结:

针对Transformer自注意力无法有效捕捉多元时间序列特征间复杂互相关性的问题,提出相关注意力机制,通过跨通道计算互协方差矩阵以捕捉瞬时与滞后相关性,在插补、异常检测和分类任务上实现最先进性能。

摘要:

多元时间序列(MTS)分析在金融、气候科学和医疗保健等现实应用中普遍存在。作为当前最先进的基于 Transformer 的模型的骨干,各种自注意力机制能高效发现时间依赖性,却无法很好地捕捉 MTS 数据不同特征之间复杂的互相关性,这种相关性在实践中本质上源于复杂动力系统。为此,我们提出了一种新颖的相关注意力机制,它不仅能高效捕捉特征级依赖,还可无缝集成到现有著名 Transformer 的编码器块中以提高效率。具体而言,相关注意力跨特征通道操作,计算具有不同滞后值的查询和键之间的互协方差矩阵,并在子序列级别选择性聚合表示。该架构促进了瞬时和滞后互相关性的自动发现与表示学习,同时本质上捕捉时间序列自相关性。与主流 Transformer 基准结合时,相关注意力机制构成了纯编码器架构的更优替代方案,适用于插补、异常检测和分类等广泛任务。在上述任务上的大量实验一致突显了相关注意力机制在增强基础 Transformer 模型方面的优势,并展示了我们在插补、异常检测和分类上的最先进结果。

英文摘要:

Multivariate time series (MTS) analysis prevails in real-world applications such as finance, climate science and healthcare. The various self-attention mechanisms, the backbone of the state-of-the-art Transformer-based models, efficiently discover the temporal dependencies, yet cannot well capture the intricate cross-correlation between different features of MTS data, which inherently stems from complex dynamical systems in practice. To this end, we propose a novel correlated attention mechanism, which not only efficiently captures feature-wise dependencies, but can also be seamlessly integrated within the encoder blocks of existing well-known Transformers to gain efficiency improvement. In particular, correlated attention operates across feature channels to compute cross-covariance matrices between queries and keys with different lag values, and selectively aggregate representations at the sub-series level. This architecture facilitates automated discovery and representation learning of not only instantaneous but also lagged cross-correlations, while inherently capturing time series auto-correlation. When combined with prevalent Transformer baselines, correlated attention mechanism constitutes a better alternative for encoder-only architectures, which are suitable for a wide range of tasks including imputation, anomaly detection and classification. Extensive experiments on the aforementioned tasks consistently underscore the advantages of correlated attention mechanism in enhancing base Transformer models, and demonstrate our state-of-the-art results in imputation, anomaly detection and classification.

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

↑