Can Language Models Learn to Forecast Stock Prices?
Jiacheng Guo, Suozhi Huang, Shuzhen Li, Yunlong Gao, Zerui Cheng, Jason Ge, Shushu Liang, Zihao Li, Hao Lu, Ming Yin, Shilong Liu, Jiashuo Liu, Xu Kuang, Mengdi Wang
Abstract
We build BETA, a chronological sandbox over S&P 500 stocks in which a model calls tools to retrieve prices, indicators, and news available up to a decision date, and then forecasts the stock's future return. Evaluating frontier models in this sandbox reveals three systematic weaknesses: their scores decline as the test period approaches the present while a simple momentum baseline stays stable, they predict gains far more often than gains occur, and they predict moves much smaller than those that are realized. We then train models directly in the sandbox. We first fine-tune on filtered, hindsight-generated tool-use trajectories for historical tasks judged predictable from the evidence available at the time, teaching the model how to investigate a stock. We then apply reinforcement learning with rewards based on realized returns. During RL, long investigations frequently exceed the context window. We therefore introduce a selective compaction tool that allows the model to compress chosen portions of its interaction history. We address these challenges with Context-Aligned Turn-Level PPO, which uses a turn-level critic and computes policy updates using each turn's actual context. The resulting models, which we call AURA, substantially reduce all three weaknesses. Training improves the 8B model's score from 24.0 to 47.0 and the 30B model's from 27.4 to 54.7, with the latter surpassing all evaluated frontier models on our benchmark and achieving its largest margin on the most recent test period. These scores describe tasks selected for alignment between the available evidence and the realized return. Across all 412 candidates in the latest period, the trained 30B model still leads (35.17), while the trained 8B model scores below momentum (25.91 versus 28.33).
Create a lesson
Related papers
Disciplined Anthropomorphism: How to Extend Cognitive Language to Artificial Intelligence
Shared title terminologycs.CLMatthieu Queloz
Evaluating Ukrainian Grammatical Competence in Language Models: Probability Versus Prompting
Shared title terminologycs.CLDmytro Babarytskyi, Oleksandr Babarytskyi, Vadym Savanevych
DiCALM: Converting Autoregressive Convolution-Attention Language Models into Discrete Diffusion Language Models
Shared title terminologycs.CLPhong Le, Ngoc-Quan Pham, Dat Quoc Nguyen
Contextual language representations link narrative processing to language and literacy in children
Shared title terminologycs.CLDongyi He, Tian Jiang, Nizhuan Wang et al.
Pitfalls of Dependency-Ready Decoding for Masked Diffusion Language Models
Shared title terminologycs.CLLina Berrayana, Christopher Malon, Yoichi Ishibashi et al.
Multimodal Safety Evaluation of Vision-Language Models in Japanese
Shared title terminologycs.CLSu Myat Noe, Hisami Suzuki, Kouta Nakayama et al.