A Closer Look at Invalid Action Masking in Policy Gradient Algorithms
Not on the map. Why?
Cited by 80 in Deep reinforcement learning methods, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
In recent years, Deep Reinforcement Learning (DRL) algorithms have achieved state-of-the-art performance in many challenging strategy games. Because these games have complicated rules, an action sampled from the full discrete action distribution predicted by the learned policy is likely to be invalid according to the game rules (e.g., walking into a wall). The usual approach to deal with this problem in policy gradient algorithms is to "mask out" invalid actions and just sample from the set of valid actions. The implications of this process, however, remain under-investigated. In this paper, we 1) show theoretical justification for such a practice, 2) empirically demonstrate its importance as the space of invalid actions grows, and 3) provide further insights by evaluating different action masking regimes, such as removing masking after an agent has been trained using masking. The source code can be found at https://github.com/vwxyzjn/invalid-action-masking
Key facts. Cited by 171 papers in the map (data through 14 Oct 2026). First posted on arXiv 25 Jun 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 8; 2022: 11; 2023: 19; 2024: 31; 2025: 49; 2026: 53.
171 papers.
Sort:
By area:
- 2022Is Reinforcement Learning (Not) for Natural Language Processing: Benchmarks, Baselines, and Building Blocks for Natural Language Policy Optimizationcited by 246
- 2023Generating Synergistic Formulaic Alpha Collections via Reinforcement Learningcited by 39
- 2021Understanding Continual Learning Settings with Data Distribution Drift Analysiscited by 38
- 2022Provably Safe Reinforcement Learning: Conceptual Analysis, Survey, and Benchmarkingcited by 34
- 2022Scalable Multi-Agent Reinforcement Learning for Warehouse Logistics with Robotic and Human Co-Workerscited by 30
- 2024AlphaForge: A Framework to Mine and Dynamically Combine Formulaic Alpha Factorscited by 27
- 2022Provably Safe Reinforcement Learning via Action Projection using Reachability Analysis and Polynomial Zonotopescited by 26
- 2022Beyond CAGE: Investigating Generalization of Learned Autonomous Network Defense Policiescited by 23
- 2021A Reinforcement Learning Environment For Job-Shop Schedulingcited by 21
- 2021Gym-μRTS: Toward Affordable Full Game Real-time Strategy Games Research with Deep Reinforcement Learningcited by 19
- 2024Excluding the Irrelevant: Focusing Reinforcement Learning through Continuous Action Maskingcited by 19
- 2023Learning Hierarchical Interactive Multi-Object Search for Mobile Manipulationcited by 14
38 more
- 2024HOPE: A Reinforcement Learning-based Hybrid Policy Path Planner for Diverse Parking Scenarioscited by 11
- 2023Generative Modelling of Stochastic Actions with Arbitrary Constraints in Reinforcement Learningcited by 10
- 2021Generalising Discrete Action Spaces with Conditional Action Treescited by 6
- 2022Safe and Psychologically Pleasant Traffic Signal Control with Reinforcement Learning using Action Maskingcited by 6
- 2024Introducing PetriRL: An Innovative Framework for JSSP Resolution Integrating Petri nets and Event-based Reinforcement Learningcited by 6
- 2021Deep Reinforcement Learning for Constrained Field Development Optimization in Subsurface Two-phase Flowcited by 5
- 2022Learning to design without prior data: Discovering generalizable design strategies using deep learning and tree searchcited by 5
- 2023Discovery of Optimal Quantum Error Correcting Codes via Reinforcement Learningcited by 5
- 2024Physics-Aware Combinatorial Assembly Sequence Planning using Data-free Action Maskingcited by 5
- 2024Effective Analog ICs Floorplanning with Relational Graph Neural Networks and Reinforcement Learningcited by 5
- 2024Action Mapping for Reinforcement Learning in Continuous Environments with Constraintscited by 5
- 2025Discovering highly efficient low-weight quantum error-correcting codes with reinforcement learningcited by 5
- 2023Learning policies for resource allocation in business processescited by 4
- 2025Reinforced Context Order Recovery for Adaptive Reasoning and Planningcited by 4
- 2021CleanRL: High-quality Single-file Implementations of Deep Reinforcement Learning Algorithmscited by 3
- 2023Learning to Recharge: UAV Coverage Path Planning through Deep Reinforcement Learningcited by 3
- 2024Scaling Team Coordination on Graphs with Reinforcement Learningcited by 3
- 2024Revisiting Space Mission Planning: A Reinforcement Learning-Guided Approach for Multi-Debris Rendezvouscited by 3
- 2024BraVE: Offline Reinforcement Learning for Discrete Combinatorial Action Spacescited by 3
- 2025Increasing Interaction Fidelity: Training Routines for Biomechanical Models in HCIcited by 3
- 2025Narrowing Action Choices with AI Improves Human Sequential Decisionscited by 3
- 2021Reinforcement Learning With Sparse-Executing Actions via Sparsity Regularizationcited by 2
- 2022A Reinforcement Learning Approach to Domain-Knowledge Inclusion Using Grammar Guided Symbolic Regressioncited by 2
- 2023Learning to Generate All Feasible Actionscited by 2
- 2023Multi-Agent Reinforcement Learning with Action Masking for UAV-enabled Mobile Communicationscited by 2
- 2023X-RLflow: Graph Reinforcement Learning for Neural Network Subgraphs Transformationcited by 2
- 2024A Competition Winning Deep Reinforcement Learning Agent in microRTScited by 2
- 2024Climate Adaptation with Reinforcement Learning: Experiments with Flooding and Transportation in Copenhagencited by 2
- 2024From Imitation to Exploration: End-to-end Autonomous Driving based on World Modelcited by 2
- 2024Multi-Agent Actor-Critics in Autonomous Cyber Defensecited by 2
- 2024Integrating Transit Signal Priority into Multi-Agent Reinforcement Learning based Traffic Signal Controlcited by 2
- 2025Embodied Escaping: End-to-End Reinforcement Learning for Robot Navigation in Narrow Environmentcited by 2
- 2025Optimizing Navigation And Chemical Application in Precision Agriculture With Deep Reinforcement Learning And Conditional Action Treecited by 2
- 2025Graph-Enhanced Model-Free Reinforcement Learning Agents for Efficient Power Grid Topological Controlcited by 2
- 2025Integrating Human Knowledge Through Action Masking in Reinforcement Learning for Operations Researchcited by 2
- 2025pix2pockets: Shot Suggestions in 8-Ball Pool from a Single Image in the Wildcited by 2
- 2025Delphos: A reinforcement learning framework for assisting discrete choice model specificationcited by 2
- 2025Goal-Conditioned Reinforcement Learning for Data-Driven Maritime Navigationcited by 2
50 most cited of 171 All 171 (JSON)
- 2026Time Window Optimization for Motor Imagery Classification via Temporal Structure Embedded Reinforcement Learning12 Oct 2026
- 2026Goal-Oriented Bundle Management and Flow Control for Deep-Space Communications via Reinforcement Learning9 Oct 2026
- 2026Learning Explainable Representations of Complex Game-playing Strategies6 Oct 2026
- 2026Measure Less, Know More: Self-Supervised Test-Time Feature Acquisition2 Oct 2026
- 2026ZeroCode: On-demand Error-Correcting Code Construction from the Zero Matrix via Reinforcement Learning28 Sep 2026
- 2026Auditability Is Not One Property: Rule Overlap, Behavioural Agreement, and Composition in Reinforcement Learning23 Sep 2026
- 2026Cost-Aware Reinforcement Learning with Action Masking and Projection for Battery Energy Storage Dispatch under Suppressed-Spread Market Shifts20 Sep 2026
- 2026Multitask Reinforcement Learning for Assisting Choice Model Specification16 Sep 2026
- 2026REPLICANT: Learning Policies for Evading and Hardening Malware Detectors28 Aug 2026
- 2026Multi-Objective Deep Reinforcement Learning for Secure and Stable Power System Operation21 Aug 2026
- 2026Does Latent Context Help? A Controlled Evaluation of Inverse Reinforcement Learning in Arctic Shipping6 Aug 2026
- 2026AlphaG-OPD: Reliability-Gated Sibling Counterfactuals for On-Policy Distillation in Symbolic Alpha Factor Discovery2 Aug 2026
38 more
- 2026Optimal Reward Shaping: Autonomous Car Parking Case Study26 Jul 2026
- 2026Position: Quantum Program Generation Must Prioritize Validity Over Probabilistic Scaling15 Jul 2026
- 2026A Gold-Standard Study of What Makes a Lightweight Game-Playing Agent Strong7 Jul 2026
- 2026EU-ETS under attack? The impact of carbon price suppression on the decarbonization of the power sector6 Jul 2026
- 2026Hierarchical Reinforcement Learning for Sparse-Reward Search in Commutative Algebra22 Jun 2026
- 2026Deep RL for Fast Long-Horizon Operations Scheduling on NASA's Carruthers Geocorona Observatory Mission20 Jun 2026
- 2026Phase-Aware Guidance Injection for Recurrent MAPPO in Assembly-Line Disruption Recovery15 Jun 2026
- 2026Bellman-Taylor Score Decoding for Markov Decision Processes with State-Dependent Feasible Action Sets9 Jun 2026
- 2026MOSAIC: Modular Orchestration for Structured Agentic Intelligence and Composition30 May 2026
- 2026The Challenges of Using Reinforcement Learning for Controlling Industrial Energy Systems29 May 2026
- 2026AlphaTransit: Learning to Design City-scale Transit Routes27 May 2026
- 2026Reinforcement Learning with a Bilevel World-Model Architecture for Scan-Order Optimisation in Laser Directed Energy Deposition24 May 2026
- 2026Reinforcement Learning for Graph Generation under a Hard Assortativity Constraint22 May 2026
- 2026Learning Selective Merge Policies for Deadline-Constrained Coded Caching via Deep Reinforcement Learning13 May 2026
- 2026Learning Local Constraints for Reinforcement-Learned Content Generators13 May 2026
- 2026Causal Reinforcement Learning for Complex Card Games: A Magic The Gathering Benchmark7 May 2026
- 2026Reward Shaping and Action Masking for Compositional Tasks using Behavior Trees and LLMs7 May 2026
- 2026A Structural Threshold in Decision Capacity Governs Collapse in Self-Play Reinforcement Learning4 May 2026
- 2026When Actions Disappear: Adversarial Action Removal in Self-Play Reinforcement Learning4 May 2026
- 2026AutoREC: A reinforcement learning platform for equivalent circuit model generation29 Apr 2026
- 2026Learning to Route Electric Trucks Under Operational Uncertainty29 Apr 2026
- 2026RAMP: Hybrid DRL for Online Learning of Numeric Action Models9 Apr 2026
- 2026RL-Driven Sustainable Land-Use Allocation for the Lake Malawi Basin4 Apr 2026
- 2026When does learning pay off? A study on DRL-based dynamic algorithm configuration for carbon-aware scheduling2 Apr 2026
- 2026Critic-Free Deep Reinforcement Learning for Maritime Coverage Path Planning on Irregular Hexagonal Grids30 Mar 2026
- 2026Decomposable Reward Modeling and Realistic Environment Design for Reinforcement Learning-Based Forex Trading20 Mar 2026
- 2026NASimJax: A GPU-Accelerated Policy Learning Framework for Penetration Testing20 Mar 2026
- 2026Agentic-Kube: A Graph-Enhanced Multi-Agent Reinforcement Learning Framework for Multi-Objective Kubernetes Scheduling12 Mar 2026
- 2026Overcoming Valid Action Suppression in Unmasked Policy Gradient Algorithms10 Mar 2026
- 2026Artificial Intelligence for Climate Adaptation: Reinforcement Learning for Climate Change-Resilient Transport6 Mar 2026
- 2026Two-Bridge: Exclusive Objectives and Extended Horizon StarCraft II Benchmark19 Feb 2026
- 2026Neuro-symbolic Action Masking for Deep Reinforcement Learning11 Feb 2026
- 2026Progress Constraints for Reinforcement Learning in Behavior Trees6 Feb 2026
- 2026Optimal Multi-Debris Mission Planning in LEO: A Deep Reinforcement Learning Approach with Co-Elliptic Transfers and Refueling4 Feb 2026
- 2026Safety-Critical Reinforcement Learning with Viability-Based Action Shielding for Hypersonic Longitudinal Flight3 Feb 2026
- 2026Reinforcement Learning with Promising Tokens for Large Language Models3 Feb 2026
- 2026APC-RL: Exceeding Data-Driven Behavior Priors with Adaptive Policy Composition27 Jan 2026
- 2026Learning long term climate-resilient transport adaptation pathways under direct and indirect flood impacts using reinforcement learning26 Jan 2026
50 newest of 171 All 171 (JSON)
- 2024Excluding the Irrelevant: Focusing Reinforcement Learning through Continuous Action Maskingcited by 19
- 2024HOPE: A Reinforcement Learning-based Hybrid Policy Path Planner for Diverse Parking Scenarioscited by 11
- 2024Introducing PetriRL: An Innovative Framework for JSSP Resolution Integrating Petri nets and Event-based Reinforcement Learningcited by 6
- 2024Action Mapping for Reinforcement Learning in Continuous Environments with Constraintscited by 5
- 2025Discovering highly efficient low-weight quantum error-correcting codes with reinforcement learningcited by 5
- 2024Scaling Team Coordination on Graphs with Reinforcement Learningcited by 3
- 2024Revisiting Space Mission Planning: A Reinforcement Learning-Guided Approach for Multi-Debris Rendezvouscited by 3
- 2024A Competition Winning Deep Reinforcement Learning Agent in microRTScited by 2
- 2024Climate Adaptation with Reinforcement Learning: Experiments with Flooding and Transportation in Copenhagencited by 2
- 2025Embodied Escaping: End-to-End Reinforcement Learning for Robot Navigation in Narrow Environmentcited by 2
- 2025Optimizing Navigation And Chemical Application in Precision Agriculture With Deep Reinforcement Learning And Conditional Action Treecited by 2
- 2025Graph-Enhanced Model-Free Reinforcement Learning Agents for Efficient Power Grid Topological Controlcited by 2
12 most cited of 73 All 73 (JSON)
- 2026Time Window Optimization for Motor Imagery Classification via Temporal Structure Embedded Reinforcement Learning12 Oct 2026
- 2026ZeroCode: On-demand Error-Correcting Code Construction from the Zero Matrix via Reinforcement Learning28 Sep 2026
- 2026Auditability Is Not One Property: Rule Overlap, Behavioural Agreement, and Composition in Reinforcement Learning23 Sep 2026
- 2026Cost-Aware Reinforcement Learning with Action Masking and Projection for Battery Energy Storage Dispatch under Suppressed-Spread Market Shifts20 Sep 2026
- 2026Multitask Reinforcement Learning for Assisting Choice Model Specification16 Sep 2026
- 2026Multi-Objective Deep Reinforcement Learning for Secure and Stable Power System Operation21 Aug 2026
- 2026Optimal Reward Shaping: Autonomous Car Parking Case Study26 Jul 2026
- 2026Hierarchical Reinforcement Learning for Sparse-Reward Search in Commutative Algebra22 Jun 2026
- 2026Deep RL for Fast Long-Horizon Operations Scheduling on NASA's Carruthers Geocorona Observatory Mission20 Jun 2026
- 2026The Challenges of Using Reinforcement Learning for Controlling Industrial Energy Systems29 May 2026
- 2026Reinforcement Learning for Graph Generation under a Hard Assortativity Constraint22 May 2026
- 2026Learning Selective Merge Policies for Deadline-Constrained Coded Caching via Deep Reinforcement Learning13 May 2026
12 newest of 73 All 73 (JSON)
- 2026MOSAIC: Modular Orchestration for Structured Agentic Intelligence and Compositioncited by 2
- 2026Agentic-Kube: A Graph-Enhanced Multi-Agent Reinforcement Learning Framework for Multi-Objective Kubernetes Schedulingcited by 0
- 2026A Gold-Standard Study of What Makes a Lightweight Game-Playing Agent Strongcited by 0
- 2026A Gold-Standard Study of What Makes a Lightweight Game-Playing Agent Strong7 Jul 2026
- 2026MOSAIC: Modular Orchestration for Structured Agentic Intelligence and Composition30 May 2026
- 2026Agentic-Kube: A Graph-Enhanced Multi-Agent Reinforcement Learning Framework for Multi-Objective Kubernetes Scheduling12 Mar 2026
- 2024BraVE: Offline Reinforcement Learning for Discrete Combinatorial Action Spacescited by 3
- 2025Integrating Reinforcement Learning, Action Model Learning, and Numeric Planning for Tackling Complex Taskscited by 1
- 2025Autonomous Learning From Success and Failure: Goal-Conditioned Supervised Learning with Negative Feedbackcited by 0
- 2025Autonomous Learning From Success and Failure: Goal-Conditioned Supervised Learning with Negative Feedback3 Sep 2025
- 2025Integrating Reinforcement Learning, Action Model Learning, and Numeric Planning for Tackling Complex Tasks18 Feb 2025
- 2024BraVE: Offline Reinforcement Learning for Discrete Combinatorial Action Spaces28 Oct 2024
- 2024From Imitation to Exploration: End-to-end Autonomous Driving based on World Modelcited by 2
- 2026Causal Reinforcement Learning for Complex Card Games: A Magic The Gathering Benchmarkcited by 1
- 2026Reinforcement Learning with a Bilevel World-Model Architecture for Scan-Order Optimisation in Laser Directed Energy Depositioncited by 0
- 2026Reinforcement Learning with a Bilevel World-Model Architecture for Scan-Order Optimisation in Laser Directed Energy Deposition24 May 2026
- 2026Causal Reinforcement Learning for Complex Card Games: A Magic The Gathering Benchmark7 May 2026
- 2024From Imitation to Exploration: End-to-end Autonomous Driving based on World Model3 Oct 2024
- 2022Is Reinforcement Learning (Not) for Natural Language Processing: Benchmarks, Baselines, and Building Blocks for Natural Language Policy Optimizationcited by 246
- 2023Generating Synergistic Formulaic Alpha Collections via Reinforcement Learningcited by 39
- 2021Understanding Continual Learning Settings with Data Distribution Drift Analysiscited by 38
- 2022Provably Safe Reinforcement Learning: Conceptual Analysis, Survey, and Benchmarkingcited by 34
- 2022Scalable Multi-Agent Reinforcement Learning for Warehouse Logistics with Robotic and Human Co-Workerscited by 30
- 2024AlphaForge: A Framework to Mine and Dynamically Combine Formulaic Alpha Factorscited by 27
- 2022Provably Safe Reinforcement Learning via Action Projection using Reachability Analysis and Polynomial Zonotopescited by 26
- 2022Beyond CAGE: Investigating Generalization of Learned Autonomous Network Defense Policiescited by 23
- 2021A Reinforcement Learning Environment For Job-Shop Schedulingcited by 21
- 2021Gym-μRTS: Toward Affordable Full Game Real-time Strategy Games Research with Deep Reinforcement Learningcited by 19
- 2023Learning Hierarchical Interactive Multi-Object Search for Mobile Manipulationcited by 14
- 2023Generative Modelling of Stochastic Actions with Arbitrary Constraints in Reinforcement Learningcited by 10
12 most cited of 83 All 83 (JSON)
- 2026Goal-Oriented Bundle Management and Flow Control for Deep-Space Communications via Reinforcement Learning9 Oct 2026
- 2026Learning Explainable Representations of Complex Game-playing Strategies6 Oct 2026
- 2026Measure Less, Know More: Self-Supervised Test-Time Feature Acquisition2 Oct 2026
- 2026REPLICANT: Learning Policies for Evading and Hardening Malware Detectors28 Aug 2026
- 2026EU-ETS under attack? The impact of carbon price suppression on the decarbonization of the power sector6 Jul 2026
- 2026Phase-Aware Guidance Injection for Recurrent MAPPO in Assembly-Line Disruption Recovery15 Jun 2026
- 2026Bellman-Taylor Score Decoding for Markov Decision Processes with State-Dependent Feasible Action Sets9 Jun 2026
- 2026AlphaTransit: Learning to Design City-scale Transit Routes27 May 2026
- 2026Learning Local Constraints for Reinforcement-Learned Content Generators13 May 2026
- 2026Reward Shaping and Action Masking for Compositional Tasks using Behavior Trees and LLMs7 May 2026
- 2026NASimJax: A GPU-Accelerated Policy Learning Framework for Penetration Testing20 Mar 2026
- 2026Two-Bridge: Exclusive Objectives and Extended Horizon StarCraft II Benchmark19 Feb 2026
12 newest of 83 All 83 (JSON)