Skip to main content
QUICK REVIEW

[论文解读] Reward Centering

Abhishek Naik, Yi Wan|arXiv (Cornell University)|May 16, 2024
Reinforcement Learning in RoboticsComputer Science被引用 3
一句话总结

本文提出奖励中心化——从每个奖励中减去观测奖励的经验均值——以显著提升持续任务中折扣强化学习算法的性能。通过消除随 $1/(1-\bar{R})$ 缩放的状态无关常数偏差,奖励中心化使学习更快、更稳定,尤其在高折扣因子($\gamma \to 1$)时效果显著,并使算法对任意奖励偏移具有鲁棒性。

ABSTRACT

We show that discounted methods for solving continuing reinforcement learning problems can perform significantly better if they center their rewards by subtracting out the rewards' empirical average. The improvement is substantial at commonly used discount factors and increases further as the discount factor approaches one. In addition, we show that if a problem's rewards are shifted by a constant, then standard methods perform much worse, whereas methods with reward centering are unaffected. Estimating the average reward is straightforward in the on-policy setting; we propose a slightly more sophisticated method for the off-policy setting. Reward centering is a general idea, so we expect almost every reinforcement-learning algorithm to benefit by the addition of reward centering.

研究动机与目标

  • 解决当折扣因子 $\gamma$ 趋近于 1 时,折扣强化学习方法性能下降的问题。
  • 提升持续强化学习问题中价值函数估计的样本效率与稳定性。
  • 使标准强化学习算法对奖励信号中常见的任意常数偏移具有鲁棒性。
  • 开发一种可推广的技术,适用于在线策略与离线策略设置,且算法改动极少。
  • 通过将平均奖励估计与价值函数学习解耦,实现对新折扣因子的快速适应。

提出的方法

  • 使用小学习率的滑动平均更新,估计随时间推移观测到的奖励经验均值。
  • 在将奖励输入标准 TD 或 Q-learning 算法前,从每个观测奖励中减去该估计的均值,生成中心化后的奖励。
  • 在离线策略设置中,利用价值函数的时间差误差动态,采用基于值的方法估计平均奖励。
  • 将折扣价值函数分解为 $v_\pi^\gamma(s) = \frac{r(\pi)}{1-\gamma} + \tilde{v}_\pi(s) + e_\pi^\gamma(s)$,其中 $\tilde{v}_\pi(s)$ 为与全局奖励偏移无关的中心化价值函数。
  • 为平均奖励估计使用独立的自适应学习率,以在非平稳环境中平衡收敛速度与方差。
  • 将奖励中心化与奖励缩放技术(如 TD 误差重标定)结合,以保持数值稳定性,并提升在不同奖励量级下的泛化能力。
Figure 1 : Learning curves showing the difference in performance of Q-learning with and without reward centering for different discount factors on the classic Access-Control Queuing problem. Plotted is the average per-step reward obtained by the agent across 50 runs w.r.t. the number of time steps o
Figure 1 : Learning curves showing the difference in performance of Q-learning with and without reward centering for different discount factors on the classic Access-Control Queuing problem. Plotted is the average per-step reward obtained by the agent across 50 runs w.r.t. the number of time steps o

实验结果

研究问题

  • RQ1奖励中心化如何影响在高折扣因子下持续任务中 Q-learning 与 TD-learning 的收敛性与性能?
  • RQ2奖励中心化在 $\gamma \to 1$ 附近在多大程度上提升了样本效率并降低了价值函数估计的方差?
  • RQ3奖励中心化能否使标准强化学习算法对奖励信号的常数偏移保持不变?与基线方法相比表现如何?
  • RQ4在离线策略设置中,基于值的平均奖励估计器与简单滑动平均相比有何影响?
  • RQ5奖励中心化能否通过重用估计的平均奖励与中心化价值函数,实现在训练过程中对折扣因子的高效适应?

主要发现

  • 在访问控制排队问题上,奖励中心化使 Q-learning 性能显著提升,学习曲线显示在所有测试折扣因子下收敛更快,且每步平均奖励更高。
  • 随着折扣因子 $\gamma$ 趋近于 1,性能增益显著增加,尤其在 $\gamma \to 1$ 的极限情况下,标准方法通常性能下降,而本方法表现最优。
  • 当奖励被加上常数偏移时,标准折扣方法性能明显下降,而奖励中心化方法不受影响,证明了对奖励信号偏移的鲁棒性。
  • 理论分解 $v_\pi^\gamma(s) = \frac{r(\pi)}{1-\gamma} + \tilde{v}_\pi(s) + e_\pi^\gamma(s)$ 确认了中心化消除了 $1/(1-\gamma)$ 缩放的偏差,使价值函数能专注于状态间的相对差异。
  • 奖励中心化减少了对显式估计全局偏差项的需求,如 Tsitsiklis 和 Van Roy (1997) 所需的那样,转而通过中心化奖励直接学习相对值。
  • 该方法可通过 $\bar{R}/(1-\gamma_2) + \tilde{\mathbf{v}}^{\gamma_1}$ 快速估计新折扣因子下的价值函数,表明其在终身学习中具备实现自适应折扣策略的潜力。
(a)
(a)

阅读本论文

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

在 Nubint 中阅读本论文

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