NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Model-based Deep Reinforcement Learning for Dynamic Portfolio Optimization

Pengqian Yu, Joon Sern Lee, Ilya Kulyatin, Zekun Shi, Sakyasingha DasguptaarXiv 2019

Abstract

Dynamic portfolio optimization is the process of sequentially allocating wealth to a collection of assets in some consecutive trading periods, based on investors' return-risk profile. Automating this process with machine learning remains a challenging problem. Here, we design a deep reinforcement learning (RL) architecture with an autonomous trading agent such that, investment decisions and actions are made periodically, based on a global objective, with autonomy. In particular, without relying on a purely model-free RL agent, we train our trading agent using a novel RL architecture consisting of an infused prediction module (IPM), a generative adversarial data augmentation module (DAM) and a behavior cloning module (BCM). Our model-based approach works with both on-policy or off-policy RL algorithms. We further design the back-testing and execution engine which interact with the RL agent in real time. Using historical real financial market data, we simulate trading with practical constraints, and demonstrate that our proposed model is robust, profitable and risk-sensitive, as compared to baseline trading strategies and model-free RL agents from prior work.

Introduction

Dynamic portfolio optimization involves continuously reallocating funds across financial assets to maximize returns while managing risk. Traditional methods, such as convex optimization, often struggle with the "curse of dimensionality" when managing large asset pools. While model-free Deep Reinforcement Learning (RL) has been proposed as a solution, it faces significant hurdles in financial markets due to non-stationarity and extreme data scarcity. For instance, a decade of daily trading data yields only about 2,530 data points—insufficient for training deep neural networks without severe overfitting. This work addresses these challenges by introducing a model-based RL framework that enhances stability and performance in real-world trading environments.

Methodology

The proposed architecture upgrades standard actor-critic RL algorithms (like DDPG and PPO) into a robust model-based framework using three specialized modules:

  1. Infused Prediction Module (IPM): This module provides the agent with forecasts of future price changes using Nonlinear Dynamic Boltzmann Machines (NDyBM) or WaveNet variants, allowing the agent to be proactive rather than purely reactive.
  2. Data Augmentation Module (DAM): To combat data scarcity, a Recurrent Generative Adversarial Network (RGAN) generates realistic synthetic market data. Maximum Mean Discrepancy (MMD) is employed to ensure the synthetic data distribution aligns with historical market behavior.
  3. Behavior Cloning Module (BCM): To stabilize trading and reduce volatility, the agent utilizes active imitation learning. It is penalized for deviating significantly from a "one-step greedy action"—the mathematically optimal trade for immediate profit—which acts as a volatility dampener.
Detailed architecture of the model-based RL agent, integrating the IPM, DAM, and BCM within an Actor-Critic framework.

The environment incorporates realistic constraints, including a 20 basis point transaction fee and a 50 basis point slippage penalty to ensure the simulation reflects practical trading conditions.

Experimental Setup

The model was evaluated using real historical U.S. equities data, including assets such as Costco, Cisco, Ford, Goldman Sachs, AIG, and Caterpillar, alongside a risk-free cash asset and the S&P 500 index as a market indicator. Tick-level data was aggregated into hourly OHLC bars. The training period spanned from January 2005 to December 2016, with out-of-sample testing conducted from January 2017 to December 2018.

Results and Discussion

The integration of these modules creates a synergistic effect: the IPM boosts returns, the DAM prevents overfitting to limited historical data, and the BCM minimizes catastrophic drawdowns.

Performance comparison of various module combinations against benchmarks (CRP and Baseline) across key financial metrics.

As shown in the performance table, the combined model ("All") achieved superior risk-adjusted returns with a Sharpe ratio of 0.63 and a Sortino ratio of 0.89, outperforming both the baseline DDPG (Sharpe 0.56) and the Constantly Rebalanced Portfolio (CRP) benchmark (Sharpe 0.57). Notably, the Maximum Drawdown (MDD) was reduced to 12.40%, demonstrating the framework's effectiveness in downside risk mitigation. The architecture also proved algorithm-agnostic; when applied to PPO, the modules increased the Sharpe ratio from a baseline of 0.37 to 1.26.

Conclusion

This research demonstrates that a model-based RL approach, combining prediction, data augmentation, and behavior cloning, can significantly improve the robustness and profitability of autonomous trading agents. While the current study used conservative slippage estimates due to a lack of volume data, future work could refine these models by incorporating liquidity metrics. Beyond finance, this architecture holds promise for other high-risk, data-poor RL domains such as robotics and industrial control.

Summary updated

BibTeX
@misc{yu2019model,
  author = {Pengqian Yu and Joon Sern Lee and Ilya Kulyatin and Zekun Shi and Sakyasingha Dasgupta},
  title = {{Model-based Deep Reinforcement Learning for Dynamic Portfolio Optimization}},
  year = {2019},
  eprint = {1901.08740},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1901.08740},
}
Figure