Introduction
Reinforcement Learning (RL) often struggles in environments with "bloated" action spaces, where many available choices are redundant or invalid. In real-world applications like power grid regulation or financial trading, the sheer number of possible actions can overwhelm standard agents, leading to inefficient exploration and slow convergence. While researchers frequently use "action masks" to prune these useless options, such masks typically require manual coding by domain experts—a task that becomes impossible in complex, state-dependent scenarios.
To address this, the No Prior Mask (NPM) framework autonomously identifies and filters redundant actions without requiring human-provided rules or expert demonstrations. By learning the underlying action structure from raw observations, NPM significantly accelerates training in high-dimensional environments.
Methodology: The NPM Framework
The NPM approach operates in two distinct phases, separating the understanding of environmental "physics" from the pursuit of specific goals.
Phase 1: Reward-Free Mask Learning
In the first phase, the agent explores the environment to identify action similarities based on outcomes. Two actions are considered redundant if, when taken from the same state, they lead to the same distribution of next states. To manage the computational cost of comparing every state-action pair in pixel space, NPM utilizes a modified inverse dynamic model. This model predicts the action taken during a state transition, which in turn helps an "N-value network" estimate action similarity efficiently.
Phase 2: Policy Optimization
Once the mask is trained, it clusters similar actions and selects a single representative for each cluster. The RL agent then operates within this "Minimal Action Space," drastically reducing the search space for policy optimization.
Crucially, because Phase 1 is reward-free, the learned mask captures the fundamental structure of the environment. This allows for zero-shot transfer, where a mask learned for one task can be immediately applied to a different task within the same environment.
Experimental Evaluation
The researchers evaluated NPM across several challenging benchmarks designed to test different types of redundancy:
- FourRooms (Synthetic Redundancy): A grid-world where specific actions are duplicated to test pruning capabilities.
- Continuous-state Maze: A task involving multiple actuators where the action space grows exponentially.
- MiniGrid & Atari (State-Dependent Redundancy): Complex environments where actions like "Pick Up" are only valid in specific states, tested using raw pixel inputs.
Key Results and Insights
NPM demonstrated superior performance across all benchmarks, particularly as the complexity of the action space increased. In the FourRooms task with 32 redundant actions, standard DQN failed to learn entirely, whereas NPM converged rapidly to the optimal solution.
Key Insights:
- Action Redundancy as Distribution Distance: Treating action similarity as a distance between state distributions allows the model to identify functionally identical actions for policy optimization.
- Theoretical Safety: The authors provide mathematical proof (Lemma 1) showing that eliminating actions based on their similarity factor has a negligible impact on final policy performance.
- Scalability: NPM successfully identified state-dependent redundancies in MiniGrid using only raw image inputs, outperforming PPO combined with curiosity-based exploration.
Limitations and Future Work
While NPM represents a significant step forward, it currently focuses on discrete action spaces. Extending the framework to truly continuous action spaces remains a future challenge. Additionally, the method relies on a similarity threshold ((\epsilon)) that may require manual tuning based on the environment's reward range. Finally, while more efficient than previous methods, the initial training of the inverse model and N-value network introduces a computational overhead before the main RL training begins.
Summary updated