Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
119 tokens/sec
GPT-4o
56 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

ChatGPT Informed Graph Neural Network for Stock Movement Prediction (2306.03763v4)

Published 28 May 2023 in q-fin.ST, cs.AI, cs.CL, cs.LG, and q-fin.CP

Abstract: ChatGPT has demonstrated remarkable capabilities across various NLP tasks. However, its potential for inferring dynamic network structures from temporal textual data, specifically financial news, remains an unexplored frontier. In this research, we introduce a novel framework that leverages ChatGPT's graph inference capabilities to enhance Graph Neural Networks (GNN). Our framework adeptly extracts evolving network structures from textual data, and incorporates these networks into graph neural networks for subsequent predictive tasks. The experimental results from stock movement forecasting indicate our model has consistently outperformed the state-of-the-art Deep Learning-based benchmarks. Furthermore, the portfolios constructed based on our model's outputs demonstrate higher annualized cumulative returns, alongside reduced volatility and maximum drawdown. This superior performance highlights the potential of ChatGPT for text-based network inferences and underscores its promising implications for the financial sector.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (30)
  1. Marcos Lopez De Prado. Advances in financial machine learning. John Wiley & Sons, 2018.
  2. Eugene F Fama. The behavior of stock-market prices. The journal of Business, 38(1):34–105, 1965.
  3. Eugene F Fama. Random walks in stock market prices. Financial analysts journal, 51(1):75–80, 1995.
  4. Genetic algorithms approach to feature discretization in artificial neural networks for the prediction of stock price index. Expert systems with Applications, 19(2):125–132, 2000.
  5. Deep learning for event-driven stock prediction. In Twenty-fourth international joint conference on artificial intelligence, 2015.
  6. Intraday prediction of borsa istanbul using convolutional neural networks and feature correlations. Knowledge-Based Systems, 137:138–148, 2017.
  7. Stock market movement forecast: A systematic review. Expert Systems with Applications, 156:113464, 2020.
  8. Wesley S Chan. Stock price reaction to news and no-news: drift and reversal after headlines. Journal of Financial Economics, 70(2):223–260, 2003.
  9. Text-based network industries and endogenous product differentiation. Journal of Political Economy, 124(5):1423–1465, 2016.
  10. Matthew L O’Connor. The cross-sectional relationship between trading costs and lead/lag effects in stock & option markets. Financial Review, 34(4):95–117, 1999.
  11. A survey of large language models, 2023.
  12. A multitask, multilingual, multimodal evaluation of chatgpt on reasoning, hallucination, and interactivity. arXiv preprint arXiv:2302.04023, 2023.
  13. Gpt-4 passes the bar exam. Available at SSRN 4389233, 2023.
  14. Financial time series forecasting with multi-modality graph neural network. Pattern Recognition, 121:108218, 2022.
  15. Automated news reading: Stock price prediction based on financial news using context-capturing features. Decision support systems, 55(3):685–697, 2013.
  16. Responses of us equity market sectors to the silicon valley bank implosion. Finance Research Letters, page 103934, 2023.
  17. Nvidia shares surge amid AI-driven boom, earnings report.
  18. Preston Gralla. This lawsuit against microsoft could change the future of AI.
  19. Graph convolutional networks: a comprehensive review. Computational Social Networks, 6(1):1–23, 2019.
  20. A comprehensive survey on graph neural networks. IEEE transactions on neural networks and learning systems, 32(1):4–24, 2020.
  21. Knowledge-driven stock trend prediction and explanation via temporal convolutional network. In Companion Proceedings of The 2019 World Wide Web Conference, pages 678–685, 2019.
  22. Deep learning with long short-term memory networks for financial market predictions. European journal of operational research, 270(2):654–669, 2018.
  23. OpenNRE: An open and extensible toolkit for neural relation extraction. In Proceedings of EMNLP-IJCNLP: System Demonstrations, pages 169–174, 2019.
  24. Knowledge graph completion: A review. Ieee Access, 8:192435–192456, 2020.
  25. Roland: Graph learning framework for dynamic graphs, 2022.
  26. Large language models can rate news outlet credibility. arXiv preprint arXiv:2304.00228, 2023.
  27. Can chatgpt forecast stock price movements. Return Predictability and Large Language Models, 2023.
  28. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems, 35:27730–27744, 2022.
  29. Long short-term memory. Neural computation, 9(8):1735–1780, 1997.
  30. Measuring and relieving the over-smoothing problem for graph neural networks from the topological view. In Proceedings of the AAAI conference on artificial intelligence, volume 34, pages 3438–3445, 2020.
