cs.LGMar 10, 2026

Overcoming Valid Action Suppression in Unmasked Policy Gradient Algorithms

Authors: Renos Zabounidis, Roy Siegelmann, Mohamad Qadri, Woojun Kim, Simon Stepputtis, Katia P. Sycara

Organizations: Carnegie Mellon University · Massachusetts Institute of Technology · Virginia Tech, Department of Mechanical Engineering

Abstract

In reinforcement learning environments with state-dependent action validity, action masking consistently outperforms penalty-based handling of invalid actions, yet existing theory only shows that masking preserves the policy gradient theorem. We identify a distinct failure mode of unmasked training: it systematically suppresses valid actions at states the agent has not yet visited. This occurs because gradients pushing down invalid actions at visited states propagate through shared network parameters to unvisited states where those actions are valid. We prove that for softmax policies with shared features, when an action is invalid at visited states but valid at an unvisited state s∗s^*, the probability π(a∣s∗)π(a \mid s^*) is bounded by exponential decay due to parameter sharing and the zero-sum identity of softmax logits. This bound reveals that entropy regularization trades off between protecting valid actions and sample efficiency, a tradeoff that masking eliminates. We validate empirically that deep networks exhibit the feature alignment condition required for suppression, and experiments on Craftax, Craftax-Classic, and MiniHack confirm the predicted exponential suppression and demonstrate that feasibility classification enables deployment without oracle masks.

Figures & tables

Appendix figures & tables8 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Sparse Masked Attention Policies for Reliable Generalization

    Feb 23, 2026Caroline Horsch, Laurens Engwegen, Max Weltevrede +2Reinforcement LearningGeneralization in RL

  2. Confessions of a Masked MDP

    Oct 20, 2026Sebastian Reboul, Lorenzo Croissant, Hélène HalconruyReinforcement LearningConstrained RL

  3. Evaluating Model-Free Policy Optimization in Masked-Action Environments via an Exact Blackjack Oracle

    Mar 19, 2026Kevin SongPolicy OptimizationReinforcement Learning