Temporal Saliency Detection Towards Explainable Transformer-based Timeseries Forecasting

Nghia Duong-Trung, Duc-Manh Nguyen, Danh Le-Phuoc
12/15/2022
cs.LG
transformer-attention

Official code: duongtrung/time-series-temporal-saliency-patterns (15 stars, Python, last commit 2023-07-25).

Abstract

Despite the notable advancements in numerous Transformer-based models, the task of long multi-horizon time series forecasting remains a persistent challenge, especially towards explainability. Focusing on commonly used saliency maps in explaining DNN in general, our quest is to build attention-based architecture that can automatically encode saliency-related temporal patterns by establishing connections with appropriate attention heads.

Show full abstract

Hence, this paper introduces Temporal Saliency Detection (TSD), an effective approach that builds upon the attention mechanism and applies it to multi-horizon time series prediction. While our proposed architecture adheres to the general encoder-decoder structure, it undergoes a significant renovation in the encoder component, wherein we incorporate a series of information contracting and expanding blocks inspired by the U-Net style architecture. The TSD approach facilitates the multiresolution analysis of saliency patterns by condensing multi-heads, thereby progressively enhancing the forecasting of complex time series data. Empirical evaluations illustrate the superiority of our proposed approach compared to other models across multiple standard benchmark datasets in diverse far-horizon forecasting settings. The initial TSD achieves substantial relative improvements of 31% and 46% over several models in the context of multivariate and univariate prediction. We believe the comprehensive investigations presented in this study will offer valuable insights and benefits to future research endeavors.

View on arXivView PDF

Code Implementations(1)

154PythonDec 15, 20223 years ago

Similar Papers

Cite this paper

@article{duongtrung2022temporal,
  title  = {Temporal Saliency Detection Towards Explainable Transformer-based Timeseries Forecasting},
  author = {Nghia Duong-Trung and Duc-Manh Nguyen and Danh Le-Phuoc},
  year   = {2022},
  eprint = {2212.07771},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.07771}
}

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

Discussion