Enhancing PPO with Trajectory-Aware Hybrid Policies
Qisai Liu, Zhanhong Jiang, Hsin-Jung Yang, Mahsa Khosravi, Joshua R. Waite, Soumik Sarkar
TL;DR
The paper tackles the high variance and sample-inefficiency of on-policy PPO by introducing HP3O, a hybrid optimizer that reuses recent trajectories through a FIFO trajectory replay buffer and updates from a batch containing the best trajectory plus random samples. It provides theoretical policy-improvement lower bounds for HP3O and HP3O+ that account for multiple prior policies drawn from the buffer, with HP3O+ adding a value-based baseline penalty to reduce variance. Empirically, HP3O and HP3O+ demonstrate improved sample efficiency and lower variance across multiple continuous-control tasks, with runtimes comparable to PPO and often surpassing other baselines like P3O, GEPPO, and SAC. These results validate the practical utility of selectively reusing trajectory data while maintaining near on-policy stability, offering a step toward effective integration of on-/off-policy ideas.
Abstract
Proximal policy optimization (PPO) is one of the most popular state-of-the-art on-policy algorithms that has become a standard baseline in modern reinforcement learning with applications in numerous fields. Though it delivers stable performance with theoretical policy improvement guarantees, high variance, and high sample complexity still remain critical challenges in on-policy algorithms. To alleviate these issues, we propose Hybrid-Policy Proximal Policy Optimization (HP3O), which utilizes a trajectory replay buffer to make efficient use of trajectories generated by recent policies. Particularly, the buffer applies the "first in, first out" (FIFO) strategy so as to keep only the recent trajectories to attenuate the data distribution drift. A batch consisting of the trajectory with the best return and other randomly sampled ones from the buffer is used for updating the policy networks. The strategy helps the agent to improve its capability on top of the most recent best performance and in turn reduce variance empirically. We theoretically construct the policy improvement guarantees for the proposed algorithm. HP3O is validated and compared against several baseline algorithms using multiple continuous control environments. Our code is available here.
