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

Few-Shot Learning Patterns in Financial Time-Series for Trend-Following Strategies

Author

Listed:
  • Kieran Wood
  • Samuel Kessler
  • Stephen J. Roberts
  • Stefan Zohren

Abstract

Forecasting models for systematic trading strategies do not adapt quickly when financial market conditions rapidly change, as was seen in the advent of the COVID-19 pandemic in 2020, causing many forecasting models to take loss-making positions. To deal with such situations, we propose a novel time-series trend-following forecaster that can quickly adapt to new market conditions, referred to as regimes. We leverage recent developments from the deep learning community and use few-shot learning. We propose the Cross Attentive Time-Series Trend Network -- X-Trend -- which takes positions attending over a context set of financial time-series regimes. X-Trend transfers trends from similar patterns in the context set to make forecasts, then subsequently takes positions for a new distinct target regime. By quickly adapting to new financial regimes, X-Trend increases Sharpe ratio by 18.9% over a neural forecaster and 10-fold over a conventional Time-series Momentum strategy during the turbulent market period from 2018 to 2023. Our strategy recovers twice as quickly from the COVID-19 drawdown compared to the neural-forecaster. X-Trend can also take zero-shot positions on novel unseen financial assets obtaining a 5-fold Sharpe ratio increase versus a neural time-series trend forecaster over the same period. Furthermore, the cross-attention mechanism allows us to interpret the relationship between forecasts and patterns in the context set.

Suggested Citation

  • Kieran Wood & Samuel Kessler & Stephen J. Roberts & Stefan Zohren, 2023. "Few-Shot Learning Patterns in Financial Time-Series for Trend-Following Strategies," Papers 2310.10500, arXiv.org, revised Mar 2024.
  • Handle: RePEc:arx:papers:2310.10500
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Dimitri Vayanos & Paul Woolley, 2013. "An Institutional Theory of Momentum and Reversal," The Review of Financial Studies, Society for Financial Studies, vol. 26(5), pages 1087-1145.
    2. Xingyue Pu & Stephen Roberts & Xiaowen Dong & Stefan Zohren, 2023. "Network Momentum across Asset Classes," Papers 2308.11294, arXiv.org.
    3. Justin Sirignano & Rama Cont, 2018. "Universal features of price formation in financial markets: perspectives from Deep Learning," Papers 1803.06917, arXiv.org.
    4. Justin Sirignano & Rama Cont, 2018. "Universal features of price formation in financial markets: perspectives from Deep Learning," Working Papers hal-01754054, HAL.
    5. 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.
    6. Magnus Wiese & Robert Knobloch & Ralf Korn & Peter Kretschmer, 2020. "Quant GANs: deep generation of financial time series," Quantitative Finance, Taylor & Francis Journals, vol. 20(9), pages 1419-1440, September.
    7. 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.
    8. Gregory W Brown & Philip Howard & Christian T Lundblad, 2022. "Crowded Trades and Tail Risk," The Review of Financial Studies, Society for Financial Studies, vol. 35(7), pages 3231-3271.
    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. 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. Bryan Lim & Stefan Zohren & Stephen Roberts, 2019. "Enhancing Time Series Momentum Strategies Using Deep Neural Networks," Papers 1904.04912, arXiv.org, revised Sep 2020.
    3. Ivan Peñaloza & Pablo Padilla, 2022. "A Pricing Method in a Constrained Market with Differential Informational Frameworks," Computational Economics, Springer;Society for Computational Economics, vol. 60(3), pages 1055-1100, October.
    4. Sihvonen, Markus, 2021. "Yield curve momentum," Research Discussion Papers 15/2021, Bank of Finland.
    5. Ymir Makinen & Juho Kanniainen & Moncef Gabbouj & Alexandros Iosifidis, 2018. "Forecasting of Jump Arrivals in Stock Prices: New Attention-based Network Architecture using Limit Order Book Data," Papers 1810.10845, arXiv.org.
    6. Zihao Zhang & Stefan Zohren & Stephen Roberts, 2018. "DeepLOB: Deep Convolutional Neural Networks for Limit Order Books," Papers 1808.03668, arXiv.org, revised Jan 2020.
    7. Ian Martin, 2021. "On the Autocorrelation of the Stock Market [X-CAPM: An Extrapolative Capital Asset Pricing Model]," Journal of Financial Econometrics, Oxford University Press, vol. 19(1), pages 39-52.
    8. Goulding, Christian L. & Harvey, Campbell R. & Mazzoleni, Michele G., 2023. "Momentum turning points," Journal of Financial Economics, Elsevier, vol. 149(3), pages 378-406.
    9. Albuquerque, Rui & Miao, Jianjun, 2014. "Advance information and asset prices," Journal of Economic Theory, Elsevier, vol. 149(C), pages 236-275.
    10. Eduard Silantyev, 2019. "Order flow analysis of cryptocurrency markets," Digital Finance, Springer, vol. 1(1), pages 191-218, November.
    11. Christa Cuchiero & Wahid Khosrawi & Josef Teichmann, 2020. "A Generative Adversarial Network Approach to Calibration of Local Stochastic Volatility Models," Risks, MDPI, vol. 8(4), pages 1-31, September.
    12. Omer Berat Sezer & Mehmet Ugur Gudelek & Ahmet Murat Ozbayoglu, 2019. "Financial Time Series Forecasting with Deep Learning : A Systematic Literature Review: 2005-2019," Papers 1911.13288, arXiv.org.
    13. Takuya Shintate & Lukáš Pichl, 2019. "Trend Prediction Classification for High Frequency Bitcoin Time Series with Deep Learning," JRFM, MDPI, vol. 12(1), pages 1-15, January.
    14. Qi Zhao, 2020. "A Deep Learning Framework for Predicting Digital Asset Price Movement from Trade-by-trade Data," Papers 2010.07404, arXiv.org.
    15. Baptiste Barreau & Laurent Carlier & Damien Challet, 2019. "Deep Prediction of Investor Interest: a Supervised Clustering Approach," Papers 1909.05289, arXiv.org, revised Feb 2021.
    16. Paul Bilokon & Yitao Qiu, 2023. "Transformers versus LSTMs for electronic trading," Papers 2309.11400, arXiv.org.
    17. Dimitrios Nikolaidis & Michalis Doumpos, 2022. "Credit Scoring with Drift Adaptation Using Local Regions of Competence," SN Operations Research Forum, Springer, vol. 3(4), pages 1-28, December.
    18. Arthur le Calvez & Dave Cliff, 2018. "Deep Learning can Replicate Adaptive Traders in a Limit-Order-Book Financial Market," Papers 1811.02880, arXiv.org.
    19. Allison Koenecke & Amita Gajewar, 2019. "Curriculum Learning in Deep Neural Networks for Financial Forecasting," Papers 1904.12887, arXiv.org, revised Jul 2019.
    20. Hyungjun Park & Min Kyu Sim & Dong Gu Choi, 2019. "An intelligent financial portfolio trading strategy using deep Q-learning," Papers 1907.03665, arXiv.org, revised Nov 2019.

    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:2310.10500. 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.