We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

q-fin.CP

Change to browse by:

References & Citations

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Quantitative Finance > Computational Finance

Title: StockGPT: A GenAI Model for Stock Prediction and Trading

Authors: Dat Mai
Abstract: This paper introduces StockGPT, an autoregressive "number" model pretrained directly on the history of daily U.S. stock returns. Treating each return series as a sequence of tokens, the model excels at understanding and predicting the highly intricate stock return dynamics. Instead of relying on handcrafted trading patterns using historical stock prices, StockGPT automatically learns the hidden representations predictive of future returns via its attention mechanism. On a held-out test sample from 2001 to 2023, a daily rebalanced long-short portfolio formed from StockGPT predictions earns an annual return of 119% with a Sharpe ratio of 6.5. The StockGPT-based portfolio completely explains away momentum and long-/short-term reversals, eliminating the need for manually crafted price-based strategies and also encompasses most leading stock market factors. This highlights the immense promise of generative AI in surpassing human in making complex financial investment decisions and illustrates the efficacy of the attention mechanism of large language models when applied to a completely different domain.
Comments: 19 pages, 3 figures, 6 tables
Subjects: Computational Finance (q-fin.CP); Artificial Intelligence (cs.AI); Portfolio Management (q-fin.PM); Pricing of Securities (q-fin.PR); Statistical Finance (q-fin.ST)
Cite as: arXiv:2404.05101 [q-fin.CP]
  (or arXiv:2404.05101v1 [q-fin.CP] for this version)

Submission history

From: Dat Mai [view email]
[v1] Sun, 7 Apr 2024 22:53:43 GMT (978kb,D)
[v2] Tue, 9 Apr 2024 21:01:59 GMT (1062kb,D)

Link back to: arXiv, form interface, contact.