English

A New DAPO Algorithm for Stock Trading

Computational Engineering, Finance, and Science 2025-05-27 v2

Abstract

Recent advances in reinforcement learning, such as Dynamic Sampling Policy Optimization (DAPO), show strong performance when paired with large language models (LLMs). Motivated by this success, we ask whether similar gains can be realized in financial trading. We design a trading agent that combines an improved Group Relative Policy Optimization (GRPO) algorithm, augmented with ideas from DAPO, with LLM-based risk and sentiment signals extracted from financial news. On the NASDAQ-100 index (FNSPID dataset), our agent attains a cumulative return of 230.49 percent and an information ratio of 0.37, outperforming the CPPO-DeepSeek baseline. It also cuts training time from about 8 hours to 2.5 hours over 100 epochs while markedly reducing RAM usage. The proposed RL-LLM framework offers a scalable path toward data-efficient trading agents. Code: https://github.com/Ruijian-Zha/FinRL-DAPO-SR/

Keywords

Cite

@article{arxiv.2505.06408,
  title  = {A New DAPO Algorithm for Stock Trading},
  author = {Ruijian Zha and Bojun Liu},
  journal= {arXiv preprint arXiv:2505.06408},
  year   = {2025}
}

Comments

Accepted to IEEE IDS 2025 Special Track: Financial Reinforcement Learning and Foundation Models (FinRLFM). 3 pages, 2 figures, 3 tables

R2 v1 2026-06-28T23:27:48.058Z