{"title":"StockGPT:用于股票预测和交易的 GenAI 模型","authors":"Dat Mai","doi":"arxiv-2404.05101","DOIUrl":null,"url":null,"abstract":"This paper introduces StockGPT, an autoregressive \"number\" model pretrained\ndirectly on the history of daily U.S. stock returns. Treating each return\nseries as a sequence of tokens, the model excels at understanding and\npredicting the highly intricate stock return dynamics. Instead of relying on\nhandcrafted trading patterns using historical stock prices, StockGPT\nautomatically learns the hidden representations predictive of future returns\nvia its attention mechanism. On a held-out test sample from 2001 to 2023, a\ndaily rebalanced long-short portfolio formed from StockGPT predictions earns an\nannual return of 119% with a Sharpe ratio of 6.5. The StockGPT-based portfolio\ncompletely explains away momentum and long-/short-term reversals, eliminating\nthe need for manually crafted price-based strategies and also encompasses most\nleading stock market factors. This highlights the immense promise of generative\nAI in surpassing human in making complex financial investment decisions and\nillustrates the efficacy of the attention mechanism of large language models\nwhen applied to a completely different domain.","PeriodicalId":501139,"journal":{"name":"arXiv - QuantFin - Statistical Finance","volume":"3 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-04-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"StockGPT: A GenAI Model for Stock Prediction and Trading\",\"authors\":\"Dat Mai\",\"doi\":\"arxiv-2404.05101\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"This paper introduces StockGPT, an autoregressive \\\"number\\\" model pretrained\\ndirectly on the history of daily U.S. stock returns. Treating each return\\nseries as a sequence of tokens, the model excels at understanding and\\npredicting the highly intricate stock return dynamics. Instead of relying on\\nhandcrafted trading patterns using historical stock prices, StockGPT\\nautomatically learns the hidden representations predictive of future returns\\nvia its attention mechanism. On a held-out test sample from 2001 to 2023, a\\ndaily rebalanced long-short portfolio formed from StockGPT predictions earns an\\nannual return of 119% with a Sharpe ratio of 6.5. The StockGPT-based portfolio\\ncompletely explains away momentum and long-/short-term reversals, eliminating\\nthe need for manually crafted price-based strategies and also encompasses most\\nleading stock market factors. This highlights the immense promise of generative\\nAI in surpassing human in making complex financial investment decisions and\\nillustrates the efficacy of the attention mechanism of large language models\\nwhen applied to a completely different domain.\",\"PeriodicalId\":501139,\"journal\":{\"name\":\"arXiv - QuantFin - Statistical Finance\",\"volume\":\"3 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-04-07\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - QuantFin - Statistical Finance\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2404.05101\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - QuantFin - Statistical Finance","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2404.05101","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
StockGPT: A GenAI Model for Stock Prediction and Trading
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.