Skip to main content
QUICK REVIEW

[论文解读] Reward Shaping via Meta-Learning

Haosheng Zou, Tongzheng Ren|arXiv (Cornell University)|Jan 27, 2019
Reinforcement Learning in RoboticsComputer Science参考文献 23被引用 41
一句话总结

本论文提出一个元学习框架,在任务分布中自动学习奖励塑形函数,使用基于值的方式提取对最优塑形的先验,并在新任务上实现零-shot或少样本适应。它展示了学习效率的提升,以及从 DQN 到 DDPG 的迁移,在离散和连续动作设置,以及网格任务中。

ABSTRACT

Reward shaping is one of the most effective methods to tackle the crucial yet challenging problem of credit assignment in Reinforcement Learning (RL). However, designing shaping functions usually requires much expert knowledge and hand-engineering, and the difficulties are further exacerbated given multiple similar tasks to solve. In this paper, we consider reward shaping on a distribution of tasks, and propose a general meta-learning framework to automatically learn the efficient reward shaping on newly sampled tasks, assuming only shared state space but not necessarily action space. We first derive the theoretically optimal reward shaping in terms of credit assignment in model-free RL. We then propose a value-based meta-learning algorithm to extract an effective prior over the optimal reward shaping. The prior can be applied directly to new tasks, or provably adapted to the task-posterior while solving the task within few gradient updates. We demonstrate the effectiveness of our shaping through significantly improved learning efficiency and interpretable visualizations across various settings, including notably a successful transfer from DQN to DDPG.

研究动机与目标

  • 通过奖励塑形激励并解决强化学习中的信用分配低效问题。
  • 开发一个元学习框架,以学习用于最优基于势的塑形的任务分布先验。
  • 推导理论见解,表明最优塑形通过价值函数与信用分配对齐。
  • 给出一个可实现的算法,通过少量梯度步数即可将塑形先验自适应到新任务。
  • 展示在多样化环境和动作空间中的有效性与可迁移性。

提出的方法

  • 使用势-based函数定义奖励塑形,并证明在塑形下的策略不变性。
  • 推导出若塑形为 Phi(s)=V* M(s),那么对于信用分配和学习效率是最优的。
  • 提出一个基于 MAML 的元学习方法,以学习在任务分布上的势函数先验 theta。
  • 使用 dueling-DQN 架构将 Q*: Q*=V+A 分解,并通过对每个任务的适应学习 V* 作为塑形先验。
  • 通过最小化跨任务的 Q_theta 与自适应 Q_phi_i 之间的距离来训练先验 theta(Eq. 7)。
  • 在元测试阶段,使用 F(s,a,s')=gamma*V_theta(s')-V_theta(s) 来塑形新任务;可选地对 V_phi_j 和 A_phi_j 进行自适应以实现更快的学习(Alg. 2)。

实验结果

研究问题

  • RQ1如何自动学习奖励塑形,使之在相似任务分布中推广?
  • RQ2元学习得到的势函数先验能否在新任务的零样本塑形或对具有不同动作空间的新任务的快速适应方面提供有效性?
  • RQ3使用最优势的塑形是否能在离散和连续控制任务中改善信用分配与学习效率?
  • RQ4元学习的塑形在不同架构(例如 DQN、DDPG)和任务族(CartPole、网格地图)之间的迁移性如何?

主要发现

  • 以 Phi(s)=V*(最优价值)进行的奖励塑形在信用分配方面是最优的,使非最优行动立即产生非正奖励。
  • 一个元学习得到的势函数先验提高了跨任务的学习效率和稳定性,在元测试阶段超越了 MAML 基线。
  • 零样本塑形显著加速了新离散 CartPole 和网格地图任务的学习,并且也有利于使用 DDPG 的连续动作设置。
  • 塑形允许从 DQN 到 DDPG 的迁移,并在离散和连续动作空间之间显示出有效适应。
  • 实验在 CartPole 变体和具有共享状态空间的网格任务中,显示出学习速度和稳定性的持续提升。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。