arXiv:1910.02078 · 中英对照阅读
对不起,戴夫,我恐怕无法照做:从禁用动作中进行深度 QQ 学习
I’m Sorry Dave, I’m Afraid I Can’t Do That Deep QQ-Learning from Forbidden Actions
中文速览
现实环境常会拒绝危险或不合适的动作,但普通强化学习把这类反馈当成“什么也没发生”,很难及时学会避开它们。作者在深度 Q 学习中加入一个辅助分类器和“边界损失”(frontier loss),利用环境给出的有效/无效反馈,让无效动作的价值低于有效动作。迷宫和文字游戏实验显示,这种方法能减少无效动作、帮助智能体更快找到接近最优的策略;相比之下,普通 DQN 在这些任务中更容易反复尝试被拒绝的动作。它的意义在于,让强化学习能直接从安全限制中学习,在真实系统和动作受约束的任务里更高效地探索。
摘要
强化学习(RL)的应用仍局限于模拟环境,或通过提供建议来增强由人类操作的系统。现实世界环境(例如工业机器人或电网)的设计通常会考虑安全约束,并以有效动作掩码或应急控制器的形式实现这些约束。例如,机器人的运动范围和电机角度可被限制在物理边界内。因此,违反约束会导致动作被拒绝,或进入由外部控制器驱动的安全模式,使强化学习智能体无法从错误中学习。本文提出一种对最先进的深度强化学习算法(DQN)的简单修改,使其能够从禁用动作中学习。为此,我们在标准的 $Q$ 学习更新中加入了一项受结构化分类启发的额外安全损失。我们的实证结果表明,与使用标准 DQN 相比,该方法能减少学习阶段触及约束的次数,并加速收敛至近似最优策略。实验在 Visual Grid World Environment 和 TextWorld 领域中进行。
The use of Reinforcement Learning (RL) is still restricted to simulation or to enhance human-operated systems through recommendations. Real-world environments (e.g. industrial robots or power grids) are generally designed with safety constraints in mind implemented in the shape of valid actions masks or contingency controllers. For example, the range of motion and the angles of the motors of a robot can be limited to physical boundaries. Violating constraints thus results in rejected actions or entering in a safe mode driven by an external controller, making RL agents incapable of learning from their mistakes. In this paper, we propose a simple modification of a state-of-the-art deep RL algorithm (DQN), enabling learning from forbidden actions. To do so, the standard $Q$ -learning update is enhanced with an extra safety loss inspired by structured classification. We empirically show that it reduces the number of hit constraints during the learning phase and accelerates convergence to near-optimal policies compared to using standard DQN. Experiments are done on a Visual Grid World Environment and the TextWorld domain.
术语表
- Reinforcement Learning (RL)
- 强化学习(RL)
- Deep Q-Network (DQN)
- 深度 Q 网络(DQN)
- Q-learning
- Q 学习
- Markov Decision Process (MDP)
- 马尔可夫决策过程(MDP)
- MDP-F
- MDP-F
- Feedback Signal
- 反馈信号
- forbidden actions
- 禁用动作
- valid actions
- 有效动作
- safety constraints
- 安全约束
- contingency controller
- 应急控制器
- model-free reinforcement learning
- 无模型强化学习
- state-action value function (Q-function)
- 状态—动作价值函数(Q 函数)
- policy
- 策略
- optimal policy
- 最优策略
- discount factor
- 折扣因子
- off-policy learning
- 离策略学习
- replay buffer
- 经验回放缓冲区
- structured classification
- 结构化分类
- classification loss
- 分类损失
- safety loss
- 安全损失
- Frontier loss
- 前沿损失
- Imitation learning
- 模仿学习
- expert demonstrations
- 专家示范
- Visual Grid World Environment
- Visual Grid World Environment
- TextWorld
- TextWorld
- Natural Language Generation
- 自然语言生成
- sampling efficiency
- 采样效率
- convergence
- 收敛