Time Series Forecasting with Transformer Models and Application to Asset Management

44 Pages Posted: 7 Mar 2023

See all articles by Edmond Lezmi

Edmond Lezmi

affiliation not provided to SSRN

Jiali Xu

Amundi Asset Management

Date Written: February 2023

Abstract

Since its introduction in 2017 (Vaswani et al., 2017), the Transformer model has excelled in a wide range of tasks involving natural language processing and computer vision. We investigate the Transformer model to address an important sequence learning problem in finance: time series forecasting. The underlying idea is to use the attention mechanism and the seq2seq architecture in the Transformer model to capture long-range dependencies and interactions across assets and perform multi-step time series forecasting in finance. The first part of this article systematically reviews the Transformer model while highlighting its strengths and limitations. In particular, we focus on the attention mechanism and the seq2seq architecture, which are at the core of the Transformer model. Inspired by the concept of weak learners in ensemble learning, we identify the diversification benefit of generating a collection of low-complexity models with simple structures and fewer features. The second part is dedicated to two financial applications. First, we consider the construction of trend-following strategies. Specifically, we use the encoder part of the Transformer model to construct a binary classification model to predict the sign of an asset’s future returns. The second application is the multi-period portfolio optimization problem, particularly volatility forecasting. In addition, our paper discusses the issues and considerations when using machine learning models in finance.

Keywords: Machine Learning, Transformer Model, Attention Mechanism, Seq2Seq Architecture, Time Series Forecasting, Quantitative Asset Management, Backtesting, Trading Strategy, Multi-Period Optimization

JEL Classification: C45, C53, G11

Suggested Citation

Lezmi, Edmond and Xu, Jiali, Time Series Forecasting with Transformer Models and Application to Asset Management (February 2023). Available at SSRN: https://ssrn.com/abstract=4375798 or http://dx.doi.org/10.2139/ssrn.4375798

Edmond Lezmi

affiliation not provided to SSRN

Jiali Xu (Contact Author)

Amundi Asset Management ( email )

90 Boulevard Pasteur
Paris, 75015
France

Do you have a job opening that you would like to promote on SSRN?

Paper statistics

Downloads
3,381
Abstract Views
14,707
Rank
8,718
PlumX Metrics