Skip to main content
QUICK REVIEW

[论文解读] When Should We Prefer Offline Reinforcement Learning Over Behavioral Cloning?

Aviral Kumar, Joey Hong|arXiv (Cornell University)|Apr 12, 2022
Reinforcement Learning in RoboticsComputer Science被引用 17
一句话总结

本文识别了在存在专家数据的情况下,离线强化学习(RL)仍优于行为克隆(BC)的条件,表明当环境具有稀疏奖励或长时序任务时,离线RL表现更优,因其能够拼接次优轨迹。关键贡献在于理论与实证分析,显示离线RL在最坏情况下的性能保证优于BC,尤其在数据存在噪声或与时序无关回报结构时。

ABSTRACT

Offline reinforcement learning (RL) algorithms can acquire effective policies by utilizing previously collected experience, without any online interaction. It is widely understood that offline RL is able to extract good policies even from highly suboptimal data, a scenario where imitation learning finds suboptimal solutions that do not improve over the demonstrator that generated the dataset. However, another common use case for practitioners is to learn from data that resembles demonstrations. In this case, one can choose to apply offline RL, but can also use behavioral cloning (BC) algorithms, which mimic a subset of the dataset via supervised learning. Therefore, it seems natural to ask: when can an offline RL method outperform BC with an equal amount of expert data, even when BC is a natural choice? To answer this question, we characterize the properties of environments that allow offline RL methods to perform better than BC methods, even when only provided with expert data. Additionally, we show that policies trained on sufficiently noisy suboptimal data can attain better performance than even BC algorithms with expert data, especially on long-horizon problems. We validate our theoretical results via extensive experiments on both diagnostic and high-dimensional domains including robotic manipulation, maze navigation, and Atari games, with a variety of data distributions. We observe that, under specific but common conditions such as sparse rewards or noisy data sources, modern offline RL methods can significantly outperform BC.

研究动机与目标

  • 确定在何种环境与数据条件下,即使提供专家演示,离线RL仍优于行为克隆(BC)。
  • 提供对MDP与数据集属性的理论刻画,以说明为何离线RL优于BC。
  • 通过实证验证,离线RL在长时序任务和噪声数据分布下可优于BC。
  • 检验使用奖励信息的广义BC方法是否仍逊色于离线RL。
  • 为从业者提供基于任务结构与数据质量选择BC或离线RL的指导。

提出的方法

  • 理论分析推导出MDP结构的充分条件,如与时序无关的回报(例如稀疏奖励)和低关键状态体积,使得离线RL优于BC。
  • 论文提出一种基于指数优势加权的策略提取方法:$\pi_{\phi} \leftarrow \max_{\pi_{\phi}} \sum_{\mathbf{s},\mathbf{a}} \log \pi_{\phi}(\mathbf{a}|\mathbf{s}) \cdot \exp\left(\frac{Q_{\theta}(\mathbf{s},\mathbf{a}) - V(\mathbf{s})}{\eta}\right)$,其中$V(\mathbf{s})$为价值函数,$\eta$为温度超参数。
  • 通过监督BC训练行为策略模型$\pi_{\beta}$,用作策略提取的参考,以确保与离线数据集的一致性。
  • 对$\eta \in \{0.005, 0.05, 0.1, 0.5, 1.0, 3.0\}$和优势裁剪范围$[-10,2]$与$[-10,4]$进行超参数调优,且在所有环境中使用单一$\eta$。
  • 在诊断网格世界、机器人操作、迷宫导航和Atari游戏中进行实证验证,使用人类、脚本和RL生成的专家数据。
  • 研究比较了基于CQL的离线RL与BC/BC-PI方法,测量归一化回报与TD误差稳定性。

实验结果

研究问题

  • RQ1在何种MDP与数据集条件下,离线RL即使在有专家演示的情况下仍优于行为克隆?
  • RQ2当离线RL与BC使用相同专家数据时,是否能实现优于BC的最坏情况性能保证?
  • RQ3稀疏奖励或长时序结构的存在是否有利于离线RL而非BC?
  • RQ4离线RL是否能优于在模仿学习中使用奖励信息的广义BC方法?
  • RQ5当数据存在噪声或次优时,使用离线RL相比BC是否具有实际优势?

主要发现

  • 在稀疏奖励环境中,离线RL方法显著优于BC,因为后者因非专家动作缺乏信号而难以学习有效策略。
  • 在长时序任务中,即使使用专家数据,离线RL仍优于BC,尤其当策略能够拼接重叠的次优轨迹以形成完整解时。
  • 对于噪声次优数据,离线RL的性能优于在专家数据上训练的BC,显示出对数据质量下降的鲁棒性。
  • 最优超参数$\eta = 0.005$与优势裁剪范围$[-10,2]$在Atari游戏中实现最高平均性能,尽管不同环境间性能差异显著。
  • 离线RL方法在Qbert上实现高达118%的归一化回报,在Enduro上达到78%,而BC-PI在SpaceInvaders上仅实现31.7%的归一化回报。
  • SARSA的时序差分(TD)误差稳定在[0.001, 0.003]范围内,表明Q函数学习可靠且策略优化稳定。

阅读本论文

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

在 Nubint 中阅读本论文

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