Can Large Language Models Beat Wall Street? Unveiling the Potential of AI in Stock Selection (2401.03737v2)
Abstract: This paper introduces MarketSenseAI, an innovative framework leveraging GPT-4's advanced reasoning for selecting stocks in financial markets. By integrating Chain of Thought and In-Context Learning, MarketSenseAI analyzes diverse data sources, including market trends, news, fundamentals, and macroeconomic factors, to emulate expert investment decision-making. The development, implementation, and validation of the framework are elaborately discussed, underscoring its capability to generate actionable and interpretable investment signals. A notable feature of this work is employing GPT-4 both as a predictive mechanism and signal evaluator, revealing the significant impact of the AI-generated explanations on signal accuracy, reliability and acceptance. Through empirical testing on the competitive S&P 100 stocks over a 15-month period, MarketSenseAI demonstrated exceptional performance, delivering excess alpha of 10% to 30% and achieving a cumulative return of up to 72% over the period, while maintaining a risk profile comparable to the broader market. Our findings highlight the transformative potential of LLMs in financial decision-making, marking a significant leap in integrating generative AI into financial analytics and investment strategies.
- Cognitive network science reveals bias in gpt-3, gpt-3.5 turbo, and gpt-4 mirroring math anxiety in high-school students. Big Data and Cognitive Computing 7, 124.
- Impact of news-based equity market volatility on international stock markets. Journal of Applied Economics 23, 224–234.
- Harnessing the power of chatgpt for automating systematic review process: Methodology, case study, limitations, and future directions. Systems 11, 351.
- The role of reddit in the gamestop short squeeze. Economics Letters 211, 110249.
- Finbert: Financial sentiment analysis with pre-trained language models. Preprint at https://arxiv.org/abs/1908.10063.
- Cognitive biases in natural language: Automatically detecting, differentiating, and measuring bias in text. doi:10.13140/RG.2.2.14044.56967.
- BIS, 2022. Market dysfunction and central bank tools. https://www.bis.org/publ/mc_insights.pdf.AccessedSeptember28,2023.
- Bloomberg, 2019. What’s an “algo wheel?” and why should you care? — bloomberg professional services. https://www.bloomberg.com/professional/blog/whats-algo-wheel-care/. Accessed September 24, 2023.
- Fluctuations and response in financial markets: the subtle nature ofrandom’price changes. Quantitative finance 4, 176.
- How does zero-day-to-expiry options trading affect the volatility of underlying assets? Available at SSRN: https://ssrn.com/abstract=4426358 or http://dx.doi.org/10.2139/ssrn.4426358.
- Can gpt models be financial analysts? an evaluation of chatgpt and gpt-4 on mock cfa exams. Preprint at https://arxiv.org/abs/2310.08678.
- Langchain. https://github.com/langchain-ai/langchain. Accessed December 29, 2023.
- The Economic Potential of Generative AI: The Next Productivity Frontier. Technical Report. McKinsey & Company. https://www.mckinsey.com/capabilities/mckinsey-digital/our-insights/the-economic-potential-of-generative-ai-the-next-productivity-frontier. Accessed September 24, 2023.
- CNBC, 2023. Jpmorgan ai investment advisor. https://www.cnbc.com/2023/05/25/jpmorgan-develops-ai-investment-advisor.html. Accessed September 24, 2023.
- A survey for in-context learning. Preprint at https://arxiv.org/abs/2301.00234.
- Bootstrap methods for standard errors, confidence intervals, and other measures of statistical accuracy. Statistical science 1, 54–75.
- Deepvar: a framework for portfolio risk assessment leveraging probabilistic deep neural networks. Digital finance 5, 29–56.
- Transforming sentiment analysis in the financial domain with chatgpt. Machine Learning with Applications 14, 100508.
- Can anybody beat the market? https://www.investopedia.com/ask/answers/12/beating-the-market.asp, Accessed January 01, 2024.
- Passive investing and market liquidity. The Review of Financial Studies 28, 2167–2203.
- Value investing: from Graham to Buffett and beyond. John Wiley & Sons.
- How close is chatgpt to human experts? comparison corpus, evaluation, and detection. Preprint at https://arxiv.org/abs/2301.07597.
- Financial institutions, markets, and money. John Wiley & Sons.
- Bloated disclosures: Can chatgpt help investors process information? Available at SSRN: https://ssrn.com/abstract=4425527 or http://dx.doi.org/10.2139/ssrn.4425527.
- Drawdown measures: Are they all the same? The Journal of Portfolio Management 48, 104–120.
- Deep learning enhancing banking services: a hybrid transaction classification and cash flow prediction approach. Journal of big Data 9, 100.
- Momentum and autocorrelation in stock returns. The Review of Financial Studies 15, 533–564.
- Are chatgpt and gpt-4 general-purpose solvers for financial text analytics? an examination on several typical tasks. Preprint at https://arxiv.org/abs/2305.05862.
- Gpteval: Nlg evaluation using gpt-4 with better human alignment. Preprint at https://arxiv.org/abs/2303.16634.
- Can chatgpt forecast stock price movements? return predictability and large language models. Preprint at https://arxiv.org/abs/2304.07619.
- Estimating the impact of good news on stock market volatility. Applied Financial Economics 21, 545–554.
- The efficient market hypothesis and its critics. Journal of economic perspectives 17, 59–82.
- Marketdigest. https://www.km3am.com/2023/03/13/marketdigest-new-ai-powered-tool-for-wealth-management-insights/. Accessed September 24, 2023.
- Experimental evidence on the productivity effects of generative artificial intelligence. Science 381, 187–192. URL: https://www.science.org/doi/abs/10.1126/science.adh2586, doi:10.1126/science.adh2586.
- OECD, 2021. Artificial intelligence, machine learning and big data in finance: Opportunities, challenges, and implications for policy makers. https://www.oecd.org/finance/financial-markets/Artificial-intelligence-machine-learning-big-data-in-finance.pdf. Accessed September 24, 2023.
- OpenAI, 2023. Gpt-4 technical report. arXiv:2303.08774. preprint at https://arxiv.org/abs/2303.08774.
- Fusion-eval: Integrating evaluators with llms. Preprint at https://arxiv.org/abs/2311.09204.
- Mpnet: Masked and permuted pre-training for language understanding. Advances in Neural Information Processing Systems 33, 16857–16867.
- More than words: Quantifying language to measure firms’ fundamentals. The journal of finance 63, 1437–1467.
- Magnificent 7 stocks: What you need to know. https://www.investopedia.com/magnificent-seven-stocks-8402262, Accessed January 01, 2024.
- Chain-of-thought prompting elicits reasoning in large language models. Advances in Neural Information Processing Systems 35, 24824–24837.
- Behavioral biases in pension fund trustees’ decision making. Review of Behavioral Finance 11, 128–143.
- Bloomberggpt: A large language model for finance. Preprint at https://arxiv.org/abs/2303.17564.
- Temporal data meets llm–explainable financial time series forecasting. Preprint at https://arxiv.org/abs/2306.11025.
- Chatgpt: Unlocking the future of nlp in finance. Available at SSRN: https://ssrn.com/abstract=4323643 or http://dx.doi.org/10.2139/ssrn.4323643.