Skip to main content
QUICK REVIEW

[论文解读] Truncating Trajectories in Monte Carlo Reinforcement Learning

Riccardo Poiani, Alberto Maria Metelli|arXiv (Cornell University)|May 7, 2023
Reinforcement Learning in RoboticsComputer Science被引用 3
一句话总结

本文提出了一种在蒙特卡洛强化学习中非均匀轨迹截断的策略,通过在不同长度的轨迹间分配交互预算,以最小化期望回报估计的置信区间宽度。通过基于折扣因子的理论优化轨迹长度,该方法提升了估计精度,并在策略优化中表现出更优性能,实验验证表明其在收敛性和鲁棒性方面优于均匀长度基线方法。

ABSTRACT

In Reinforcement Learning (RL), an agent acts in an unknown environment to maximize the expected cumulative discounted sum of an external reward signal, i.e., the expected return. In practice, in many tasks of interest, such as policy optimization, the agent usually spends its interaction budget by collecting episodes of fixed length within a simulator (i.e., Monte Carlo simulation). However, given the discounted nature of the RL objective, this data collection strategy might not be the best option. Indeed, the rewards taken in early simulation steps weigh exponentially more than future rewards. Taking a cue from this intuition, in this paper, we design an a-priori budget allocation strategy that leads to the collection of trajectories of different lengths, i.e., truncated. The proposed approach provably minimizes the width of the confidence intervals around the empirical estimates of the expected return of a policy. After discussing the theoretical properties of our method, we make use of our trajectory truncation mechanism to extend Policy Optimization via Importance Sampling (POIS, Metelli et al., 2018) algorithm. Finally, we conduct a numerical comparison between our algorithm and POIS: the results are consistent with our theory and show that an appropriate truncation of the trajectories can succeed in improving performance.

研究动机与目标

  • 为解决蒙特卡洛强化学习中均匀轨迹长度分配的低效问题,其中早期奖励因折扣因子而被指数加权。
  • 设计一种预算分配策略,以最小化期望回报估计置信区间的宽度,从而提升估计精度。
  • 将该策略扩展至在线策略与离线策略设置,尤其在策略优化的POIS框架中。
  • 为所提出的截断调度提供在最坏情况下的鲁棒性与最优性的理论保证。
  • 通过实证验证,非均匀轨迹长度可提升学习性能并加快基准环境中的收敛速度。

提出的方法

  • 提出一种新颖的蒙特卡洛估计器,使用不同长度的轨迹,其基于折扣因子的先验预算分配策略推导而来。
  • 推导了该估计器的广义霍夫丁型置信区间,并将优化目标设定为最小化其宽度。
  • 设计了一种可证明近似最优的固定长度截断调度,以最小化最坏情况下的置信区间宽度。
  • 通过推广Metelli等人(2018)的离线策略置信区间,将该方法扩展至离线策略评估。
  • 将最优截断调度集成至基于重要性采样的策略优化(POIS)算法中,形成TT-POIS(截断轨迹POIS)。
  • 采用重要性采样与置信区间边界,确保策略评估与优化中的鲁棒性与统计有效性。
Figure 1: Visualization of $\bm{\tilde{n}}^{*}$ for $\Lambda=5000$ , $T=100$ , and different values of $\gamma$ . More specifically, the $x$ -axis denotes the interaction timestep $t$ and the $y$ -axis reports, for each value of $t$ , the number of steps prescribed by $\bm{\tilde{n}}^{*}$ , namely $
Figure 1: Visualization of $\bm{\tilde{n}}^{*}$ for $\Lambda=5000$ , $T=100$ , and different values of $\gamma$ . More specifically, the $x$ -axis denotes the interaction timestep $t$ and the $y$ -axis reports, for each value of $t$ , the number of steps prescribed by $\bm{\tilde{n}}^{*}$ , namely $

实验结果

研究问题

  • RQ1非均匀轨迹长度分配是否能在蒙特卡洛强化学习中优于均匀长度轨迹收集?
  • RQ2理论上最优的轨迹长度分布是什么,可使期望回报估计的置信区间宽度最小化?
  • RQ3所提出的截断策略如何影响策略优化算法的样本效率与收敛性?
  • RQ4估计精度的理论提升是否能在真实世界的强化学习基准中转化为更好的性能?
  • RQ5该方法在不同折扣因子与交互预算约束下表现如何?

主要发现

  • 所提出的截断策略显著减小了期望回报估计周围置信区间的宽度,相较于均匀长度轨迹。
  • TT-POIS(在POIS中引入最优截断的扩展)在所有测试环境中均实现了更快的收敛速度与更高的性能,包括Dam、Reacher和Supply Chain环境。
  • 实验表明,即使在γ=1时评估指标,多个运行与超参数设置下,未折扣回报也持续提升。
  • 该方法在不同折扣因子(γ=0.95, 0.995, 0.999)与预算水平(Λ=4320, 8640等)下均保持鲁棒性,展现出良好的泛化能力。
  • 理论分析证实,最优截断调度在最坏情况下可证明优于均匀分配,且PAC边界更紧。
  • 超参数调优表明,相同设置适用于不同预算与折扣率,表明该方法具有稳定性与可扩展性。
Figure 2: Experimental results (mean and $95\%$ confidence intervals of $5$ runs). The first row (resp. second row) reports average returns with $\gamma=0.999$ (resp. $\gamma=0.95$ ).
Figure 2: Experimental results (mean and $95\%$ confidence intervals of $5$ runs). The first row (resp. second row) reports average returns with $\gamma=0.999$ (resp. $\gamma=0.95$ ).

阅读本论文

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

在 Nubint 中阅读本论文

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