Simplex Decomposition for Portfolio Allocation Constraints in Reinforcement Learning

David Winkel, Niklas Strauß, Matthias Schubert, Thomas Seidl · DOI

Abstract

Portfolio optimization tasks describe sequential decision problems in which the investor's wealth is distributed across a set of assets. Allocation constraints are used to enforce minimal or maximal investments into particular subsets of assets to control for objectives such as limiting the portfolio's exposure to a certain sector due to environmental concerns. Although methods for constrained Reinforcement Learning (CRL) can optimize policies while considering allocation constraints, it can be observed that these general methods yield suboptimal results. In this paper, we propose a novel approach to handle allocation constraints based on a decomposition of the constraint action space into a set of unconstrained allocation problems. In particular, we examine this approach for the case of two constraints. For example, an investor may wish to invest at least a certain percentage of the portfolio into green technologies while limiting the investment in the fossil energy sector. We show that the action space of the task is equivalent to the decomposed action space, and introduce a new reinforcement learning (RL) approach CAOSD, which is built on top of the decomposition. The experimental evaluation on real-world Nasdaq-100 data demonstrates that our approach consistently outperforms state-of-the-art CRL benchmarks for portfolio optimization.

Introduction

In portfolio management, investors rarely have total freedom. They face "allocation constraints"—rules like "at least 30% of the portfolio must be in green tech" or "no more than 15% in fossil fuels." In Reinforcement Learning (RL), the standard action space for a portfolio is a simplex, where all choices are non-negative and sum to 100%. When constraints are added, this simplex transforms into a complex convex polytope.

Traditional Constrained Reinforcement Learning (CRL) typically uses penalty-based methods to discourage rule violations. However, these "slap on the wrist" approaches do not guarantee compliance, can lead to unstable training, and often result in mediocre performance as the agent becomes overly cautious to avoid penalties.

Methodology: Simplex Decomposition (CAOSD)

The researchers propose CAOSD (Constrained Allocation Optimization with Simplex Decomposition). Instead of penalizing violations, CAOSD re-engineers the action space so that every move the agent makes is inherently valid.

The core innovation is a mathematical proof that a constrained action space (with up to two constraints) can be represented as a weighted Minkowski sum of four unconstrained sub-action spaces.

Visual representation of the simplex decomposition into four sub-action spaces.

The agent uses a Transformer-based encoder to process temporal market data and an auto-regressive architecture with a branching neural network to determine allocations. Within each sub-space, the agent employs Dirichlet distributions, making the optimization process more tractable than modeling a distribution over a complex polytope.

Experimental Setup

CAOSD was evaluated using historical Nasdaq-100 data from 2010 to 2020. To ensure robust training, the researchers used a Hidden Markov Model (HMM) to estimate market parameters and generate synthetic trajectories. The final performance was validated through backtesting on unseen data from the year 2021.

Results and Discussion

The experimental results show that CAOSD consistently outperforms state-of-the-art CRL benchmarks, including RCPO, IPO, and P3O.

Comparison of mean annualized total portfolio return across different RL methods during training.

In simulation environments, CAOSD achieved a mean annualized return of 0.327, outperforming the next best benchmark (P3O) at 0.305. In real-world backtesting on 2021 data, CAOSD reached a return of 0.552, significantly higher than the random baseline (0.333) and the best CRL benchmark (P3O at 0.522). These improvements were statistically significant at a 95% confidence interval, proving that the decomposition method provides a more stable and effective learning signal.

Conclusion

By baking constraints into the geometry of the action space, CAOSD ensures guaranteed compliance and superior financial performance. While the current work focuses on two constraints, future research will investigate generalizing this decomposition for a larger number of overlapping rules and exploring its application in other resource-allocation fields.

Summary updated

BibTeX
@inproceedings{winkel2023simplex,
  author = {David Winkel and Niklas Strauß and Matthias Schubert and Thomas Seidl},
  title = {{Simplex Decomposition for Portfolio Allocation Constraints in Reinforcement Learning}},
  booktitle = {ECAI},
  year = {2023},
  doi = {10.3233/faia230573},
}
Figure