Skip to main content
QUICK REVIEW

[Paper Review] Temporal Fusion Transformers for Interpretable Multi-horizon Time Series Forecasting

Bryan Lim, Sercan Ö. Arık|arXiv (Cornell University)|Dec 19, 2019
Energy Load and Power ForecastingEngineering83 citations
TL;DR

Introduces the Temporal Fusion Transformer (TFT), an attention-based architecture that jointly achieves high multi-horizon forecasting performance and interpretable insights, handling static covariates, known future inputs, and past-observed inputs with gating and variable selection.

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. 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.

Motivation & Objective

  • Motivate the challenges of multi-horizon forecasting with heterogeneous inputs (static covariates, known future inputs, past observed inputs).
  • Propose TFT to achieve high predictive accuracy while enabling interpretability of temporal dynamics.
  • Showcase interpretability use cases and demonstrate improvements over benchmarks on real-world datasets.
  • Provide a practical, scalable architecture with components for feature selection, gating, and quantile-based prediction intervals.

Proposed method

  • Propose Gated Residual Networks (GRNs) with GLU-based gating to control nonlinear processing.
  • Introduce Variable Selection Networks to select salient static and time-varying inputs at each time step.
  • Use Static Covariate Encoders to inject context from static metadata via context vectors (c_s, c_e, c_c, c_h).
  • Employ an interpretable multi-head attention decoder to model long-term dependencies, with shared value weights for interpretability across heads.
  • Apply a sequence-to-sequence local processing layer to enhance locality, and a Static Enrichment layer to fuse static context with temporal features.
  • Use a Temporal Self-Attention Layer (InterpretableMultiHead) with decoder masking to preserve causality and capture long-range patterns.
  • Produce quantile forecasts (e.g., 10th, 50th, 90th percentiles) via a linear output layer for prediction intervals.
  • Train with quantile loss across horizons and quantiles to optimize P50, P90 performance and uncertainty estimates.

Experimental results

Research questions

  • RQ1How can we design an architecture that handles static covariates, known future inputs, and past-observed inputs effectively for multi-horizon forecasting?
  • RQ2Can attention-based mechanisms provide interpretable insights into temporal dynamics while matching or exceeding state-of-the-art performance?
  • RQ3What architectural components (e.g., gating, variable selection, static encoders) most improve accuracy and interpretability across diverse real-world datasets?
  • RQ4How do TFT's interpretability features assist users in identifying globally important variables, persistent temporal patterns, and significant events?

Key findings

  • TFT achieves significant performance improvements over baselines across several real-world datasets (Electricity, Traffic, Retail, Volatility).
  • The model supports three interpretability use cases: identifying globally-important variables, persistent temporal patterns, and significant events.
  • Quantile forecasting enables prediction intervals (e.g., P50 and P90) for multi-horizon forecasts.
  • Gating and variable selection networks help suppress irrelevant inputs and adapt model complexity to the data.
  • Static covariate encoders effectively condition temporal dynamics, improving both local processing and long-range attention.
  • A sequence-to-sequence local processing layer and an interpretable multi-head attention decoder enable robust learning of short- and long-term dependencies.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.