通过扩展到100万个并行环境防止PPO学习停滞
Preventing Learning Stagnation in PPO by Scaling to 1 Million Parallel Environments
AI总结:
通过扩展PPO到100万个并行环境,有效解决学习停滞问题,实现性能持续提升。
摘要:
在深度在线强化学习中,代理性能停滞在次优水平的平台是一个常见问题。鉴于PPO的广泛应用,我们表明在某些情况下,平台的出现并非由于已知的探索、容量或优化挑战,而是因为基于样本的损失估计最终成为真目标的劣质代理。回顾PPO,它通过当前策略(称为外环)在线切换多个并行环境的采样回滚,并通过该离线数据集进行重复的小批量SGD步骤(内环)。在我们的工作中,我们只考虑外环,并将其概念上建模为随机优化。步长由向先前策略的正则化强度和在策略更新步骤之间收集的样本数决定的梯度噪声控制。该模型预测,如果外环步长相对于噪声太大,则性能将在次优水平停滞。将PPO重新解释为这种视角,使我们清楚地认识到解决这种特定类型学习停滞的两种方法:要么减少步长,要么增加更新之间收集的样本数。我们首先验证了模型的预测,并研究了超参数选择如何影响步长和更新噪声,得出结论,增加并行环境的数量是一种简单且稳健的方法,可以同时减少这两个因素。接下来,我们提出了一种配方,说明在增加并行化时如何协调其他超参数,并展示错误这样做可能导致严重的性能下降。最后,我们通过将PPO扩展到超过100万个并行环境,在复杂的开放域中大幅超越了先前的基线,从而实现了性能单调提升,达到十亿次转换。
英文摘要:
An agent's performance stagnating at a suboptimal level is a common problem in deep on-policy RL. Focusing on PPO, we show that plateaus in certain regimes arise not because of known exploration, capacity, or optimisation challenges, but because sample-based estimates of the loss eventually become poor proxies for the true objective over the course of training. Looking deeper, PPO alternates between sampling rollouts from several parallel environments online using the current policy (which we call the "outer loop") and performing repeated minibatch SGD steps against this offline dataset (the "inner loop"). In our work, we abstract away the inner loop, and conceptually model the outer loop as standard stochastic optimisation. The step size is then controlled by the regularisation strength towards the previous policy and the gradient noise by the number of samples collected between policy update steps. This framing predicts that, much like in SGD, if the outer step size is too large relative to the noise, updates become uninformative and lead to the policy thrashing around a local optimum instead of converging. Recasting PPO in this light makes it clear that there are two ways to address this particular type of learning stagnation: either reduce the step size or increase the number of samples collected between updates. We validate the predictions of our model and conclude that increasing the number of parallel environments is a simple way to avoid these plateaus by simultaneously altering both these factors. Applying our analysis and scaling PPO to more than 1M parallel environments enables monotonic performance improvement up to one trillion transitions and leads to vastly superior performance compared to prior baselines in a complex open-ended domain.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。