Preserving Dynamic Attention for Long-Term Spatial-Temporal Prediction

Haoxing Lin, Rufan Bai, Weijia Jia, Xinyu Yang, Yongjian You
6/16/2020
cs.IRcs.LG
transformer-attention

Official code: haoxingl/DSAN (20 stars, Python, GPL-3.0, last commit 2021-08-25).

Abstract

Effective long-term predictions have been increasingly demanded in urban-wise data mining systems. Many practical applications, such as accident prevention and resource pre-allocation, require an extended period for preparation.

Show full abstract

However, challenges come as long-term prediction is highly error-sensitive, which becomes more critical when predicting urban-wise phenomena with complicated and dynamic spatial-temporal correlation. Specifically, since the amount of valuable correlation is limited, enormous irrelevant features introduce noises that trigger increased prediction errors. Besides, after each time step, the errors can traverse through the correlations and reach the spatial-temporal positions in every future prediction, leading to significant error propagation. To address these issues, we propose a Dynamic Switch-Attention Network (DSAN) with a novel Multi-Space Attention (MSA) mechanism that measures the correlations between inputs and outputs explicitly. To filter out irrelevant noises and alleviate the error propagation, DSAN dynamically extracts valuable information by applying self-attention over the noisy input and bridges each output directly to the purified inputs via implementing a switch-attention mechanism. Through extensive experiments on two spatial-temporal prediction tasks, we demonstrate the superior advantage of DSAN in both short-term and long-term predictions.

View on arXivView PDF

Code Implementations(1)

haoxingl/DSANOfficial100%
GPL-3.0

Dynamic Switch-Attention Network

209PythonOct 31, 20195 years agoGPL-3.0

Similar Papers

Cite this paper

@article{lin2020preserving,
  title  = {Preserving Dynamic Attention for Long-Term Spatial-Temporal Prediction},
  author = {Haoxing Lin and Rufan Bai and Weijia Jia and Xinyu Yang and Yongjian You},
  year   = {2020},
  eprint = {2006.08849},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.08849}
}

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

Discussion