Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash 102 tok/s
Gemini 2.5 Pro 51 tok/s Pro
GPT-5 Medium 30 tok/s
GPT-5 High 27 tok/s Pro
GPT-4o 110 tok/s
GPT OSS 120B 475 tok/s Pro
Kimi K2 203 tok/s Pro
2000 character limit reached

AI in Investment Analysis: LLMs for Equity Stock Ratings (2411.00856v1)

Published 30 Oct 2024 in cs.LG, cs.AI, and q-fin.CP

Abstract: Investment Analysis is a cornerstone of the Financial Services industry. The rapid integration of advanced machine learning techniques, particularly LLMs, offers opportunities to enhance the equity rating process. This paper explores the application of LLMs to generate multi-horizon stock ratings by ingesting diverse datasets. Traditional stock rating methods rely heavily on the expertise of financial analysts, and face several challenges such as data overload, inconsistencies in filings, and delayed reactions to market events. Our study addresses these issues by leveraging LLMs to improve the accuracy and consistency of stock ratings. Additionally, we assess the efficacy of using different data modalities with LLMs for the financial domain. We utilize varied datasets comprising fundamental financial, market, and news data from January 2022 to June 2024, along with GPT-4-32k (v0613) (with a training cutoff in Sep. 2021 to prevent information leakage). Our results show that our benchmark method outperforms traditional stock rating methods when assessed by forward returns, specially when incorporating financial fundamentals. While integrating news data improves short-term performance, substituting detailed news summaries with sentiment scores reduces token use without loss of performance. In many cases, omitting news data entirely enhances performance by reducing bias. Our research shows that LLMs can be leveraged to effectively utilize large amounts of multimodal financial data, as showcased by their effectiveness at the stock rating prediction task. Our work provides a reproducible and efficient framework for generating accurate stock ratings, serving as a cost-effective alternative to traditional methods. Future work will extend to longer timeframes, incorporate diverse data, and utilize newer models for enhanced insights.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (37)
  1. Ran Aroussi. 2023. yfinance: Yahoo! Finance market data downloader. https://github.com/ranaroussi/yfinance. Accessed: 2024-10-08.
  2. Evaluation Measures for Ordinal Regression. In 2009 Ninth International Conference on Intelligent Systems Design and Applications. 283–287. https://doi.org/10.1109/ISDA.2009.230
  3. Buys, holds, and sells: The distribution of investment banks’ stock ratings and the implications for the profitability of analysts’ recommendations. Journal of Accounting and Economics 41, 1 (2006), 87–117. https://doi.org/10.1016/j.jacceco.2005.10.001
  4. Ratings changes, ratings levels, and the predictive value of analysts’ recommendations. Financial Management 39, 2 (2010), 533–553.
  5. Analyst recommendations, mutual fund herding, and overreaction in stock prices. Management Science 60, 1 (2014), 1–20.
  6. Language Models are Few-Shot Learners. In Advances in Neural Information Processing Systems, H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin (Eds.), Vol. 33. Curran Associates, Inc., 1877–1901. https://proceedings.neurips.cc/paper_files/paper/2020/file/1457c0d6bfcb4967418bfb8ac142f64a-Paper.pdf
  7. RiskLabs: Predicting Financial Risk Using Large Language Model Based on Multi-Sources Data. ArXiv abs/2404.07452 (2024). https://api.semanticscholar.org/CorpusID:269042664
  8. Harrison Chase. 2022. LangChain. https://github.com/langchain-ai/langchain
  9. Extracting Structured Insights from Financial News: An Augmented LLM Driven Approach. arXiv preprint arXiv:2407.15788 (2024).
  10. Can Large Language Models Beat Wall Street? Unveiling the Potential of AI in Stock Selection. arXiv:2401.03737 [q-fin.CP] https://arxiv.org/abs/2401.03737
  11. Frank A Fernandez. 2001. The role and responsibilities of securities analysts. Securities Industry Association Research Reports 2, 1 (2001), 3–10.
  12. Alireza Jafari and Saman Haratizadeh. 2022. GCNET: graph-based prediction of stock price movement using graph convolutional network. Engineering Applications of Artificial Intelligence 116 (2022), 105452.
  13. Analyzing the Analysts: When Do Recommendations Add Value? The Journal of Finance 59, 3 (2004), 1083–1124. http://www.jstor.org/stable/3694731
  14. Narasimhan Jegadeesh and Woojin Kim. 2006. Value of analyst recommendations: International evidence. Journal of Financial Markets 9, 3 (2006), 274–309.
  15. Counselors, judges, or executioners: The role of financial analysts in capital markets’ responses to alleged FCPA violations. Journal of Forensic and Investigative Accounting 13, 3 (2021).
  16. Stock market prediction using deep learning. International Journal for Research in Applied Science & Engineering Technology (IJRASET) 10, 4 (2022).
  17. A Survey of Large Language Models in Finance (FinLLMs). ArXiv abs/2402.02315 (2024). https://api.semanticscholar.org/CorpusID:267412025
  18. AlphaFin: Benchmarking Financial Analysis with Retrieval-Augmented Stock-Chain Framework. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024), Nicoletta Calzolari, Min-Yen Kan, Veronique Hoste, Alessandro Lenci, Sakriani Sakti, and Nianwen Xue (Eds.). ELRA and ICCL, Torino, Italia, 773–783. https://aclanthology.org/2024.lrec-main.69
  19. TradingGPT: Multi-Agent System with Layered Memory and Distinct Characters for Enhanced Financial Trading Performance. arXiv:2309.03736 [q-fin.PM] https://arxiv.org/abs/2309.03736
  20. Roger K. Loh and René M. Stulz. 2010. When Are Analyst Recommendation Changes Influential? The Review of Financial Studies 24, 2 (10 2010), 593–627. https://doi.org/10.1093/rfs/hhq094 arXiv:https://academic.oup.com/rfs/article-pdf/24/2/593/24430427/hhq094.pdf
  21. Alejandro Lopez-Lira and Yuehua Tang. 2023. Can ChatGPT Forecast Stock Price Movements? Return Predictability and Large Language Models. arXiv:2304.07619 [q-fin.ST] https://arxiv.org/abs/2304.07619
  22. OGognf. 2023. finagg: A Financial Aggregation Library. https://github.com/theOGognf/finagg.
  23. OpenAI. 2023. GPT-4-32k (v0613). https://platform.openai.com.
  24. U.S. Securities and Exchange Commission. [n. d.]. EDGAR Application Programming Interfaces. https://www.sec.gov/search-filings/edgar-application-programming-interfaces
  25. SerpAPI. 2023. SerpAPI: Google Search API.
  26. Jaideep Singh and Matloob Khushi. 2021. Feature Learning for Stock Price Prediction Shows a Significant Role of Analyst Rating. Applied System Innovation 4, 1 (2021). https://doi.org/10.3390/asi4010017
  27. Deep Reinforcement Learning for Optimal Portfolio Allocation: A Comparative Study with Mean-Variance Optimization. FinPlan Workshop at ICAPS Conference 2023, 2023 (2023), 21.
  28. Evaluating LLMs’ Mathematical Reasoning in Financial Document Question Answering. In Findings of the Association for Computational Linguistics ACL 2024, Lun-Wei Ku, Andre Martins, and Vivek Srikumar (Eds.). Association for Computational Linguistics, Bangkok, Thailand and virtual meeting, 3853–3878. https://doi.org/10.18653/v1/2024.findings-acl.231
  29. Table meets llm: Can large language models understand structured table data? a benchmark and empirical study. In Proceedings of the 17th ACM International Conference on Web Search and Data Mining. 645–654.
  30. Ploutos: Towards interpretable stock movement prediction with financial large language model. arXiv:2403.00782 [q-fin.ST] https://arxiv.org/abs/2403.00782
  31. QuantAgent: Seeking Holy Grail in Trading by Self-Improving Large Language Model. arXiv preprint arXiv:2402.03755 (2024).
  32. Chain-of-thought prompting elicits reasoning in large language models. In Proceedings of the 36th International Conference on Neural Information Processing Systems (New Orleans, LA, USA) (NIPS ’22). Curran Associates Inc., Red Hook, NY, USA, Article 1800, 14 pages.
  33. Kent L. Womack. 1996. Do Brokerage Analysts’ Recommendations Have Investment Value? The Journal of Finance 51, 1 (1996), 137–167. http://www.jstor.org/stable/2329305
  34. BloombergGPT: A Large Language Model for Finance. arXiv:2303.17564 [cs.LG] https://arxiv.org/abs/2303.17564
  35. FinMem: A performance-enhanced LLM trading agent with layered memory and character design. In Proceedings of the AAAI Symposium Series, Vol. 3. 595–597.
  36. Adam Zaremba and Przemysław Konieczka. 2015. The profitability of following analyst recommendations on the Polish stock market. Financial Internet Quarterly 11, 1 (2015), 22–31.
  37. Enhancing Financial Sentiment Analysis via Retrieval Augmented Large Language Models. In Proceedings of the Fourth ACM International Conference on AI in Finance (Brooklyn, NY, USA) (ICAIF ’23). Association for Computing Machinery, New York, NY, USA, 349–356. https://doi.org/10.1145/3604237.3626866
List To Do Tasks Checklist Streamline Icon: https://streamlinehq.com

Collections

Sign up for free to add this paper to one or more collections.

Summary

We haven't generated a summary for this paper yet.

Ai Generate Text Spark Streamline Icon: https://streamlinehq.com

Paper Prompts

Sign up for free to create and run prompts on this paper using GPT-5.

Dice Question Streamline Icon: https://streamlinehq.com

Follow-up Questions

We haven't generated follow-up questions for this paper yet.

X Twitter Logo Streamline Icon: https://streamlinehq.com
Youtube Logo Streamline Icon: https://streamlinehq.com