TL;DR
Trading algorithms powered by Deep Reinforcement Learning (DRL) usually suffer from two blind spots: they only look at daily market summaries—missing crucial minute-by-minute panic or euphoria—and they destabilize easily in noisy financial environments. This paper introduces SCP, a framework that fuses daily trends with high-frequency intraday data while using a "greatest hits" memory buffer to keep the learning agent grounded. The result is a trading model that significantly boosts returns while slashing worst-case losses across major Chinese stock indices.
What Problem Does This Paper Address?
Imagine trying to navigate rush-hour traffic, but you only get a snapshot of the highway once every 24 hours. That is essentially how most Deep Reinforcement Learning (DRL) portfolio managers operate. By relying solely on daily closing prices, they miss fleeting intraday market microstructure dynamics—like sudden liquidity drops or order book imbalances—that signal rapid capital shifts.
Furthermore, financial markets have a notoriously terrible signal-to-noise ratio, and the rules of the game change constantly (non-stationarity). Standard RL algorithms learn by trial and error; in noisy markets, this leads to wildly high variance in gradient updates and unstable policies. Meanwhile, traditional supervised deep learning models try to predict stock prices directly, decoupling prediction from risk allocation—meaning one bad price forecast can wreck an entire portfolio. How do we build an RL agent that sees both the macro forest and the micro trees, without losing its mind in market noise?
Methods
The author proposes the Self-supervised Clipped-objective Portfolio (SCP) management framework, splitting the job into two distinct phases: multi-scale feature extraction and stabilized policy learning.
- Dual-Stream Spatiotemporal Feature Extraction (The Eyes):
- Temporal Transformers: Instead of feeding everything into one network, SCP runs two parallel Transformer encoders. A macro branch digests 20 days of daily price/volume metrics, while a micro branch processes 5 days of tick-level intraday order book data (like bid-ask spreads and market depth).
- Sector-Guided Graph Neural Network: Stocks don't move in a vacuum; industry leaders often pull their peers along (the lead-lag effect). Rather than connecting every stock to every other stock—which just amplifies noise—SCP connects assets strictly within the same industry sector, using a Graph Transformer (UniMP) to model how shocks propagate across related companies.
- Self-Supervised Clipped Policy Optimization (The Brain):
- Clipped-Objective Updates: Building on Proximal Policy Optimization (PPO), SCP applies clipping directly to the policy gradient objective (optimizing for the risk-adjusted Sharpe ratio). This acts like guardrails on a bowling lane, preventing massive, destructive policy shifts from a single weird trading day.
- Trajectory Ranking Buffer: Because markets are chaotic, even a mediocre trading policy will occasionally stumble into a brilliant sequence of trades. SCP stores past trading episodes in a fixed-size buffer, ranks them by their Sharpe ratio, throws out the duds, and forces the agent to imitate its own "greatest hits." This creates a self-supervised curriculum that steadily raises the bar.
Datasets
The author evaluates SCP on constituent stocks from three major benchmark indices in China's A-share market (spanning January 2014 to December 2021 for training, and January 2022 to April 2024 for testing):
- CSI 300: 300 large-cap stocks.
- CSI 500: 500 mid-cap stocks.
- CSI 1000: 1,000 small-cap stocks.
No new public benchmark datasets were introduced, though the author combines standard Qlib Alpha360 daily metrics with proprietary-style XNQuant tick-level factors.
Key Insights and Ideas
- High-frequency signals anchor daily decisions: Even if an investor only rebalances their portfolio periodically, feeding intraday order-book dynamics into the state representation acts as an early warning system for volatility, noticeably lifting risk-adjusted returns over daily-only baselines.
- Self-imitation tames RL variance: Treating an agent's luckiest, highest-reward trajectories as "expert demonstrations" filters out low-yield market noise, solving RL's sample inefficiency without needing expensive, human-curated trading logs.
- Keep financial Transformers shallow: In hyperparameter tests, stacking more than $L = 2$ Transformer layers actually hurt performance. In noisy financial time series, deeper networks quickly overfit to phantom patterns.
- Optimizer choice matters in RL: The relatively new Lion optimizer noticeably outperformed Adam and SGD here, showing surprising resilience to learning rate shifts in non-stationary RL tasks.
Key Results
Tested in both simulated long-short trading and realistic long-only setups (since Chinese retail regulations restrict short selling), SCP consistently beat traditional strategies, supervised models (LightGBM, DA-RNN), and state-of-the-art RL baselines (like MetaTrader and DeepTrader).
In long-short evaluations (Table 2):
- CSI 300: SCP achieved an 18.07% Annualized Return Rate (ARR) and an Annualized Sharpe Ratio (ASR) of 1.97—a massive leap over MetaTrader's 0.79% ARR and 0.06 ASR—while keeping Maximum Drawdown (MDD, the worst peak-to-trough drop) down to 4.76% (while the broader market dropped 12.03% with a 35.34% drawdown).
- CSI 500 & CSI 1000: SCP hit 7.99% ARR (1.60 ASR) on CSI 500 and 19.61% ARR (2.43 ASR) on CSI 1000, consistently balancing high returns with tight drawdown control.
Limitations and Future Work
- Idealized Trading Assumptions: The simulation assumes a price-taker environment with zero liquidity constraints and sufficient capital reserves—meaning the model assumes its own trades won't move the market price, which can break down when trading large volumes in small-cap stocks.
- Scale & Turnover Friction: Performance gains were more constrained on the CSI 1000 compared to the CSI 300. Tracking 1,000 stocks balloons the state-space complexity, and frequent index constituent turnover creates temporal discontinuities in what the agent is trying to learn.
- Future Directions: The author plans to integrate Large Language Models (LLMs) into the RL loop to digest multimodal market news alongside microstructure data, aiming for sharper momentum forecasting and more adaptive reward designs.
Summary updated