Abstract
Reinforcement Learning (RL) agents often struggle in environments with "bloated" action spaces where many actions are redundant or lead to identical state transitions. This paper introduces No Prior Mask (NPM), a framework that autonomously identifies and filters out these redundant actions without requiring human-provided rules or expert demonstrations. By learning the underlying structure of the action space through state-transition dynamics, NPM significantly speeds up training in complex environments with high-dimensional or redundant action sets.
Introduction
In many real-world and simulated tasks, the action space—the set of possible operations an agent can perform—is unnecessarily large. This redundancy often stems from hardware configurations (e.g., multiple motors controlling a single joint) or logical overlaps (e.g., in a game, "Move Left" and "Move Left + Fire" might result in the same movement if the agent has no ammunition).
Standard RL algorithms treat every action as unique, leading to a "combinatorial explosion" where the agent wastes millions of steps exploring redundant options. While researchers often use hand-crafted "action masks" to prune these spaces, such masks require domain expertise and are difficult to scale. NPM addresses this by asking: Can an agent learn the underlying structure of its action space and mask itself without any prior knowledge?
Methodology
The NPM framework operates in two distinct phases to decouple action-space learning from task-specific policy optimization.
Phase 1: Training the "No Prior Mask"
The agent explores the environment in a reward-free manner. It utilizes a Modified Inverse Dynamics Model to predict which action was taken given a specific state transition. From this, the system derives an N-value Network to calculate a Similarity Factor. If Action A and Action B consistently lead to the same next-state distribution from the same starting point, they are mathematically identified as similar.
Phase 2: Policy Optimization
Once the similarity between actions is mapped, the agent clusters similar actions and selects a single "representative" from each cluster. During task training (e.g., using PPO or DQN), the agent only considers this "minimal action space," effectively ignoring the noise of redundant options. A key theoretical contribution, Lemma 1, proves that eliminating actions based on this similarity factor has a bounded, minimal impact on the final policy's performance.
Experimental Results
The researchers evaluated NPM across diverse benchmarks, including synthetic grid-worlds, continuous-state mazes, and Atari 2600 games.
In the Four-Rooms task, the action space was artificially bloated by repeating specific actions (e.g., "Right") multiple times. As the number of redundant actions ($n$) increased, standard DQN performance collapsed due to the increased search space. In contrast, NPM maintained high-speed convergence regardless of the redundancy level by successfully filtering the action space back to its core components.
In more complex scenarios, such as a Maze task with 256 possible actions, NPM reached maximum reward in roughly 0.5 million steps. Standard DQN failed to learn entirely, and the state-of-the-art baseline (MinRed) required twice as many steps as NPM to achieve similar results. NPM also scaled effectively to pixel-input Atari games, outperforming PPO by filtering out redundant "Fire" combinations in states where firing had no effect on the environment.
Discussion and Key Insights
- Task-Agnostic Learning: Because the mask is learned based on environment dynamics (state transitions) rather than rewards, it is inherently task-agnostic. A mask learned for one objective can be transferred to different tasks within the same environment without retraining.
- Efficiency via the "N-Value" Trick: Directly calculating KL-divergence between state distributions is computationally prohibitive in high-dimensional spaces. The authors' "N-value" formulation allows for efficient similarity estimation using an inverse model.
- Action Clustering: Visualizations of the learned similarity matrices show that actions like "Left-Fire" and "Up-Left" naturally cluster with "Left" in games when firing is ineffective, providing a clear mechanism for search-space reduction.
Conclusion
NPM provides a robust method for automating action-space pruning in Reinforcement Learning. While the current implementation focuses on discrete action spaces and requires a front-loaded pre-training phase, its ability to handle massive redundancy without human intervention marks a significant step toward more autonomous and efficient RL agents. Future work may extend these principles to continuous action spaces and dynamic environments where redundancy patterns change over time.
Summary updated