Fourier-Mixed Window Attention: Accelerating Informer for Long Sequence Time-Series Forecasting

Nhat Thanh Tran, Jack Xin
7/2/2023
cs.LGcs.AI

Official code: nhatthanhtran/FWin2023 (6 stars, Apache-2.0, PyTorch, last commit 2023-10-30).

Abstract

We study a fast local-global window-based attention method to accelerate Informer for long sequence time-series forecasting. While window attention being local is a considerable computational saving, it lacks the ability to capture global token information which is compensated by a subsequent Fourier transform block. Our method, named FWin, does not rely on query sparsity hypothesis and an empirical approximation underlying the ProbSparse attention of Informer. Through experiments on univariate and multivariate datasets, we show that FWin transformers improve the overall prediction accuracies of Informer while accelerating its inference speeds by 1.6 to 2 times. We also provide a mathematical definition of FWin attention, and prove that it is equivalent to the canonical full attention under the block diagonal invertibility (BDI) condition of the attention matrix. The BDI is shown experimentally to hold with high probability for typical benchmark datasets.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

GitHub repository for the FWin paper.

61Shell, PythonJun 30, 20232 years agoApache-2.0
deep-learningforecastingpytorchself-attentiontime-series+1 more

Similar Papers

Cite this paper

@article{tran2023fouriermixed,
  title  = {Fourier-Mixed Window Attention: Accelerating Informer for Long Sequence Time-Series Forecasting},
  author = {Nhat Thanh Tran and Jack Xin},
  year   = {2023},
  eprint = {2307.00493},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.00493v3}
}

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/2307.00493.svg)](https://codeofpaper.com/paper/2307.00493)

Discussion