策略梯度算法中的无效操作屏蔽
A Closer Look at Invalid Action Masking in Policy Gradient Algorithms
摘要:
近年来,深度强化学习(DRL)算法在许多具有挑战性的策略游戏中取得了最先进的性能。因为这些游戏具有复杂的规则,所以根据游戏规则(例如,走进一堵墙)。在策略梯度算法中处理这个问题的通常方法是“屏蔽”无效动作,并且仅从有效动作集合中采样。然而,这一进程的影响仍然没有得到充分的调查。在本文中,我们1)证明了这种做法的理论依据,2)随着无效行为空间的增长,经验证明了它的重要性,3)通过评估不同的行为掩蔽机制提供了进一步的见解,例如在使用掩蔽训练代理后删除掩蔽。源代码可以在https://github.com/vwxyzjn/invalid-action-masking上找到
英文摘要:
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
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。