Temporal Fusion Transformers for Interpretable Multi-horizon Time Series Forecasting

Bryan Lim, Sercan O. Arik, Nicolas Loeff, Tomas Pfister
12/19/2019
3,819 citations
stat.MLcs.LG
transformer-attention

No official code found. Best implementation: PlaytikaOSS/tft-torch (153 stars, Python, MIT, last commit 2024-02-18). 3 more below.

Abstract

Multi-horizon forecasting problems often contain a complex mix of inputs -- including static (i.e. time-invariant) covariates, known future inputs, and other exogenous time series that are only observed historically -- without any prior information on how they interact with the target. While several deep learning models have been proposed for multi-step prediction, they typically comprise black-box models which do not account for the full range of inputs present in common scenarios.

Show full abstract

In this paper, we introduce the Temporal Fusion Transformer (TFT) -- a novel attention-based architecture which combines high-performance multi-horizon forecasting with interpretable insights into temporal dynamics. To learn temporal relationships at different scales, the TFT utilizes recurrent layers for local processing and interpretable self-attention layers for learning long-term dependencies. The TFT also uses specialized components for the judicious selection of relevant features and a series of gating layers to suppress unnecessary components, enabling high performance in a wide range of regimes. On a variety of real-world datasets, we demonstrate significant performance improvements over existing benchmarks, and showcase three practical interpretability use-cases of TFT.

View on arXivView PDF

Code Implementations(4)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
PlaytikaOSS/tft-torchCommunity153PythonMIT2024-02-18
aryan-jadon/Regression-Loss-Functions-in-Time-Series-Forecasting-TensorflowCommunity86Python–2025-02-21
MuralidharB/tft-stocksCommunity14Jupyter NotebookMIT2023-12-25
thomktz/tft-forecastingCommunity5–––
MIT

A Python library that implements ״Temporal Fusion Transformers for Interpretable Multi-horizon Time Series Forecasting״

15326PythonNov 28, 20212 years agoMIT
TensorFlow

This repository contains the implementation of paper Temporal Fusion Transformers for Interpretable Multi-horizon Time Series Forecasting with different loss functions in Tensorflow. We have compared 14 regression loss functions performance on 4 different datasets.

8619PythonSep 21, 20221 years ago
deep-learningforecastingkerasloss-functionsmachine-learning+5 more
MIT

Inference model for stock prediction using Temporal Fusion Transformers for Interpretable Multi-horizon Time Series Forecasting

144Jupyter Notebook, PythonJan 27, 20232 years agoMIT

Temporal Fusion Transformers for Interpretable Multi-horizon Time Series Forecasting

50

Similar Papers

Cite this paper

@article{lim2019temporal,
  title  = {Temporal Fusion Transformers for Interpretable Multi-horizon Time Series Forecasting},
  author = {Bryan Lim and Sercan O. Arik and Nicolas Loeff and Tomas Pfister},
  year   = {2019},
  eprint = {1912.09363},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1912.09363}
}

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

Discussion