基於深度強化學習之美股投資代理系統:風險敏感獎 勵設計與績效優化研究
Designing a DRL-Driven Portfolio Agent for the US Stock Market: Reward Structuring via Sharpe Ratio and Drawdown Sensitivity
摘要
The proliferation of Deep Reinforcement Learning (DRL) in FinTech has presented a crit-
ical challenge: designing autonomous agents that can effectively navigate the intricate trade-off
between risk and reward. Conventional DRL applications in algorithmic trading often falter, as
their reward functions, typically focused on maximizing absolute returns, produce policies that
are unstable and fragile amidst the volatility of real-world financial markets.
To address this limitation, we propose and implement a comprehensive portfolio manage-
ment framework for the U.S. stock market, centered on a novel risk-sensitive reward mech-
anism. Our framework begins with a data-driven pipeline, employing the Boruta algorithm
for critical feature selection and K-Means clustering for robust asset selection. At its core,
we systematically evaluate a suite of prominent DRL algorithms—including A2C, PPO, TD3,
and SAC—and introduce our primary innovation: dynamic integration of the Sharpe Ratio
into the reward shaping process. This approach explicitly guides the agent to learn resilient
investment strategies that balance high-return potential with strong risk aversion.
We conduct rigorous backtesting on historical data of the Dow Jones Industrial Average
constituents from 2009 to 2025. The empirical results unequivocally demonstrate that DRL
agents guided by our risk-sensitive reward mechanism significantly outperform both market
benchmarks and their counterparts trained with conventional reward functions across multiple
performance dimensions, including cumulative returns, volatility, and maximum drawdown.
Notably, these agents exhibit superior robustness during periods of extreme market stress, such
as the COVID-19 pandemic. Our findings not only validate the feasibility and superiority of our
proposed approach for automated investment but also lay a solid foundation for the advancement
of risk-aware DRL in the financial domain.
ical challenge: designing autonomous agents that can effectively navigate the intricate trade-off
between risk and reward. Conventional DRL applications in algorithmic trading often falter, as
their reward functions, typically focused on maximizing absolute returns, produce policies that
are unstable and fragile amidst the volatility of real-world financial markets.
To address this limitation, we propose and implement a comprehensive portfolio manage-
ment framework for the U.S. stock market, centered on a novel risk-sensitive reward mech-
anism. Our framework begins with a data-driven pipeline, employing the Boruta algorithm
for critical feature selection and K-Means clustering for robust asset selection. At its core,
we systematically evaluate a suite of prominent DRL algorithms—including A2C, PPO, TD3,
and SAC—and introduce our primary innovation: dynamic integration of the Sharpe Ratio
into the reward shaping process. This approach explicitly guides the agent to learn resilient
investment strategies that balance high-return potential with strong risk aversion.
We conduct rigorous backtesting on historical data of the Dow Jones Industrial Average
constituents from 2009 to 2025. The empirical results unequivocally demonstrate that DRL
agents guided by our risk-sensitive reward mechanism significantly outperform both market
benchmarks and their counterparts trained with conventional reward functions across multiple
performance dimensions, including cumulative returns, volatility, and maximum drawdown.
Notably, these agents exhibit superior robustness during periods of extreme market stress, such
as the COVID-19 pandemic. Our findings not only validate the feasibility and superiority of our
proposed approach for automated investment but also lay a solid foundation for the advancement
of risk-aware DRL in the financial domain.
隨著深度強化學習(Deep Reinforcement Learning, DRL)在金融科技領域的興起,
如何設計能有效平衡風險與報酬的自動化交易代理,成為了關鍵挑戰。傳統的DRL 應
用常因獎勵函數過度專注於最大化絕對收益,導致其策略在真實市場的劇烈波動下表
現不穩且脆弱。
為應對此挑戰,本論文針對美國道瓊工業指數市場,提出並實現了一套以風險
敏感型獎勵機制為核心的深度強化學習投資框架。繼而在決策層創新地將夏普比率
(Sharpe Ratio)動態融入獎勵函數設計中,藉此引導代理學習兼具高報酬潛力與強韌
性的投資策略。
本研究以道瓊成分股採用從2009年1月1日到2025年3月31日的歷史資料,進行嚴謹
的模型訓練與回測,實驗結果清晰地表明,搭載了風險敏感型獎勵機制的DRL 模型
(特別是SAC 與TD3),在多維度績效指標(如累積報酬、波動率、最大回撤)上,
均顯著優於傳統市場基準以及採用原始獎勵函數的對照組,尤其在COVID-19 疫情等極
端市場環境下展現出卓越的穩健性。本研究成果不僅驗證了此方法在自動化投資決策
上的可行性與優越性,也為風險感知DRL 在金融領域的深入應用奠定了堅實的基礎。
如何設計能有效平衡風險與報酬的自動化交易代理,成為了關鍵挑戰。傳統的DRL 應
用常因獎勵函數過度專注於最大化絕對收益,導致其策略在真實市場的劇烈波動下表
現不穩且脆弱。
為應對此挑戰,本論文針對美國道瓊工業指數市場,提出並實現了一套以風險
敏感型獎勵機制為核心的深度強化學習投資框架。繼而在決策層創新地將夏普比率
(Sharpe Ratio)動態融入獎勵函數設計中,藉此引導代理學習兼具高報酬潛力與強韌
性的投資策略。
本研究以道瓊成分股採用從2009年1月1日到2025年3月31日的歷史資料,進行嚴謹
的模型訓練與回測,實驗結果清晰地表明,搭載了風險敏感型獎勵機制的DRL 模型
(特別是SAC 與TD3),在多維度績效指標(如累積報酬、波動率、最大回撤)上,
均顯著優於傳統市場基準以及採用原始獎勵函數的對照組,尤其在COVID-19 疫情等極
端市場環境下展現出卓越的穩健性。本研究成果不僅驗證了此方法在自動化投資決策
上的可行性與優越性,也為風險感知DRL 在金融領域的深入應用奠定了堅實的基礎。