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

简易注意力:一种用于Transformer时序预测的简单注意力机制

Easy attention: A simple attention mechanism for temporal predictions with transformers

KTH Royal Institute of Technology(皇家理工学院);Instituto Universitario de Matemática Pura y Aplicada, Universitat Politècnica de València(瓦伦西亚理工大学数学与应用数学研究院);Technical University Munich(慕尼黑技术大学);University of Michigan(密歇根大学)

Marcial Sanchis-Agudo, Yuning Wang, Roger Arnau, Luca Guastoni, Jasmin Lim, Karthik Duraisamy, Ricardo Vinuesa

AI总结:

本文提出简易注意力机制,将注意力分数直接作为可学习参数,在混沌系统时序重建与预测中比自注意力和LSTM更鲁棒且复杂度更低。

摘要:

为了提高用于混沌系统时序动态预测的Transformer神经网络的鲁棒性,我们提出了一种新颖的注意力机制,称为简易注意力(easy attention),并在时间序列重建与预测中进行了演示。虽然标准的自注意力(self attention)仅利用查询(queries)和键(keys)的内积,但研究表明,在获取捕捉时序序列中长期依赖关系所需的注意力分数时,键、查询和softmax并非必要。通过对softmax注意力分数进行奇异值分解(SVD),我们进一步观察到,自注意力在注意力分数张成的空间中压缩了来自查询和键的贡献。因此,我们提出的简易注意力方法直接将注意力分数视为可学习参数。该方法在重建和预测混沌系统的时序动态时取得了优异的结果,相比自注意力或广泛使用的长短期记忆(LSTM)网络,表现出更强的鲁棒性和更低的复杂度。我们展示了简易注意力方法在洛伦兹系统、湍流剪切流和核反应堆模型中的改进性能。

英文摘要:

To improve the robustness of transformer neural networks used for temporal-dynamics prediction of chaotic systems, we propose a novel attention mechanism called easy attention which we demonstrate in time-series reconstruction and prediction. While the standard self attention only makes use of the inner product of queries and keys, it is demonstrated that the keys, queries and softmax are not necessary for obtaining the attention score required to capture long-term dependencies in temporal sequences. Through the singular-value decomposition (SVD) on the softmax attention score, we further observe that self attention compresses the contributions from both queries and keys in the space spanned by the attention score. Therefore, our proposed easy-attention method directly treats the attention scores as learnable parameters. This approach produces excellent results when reconstructing and predicting the temporal dynamics of chaotic systems exhibiting more robustness and less complexity than self attention or the widely-used long short-term memory (LSTM) network. We show the improved performance of the easy-attention method in the Lorenz system, a turbulence shear flow and a model of a nuclear reactor.

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

↑