IDEAS home Printed from https://ideas.repec.org/a/eee/intfor/v37y2021i4p1748-1764.html
   My bibliography  Save this article

Temporal Fusion Transformers for interpretable multi-horizon time series forecasting

Author

Listed:
  • Lim, Bryan
  • Arık, Sercan Ö.
  • Loeff, Nicolas
  • Pfister, Tomas

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.

Suggested Citation

  • Lim, Bryan & Arık, Sercan Ö. & Loeff, Nicolas & Pfister, Tomas, 2021. "Temporal Fusion Transformers for interpretable multi-horizon time series forecasting," International Journal of Forecasting, Elsevier, vol. 37(4), pages 1748-1764.
  • Handle: RePEc:eee:intfor:v:37:y:2021:i:4:p:1748-1764
    DOI: 10.1016/j.ijforecast.2021.03.012
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0169207021000637
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.ijforecast.2021.03.012?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Andrew Ang & Allan Timmermann, 2012. "Regime Changes and Financial Markets," Annual Review of Financial Economics, Annual Reviews, vol. 4(1), pages 313-337, October.
    2. Josue Cox & Daniel L. Greenwald & Sydney C. Ludvigson, 2020. "What Explains the COVID-19 Stock Market?," NBER Working Papers 27784, National Bureau of Economic Research, Inc.
    3. Courty, Pascal & Li, Hao, 1999. "Timing of Seasonal Sales," The Journal of Business, University of Chicago Press, vol. 72(4), pages 545-572, October.
    4. Marcellino, Massimiliano & Stock, James H. & Watson, Mark W., 2006. "A comparison of direct and iterated multistep AR methods for forecasting macroeconomic time series," Journal of Econometrics, Elsevier, vol. 135(1-2), pages 499-526.
    5. Capistrán, Carlos & Constandse, Christian & Ramos-Francia, Manuel, 2010. "Multi-horizon inflation forecasts using disaggregated data," Economic Modelling, Elsevier, vol. 27(3), pages 666-677, May.
    6. Eleftherios Giovanis, 2014. "The Turn-of-the-Month-Effect: Evidence from Periodic Generalized Autoregressive Conditional Heteroskedasticity (PGARCH) Model," International Journal of Business and Economic Sciences Applied Research (IJBESAR), Democritus University of Thrace (DUTH), Kavala Campus, Greece, vol. 7(3), pages 43-61, December.
    7. Scott R. Baker & Nicholas Bloom & Steven J. Davis & Kyle J. Kost & Marco C. Sammon & Tasaneeya Viratyosin, 2020. "The Unprecedented Stock Market Impact of COVID-19," NBER Working Papers 26945, National Bureau of Economic Research, Inc.
    8. Makridakis, Spyros & Spiliotis, Evangelos & Assimakopoulos, Vassilios, 2020. "The M4 Competition: 100,000 time series and 61 forecasting methods," International Journal of Forecasting, Elsevier, vol. 36(1), pages 54-74.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Pablo M. Pincheira & Carlos A. Medel, 2016. "Forecasting with a Random Walk," Czech Journal of Economics and Finance (Finance a uver), Charles University Prague, Faculty of Social Sciences, vol. 66(6), pages 539-564, December.
    2. Ammari, Aymen & Chebbi, Kaouther & Ben Arfa, Nouha, 2023. "How does the COVID-19 pandemic shape the relationship between Twitter sentiment and stock liquidity of US firms?," International Review of Financial Analysis, Elsevier, vol. 88(C).
    3. Foroni, Claudia & Ravazzolo, Francesco & Rossini, Luca, 2023. "Are low frequency macroeconomic variables important for high frequency electricity prices?," Economic Modelling, Elsevier, vol. 120(C).
    4. Dey, Asim K. & Hoque, G.M. Toufiqul & Das, Kumer P. & Panovska, Irina, 2022. "Impacts of COVID-19 local spread and Google search trend on the US stock market," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 589(C).
    5. Zhen Zeng & Rachneet Kaur & Suchetha Siddagangappa & Saba Rahimi & Tucker Balch & Manuela Veloso, 2023. "Financial Time Series Forecasting using CNN and Transformer," Papers 2304.04912, arXiv.org.
    6. Francesco Chincoli & Massimo Guidolin, 2017. "Linear and nonlinear predictability in investment style factors: multivariate evidence," Journal of Asset Management, Palgrave Macmillan, vol. 18(6), pages 476-509, October.
    7. Hasan, Md. Tanvir, 2022. "The sum of all SCARES COVID-19 sentiment and asset return," The Quarterly Review of Economics and Finance, Elsevier, vol. 86(C), pages 332-346.
    8. Petropoulos, Fotios & Apiletti, Daniele & Assimakopoulos, Vassilios & Babai, Mohamed Zied & Barrow, Devon K. & Ben Taieb, Souhaib & Bergmeir, Christoph & Bessa, Ricardo J. & Bijak, Jakub & Boylan, Joh, 2022. "Forecasting: theory and practice," International Journal of Forecasting, Elsevier, vol. 38(3), pages 705-871.
      • Fotios Petropoulos & Daniele Apiletti & Vassilios Assimakopoulos & Mohamed Zied Babai & Devon K. Barrow & Souhaib Ben Taieb & Christoph Bergmeir & Ricardo J. Bessa & Jakub Bijak & John E. Boylan & Jet, 2020. "Forecasting: theory and practice," Papers 2012.03854, arXiv.org, revised Jan 2022.
    9. Li, Zhao-Chen & Xie, Chi & Wang, Gang-Jin & Zhu, You & Zeng, Zhi-Jian & Gong, Jue, 2024. "Forecasting global stock market volatilities: A shrinkage heterogeneous autoregressive (HAR) model with a large cross-market predictor set," International Review of Economics & Finance, Elsevier, vol. 93(PB), pages 673-711.
    10. Su, Zhi & Liu, Peng & Fang, Tong, 2022. "Pandemic-induced fear and stock market returns: Evidence from China," Global Finance Journal, Elsevier, vol. 54(C).
    11. Richard C. K. Burdekin & Samuel Harrison, 2021. "Relative Stock Market Performance during the Coronavirus Pandemic: Virus vs. Policy Effects in 80 Countries," JRFM, MDPI, vol. 14(4), pages 1-18, April.
    12. Bevilacqua, Mattia & Duygun, Meryem & Vioto, Davide, 2023. "The impact of COVID-19 related policy interventions on international systemic risk," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 89(C).
    13. Eric Ghysels & Leonardo Iania & Jonas Striaukas, 2018. "Quantile-based Inflation Risk Models," Working Paper Research 349, National Bank of Belgium.
    14. Carlos Medel, 2017. "Forecasting Chilean inflation with the hybrid new keynesian Phillips curve: globalisation, combination, and accuracy," Journal Economía Chilena (The Chilean Economy), Central Bank of Chile, vol. 20(3), pages 004-050, December.
    15. Galvão, Ana Beatriz, 2013. "Changes in predictive ability with mixed frequency data," International Journal of Forecasting, Elsevier, vol. 29(3), pages 395-410.
    16. Budi Setiawan & Marwa Ben Abdallah & Maria Fekete-Farkas & Robert Jeyakumar Nathan & Zoltan Zeman, 2021. "GARCH (1,1) Models and Analysis of Stock Market Turmoil during COVID-19 Outbreak in an Emerging and Developed Economy," JRFM, MDPI, vol. 14(12), pages 1-19, December.
    17. Davide Pettenuzzo & Francesco Ravazzolo, 2016. "Optimal Portfolio Choice Under Decision‐Based Model Combinations," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 31(7), pages 1312-1332, November.
    18. Miescu, Mirela & Rossi, Raffaele, 2021. "COVID-19-induced shocks and uncertainty," European Economic Review, Elsevier, vol. 139(C).
    19. Eliana González & Luis F. Melo & Viviana Monroy & Brayan Rojas, 2009. "A Dynamic Factor Model For The Colombian Inflation," Borradores de Economia 5273, Banco de la Republica.
    20. Andrea Carriero & Todd E. Clark & Massimiliano Marcellino, 2015. "Realtime nowcasting with a Bayesian mixed frequency model with stochastic volatility," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 178(4), pages 837-862, October.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:intfor:v:37:y:2021:i:4:p:1748-1764. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/locate/ijforecast .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.