TL;DR
Trying to predict stock prices by asking an LLM to "reason" directly over financial news hits a hard theoretical wall: markets are noisy, equilibrium beasts where obvious signals are already priced in. Instead of modeling prices directly, RoleCast trains distinct LLM agents to imitate real-world investor archetypes (like risk-averse banks or momentum-chasing advisors), aggregates their simulated buying and selling into total market demand, and calculates the resulting clearing price. By modeling the people who move the market rather than the price line itself, this framework beats state-of-the-art forecasting LLMs.
What Problem Does This Paper Address?
If you hand a standard reasoning LLM a company's quarterly report and ask where the stock price goes next, you are asking it to Collapse of the Wavefunction a dozen conflicting human reactions into a single chain of thought. Worse, according to the Efficient Market Hypothesis, persistent predictive signals get swallowed into the current price almost instantly.
Prices aren't fundamental laws of nature; they are the equilibrium outcome of heterogeneous market participants colliding. When a market downturn hits, a conservative bank might dump shares to preserve capital, while an opportunistic advisor buys the dip. A single reasoning trace struggles to capture this tug-of-war.
So why not simulate the investors instead? That brings up two tricky imitation-learning hurdles:
- Private Mandates (Role-level): Institutional investment playbooks are closely guarded secrets, so you can't just copy-paste a "hedge fund prompt."
- Hidden Thoughts (Thought-level): Public filings tell us what institutions bought at the end of a quarter, but never why—leaving only a sparse, end-of-trajectory reward to train on.
Methods
The authors introduce RoleCast, a framework built on Qwen2.5-7B-Instruct (using LoRA) that splits the market into seven economic archetypes: Banks, Insurance Companies, Investment Advisors, Mutual Funds, Pension Funds, Households, and Others.
To teach each agent how its real-world counterpart thinks and trades, RoleCast uses a novel two-stage imitation strategy before computing the final price:
- Stage 1: Agent Role-Learning. First, an LLM examines historical market data paired with actual institutional portfolio changes to generate candidate "personas" (descriptions of investing styles). Each candidate instantiates an agent that is fine-tuned via Group Relative Policy Optimization (GRPO)—a standard reinforcement learning method—rewarded by how closely its simulated stock holdings match real-world disclosures. The persona whose optimized agent performs best on a validation set is crowned the winner and frozen as a Teacher.
- Stage 2: On-Policy Distillation (OPD). Because GRPO only grades the final holdings number, the Teacher still harbors a noisy, multi-modal mix of plausible heuristic strategies. To sharpen this, a Student model generates its own reasoning trajectories on-policy, and the Teacher grades every single token using a reverse Kullback–Leibler (KL) divergence reward. Because reverse KL is "mode-seeking," it forces the Student to lock onto the Teacher's core, preferred strategy and drop noisy exploratory habits.
- Market-Clearing Price Calculation: At inference, all seven distilled Student agents look at the latest stock data and decide how many shares to hold. RoleCast sums these holdings to get total simulated Market Demand, and divides it by the Market Supply (total shares outstanding) to yield a closed-form price forecast.
Datasets
No new benchmarks were created, so the authors stitched together a rigorous 10-year historical dataset (2014Q2 to 2024Q3) covering S&P 500 constituent stocks:
- SEC Form 13F Filings (via Thomson Reuters) for ground-truth quarterly institutional stock holdings.
- CRSP Database & Yahoo Finance for daily closing prices, volumes, log returns, and shares outstanding.
- SEC EDGAR 10-K and 10-Q Filings (specifically the Management's Discussion & Analysis sections) for textual market context.
- Crucial detail: All inputs enforce a strict 45-day post-quarter cutoff (matching the 13F filing deadline) to prevent look-ahead bias.
Key Insights and Ideas
- Direct LLM forecasting hits an Efficient Market ceiling: A dead-simple "Random Walk" baseline (guessing tomorrow's price equals today's) beat most zero-shot LLMs—including specialized financial reasoning models. Even when fine-tuned directly on prices, LLMs merely converged to a narrow band around the Random Walk, proving how little direct price signal is left to "reason" over.
- The Student beats the Teacher: Distilling the GRPO teacher into an OPD student didn't just compress knowledge; it improved accuracy (dropping price MAPE from 12.40% to 10.03%) and dramatically stabilized variance. Mode-seeking token feedback acts as a behavioral denoiser.
- Personas aren't just flavor text—if they're earned: Prompting a zero-shot model with a persona failed miserably (69.25% MAPE), and assigning random personas actively sabotaged fine-tuned agents (21.31% MAPE). Grounded role-learning genuinely separated behaviors: learned Pension Fund personas favored low-turnover, cash-generative companies, while Investment Advisors chased momentum trends.
Key Results
Evaluated across four error metrics (where lower is better), RoleCast outperformed 17 baselines across general, financial, fine-tuned, and time-series LLMs:
- RoleCast achieved 10.03% MAPE, 10.24% WAPE, 9.91% sMAPE, and $21.05 MAE.
- It beat the strongest overall baseline, the time-series model ChatTime (10.57% MAPE), by +5.1% on MAPE and +4.7% on sMAPE.
- Compared to its own backbone (Qwen2.5-7B) fine-tuned to predict prices directly (10.78% MAPE), RoleCast's simulation paradigm delivered clear, broad-based gains across the stock universe.
- Concordance checks confirmed each agent predicted its own institution type's real-world holdings far better than others, proving they didn't just collapse into an "average investor."
Limitations and Future Work
Because SEC 13F filings only drop once a quarter, RoleCast currently operates on slow, quarterly timeframes and misses higher-frequency shifts in market sentiment. For future work, the authors suggest incorporating higher-frequency disclosure data to capture shorter-term investor dynamics. Even more excitingly, because RoleCast builds faithful digital twins of institutional archetypes, they propose using these agents as a sandbox for counterfactual market simulations—testing how banks versus mutual funds might react to hypothetical economic shocks before they happen.
Summary updated