arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2107.01715cs.AI
收藏

无需重新训练就能改进Agent:带偏离策略校正的并行树搜索

Improve Agents without Retraining: Parallel Tree Search with Off-Policy Correction

NVIDIA Research(英伟达研究院)

Assaf Hallak, Gal Dalal, Steven Dalton, Iuri Frosio, Shie Mannor, Gal Chechik

摘要:

树搜索(TS)对于强化学习中一些最有影响力的成功至关重要。在这里,我们解决了限制TS可用性的两个主要挑战:\textit{distribution shift}和\textit{scalability}。我们首先发现并分析了一个反直觉的现象:通过TS和预先训练的价值函数进行动作选择,即使在未来的步骤中可以获得确切的状态和奖励,与原始的预先训练的代理相比,通常也会导致较低的性能。我们发现这是由于一个分布偏移的价值估计是高度不准确的地区,并分析这种影响使用极值理论。为了克服这个问题,我们引入了一个新的非策略校正项,该校正项通过惩罚采样不足的轨迹来解决预训练值与其对应的TS策略之间的不匹配。我们证明了我们的校正消除了上述不匹配,并限制了次优动作选择的概率。我们的修正显著提高了预先训练的Rainbow代理,而无需任何进一步的训练,通常会使他们在Atari游戏中的得分增加一倍以上。接下来,我们解决的可扩展性问题给出的计算复杂性的穷举TS,指数级的树深度。我们引入了Batch-BFS:一种GPU广度优先搜索,同时推进树的每个深度中的所有节点。Batch-BFS将运行时间减少了两个数量级,并且除了推理之外,还可以使用以前不可行的深度TS进行训练。我们使用TS从头开始训练DQN代理,并在几个Atari游戏中显示出与原始DQN和更先进的Rainbow相比的改进。BCTS的代码可在\url{https://github.com/NVlabs/bcts}中找到。

英文摘要:

Tree Search (TS) is crucial to some of the most influential successes in reinforcement learning. Here, we tackle two major challenges with TS that limit its usability: \textit{distribution shift} and \textit{scalability}. We first discover and analyze a counter-intuitive phenomenon: action selection through TS and a pre-trained value function often leads to lower performance compared to the original pre-trained agent, even when having access to the exact state and reward in future steps. We show this is due to a distribution shift to areas where value estimates are highly inaccurate and analyze this effect using Extreme Value theory. To overcome this problem, we introduce a novel off-policy correction term that accounts for the mismatch between the pre-trained value and its corresponding TS policy by penalizing under-sampled trajectories. We prove that our correction eliminates the above mismatch and bound the probability of sub-optimal action selection. Our correction significantly improves pre-trained Rainbow agents without any further training, often more than doubling their scores on Atari games. Next, we address the scalability issue given by the computational complexity of exhaustive TS that scales exponentially with the tree depth. We introduce Batch-BFS: a GPU breadth-first search that advances all nodes in each depth of the tree simultaneously. Batch-BFS reduces runtime by two orders of magnitude and, beyond inference, enables also training with TS of depths that were not feasible before. We train DQN agents from scratch using TS and show improvement in several Atari games compared to both the original DQN and the more advanced Rainbow. The code for BCTS can be found in \url{https://github.com/NVlabs/bcts}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