Preprint
Large Language Models

Temporal Fusion Transformers for interpretable multi-horizon time series forecasting

Bryan Y. Lim(University of Oxford), Sercan Ö. Arık(Google (United States)), Nicolas Loeff(Google (United States)), Tomas Pfister(Google (United States))
June 16, 2021International Journal of Forecasting3,589 citations

3.6k

Citations

302

Influential Citations

International Journal of Forecasting

Venue

2021

Year

Abstract

Multi-horizon forecasting often contains a complex mix of inputs – including static (i.e. time-invariant) covariates, known future inputs, and other exogenous time series that are only observed in the past – without any prior information on how they interact with the target. Several deep learning methods have been proposed, but they are typically ‘black-box’ models that do not shed light on how they use the full range of inputs present in practical scenarios. In this paper, we introduce the Temporal Fusion Transformer (TFT) – a novel attention-based architecture that combines high-performance multi-horizon forecasting with interpretable insights into temporal dynamics. To learn temporal relationships at different scales, TFT uses recurrent layers for local processing and interpretable self-attention layers for long-term dependencies. TFT utilizes specialized components to select relevant features and a series of gating layers to suppress unnecessary components, enabling high performance in a wide range of scenarios. On a variety of real-world datasets, we demonstrate significant performance improvements over existing benchmarks, and highlight three practical interpretability use cases of TFT.

Analysis

Why This Paper Matters

Multi-horizon time series forecasting is a critical task in many domains, from finance to energy management. Traditional deep learning models often operate as black boxes, providing little insight into how they use the complex mix of inputs—static covariates, known future inputs, and past-only exogenous series—that are common in practice. This lack of interpretability hinders trust and adoption in high-stakes decision-making. The Temporal Fusion Transformer (TFT) addresses this by combining high forecasting performance with interpretable insights into temporal dynamics, making it a significant contribution to both the forecasting and interpretability literature.

The paper's importance is further amplified by its practical relevance. By handling heterogeneous input types and providing interpretability, TFT bridges the gap between advanced deep learning and real-world forecasting needs. Its attention-based architecture allows for the identification of important features and time steps, enabling users to understand and validate model behavior. This is particularly valuable in fields where decisions have significant consequences, such as healthcare and finance.

Moreover, TFT's design incorporates specialized components for feature selection and gating, which enhance performance by suppressing unnecessary components. This thoughtful architecture demonstrates that interpretability need not come at the cost of accuracy, a common trade-off in machine learning. The paper's impact is reflected in its high citation count and adoption in various applied settings.

Technical Contributions

  • Attention-based architecture: TFT uses interpretable self-attention layers to capture long-term dependencies, combined with recurrent layers for local processing, enabling multi-scale temporal modeling.
  • Handling heterogeneous inputs: The model explicitly accommodates static covariates, known future inputs, and observed exogenous time series, making it suitable for practical forecasting scenarios.
  • Feature selection and gating: Specialized components select relevant features at each time step, and gating layers suppress unnecessary components, improving both performance and interpretability.
  • Interpretability use cases: The paper highlights three practical interpretability use cases, demonstrating how TFT can provide insights into temporal dynamics and feature importance.

Results

The abstract reports significant performance improvements over existing benchmarks on a variety of real-world datasets. While specific metrics are not detailed in the abstract, the paper demonstrates that TFT outperforms competing methods, likely in terms of standard forecasting metrics such as quantile loss. The interpretability use cases further showcase the model's ability to provide actionable insights, which is a key differentiator from black-box models.

Significance

TFT represents a significant step forward in interpretable time series forecasting. By making deep learning models more transparent without sacrificing accuracy, it enables practitioners to trust and deploy these models in critical applications. The architecture's flexibility in handling diverse input types and its attention-based interpretability have influenced subsequent research and practical implementations. As time series data becomes increasingly prevalent, models like TFT that combine performance with interpretability will be essential for responsible AI deployment.