TL;DR
Selecting the right action space for Reinforcement Learning (RL) is often a manual, "artisanal" process prone to the curse of dimensionality. This paper introduces a data-driven framework that uses Shapley values and Monte Carlo simulations to automatically categorize, rank, and prune action spaces, reducing the search space by up to 80% while maintaining or even improving agent performance.
What Problem Does This Paper Address?
In Reinforcement Learning, an agent learns to maximize rewards by choosing actions ($A$) based on its current state ($S$). However, defining the set of available actions is a major bottleneck. If the action space is too large, the agent suffers from the "curse of dimensionality," leading to exponential training times and high computational costs. If it's too small or poorly chosen, the agent may never reach its goal.
Currently, most researchers select action spaces based on intuition or trial-and-error. There is a lack of systematic, data-driven tools to evaluate which actions are truly necessary and which are redundant. This paper aims to bridge that gap by providing a principled way to value training data in an RL context, similar to how data valuation has evolved in supervised learning.
Methods
The authors propose a two-step framework inspired by game theory and statistical sampling:
- Action Shapley: The core idea is to adapt the Shapley value—a method from cooperative game theory to distribute "payouts" fairly among players—to quantify the contribution of individual actions to the agent's total reward. Because calculating exact Shapley values is exponentially expensive, the authors use a Monte Carlo simulation to approximate them.
- Algorithm 1 (Cut-off Cardinality): This algorithm identifies the minimum number of action points needed to achieve high-fidelity predictions within an acceptable error bound. This effectively prunes the search space before deeper analysis begins.
- Algorithm 2 (Categorization and Ranking): Once the search space is pruned, this algorithm classifies actions into two groups:
- Indispensable: Actions that, if removed, prevent the agent from ever reaching its goal.
- Dispensable: Actions that are non-essential. These are further ranked based on their relative contribution to the cumulative reward.
The overall flow of this framework is illustrated in Figure 2:
Datasets
The methodology was validated using a real-world case study in cloud infrastructure resource tuning.
- Environment: A simulated cloud environment where the goal is to reduce high CPU utilization (above 90%) by adjusting virtual machine (VM) resources.
- Action Space: Five different AWS EC2 instance types (
small,medium,large,xlarge,2xlargefrom thet3afamily), defined by their number of vCPUs and memory size. - Data Generation: Training data was generated internally using the
stresstool to create high-load scenarios. CPU utilization metrics were collected via AWS CloudWatch at 1-minute intervals over 24 hours.
Key Insights and Ideas
- More is Not Always Better: One of the most striking findings is that a high-cardinality action space (having more choices) does not guarantee the best reward. In the case study, an action set with four specific instances outperformed the full set of five.
- Indispensability is Task-Specific: The framework identified that for the specific goal of lowering CPU usage, larger instances (
large,xlarge,2xlarge) were "indispensable." Without them, the agent simply could not satisfy the performance threshold, no matter how much it trained. - Handling Non-Uniformity: Real-world action spaces (like cloud instance sizes) are often non-linear and non-uniformly spaced. Traditional RL struggles with this, but the Shapley-inspired approach naturally accounts for these complex state-action relationships by focusing on the outcome (reward) rather than the parametric distance between actions.
Key Results
- Search Space Reduction: The methodology reduced the search space by 80% in the cloud tuning example.
- Performance Ranking: The framework successfully ranked action sets. The set
<medium, large, xlarge, 2xlarge>achieved the highest reward (-13), while the full set<small, medium, large, xlarge, 2xlarge>ranked lower (-21). - Categorization: The tool clearly distinguished between dispensable actions (
small,medium) and indispensable ones (large,xlarge,2xlarge).
Figure 3 shows the raw CPU utilization data that the agent had to navigate, highlighting the different "signatures" of each action:
Limitations and Future Work
While the results are promising, the authors note a few areas for further development:
- Domain Specificity: The current case study is focused on cloud infrastructure. While the authors claim the method is extensible, testing it on more diverse RL benchmarks (like robotics or gaming) would strengthen the case for its generality.
- Computational Overhead: Even with Monte Carlo approximations, Shapley values can be expensive to compute for very large action spaces.
- Integration: The authors plan to contribute this methodology to general RL design libraries and open-source projects like Ray, OpenAI Gym, and Katib to make it accessible to the broader community.
Summary updated