Action Space Shaping in Deep Reinforcement Learning

Anssi Kanervisto, Christian Scheller, Ville Hautamäki · DOI

Abstract

While reinforcement learning (RL) has achieved remarkable success in complex domains, its performance often depends on manual "action space shaping"—the process of modifying the available actions to simplify the task. This paper presents the first systematic empirical study of common action space transformations, including removing redundant actions, discretizing continuous inputs, and choosing between discrete and multi-discrete representations. Our findings demonstrate that while some intuitive modifications significantly accelerate learning, others, such as converting multi-discrete spaces into large discrete sets, can hinder performance and scalability.

Introduction

In theory, a sufficiently powerful RL agent should be able to learn from any interface. In practice, however, providing an agent with an unoptimized action space—such as a controller with 100 buttons—often leads to prohibitive exploration costs. To mitigate this, researchers frequently use "Action Space Shaping" to prune or transform the available actions based on domain intuition. Until now, these practices lacked a systematic empirical foundation. This study aims to turn these common heuristics into evidence-based guidelines for designing effective RL interfaces.

Methods

The study categorizes common action space transformations into three primary types:

  1. Remove Actions (RA): Deleting actions that are unnecessary or potentially harmful to exploration (e.g., removing a "backward" button to force forward progress).
  2. Discretize Continuous (DC): Converting continuous inputs, such as mouse sensitivity or joystick axes, into a finite set of discrete choices (e.g., Left, Right, or None).
  3. Convert Multi-Discrete to Discrete (CMD): Taking independent action dimensions (e.g., Move, Jump, Fire) and combining every possible permutation into a single, large list of discrete choices.

These transformations were evaluated using state-of-the-art RL algorithms, specifically Proximal Policy Optimization (PPO) and IMPALA, across a diverse set of benchmarks including Atari 2600, ViZDoom, Obstacle Tower, and StarCraft II.

Results and Discussion

The Impact of Discretization and Action Pruning

Our experiments confirm that raw continuous controls are often too brittle for complex 3D tasks. In environments like ViZDoom, agents using continuous mouse movement frequently failed to learn entirely. Discretizing these inputs into "bins" was often the critical factor for success.

Furthermore, we observed a significant "Backward Penalty" in 3D navigation tasks. Removing the ability to move backward prevents the agent from jittering in place during random exploration, effectively forcing it to explore new territory and speeding up convergence.

Figure 1: Comparison of different action space types and the impact of removing backward movement or adding strafing on episodic reward.

Scalability of Multi-Discrete Spaces

A common practice in RL research is to flatten multi-dimensional action spaces into a single discrete list (CMD). However, our results indicate that this approach scales poorly. As the number of possible actions increases—even if those actions are "bogus" or redundant—the performance of purely discrete agents drops sharply. In contrast, Multi-Discrete spaces, where the agent makes simultaneous, independent decisions for different action axes, maintain high performance and efficiency even as the action space grows.

Figure 2: Scalability analysis showing that Multi-Discrete spaces are significantly more robust to the addition of extra or useless (bogus) actions compared to Discrete spaces.

Domain-Specific Insights

  • StarCraft II: Action masking, which prevents the agent from attempting illegal moves, proved essential for learning in high-complexity scenarios like BuildMarines.
  • Atari: In simpler 2D environments, the benefits of action pruning were less pronounced. If the environment is simple enough, agents can often learn to ignore redundant buttons without manual intervention.

Conclusion and Future Work

This research provides empirical evidence that action space design is a critical component of RL system performance. While manual shaping through discretization and pruning is currently necessary, it relies heavily on human domain knowledge. The authors suggest that the next frontier in this field is Automated Action Space Shaping, where algorithms dynamically sense and prune redundant actions during training, reducing the need for manual engineering and making RL more generally applicable.

Summary updated

BibTeX
@inproceedings{kanervisto2020action,
  author = {Anssi Kanervisto and Christian Scheller and Ville Hautamäki},
  title = {{Action Space Shaping in Deep Reinforcement Learning}},
  booktitle = {CoG},
  year = {2020},
  doi = {10.1109/cog47356.2020.9231687},
}
Figure