IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2112.08534.html
   My bibliography  Save this paper

Trading with the Momentum Transformer: An Intelligent and Interpretable Architecture

Author

Listed:
  • Kieran Wood
  • Sven Giegerich
  • Stephen Roberts
  • Stefan Zohren

Abstract

We introduce the Momentum Transformer, an attention-based deep-learning architecture, which outperforms benchmark time-series momentum and mean-reversion trading strategies. Unlike state-of-the-art Long Short-Term Memory (LSTM) architectures, which are sequential in nature and tailored to local processing, an attention mechanism provides our architecture with a direct connection to all previous time-steps. Our architecture, an attention-LSTM hybrid, enables us to learn longer-term dependencies, improves performance when considering returns net of transaction costs and naturally adapts to new market regimes, such as during the SARS-CoV-2 crisis. Via the introduction of multiple attention heads, we can capture concurrent regimes, or temporal dynamics, which are occurring at different timescales. The Momentum Transformer is inherently interpretable, providing us with greater insights into our deep-learning momentum trading strategy, including the importance of different factors over time and the past time-steps which are of the greatest significance to the model.

Suggested Citation

  • Kieran Wood & Sven Giegerich & Stephen Roberts & Stefan Zohren, 2021. "Trading with the Momentum Transformer: An Intelligent and Interpretable Architecture," Papers 2112.08534, arXiv.org, revised Nov 2022.
  • Handle: RePEc:arx:papers:2112.08534
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2112.08534
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Daniel Poh & Bryan Lim & Stefan Zohren & Stephen Roberts, 2021. "Enhancing Cross-Sectional Currency Strategies by Context-Aware Learning to Rank with Self-Attention," Papers 2105.10019, arXiv.org, revised Jan 2022.
    2. De Bondt, Werner F M & Thaler, Richard, 1985. "Does the Stock Market Overreact?," Journal of Finance, American Finance Association, vol. 40(3), pages 793-805, July.
    3. William F. Sharpe, 1964. "Capital Asset Prices: A Theory Of Market Equilibrium Under Conditions Of Risk," Journal of Finance, American Finance Association, vol. 19(3), pages 425-442, September.
    4. Kim, Abby Y. & Tse, Yiuman & Wald, John K., 2016. "Time series momentum and volatility scaling," Journal of Financial Markets, Elsevier, vol. 30(C), pages 103-124.
    5. Justin Sirignano & Rama Cont, 2019. "Universal features of price formation in financial markets: perspectives from deep learning," Quantitative Finance, Taylor & Francis Journals, vol. 19(9), pages 1449-1459, September.
    6. Jegadeesh, Narasimhan, 1991. "Seasonality in Stock Price Mean Reversion: Evidence from the U.S. and the U.K," Journal of Finance, American Finance Association, vol. 46(4), pages 1427-1444, September.
    7. Y. Lemp'eri`ere & C. Deremble & P. Seager & M. Potters & J. P. Bouchaud, 2014. "Two centuries of trend following," Papers 1404.3274, arXiv.org.
    8. Graham Bornholt, 2013. "The Failure of the Capital Asset Pricing Model ( CAPM ): An Update and Discussion," Abacus, Accounting Foundation, University of Sydney, vol. 49, pages 36-43, January.
    9. Poterba, James M. & Summers, Lawrence H., 1988. "Mean reversion in stock prices : Evidence and Implications," Journal of Financial Economics, Elsevier, vol. 22(1), pages 27-59, October.
    10. Jegadeesh, Narasimhan & Titman, Sheridan, 1993. "Returns to Buying Winners and Selling Losers: Implications for Stock Market Efficiency," Journal of Finance, American Finance Association, vol. 48(1), pages 65-91, March.
    11. Kieran Wood & Stephen Roberts & Stefan Zohren, 2021. "Slow Momentum with Fast Reversion: A Trading Strategy Using Deep Learning and Changepoint Detection," Papers 2105.13727, arXiv.org, revised Dec 2021.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Xingyue Pu & Stephen Roberts & Xiaowen Dong & Stefan Zohren, 2023. "Network Momentum across Asset Classes," Papers 2308.11294, arXiv.org.
    2. Xingyue Pu & Stefan Zohren & Stephen Roberts & Xiaowen Dong, 2023. "Learning to Learn Financial Networks for Optimising Momentum Strategies," Papers 2308.12212, arXiv.org.
    3. Joel Ong & Dorien Herremans, 2023. "Constructing Time-Series Momentum Portfolios with Deep Multi-Task Learning," Papers 2306.13661, arXiv.org.

    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. Kieran Wood & Stephen Roberts & Stefan Zohren, 2021. "Slow Momentum with Fast Reversion: A Trading Strategy Using Deep Learning and Changepoint Detection," Papers 2105.13727, arXiv.org, revised Dec 2021.
    2. Adam Zaremba & Jacob Koby Shemer, 2018. "Price-Based Investment Strategies," Springer Books, Springer, number 978-3-319-91530-2, September.
    3. Spierdijk, Laura & Bikker, Jacob A. & van den Hoek, Pieter, 2012. "Mean reversion in international stock markets: An empirical analysis of the 20th century," Journal of International Money and Finance, Elsevier, vol. 31(2), pages 228-249.
    4. Sonntag, Dominik, 2018. "Die Theorie der fairen geometrischen Rendite [The Theory of Fair Geometric Returns]," MPRA Paper 87082, University Library of Munich, Germany.
    5. Fernando Rubio, 2005. "Eficiencia De Mercado, Administracion De Carteras De Fondos Y Behavioural Finance," Finance 0503028, University Library of Munich, Germany, revised 23 Jul 2005.
    6. Achim BACKHAUS & Aliya ZHAKANOVA ISIKSAL, 2016. "The Impact of Momentum Factors on Multi Asset Portfolio," Journal for Economic Forecasting, Institute for Economic Forecasting, vol. 0(4), pages 146-169, December.
    7. Giner, Javier & Zakamulin, Valeriy, 2023. "A regime-switching model of stock returns with momentum and mean reversion," Economic Modelling, Elsevier, vol. 122(C).
    8. Eero Pätäri & Timo Leivo, 2017. "A Closer Look At Value Premium: Literature Review And Synthesis," Journal of Economic Surveys, Wiley Blackwell, vol. 31(1), pages 79-168, February.
    9. Kobana Abukari & Isaac Otchere, 2020. "Dominance of hybrid contratum strategies over momentum and contrarian strategies: half a century of evidence," Financial Markets and Portfolio Management, Springer;Swiss Society for Financial Market Research, vol. 34(4), pages 471-505, December.
    10. Alexander S. Sangare, 2005. "Efficience des marchés : un siècle après Bachelier," Revue d'Économie Financière, Programme National Persée, vol. 81(4), pages 107-132.
    11. Zura Kakushadze, 2014. "4-Factor Model for Overnight Returns," Papers 1410.5513, arXiv.org, revised Jun 2015.
    12. Semenov, Andrei, 2021. "Measuring the stock's factor beta and identifying risk factors under market inefficiency," The Quarterly Review of Economics and Finance, Elsevier, vol. 80(C), pages 635-649.
    13. Linnenluecke, Martina K. & Chen, Xiaoyan & Ling, Xin & Smith, Tom & Zhu, Yushu, 2017. "Research in finance: A review of influential publications and a research agenda," Pacific-Basin Finance Journal, Elsevier, vol. 43(C), pages 188-199.
    14. Tien Foo Sing & Kim Hiang Liow & Wei‐Jin Chan, 2002. "Mean reversion of Singapore property stock prices towards their fundamental values," Journal of Property Investment & Finance, Emerald Group Publishing Limited, vol. 20(4), pages 374-387, August.
    15. Bianchi, Robert J. & Drew, Michael E. & Fan, John Hua, 2016. "Commodities momentum: A behavioral perspective," Journal of Banking & Finance, Elsevier, vol. 72(C), pages 133-150.
    16. Kentaro Imajo & Kentaro Minami & Katsuya Ito & Kei Nakagawa, 2020. "Deep Portfolio Optimization via Distributional Prediction of Residual Factors," Papers 2012.07245, arXiv.org.
    17. Israel, Ronen & Moskowitz, Tobias J., 2013. "The role of shorting, firm size, and time on market anomalies," Journal of Financial Economics, Elsevier, vol. 108(2), pages 275-301.
    18. Doran, James & Jiang, Danling & Peterson, David, 2007. "Short-Sale Constraints and the Non-January Idiosyncratic Volatility Puzzle," MPRA Paper 4995, University Library of Munich, Germany.
    19. Gerlich, Nikolas & Rostek, Stefan, 2015. "Estimating serial correlation and self-similarity in financial time series—A diversification approach with applications to high frequency data," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 434(C), pages 84-98.
    20. Boudt, Kris & Raza, Muhammad Wajid & Wauters, Marjan, 2019. "Evaluating the Shariah-compliance of equity portfolios: The weighting method matters," International Review of Financial Analysis, Elsevier, vol. 63(C), pages 406-417.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    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:arx:papers:2112.08534. 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: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    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.