Constrained Portfolio Management Using Action Space Decomposition for Reinforcement Learning

David Winkel, Niklas Strauß, Matthias Schubert, Yunpu Ma, Thomas Seidl

Abstract

Reinforcement Learning (RL) agents in financial portfolio management must often adhere to strict investment constraints, such as minimum ESG allocations or short-selling limits. Traditional methods like Constrained Markov Decision Processes (CMDPs) rely on penalty terms or Lagrangian multipliers, which are difficult to tune and frequently result in constraint violations during training. We present Action Space Decomposition Based Optimization (ADBO), a novel framework that ensures strict constraint satisfaction by design. By decomposing the constrained action space into Masked Scaled Standard Simplices (MSSS) via Minkowski sums, ADBO transforms the constrained problem into an unconstrained surrogate MDP. Empirical evaluations on real-world financial data demonstrate that ADBO achieves superior performance and zero constraint violations compared to state-of-the-art CMDP benchmarks.

Introduction

In the financial sector, portfolio managers operate within a web of strict constraints. These may include "green" investment mandates (e.g., at least 40% in ESG-friendly stocks) or specific leverage limits (e.g., short-selling up to 30% of the budget). While Reinforcement Learning (RL) offers a powerful tool for dynamic optimization, standard algorithms typically treat the action space as a simple simplex where weights sum to 100%. Introducing additional constraints transforms this space into a complex, multi-dimensional polytope.

Traditional approaches to this problem involve Constrained Markov Decision Processes (CMDPs), which use Lagrangian multipliers or penalties to discourage the agent from breaking rules. However, these methods are notoriously difficult to tune, sample-inefficient, and prone to "accidental" violations during the early stages of training—a risk profile that is often unacceptable in professional finance.

Methodology: Action Space Decomposition

The proposed ADBO (Action Space Decomposition Based Optimization) framework avoids the "penalty" approach entirely. Instead, it designs the agent's output layer such that it is mathematically impossible to produce an illegal action.

The technical core of ADBO is Action Space Decomposition. Using the Minkowski sum—a method for combining sets of vectors—the authors demonstrate that complex constrained spaces can be broken down into simpler components called Masked Scaled Standard Simplices (MSSS).

The system architecture transforms the difficult CMDP into a standard, unconstrained MDP. The agent's policy network, built on a Proximal Policy Optimization (PPO) backbone with a GTrXL transformer for memory, features multiple "heads." Each head outputs a vector for one of the decomposed simplices. A mapping function then sums these individual outputs to reconstruct a final portfolio weight vector that is guaranteed to sit within the original constrained boundaries.

Experimental Setup

The researchers evaluated ADBO using historical data from the Nasdaq-100 Index and Environmental Score Metrics (ESM) from LSEG. The investment universe consisted of 13 assets (12 stocks plus one cash asset). Two primary scenarios were tested:

  1. SUSTA: A sustainability-focused task requiring at least 40% investment in top-tier ESG stocks.
  2. SHORT: A "130-30" strategy, allowing the agent to short 30% of the budget to leverage a 130% long position.

Results and Key Insights

ADBO demonstrated clear superiority over benchmark CMDP solvers like RCPO, IPO, and P3O in both performance and reliability.

  • Zero-Violation Training: While benchmarks recorded thousands of violations during training, ADBO maintained 0% constraint violations from the very first step. This "safe-by-design" property is critical for real-world deployment.
  • Superior Returns: In the SUSTA setting, ADBO achieved a total economic payoff of 0.2603, outperforming P3O (0.2561). In the more complex SHORT setting, ADBO significantly outperformed the field, achieving a payoff of 0.4272 compared to P3O’s 0.3512. Backtesting results for the SHORT strategy were particularly impressive, with ADBO reaching a 102.05% total payoff.

Conclusion

The success of ADBO highlights that architectural constraints can be far more effective than reward-based penalties in RL. By hard-coding the geometry of the action space, ADBO eliminates the need to balance profit rewards against violation penalties, leading to more stable and efficient learning. Future research will focus on extending this decomposition logic to a broader class of convex polytopes, potentially providing a universal constrained action layer for diverse financial applications.

Summary updated

BibTeX
@inproceedings{winkel2023constrained,
  author = {David Winkel and Niklas Strauß and Matthias Schubert and Yunpu Ma and Thomas Seidl},
  title = {{Constrained Portfolio Management Using Action Space Decomposition for Reinforcement Learning}},
  booktitle = {PAKDD},
  year = {2023},
  doi = {10.1007/978-3-031-33377-4\_29},
}
Figure