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

Marcial Sanchis-Agudo, Yuning Wang, Roger Arnau, Luca Guastoni, Jasmin Lim +2 more
8/24/2023
cs.LG
transformer-attention

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sanchisagudo2023easy,
  title  = {Easy attention: A simple attention mechanism for temporal predictions with transformers},
  author = {Marcial Sanchis-Agudo and Yuning Wang and Roger Arnau and Luca Guastoni and Jasmin Lim and Karthik Duraisamy and Ricardo Vinuesa},
  year   = {2023},
  eprint = {2308.12874},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.12874v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.12874.svg)](https://codeofpaper.com/paper/2308.12874)

Discussion