Excluding the Irrelevant: Focusing Reinforcement Learning through Continuous Action Masking
<|reference_start|>Excluding the Irrelevant: Focusing Reinforcement Learning through Continuous Action Masking: Continuous action spaces in reinforcement learning (RL) are commonly defined as interval sets. While intervals usually reflect the action boundaries for tasks well, they can be challenging for learning because the typically large global action space leads to frequent exploration of irrelevant actions. Yet, little task knowledge can be sufficient to identify significantly smaller state-specific sets of relevant actions. Focusing learning on these relevant actions can significantly improve training efficiency and effectiveness. In this paper, we propose to focus learning on the set of relevant actions and introduce three continuous action masking methods for exactly mapping the action space to the state-dependent set of relevant actions. Thus, our methods ensure that only relevant actions are executed, enhancing the predictability of the RL agent and enabling its use in safety-critical applications. We further derive the implications of the proposed methods on the policy gradient. Using Proximal Policy Optimization (PPO), we evaluate our methods on three control tasks, where the relevant action set is computed based on the system dynamics and a relevant state set. Our experiments show that the three action masking methods achieve higher final rewards and converge faster than the baseline without action masking.<|reference_end|>
@article{stolz2024excluding,
    title={Excluding the Irrelevant: Focusing Reinforcement Learning through
  Continuous Action Masking},
    author={Roland Stolz, Hanna Krasowski, Jakob Thumm, Michael Eichelbeck,
  Philipp Gassert, Matthias Althoff},
    journal={arXiv preprint arXiv:2406.03704},
    year={2024},
    archivePrefix={arXiv},
    eprint={2406.03704},
    primaryClass={cs.LG cs.SY eess.SY}
}