LLM-Driven Stock Prediction: Capturing Market Trends with LLaMA
Tak Rahul () and
Pele Daniel Traian ()
Additional contact information
Tak Rahul: Bucharest University of Economic Studies, Bucharest, Romania
Pele Daniel Traian: Bucharest University of Economic Studies, Bucharest, Romania Institute for Economic Forecasting, Romanian Academy
Proceedings of the International Conference on Business Excellence, 2025, vol. 19, issue 1, 529-540
Abstract:
Stock price forecasting remains a challenging task due to the dynamic nature of financial markets and the influence of external factors such as investor sentiment and macroeconomic events. Traditional time series statistical models often struggle to capture complex nonlinear dependencies and market signals embedded in unstructured data. With advancements in Large Language Models (LLMs), it is now possible to integrate textual information from financial news, social media, and earnings reports to enhance predictive accuracy. In this study, we leverage the LLaMA family of LLMs to improve stock price forecasting by combining historical price with news. We evaluate the performance of LLaMA 3.3 against LLaMA 3.1 and the benchmark ARIMA model to assess its effectiveness in capturing time series patterns and textual signals. Our results indicate that LLaMA 3.3 outperforms both LLaMA 3.1 and ARIMA, demonstrating its superior capability in modeling complex financial relationships. Additionally, our analysis confirms that market sentiment has an impact on stock returns, with sentiments influencing short-term price fluctuations. By incorporating news sentiment in LLMs prompt, we achieve improved forecasts compared to models without news. This highlights the importance of integrating both structured (numerical time series) and unstructured (news sentiment) data for enhanced financial modeling. Our findings suggest that LLM-driven forecasting methods hold substantial promise for traders, analysts, and financial institutions seeking more accurate market predictions. Future work will explore fine-tuning LLaMA models for domain-specific financial tasks and improving interpretability in decision making processes.
Keywords: LLMs; LLaMA; ARIMA; News Sentiment; Time series forecasting; Stock Price (search for similar items in EconPapers)
Date: 2025
References: Add references at CitEc
Citations:
Downloads: (external link)
https://doi.org/10.2478/picbe-2025-0043 (text/html)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:vrs:poicbe:v:19:y:2025:i:1:p:529-540:n:1009
DOI: 10.2478/picbe-2025-0043
Access Statistics for this article
Proceedings of the International Conference on Business Excellence is currently edited by Alina Mihaela Dima
More articles in Proceedings of the International Conference on Business Excellence from Sciendo
Bibliographic data for series maintained by Peter Golla ().