AI analyzing stock market data

Decoding the Market: Can AI Predict Stock Prices and Explain Why?

"Unveiling the potential of self-reflective AI in generating explainable stock market predictions."


For years, the stock market has been a complex puzzle, challenging even the most seasoned investors. Traditional methods often fall short of providing clear, actionable insights, leaving many to wonder if there's a better way to understand market movements. The rise of deep learning offered some solutions, but it also created new problems. While it could do some analysis it remained as black box models that lacked the transparency and explainability needed for practical application.

Enter Large Language Models (LLMs), a new breed of AI known for their ability to generate human-readable explanations. With their language skills, LLMs present a potential solution to this challenge. However, stock prediction is difficult for these types of AI because the varying chaotic impacts of social texts on stock prices are difficult to weigh and explain verbally.

A groundbreaking study from the National University of Singapore and Eastspring Investments introduces a novel framework called Summarize-Explain-Predict (SEP). This innovative approach utilizes a self-reflective AI agent and Proximal Policy Optimization (PPO) to enable LLMs to autonomously learn how to generate explainable stock predictions, promising a new era of transparency and understanding in the financial world.

AI Search Multiple angles on this topic

A Rapidly Expanding Field Reshaping Market Forecasting

Systematic research on AI-driven stock prediction has grown substantially, with recent reviews consolidating earlier systematic reviews to supply actionable inputs for stock market investment strategies. A recurring finding is that the inherent volatility and non-linearity of financial markets make precise forecasting a constant struggle, prompting head-to-head tests of machine learning methods such as Random Forest, K-Nearest Neighbors (KNN), XGBoost, and Decision Trees against deep learning techniques. More recent work combines deep learning systems, including transformer-based models and graph neural networks, with additional data sources such as sentiment analysis from social media, satellite imagery, and real-time news analytics. Reviewers describe artificial intelligence as having significantly transformed stock market prediction by offering novel, data-driven approaches to financial forecasting.

Deep Learning and Machine Learning as Accepted Practice

Two systematic reviews, spanning roughly a decade each (2013–2025 and 2011–2023), document that machine learning and deep learning have become the accepted standard for financial market prediction. Recent advances in artificial intelligence have enabled powerful data-driven approaches capable of capturing nonlinear patterns in financial data. Deep learning models in particular have been applied extensively to stock market prediction across this entire window. Both reviews nonetheless underscore persistent limitations, chiefly that markets remain volatile and nonlinear, so even established models face real constraints on forecast reliability.

From Dartmouth to Algorithmic Prediction

The field of artificial intelligence traces its founding to a workshop held on the campus of Dartmouth College in 1956, where the concept of the discipline was first framed. In financial markets, AI's evolution is commonly described through key milestones running from early algorithmic trading to sophisticated predictive analytics. The introduction of AI and increased computational capabilities made programmed methods of stock prediction more efficient than earlier approaches. More recent overviews catalog the techniques developed along the way, including different data types, evaluation metrics, and neural network structures, while proposing new directions for research.

How Self-Reflective AI Learns to Predict and Explain Stock Movements

AI analyzing stock market data

The SEP framework tackles the challenge of creating explainable stock predictions by dividing the process into three key components:

Here’s how each component contributes to the overall goal:

  • Summarize: This module leverages the summarization capabilities of LLMs to condense vast amounts of text data into concise summaries of factual information.
  • Explain: A self-reflective agent iteratively refines its predictions and explanations through verbal self-reflection, learning from past mistakes to improve future accuracy.
  • Predict: A specialized LLM, fine-tuned using Proximal Policy Optimization (PPO), generates confidence-based predictions and explanations based on the insights gained during the reflective process.
AI Search Multiple angles on this topic

Machine, Deep, and Reinforcement Learning Under Review

The most recent comprehensive reviews examine artificial intelligence techniques applied to both stock market prediction and trading strategy development. These reviews systematically examine Machine Learning, Deep Learning, and Reinforcement Learning approaches to analyze their respective strengths, limitations, and practical relevance in financial forecasting. The framing suggests that no single approach dominates, and that the practical value of each method depends heavily on the forecasting task and market context.

Predictability Remains Genuinely Difficult

Despite the breadth of optimistic research, realistic assessments caution that financial markets are volatile, nonlinear, and heavily influenced by external shocks, all of which can undermine even sophisticated models. Reported results vary widely across studies, datasets, and time periods, and models that perform well in one market condition have frequently failed to generalize to others. The most defensible reading of the evidence is that AI tools offer real analytical power but have not produced consistently reliable or explainable stock price forecasts.

Model Comparisons and the Efficiency Debate

Comparative studies have begun quantifying how popular machine learning algorithms perform in stock price prediction, with findings meant to help investors and financial analysts select the optimal algorithm for investment decisions. A more critical strand of this literature examines the tension between theoretical market efficiency and empirical predictability, noting that many review articles catalog methodologies without rigorously evaluating model performance across different market regimes. Other comparative work contrasts AI techniques with classical machine learning algorithms, placing particular emphasis on LSTM networks. Taken together, these comparisons indicate that algorithm choice and market context materially shape predictive outcomes.

This innovative approach allows the AI to teach itself how to make explainable stock predictions without relying on human experts for annotated data. The self-reflective agent learns to explain past stock movements through a self-reasoning process, while the PPO trainer optimizes the model to generate the most likely explanations given the input texts.

The Future of AI in Stock Market Analysis

The SEP framework represents a significant step forward in the quest for explainable AI in stock market analysis. By combining the power of LLMs with self-reflection and reinforcement learning, this approach offers a promising path towards more transparent and understandable investment insights. As AI continues to evolve, we can expect even more sophisticated models that not only predict stock movements but also provide clear, concise explanations for their decisions, empowering investors to make more informed choices.

