Skip to main content
QUICK REVIEW

[Paper Review] PTR-PPO: Proximal Policy Optimization with Prioritized Trajectory Replay

Xingxing Liang, Yang Ma|arXiv (Cornell University)|Dec 7, 2021
Reinforcement Learning in RoboticsComputer Science5 citations
TL;DR

This paper proposes PTR-PPO, a novel Proximal Policy Optimization algorithm that enhances sample efficiency by integrating prioritized trajectory replay into on-policy training. By prioritizing trajectories based on GAE values and cumulative rewards, and using truncated importance weights to stabilize off-policy updates, PTR-PPO achieves state-of-the-art performance on Atari games, outperforming standard PPO and existing off-policy baselines.

ABSTRACT

On-policy deep reinforcement learning algorithms have low data utilization and require significant experience for policy improvement. This paper proposes a proximal policy optimization algorithm with prioritized trajectory replay (PTR-PPO) that combines on-policy and off-policy methods to improve sampling efficiency by prioritizing the replay of trajectories generated by old policies. We first design three trajectory priorities based on the characteristics of trajectories: the first two being max and mean trajectory priorities based on one-step empirical generalized advantage estimation (GAE) values and the last being reward trajectory priorities based on normalized undiscounted cumulative reward. Then, we incorporate the prioritized trajectory replay into the PPO algorithm, propose a truncated importance weight method to overcome the high variance caused by large importance weights under multistep experience, and design a policy improvement loss function for PPO under off-policy conditions. We evaluate the performance of PTR-PPO in a set of Atari discrete control tasks, achieving state-of-the-art performance. In addition, by analyzing the heatmap of priority changes at various locations in the priority memory during training, we find that memory size and rollout length can have a significant impact on the distribution of trajectory priorities and, hence, on the performance of the algorithm.

Motivation & Objective

  • Improve sample efficiency in on-policy deep reinforcement learning, which typically suffers from low data utilization and high data requirements.
  • Address the inefficiency of uniform experience replay in sparse-reward environments by prioritizing trajectories with higher learning potential.
  • Integrate off-policy replay mechanisms into on-policy PPO without compromising policy update stability.
  • Develop a robust loss function for off-policy PPO training that mitigates high variance from importance sampling.
  • Investigate the impact of memory size and rollout length on trajectory priority distribution and algorithm performance.

Proposed method

  • Define three trajectory priority metrics: max and mean GAE-based priorities, and normalized undiscounted cumulative reward-based priorities.
  • Store trajectories in a sumtree-based priority memory, enabling efficient prioritized sampling.
  • Propose a truncated importance weight estimation method to reduce variance in off-policy updates, especially under multi-step experience.
  • Design a modified PPO loss function that incorporates truncated importance weights for stable policy improvement in off-policy settings.
  • Use a learner-actor architecture where actors generate trajectories, compute priorities, and store them in the priority memory, while the learner updates the policy using sampled trajectories.
  • Analyze trajectory priority dynamics via heatmaps to study the influence of memory size and rollout length on priority distribution and learning efficiency.

Experimental results

Research questions

  • RQ1How does prioritized trajectory replay improve sample efficiency in on-policy PPO training?
  • RQ2What are the most effective trajectory priority metrics for guiding replay in on-policy DRL?
  • RQ3Can truncated importance weights effectively reduce variance in off-policy PPO updates when using prioritized replay?
  • RQ4How do hyperparameters like memory size and rollout length affect the distribution of trajectory priorities and overall learning performance?
  • RQ5Can a hybrid on-policy/off-policy approach with prioritized replay achieve SOTA performance on standard Atari benchmarks?

Key findings

  • PTR-PPO achieves state-of-the-art performance on a set of Atari discrete control tasks, outperforming standard PPO and existing off-policy baselines.
  • The algorithm shows improved learning speed and final performance when using GAE-based and reward-based trajectory priorities, with the best results achieved using a memory size of 256.
  • Heatmap analysis reveals that memory size significantly affects priority differentiation: a memory size of 256 yields optimal priority diversity and performance, while smaller sizes (e.g., 32) lead to over-sampling of a few trajectories.
  • Rollout length has a strong impact on learning dynamics; a length of 8 achieves the best performance, with 16 being second-best and 4 performing worst, due to suboptimal priority differentiation.
  • The distribution of trajectory priorities evolves over time, with clear demarcation points in heatmaps corresponding to distinct learning stages (e.g., climbing vs. plateau phases), indicating that priority dynamics reflect learning progress.
  • The reward-based priority metric shows the most favorable priority differentiation when rollout length is 8, suggesting that this configuration optimally balances trajectory importance and diversity.

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.