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

What Teaches Robots to Walk, Teaches Them to Trade too -- Regime Adaptive Execution using Informed Data and LLMs

Author

Listed:
  • Raeid Saqur

Abstract

Machine learning techniques applied to the problem of financial market forecasting struggle with dynamic regime switching, or underlying correlation and covariance shifts in true (hidden) market variables. Drawing inspiration from the success of reinforcement learning in robotics, particularly in agile locomotion adaptation of quadruped robots to unseen terrains, we introduce an innovative approach that leverages world knowledge of pretrained LLMs (aka. 'privileged information' in robotics) and dynamically adapts them using intrinsic, natural market rewards using LLM alignment technique we dub as "Reinforcement Learning from Market Feedback" (**RLMF**). Strong empirical results demonstrate the efficacy of our method in adapting to regime shifts in financial markets, a challenge that has long plagued predictive models in this domain. The proposed algorithmic framework outperforms best-performing SOTA LLM models on the existing (FLARE) benchmark stock-movement (SM) tasks by more than 15\% improved accuracy. On the recently proposed NIFTY SM task, our adaptive policy outperforms the SOTA best performing trillion parameter models like GPT-4. The paper details the dual-phase, teacher-student architecture and implementation of our model, the empirical results obtained, and an analysis of the role of language embeddings in terms of Information Gain.

