关于深度强化学习实现可互换的错误假设
On the Mistaken Assumption of Interchangeable Deep Reinforcement Learning Implementations
AI总结:
本文通过差分测试揭示了深度强化学习算法(如PPO)不同实现间存在显著性能差异且不可互换,指出代码不一致足以颠覆实验结论,呼吁改变实现使用方式。
摘要:
深度强化学习(DRL)是人工智能的一种范式,其中智能体使用神经网络来学习在给定环境中采取哪些动作。DRL最近因能够解决复杂环境而受到关注,例如驾驶模拟器、3D机器人控制和多人在线战斗竞技场视频游戏。目前存在许多负责训练这些智能体的最先进算法的实现,如Deep Q-Network (DQN)和Proximal Policy Optimization (PPO)算法。然而,研究错误地假设同一算法的实现是一致的,因此是可互换的。在本文中,通过差分测试的视角,我们展示了研究实现不一致的程度、其对实现性能的影响,以及在实现可互换的假设下对先前研究结论的影响的结果。我们的差分测试结果显示,被测试的算法实现之间存在显著差异,表明它们不可互换。具体而言,在56个游戏上测试的五个PPO实现中,三个实现在其总试验的50%中达到了超人类性能,而其他两个实现仅在其总试验的不到15%中达到超人类性能。作为对实现源代码进行细致手动分析的一部分,我们分析了实现差异,并确定代码层面的不一致是造成这些差异的主要原因。最后,我们复制了一项研究,并表明这种实现可互换性的假设足以颠覆实验结果。因此,这呼吁改变实现的使用方式。
英文摘要:
Deep Reinforcement Learning (DRL) is a paradigm of artificial intelligence where an agent uses a neural network to learn which actions to take in a given environment. DRL has recently gained traction from being able to solve complex environments like driving simulators, 3D robotic control, and multiplayer-online-battle-arena video games. Numerous implementations of the state-of-the-art algorithms responsible for training these agents, like the Deep Q-Network (DQN) and Proximal Policy Optimization (PPO) algorithms, currently exist. However, studies make the mistake of assuming implementations of the same algorithm to be consistent and thus, interchangeable. In this paper, through a differential testing lens, we present the results of studying the extent of implementation inconsistencies, their effect on the implementations' performance, as well as their impact on the conclusions of prior studies under the assumption of interchangeable implementations. The outcomes of our differential tests showed significant discrepancies between the tested algorithm implementations, indicating that they are not interchangeable. In particular, out of the five PPO implementations tested on 56 games, three implementations achieved superhuman performance for 50% of their total trials while the other two implementations only achieved superhuman performance for less than 15% of their total trials. As part of a meticulous manual analysis of the implementations' source code, we analyzed implementation discrepancies and determined that code-level inconsistencies primarily caused these discrepancies. Lastly, we replicated a study and showed that this assumption of implementation interchangeability was sufficient to flip experiment outcomes. Therefore, this calls for a shift in how implementations are being used.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。