Abstract
Proximal Policy Optimization (PPO) is a cornerstone of modern reinforcement learning, valued for its stability and reliable performance. However, as an on-policy algorithm, it suffers from low sample efficiency, discarding data after only a few updates. This paper presents Off-Policy PPO, a novel framework that enables PPO to learn from a replay buffer of historical data. By dynamically scaling clipping bounds relative to the behavior policy and incorporating V-trace for value estimation, the proposed method achieves the sample efficiency of off-policy algorithms while preserving the robust trust-region guarantees of PPO. Evaluations on MuJoCo benchmarks show that Off-Policy PPO significantly outperforms both standard PPO and several state-of-the-art off-policy alternatives.
Introduction
Reinforcement Learning (RL) agents typically fall into two camps: on-policy and off-policy. On-policy methods like PPO are stable and easy to tune but are notoriously "sample inefficient," requiring vast amounts of new data for every update. Conversely, off-policy methods like Soft Actor-Critic (SAC) or Deep Deterministic Policy Gradient (DDPG) are more efficient because they use a replay buffer to learn from past experiences multiple times. However, simply feeding old data into PPO usually breaks its stability, leading to erratic policy ratios and "catastrophic forgetting."
Off-Policy PPO bridges this gap. It modifies PPO's core objective to allow for stable learning from stale data, effectively combining the best of both worlds: the rock-solid stability of trust-region methods and the high sample efficiency of replay-based learning.
Methodology
The primary innovation of Off-Policy PPO is a modified clipped surrogate objective function designed for the off-policy regime.
Scaled Clipping
In standard PPO, updates are constrained by clipping the policy ratio within a fixed range $[1-\epsilon, 1+\epsilon]$. In an off-policy setting, data is sampled from a behavior policy $\mu$. The authors propose scaling these clipping bounds by the factor $\frac{\pi_{old}(a|s)}{\mu(a|s)}$. This dynamic scaling "re-centers" the trust region relative to the current policy, ensuring that updates remain proximal even when the underlying data distribution is different.
Value Function and Stability
To handle value estimation off-policy, the method employs V-trace, an actor-critic method that corrects for discrepancies between the behavior and target policies. Furthermore, the authors provide a mathematical proof showing that this off-policy update maintains a maximum KL divergence identical to standard PPO, preserving the algorithm's fundamental stability.
Experimental Results
The authors evaluated Off-Policy PPO on six continuous control tasks from the OpenAI Gym and MuJoCo benchmarks, ranging from simple tasks like Swimmer to complex ones like Humanoid.
Performance and Efficiency
Off-Policy PPO demonstrates superior sample efficiency across nearly all tasks. For instance, in the Walker2d environment, it reaches performance thresholds in approximately 220k steps, compared to the 750k steps required by standard PPO.
As shown in the figure above, Off-Policy PPO (green line) consistently matches or exceeds the final returns of specialized off-policy algorithms like SAC and TD3, while converging significantly faster than on-policy baselines.
Stability Analysis
A key advantage of this approach is its controlled policy updates. While many off-policy methods experience spikes in KL divergence—indicating potentially destructive updates—Off-Policy PPO maintains a flat, stable KL divergence curve.
The stability shown in the KL divergence plots confirms that the dynamic scaling mechanism successfully prevents the agent from over-correcting based on old data, mirroring the reliable training behavior of standard PPO.
Conclusion and Future Work
Off-Policy PPO represents a significant step forward in making stable RL algorithms more practical for data-constrained environments. By re-imagining PPO's clipping mechanism for off-policy data, the authors achieve state-of-the-art performance with minimal hyperparameter sensitivity compared to other off-policy methods. Future research may explore the limits of this method when the behavior policy becomes extremely divergent from the current policy, or in scenarios where the replay buffer contains highly non-uniform data.
Summary updated