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. 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.
    4. 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.
    5. 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), International Hellenic University (IHU), Kavala Campus, Greece (formerly Eastern Macedonia and Thrace Institute of Technology - EMaTTech), vol. 7(3), pages 43-61, December.
    6. Courty, Pascal & Li, Hao, 1999. "Timing of Seasonal Sales," The Journal of Business, University of Chicago Press, vol. 72(4), pages 545-572, October.
    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. 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).
    3. 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.
    4. 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.
    5. 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.
    6. 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).
    7. Foroni, Claudia & Ravazzolo, Francesco & Rossini, Luca, 2023. "Are low frequency macroeconomic variables important for high frequency electricity prices?," Economic Modelling, Elsevier, vol. 120(C).
    8. 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.
    9. Su, Zhi & Liu, Peng & Fang, Tong, 2022. "Pandemic-induced fear and stock market returns: Evidence from China," Global Finance Journal, Elsevier, vol. 54(C).
    10. 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.
    11. 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.
    12. Miescu, Mirela & Rossi, Raffaele, 2021. "COVID-19-induced shocks and uncertainty," European Economic Review, Elsevier, vol. 139(C).
    13. 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.
    14. Akhtaruzzaman, Md & Boubaker, Sabri & Sensoy, Ahmet, 2021. "Financial contagion during COVID–19 crisis," Finance Research Letters, Elsevier, vol. 38(C).
    15. Bansal, Ravi & Miller, Shane & Song, Dongho & Yaron, Amir, 2021. "The term structure of equity risk premia," Journal of Financial Economics, Elsevier, vol. 142(3), pages 1209-1228.
    16. Radosław Puka & Bartosz Łamasz & Marek Michalski, 2021. "Using Artificial Neural Networks to Support the Decision-Making Process of Buying Call Options Considering Risk Appetite," Energies, MDPI, vol. 14(24), pages 1-24, December.
    17. Michael W. McCracken & Michael T. Owyang & Tatevik Sekhposyan, 2021. "Real-Time Forecasting and Scenario Analysis Using a Large Mixed-Frequency Bayesian VAR," International Journal of Central Banking, International Journal of Central Banking, vol. 17(71), pages 1-41, December.
    18. Philippe Goulet Coulombe & Maxime Leroux & Dalibor Stevanovic & Stéphane Surprenant, 2022. "How is machine learning useful for macroeconomic forecasting?," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 37(5), pages 920-964, August.
    19. Milad Nozari, 2021. "Information content of the risk-free rate for the pricing kernel bound," Journal of Asset Management, Palgrave Macmillan, vol. 22(4), pages 267-276, July.
    20. Ayoub Ammy-Driss & Matthieu Garcin, 2021. "Efficiency of the financial markets during the COVID-19 crisis: time-varying parameters of fractional stable dynamics," Working Papers hal-02903655, HAL.

    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.