Abstract
Portfolio management via reinforcement learning is at the forefront of fintech research, which explores how to optimally reallocate a fund into different financial assets over the long term by trial-and-error. Existing methods are impractical since they usually assume each reallocation can be finished immediately and thus ignoring the price slippage as part of the trading cost. To address these issues, we propose a hierarchical reinforced stock trading system for portfolio management (HRPM). Concretely, we decompose the trading process into a hierarchy of portfolio management over trade execution and train the corresponding policies. The high-level policy gives portfolio weights at a lower frequency to maximize the long term profit and invokes the low-level policy to sell or buy the corresponding shares within a short time window at a higher frequency to minimize the trading cost. We train two levels of policies via pre-training scheme and iterative training scheme for data efficiency. Extensive experimental results in the U.S. market and the China market demonstrate that HRPM achieves significant improvement against many state-of-the-art approaches.
Introduction
In algorithmic trading, most Reinforcement Learning (RL) models operate under the assumption that assets can be traded instantly at current market prices. However, in real-world scenarios, large trades often move the market, leading to price slippage—the difference between the expected price and the actual execution price. Traditional RL approaches typically focus on high-level portfolio optimization while neglecting the granular details of trade execution. Conversely, execution-only algorithms minimize costs for single trades without a long-term strategic view. This paper introduces the Hierarchical Reinforced stock trading system for Portfolio Management (HRPM) to bridge this temporal and functional gap.
The HRPM Framework
The HRPM framework decomposes portfolio management into a two-level hierarchy to handle different decision frequencies and objectives.
High-Level Policy: The Manager
The high-level policy operates at a lower frequency (e.g., every 5 days) to determine target portfolio weights. It utilizes the REINFORCE algorithm with an entropy bonus. This bonus is critical as it encourages diversification, preventing the model from over-concentrating in a few assets and thus acting as an inherent risk-management mechanism.
Low-Level Policy: The Trader
The low-level policy operates at a high frequency (e.g., every 30 seconds) to execute the "subtasks" generated by the manager. It decides the specific price and quantity for limit orders using a Branching Dueling Q-Network. This architecture allows the model to manage multi-dimensional action spaces (price and volume) efficiently without exponential complexity.
To ensure data efficiency, the system employs a pre-training and iterative training scheme, where the low-level trader is first trained across various market conditions to learn robust execution before being integrated with the high-level manager.
Experimental Evaluation
The framework was tested on the U.S. market (23 DJIA stocks) and the China market (23 SSE 50 stocks) using historical price and Limit Order Book (LOB) data.
Key Results
HRPM demonstrated significant performance gains over state-of-the-art baselines like Deep Portfolio Management (DPM):
- U.S. Market: HRPM achieved an Annual Rate of Return (ARR) of 27.09%, surpassing the DJIA index (20.82%) and the DPM baseline (19.86%).
- China Market: The performance was even more pronounced, with HRPM reaching an ARR of 48.74%, compared to the SSE 50 index's 6.08% and DPM's 35.81%.
- Risk Management: HRPM maintained the lowest Maximum DrawDown (MDD), proving its effectiveness in managing downside risk while chasing returns.
Conclusion
By treating slippage as a primary constraint and utilizing a hierarchical structure, HRPM provides a more realistic and effective approach to automated portfolio management. The integration of high-level strategy with high-frequency execution allows the system to not only decide what to trade but also how to trade it optimally, significantly reducing hidden costs and improving overall profitability. Future work may involve modeling the feedback loop of market impact for larger institutional trades and incorporating alternative data sources like news sentiment.
Summary updated