Suggested Citation

  • Raeid Saqur, 2024. "What Teaches Robots to Walk, Teaches Them to Trade too -- Regime Adaptive Execution using Informed Data and LLMs," Papers 2406.15508, arXiv.org.
  • Handle: RePEc:arx:papers:2406.15508
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Massimo Guidolin & Allan Timmermann, 2008. "Size and Value Anomalies under Regime Shifts," Journal of Financial Econometrics, Oxford University Press, vol. 6(1), pages 1-48, Winter.
    2. Oriol Vinyals & Igor Babuschkin & Wojciech M. Czarnecki & Michaël Mathieu & Andrew Dudzik & Junyoung Chung & David H. Choi & Richard Powell & Timo Ewalds & Petko Georgiev & Junhyuk Oh & Dan Horgan & M, 2019. "Grandmaster level in StarCraft II using multi-agent reinforcement learning," Nature, Nature, vol. 575(7782), pages 350-354, November.
    3. Andrew Ang & Allan Timmermann, 2012. "Regime Changes and Financial Markets," Annual Review of Financial Economics, Annual Reviews, vol. 4(1), pages 313-337, October.
    4. Xinli Yu & Zheng Chen & Yuan Ling & Shujing Dong & Zongyi Liu & Yanbin Lu, 2023. "Temporal Data Meets LLM -- Explainable Financial Time Series Forecasting," Papers 2306.11025, arXiv.org.
    5. Brown, Gregory W. & Cliff, Michael T., 2004. "Investor sentiment and the near-term stock market," Journal of Empirical Finance, Elsevier, vol. 11(1), pages 1-27, January.
    6. Hamilton, James D., 1990. "Analysis of time series subject to changes in regime," Journal of Econometrics, Elsevier, vol. 45(1-2), pages 39-70.
    7. Haohan Zhang & Fengrui Hua & Chengjin Xu & Hao Kong & Ruiting Zuo & Jian Guo, 2023. "Unveiling the Potential of Sentiment: Can Large Language Models Predict Chinese Stock Price Movements?," Papers 2306.14222, arXiv.org, revised May 2024.
    8. Elia Kaufmann & Leonard Bauersfeld & Antonio Loquercio & Matthias Müller & Vladlen Koltun & Davide Scaramuzza, 2023. "Champion-level drone racing using deep reinforcement learning," Nature, Nature, vol. 620(7976), pages 982-987, August.
    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. 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.
    2. Raeid Saqur & Ken Kato & Nicholas Vinden & Frank Rudzicz, 2024. "NIFTY Financial News Headlines Dataset," Papers 2405.09747, arXiv.org.
    3. Chavez-Demoulin, V. & Embrechts, P. & Sardy, S., 2014. "Extreme-quantile tracking for financial time series," Journal of Econometrics, Elsevier, vol. 181(1), pages 44-52.
    4. Shaw, Charles, 2018. "Regime-Switching And Levy Jump Dynamics In Option-Adjusted Spreads," MPRA Paper 94154, University Library of Munich, Germany, revised 27 May 2019.
    5. Chung, San-Lin & Hung, Chi-Hsiou & Yeh, Chung-Ying, 2012. "When does investor sentiment predict stock returns?," Journal of Empirical Finance, Elsevier, vol. 19(2), pages 217-240.
    6. Christian Friedrich & Pierre Guérin, 2020. "The Dynamics of Capital Flow Episodes," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 52(5), pages 969-1003, August.
    7. Guidolin, Massimo & Hyde, Stuart, 2012. "Can VAR models capture regime shifts in asset returns? A long-horizon strategic asset allocation perspective," Journal of Banking & Finance, Elsevier, vol. 36(3), pages 695-716.
    8. Massimo Guidolin, 2013. "Markov switching models in asset pricing research," Chapters, in: Adrian R. Bell & Chris Brooks & Marcel Prokopczuk (ed.), Handbook of Research Methods and Applications in Empirical Finance, chapter 1, pages 3-44, Edward Elgar Publishing.
    9. João F. Caldeira & Rangan Gupta & Hudson S. Torrent, 2020. "Forecasting U.S. Aggregate Stock Market Excess Return: Do Functional Data Analysis Add Economic Value?," Mathematics, MDPI, vol. 8(11), pages 1-16, November.
    10. Guidolin, Massimo & Pedio, Manuela, 2017. "Identifying and measuring the contagion channels at work in the European financial crises," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 48(C), pages 117-134.
    11. Urga, Giovanni & Wang, Fa, 2022. "Estimation and inference for high dimensional factor model with regime switching," MPRA Paper 113172, University Library of Munich, Germany.
    12. Aliyu, Shehu Usman Rano, 2020. "What have we learnt from modelling stock returns in Nigeria: Higgledy-piggledy?," MPRA Paper 110382, University Library of Munich, Germany, revised 06 Jun 2021.
    13. Erdemlioglu, Deniz & Joliet, Robert, 2019. "Long-term asset allocation, risk tolerance and market sentiment," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 62(C), pages 1-19.
    14. Suthawan Prukumpai, 2015. "Time-varying Industrial Portfolio Betas under the Regime-switching Model: Evidence from the Stock Exchange of Thailand," Applied Economics Journal, Kasetsart University, Faculty of Economics, Center for Applied Economic Research, vol. 22(2), pages 54-76, December.
    15. King, Daniel & Botha, Ferdi, 2015. "Modelling stock return volatility dynamics in selected African markets," Economic Modelling, Elsevier, vol. 45(C), pages 50-73.
    16. Zhang, Xiaoyuan & Zhang, Tianqi, 2022. "Barrier option pricing under a Markov Regime switching diffusion model," The Quarterly Review of Economics and Finance, Elsevier, vol. 86(C), pages 273-280.
    17. Elizabeth Fons & Paula Dawson & Jeffrey Yau & Xiao-jun Zeng & John Keane, 2019. "A novel dynamic asset allocation system using Feature Saliency Hidden Markov models for smart beta investing," Papers 1902.10849, arXiv.org.
    18. Urga, Giovanni & Wang, Fa, 2022. "Estimation and Inference for High Dimensional Factor Model with Regime Switching," MPRA Paper 117012, University Library of Munich, Germany, revised 10 Apr 2023.
    19. Massimo Guidolin, 2011. "Markov Switching Models in Empirical Finance," Advances in Econometrics, in: Missing Data Methods: Time-Series Methods and Applications, pages 1-86, Emerald Group Publishing Limited.
    20. Focardi, Sergio M. & Fabozzi, Frank J. & Mazza, Davide, 2019. "Modeling local trends with regime shifting models with time-varying probabilities," International Review of Financial Analysis, Elsevier, vol. 66(C).

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