StockGPT: A GenAI Model for Stock Prediction and Trading

Dat Mai
4/7/2024
q-fin.CPcs.AIq-fin.PM

No confident code implementation found for this paper.

Abstract

This paper introduces StockGPT, an autoregressive ``number'' model trained and tested on 70 million daily U.S.\ stock returns over nearly 100 years. Treating each return series as a sequence of tokens, StockGPT automatically learns the hidden patterns predictive of future returns via its attention mechanism. On a held-out test sample from 2001 to 2023, daily and monthly rebalanced long-short portfolios formed from StockGPT predictions yield strong performance. The StockGPT-based portfolios span momentum and long-/short-term reversals, eliminating the need for manually crafted price-based strategies, and yield highly significant alphas against leading stock market factors, suggesting a novel AI pricing effect. This highlights the immense promise of generative AI in surpassing human in making complex financial investment decisions.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mai2024stockgpt,
  title  = {StockGPT: A GenAI Model for Stock Prediction and Trading},
  author = {Dat Mai},
  year   = {2024},
  eprint = {2404.05101},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.05101v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.05101.svg)](https://codeofpaper.com/paper/2404.05101)

Discussion