AI Search Multiple angles on this topic

Why Nonlinearity Favors Neural Methods

Expert synthesis derived from a review of 148 studies using neural and hybrid-neural techniques describes the stock market as characterized by extreme fluctuations, non-linearity, and shifts in internal and external environmental variables. The key insight is that artificial intelligence techniques are capable of detecting this non-linearity, which yields much-improved forecast results compared with conventional methods. The reviewed studies were categorized using 43 auto-coded themes, providing a structured expert view of how neural and hybrid approaches have been applied and where their demonstrated strengths lie.

Toward Richer Data and Explanability

Looking ahead, researchers anticipate that the frontier of AI stock prediction will involve integrating an ever-wider array of data sources, including market microstructure data, alternative data, and unstructured information, alongside more advanced model architectures. Hybrid approaches that combine multiple AI techniques and newer methods aimed at making forecasts more transparent are widely expected to attract growing attention. Given the inherent uncertainty of financial markets, these directions are best understood as promising research trajectories rather than guaranteed advances.

Market-Wide Implications Beyond Any Single Model

The value of AI in stock prediction ultimately depends on broader systemic factors, including data quality, market regulation, and the risk that widely adopted models generate correlated trading behavior. Systemic concerns such as overfitting to historical patterns, the instability of financial regimes, and the sheer difficulty of explaining model outputs temper expectations of an easily automatable edge. Any assessment of AI's market impact must therefore weigh these systemic challenges alongside the evident technical progress made in forecasting methods.

Skepticism, Judgment, and Safer Decisions

In practice, AI predictions are most valuable when paired with human judgment, because model outputs must be interpreted in the context of market conditions that statistics alone cannot capture. Real-world users should treat AI forecasts as decision-support inputs rather than certainty, validating them against portfolio-risk considerations and the limitations documented in the research. This human supervision remains essential for turning technically plausible predictions into responsible investment decisions.

About this Article -

Written with AI assistance from published research, and reviewed by the Mystum team. See our About page for more information.

This article is based on research published under:

DOI-LINK: 10.1145/3589334.3645611,

Title: Learning To Generate Explainable Stock Predictions Using Self-Reflective Large Language Models

Subject: cs.lg cs.cl q-fin.st

Authors: Kelvin J. L. Koa, Yunshan Ma, Ritchie Ng, Tat-Seng Chua

Published: 05-02-2024

Everything You Need To Know

1

What is the Summarize-Explain-Predict (SEP) framework and how does it work?

The Summarize-Explain-Predict (SEP) framework is a novel approach developed by researchers from the National University of Singapore and Eastspring Investments. It's designed to create explainable stock market predictions using a self-reflective AI agent. The framework operates in three key stages: Summarize, Explain, and Predict. The Summarize module uses the summarization capabilities of Large Language Models (LLMs) to condense vast amounts of text data into concise summaries. The Explain module employs a self-reflective agent that iteratively refines its predictions and explanations through verbal self-reflection, learning from past mistakes. Finally, the Predict module utilizes a specialized LLM, fine-tuned with Proximal Policy Optimization (PPO), to generate confidence-based predictions and explanations based on the insights gained during the reflective process.

2

How does the SEP framework's 'Explain' component contribute to creating explainable AI in stock market analysis?

The 'Explain' component within the Summarize-Explain-Predict (SEP) framework is crucial for achieving explainable AI. This module leverages a self-reflective agent. This agent iteratively refines its predictions and explanations. It does so through verbal self-reflection, where the AI learns from its past predictions and the corresponding outcomes. The self-reflective process allows the AI to understand the relationships between different factors and stock movements, enabling it to provide clear, human-readable explanations for its predictions. This is a significant departure from traditional 'black box' AI models that offer predictions without any insights into the decision-making process.

3

What role does Proximal Policy Optimization (PPO) play in the SEP framework for stock market prediction?

Proximal Policy Optimization (PPO) is used within the Predict module of the Summarize-Explain-Predict (SEP) framework. PPO serves as a training method that optimizes the specialized Large Language Model (LLM) to generate the most accurate and reliable stock market predictions. The PPO algorithm helps the LLM learn from its mistakes by refining its prediction strategy. This ensures that the AI can make better predictions, providing confidence-based outcomes along with the corresponding explanations. In essence, PPO is a reinforcement learning technique that helps the AI learn to make better predictions over time by rewarding it for accurate insights.

4

What are the advantages of using Large Language Models (LLMs) in the SEP framework for stock market analysis compared to traditional methods?

The use of Large Language Models (LLMs) in the Summarize-Explain-Predict (SEP) framework offers several advantages over traditional stock market analysis methods. LLMs excel at processing and understanding natural language, which is vital for interpreting the complex and unstructured data found in financial news and social media. Unlike many traditional AI models, LLMs can generate human-readable explanations for their predictions. This increases transparency and trust. LLMs can summarize information from diverse sources, providing a comprehensive view of market dynamics. Traditional methods often struggle with these tasks, relying on static data and lacking the ability to offer clear, understandable insights.

5

How does the self-reflective AI agent in the SEP framework improve stock market prediction accuracy?

The self-reflective AI agent within the Summarize-Explain-Predict (SEP) framework enhances stock market prediction accuracy through a continuous learning process. The agent repeatedly evaluates its past predictions, comparing them with actual market outcomes. This reflection process allows the agent to identify patterns, correlations, and factors that influence stock movements. By analyzing its mistakes, the AI refines its understanding of market dynamics. Through this process of self-reflection, the AI agent gradually improves its ability to generate accurate predictions and provide clear explanations for its decisions, leading to more reliable insights for investors.

Newsletter Subscribe

Subscribe to get the latest articles and insights directly in your inbox.