[論文レビュー] Preventing Learning Stagnation in PPO by Scaling to 1 Million Parallel Environments
論文は PPO を外部ループの確率的最適化としてモデル化し、学習の停滞は更新ノイズに対して大きな外部ステップサイズに起因することを示し、適切な共スケーリングレシピでハイパーパラメータを調整すれば並列環境を増やすことで学習が単調に改善され、1兆回超の遷移まで達成可能であることを実証しています。
Plateaus, where an agent's performance stagnates at a suboptimal level, are a common problem in deep on-policy RL. Focusing on PPO due to its widespread adoption, we show that plateaus in certain regimes arise not because of known exploration, capacity, or optimization challenges, but because sample-based estimates of the loss eventually become poor proxies for the true objective over the course of training. As a recap, PPO switches 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 consider only the outer loop, and conceptually model it as stochastic optimization. The step size is then controlled by the regularization strength towards the previous policy and the gradient noise by the number of samples collected between policy update steps. This model predicts that performance will plateau at a suboptimal level if the outer step size is too large relative to the noise. 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 first validate the predictions of our model and investigate how hyperparameter choices influence the step size and update noise, concluding that increasing the number of parallel environments is a simple and robust way to reduce both factors. Next, we propose a recipe for how to co-scale the other hyperparameters when increasing parallelization, and show that incorrectly doing so can lead to severe performance degradation. Finally, we vastly outperform prior baselines in a complex open-ended domain by scaling PPO to more than 1M parallel environments, thereby enabling monotonic performance improvement up to one trillion transitions.
研究の動機と目的
- massively parallel environments を使用した PPO の学習プラトーを動機付け診断する。
- PPO の外部ループを確率的最適化としてモデル化し、ステップサイズと更新ノイズの影響を理解する。
- 外部ループダイナミクスに影響を与えるハイパーパラメータを特定する(正則化、バッチサイズ、エポック数)。
- 性能を劣化させずに安全に並列化を拡張する実用的なスケーリングレシピを提案する。
- 1T 超の遷移数においても単調改善を達成することで困難な領域でのスケーラビリティを示す。
提案手法
- 正則化を前 policy への依存度向上の形で外部ループのステップサイズを制御し、更新ノイズを更新ごとのデータで制御することで、PPO 外部ループを標準的な確率的最適化として概念的にモデル化する。
- PPO-EWMA を用いて正則化とデータ収集を分離し、COM およびクリッピング ε の役割を検討する。
- 外部ループのダイナミクスを SGD と比較し、外部ステップサイズが大きすぎると停滞し、縮小で回復することを経験的に示す。
- 正則化、最適化エポック数、 rollout バッチサイズがプラトーに与える影響を、ロボティクスとオープンエンド領域で評価する。
- スケーリングレシピを提供する:ミニバッチサイズを固定したまま並列環境を増やし、ミニバッチの数(または学習率に応じてミニバッチをスケール)を調整する。
- 実証的に、ロボティクスのタスク、Kinetix のオープンエンド領域、SAPG などのベースラインとの比較を含め、結果を横断的に示す。
実験結果
リサーチクエスチョン
- RQ1高並列環境を使用した PPO において学習停滞を引き起こす仕組みは何か。
- RQ2外部ループのステップサイズは更新ノイズとどう相互作用してプラトーを決定するか。
- RQ3外部ループダイナミクスを調整するハイパーパラメータは何で、並列化を増やすときどう共スケールすべきか。
- RQ4PPO を 100 万超の並列環境へスケールして単調改善を得られ、どれくらいの経験が必要か。
- RQ5並列性を高める際に安定性と速度を保つ最も実用的なスケーリングレシピは何か。
主な発見
- 外部ループのステップサイズが更新ノイズに対して大きい場合、PPO の停滞が SGD の停滞と類似して生じる。
- 並列環境の数を増やすと外部ステップサイズと更新ノイズの両方が低減され、学習の継続が可能になる。
- 内部ループのハイパーパラメータ(例:学習率)を変更しても外部ステップサイズの不適切さを完全には補えず、外部ループダイナミクスは内部ループとは異なる。
- 安定性重視のスケーリングレシピとして、学習率とミニバッチサイズを固定したままミニバッチ数(データ更新ごと)を増やすことで並列化へのロバスト性が向上する。
- 経験的に、1M 超の並列環境へスケールするとKinetix domain での遷移数が兆単位に達するまで単調な性能向上を示し、ロボティクスの結果でも提案レシピでスケーラビリティが改善される。
- PPO-EWMA を COM 固定で用いると、多くの並列環境において一貫した正則化を維持するのに有効である。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。