Preventing Learning Stagnation in PPO by Scaling to 1 Million Parallel Environments
Organizations: FLAIR, University of Oxford · Google DeepMind
Abstract
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.
Figures & tables
| Property | Inner loop | Outer loop |
|---|---|---|
| Learning rate | Adam learning rate | Regularisation (COM, ) & epochs |
| Noise | Minibatch vs rollout batch | Rollout batch vs true gradient |
| Curvature | Neural network hessian | Policy landscape |
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| Parameter | Jax2D Locomotion | SFL |
|---|---|---|
| 0.995 | 0.995 | |
| 0.9 | 0.9 | |
| PPO number of steps | 256 | 256 |
| PPO epochs | 8 | 8 |
| PPO | 0.2 | 0.2 |
| PPO max gradient norm | 0.5 | 0.5 |
| Parameter | 2048 | 8192 | 65536 | 1M |
| Rollout Length | 512 | 512 | 512 | 512 |
| Sample Ratio | 0.5 | 0.5 | 0.5 | 0.5 |
| Filtering Batch Size | 12288 | 256k | 256k | 4M |
| Update Period | 128 | 256 | 32 | 2 |
| Buffer Size | 1024 | 8192 | 8192 | 8192 |
| Hyperparameter | AllegroKuka | Shadow Hand | Allegro Hand |
| Discount factor, | 0.99 | 0.99 | 0.99 |
| 0.95 | 0.95 | 0.95 | |
| Learning rate | 1e-4 | 5e-4 | 5e-4 |
| KL threshold for LR update | 0.016 | 0.016 | 0.016 |
| Grad norm | 1.0 | 1.0 | 1.0 |
| Entropy coefficient | 0 | 0 | 0 |
Reinforcement Learning
Reinforcement learning studies how agents learn sequential decisions from rewards and interaction, balancing exploration, performance, safety, and adaptation.
See all 1,661 papers