Skip to main content
QUICK REVIEW

[Paper Review] You May Not Need Ratio Clipping in PPO

Mingfei Sun, Vitaly Kurin|arXiv (Cornell University)|Jan 31, 2022
Machine Learning and AlgorithmsComputer Science7 citations
TL;DR

This paper proposes Early Stopping Policy Optimization (ESPO), a novel PPO variant that replaces ratio clipping with early stopping based on a theoretically grounded ratio deviation metric. ESPO directly optimizes the original surrogate objective over multiple epochs, using a simple stopping condition derived from a monotonic improvement guarantee, and achieves significantly better performance than standard PPO across continuous control benchmarks, including in distributed training settings.

ABSTRACT

Proximal Policy Optimization (PPO) methods learn a policy by iteratively performing multiple mini-batch optimization epochs of a surrogate objective with one set of sampled data. Ratio clipping PPO is a popular variant that clips the probability ratios between the target policy and the policy used to collect samples. Ratio clipping yields a pessimistic estimate of the original surrogate objective, and has been shown to be crucial for strong performance. We show in this paper that such ratio clipping may not be a good option as it can fail to effectively bound the ratios. Instead, one can directly optimize the original surrogate objective for multiple epochs; the key is to find a proper condition to early stop the optimization epoch in each iteration. Our theoretical analysis sheds light on how to determine when to stop the optimization epoch, and call the resulting algorithm Early Stopping Policy Optimization (ESPO). We compare ESPO with PPO across many continuous control tasks and show that ESPO significantly outperforms PPO. Furthermore, we show that ESPO can be easily scaled up to distributed training with many workers, delivering strong performance as well.

Motivation & Objective

  • To investigate whether ratio clipping in PPO is necessary for stable and effective policy optimization.
  • To identify the limitations of ratio clipping, such as ineffective ratio bounding and potential violation of trust region constraints.
  • To develop a method that directly optimizes the original surrogate objective without clipping, relying on early stopping to maintain policy stability.
  • To provide a theoretically justified stopping criterion based on ratio deviation that ensures monotonic improvement.
  • To evaluate the scalability and performance of the proposed method in both single- and multi-worker distributed training setups.

Proposed method

  • The method proposes Early Stopping Policy Optimization (ESPO), which directly optimizes the conservative policy iteration (CPI) surrogate objective over multiple mini-batch epochs without ratio clipping.
  • A novel ratio deviation metric is introduced as a stopping criterion, derived from a theoretical monotonic improvement guarantee that bounds policy updates.
  • The ratio deviation is computed per state-action sample and used to determine when to terminate optimization epochs, preventing excessive policy updates.
  • The stopping threshold is a hyperparameter that balances tightness of the lower bound and sample efficiency, with empirical validation showing robustness at 0.25.
  • The method is compatible with distributed training, where multiple actors collect data and learners update policies in parallel, with gradients averaged across workers.
  • Theoretical analysis shows that ratio deviation provides a tighter and more effective bound on policy divergence than KL divergence or ratio clipping.

Experimental results

Research questions

  • RQ1Does ratio clipping in PPO effectively bound policy update ratios, or can ratios still grow unbounded despite clipping?
  • RQ2Can direct optimization of the original surrogate objective outperform ratio-clipped PPO if combined with an appropriate early stopping condition?
  • RQ3How does the proposed ratio deviation metric compare to KL divergence in terms of bounding policy divergence and ensuring monotonic improvement?
  • RQ4Can ESPO maintain or exceed PPO performance in distributed training settings with many workers?
  • RQ5Is the performance gain of ESPO due to the stopping criterion or to other implementation-level optimizations?

Key findings

  • ESPO significantly outperforms standard PPO across multiple continuous control benchmarks, including Ant, Humanoid, and Walker2d, in both single- and multi-worker settings.
  • The performance of ESPO with a stopping threshold of 0.25 is consistently robust and superior to both KL-based and ratio-clipped baselines.
  • Even with a single worker, ESPO outperforms distributed PPO (DPPO) on Humanoid and HumanoidStandup, and performs comparably on Ant.
  • Distributed ESPO with 10 workers achieves performance on par with or better than distributed PPO, indicating strong scalability and sample efficiency.
  • The ratio deviation metric provides a tighter bound on policy divergence than KL divergence, and ESPO with RD.25 shows more uniformly deviated policy updates than KL.05, suggesting more effective optimization.
  • Empirical results show that ratio clipping fails to prevent unbounded ratios and may not enforce trust region constraints effectively, undermining its theoretical justification.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.