User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (5)
  1. Zihan Chen (59 papers)
  2. Lei Nico Zheng (1 paper)
  3. Cheng Lu (70 papers)
  4. Jialu Yuan (1 paper)
  5. Di Zhu (63 papers)
Citations (36)

Summary

ChatGPT Informed Graph Neural Network for Stock Movement Prediction: A Methodological Overview

The research paper presents a sophisticated framework that harnesses the capabilities of ChatGPT, a LLM, to enhance the performance of Graph Neural Networks (GNNs) in predicting stock movement. This innovative approach is centered on the integration of temporal textual data derived from financial news to construct dynamic network structures. These structures are then used to inform GNNs for predictive financial modeling. The primary focus of this paper is to explore the utility of LLMs in financial economics, specifically in the domain of stock market prediction, which has historically been influenced by the efficient market hypothesis that posits stock prices reflect all available information.

Methodology

The framework introduces a three-tiered approach:

  1. Network Structure Inference via ChatGPT: ChatGPT is leveraged to process daily news headlines and identify latent inter-dependencies among equities. The LLM infers which companies are affected by specific news events and the sentiment (positive, negative, or neutral) associated with these events. This capability allows the construction of time-evolving graphs, inputted into GNNs to derive relational embeddings of companies.
  2. Company Embedding through GNN: Once the network structure is built, GNNs are deployed to encode the embeddings of the affected companies. The GNN considers both the intrinsic attributes of the nodes (companies) and the topological information from the constructed dynamic graphs, which are informed by ChatGPT.
  3. Sequential Models and Output Layers: Integrating LSTM with GNN-derived company embeddings and daily stock market data, the model produces forecasts of stock price movements using a classification approach. The model is trained to predict whether a stock will move up, down, or remain neutral in the near future.

Experimental Results

The performance of the framework was evaluated using a dataset comprising companies listed on the DOW 30 index over a two-year period. The results demonstrate the model's superiority over conventional machine learning approaches such as LSTM and ARIMA and a textual embedding technique using transformer-based models. The proposed framework achieved significant improvements in Weighted F1, Micro F1, and Macro F1 metrics, inferring a more nuanced understanding of market dynamics via its ChatGPT-informed network.

Moreover, the financial performance of portfolios constructed based on the model's predictions was evaluated. The resultant portfolios exhibited higher cumulative returns and reduced risk metrics, including lower annualized volatility and maximum drawdown, as compared to those based solely on traditional models and baseline sentiment analysis.

Implications and Future Directions

This paper underscores the potential of LLMs like ChatGPT in the financial sector, especially for enhancing the prediction capabilities of GNNs by leveraging textual data. The results highlight ChatGPT's effectiveness in achieving nuanced text-based network inferences, which can be crucial given the intricate and interdependent nature of stock markets. Nonetheless, the research points to possible enhancements by incorporating more complex network structures, varied data inputs, and exploring other LLM-based models. The prospect of a broader application of this novel integration across various domains of financial engineering presents numerous opportunities for refining predictive accuracy and decision-making in finance.

In conclusion, the paper demonstrates a methodologically robust framework that successfully combines the strengths of LLMs and GNNs, setting a promising precedent for future research in AI-driven financial prediction and the broader applicability of these computational techniques in dynamic environments.

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