PAGE-PG: A Simple and Loopless Variance-Reduced Policy Gradient Method with Probabilistic Gradient Estimation

Matilde Gargiani, Andrea Zanelli, Andrea Martinelli, Tyler H. Summers, John Lygeros

Policy gradient methods are a cornerstone of modern reinforcement learning (RL), powering everything from robotic control to game-playing agents. However, they have a notorious Achilles' heel: high variance. Estimating a gradient from a few random trajectories is noisy, often leading to slow convergence and a massive appetite for data.

In their ICML 2022 paper, researchers introduce PAGE-PG (ProbAbilistic Gradient Estimation for Policy Gradient), a new algorithm that tackles this variance problem with a "loopless" probabilistic approach that is both mathematically elegant and practically efficient.

TL;DR

PAGE-PG is a novel variance-reduced policy gradient method that replaces the rigid "double-loop" structure of previous algorithms with a simple probabilistic switch. It achieves a state-of-the-art sample complexity of $\mathcal{O}(\epsilon^{-3})$ while being easier to tune and more robust in practice than its predecessors.

What Problem Does This Paper Address?

Standard REINFORCE-type methods estimate the gradient of the expected reward by sampling trajectories. Because these estimates are stochastic, they fluctuate wildly. To fix this, researchers previously borrowed "variance reduction" techniques from supervised learning, such as SVRG or SARAH.

However, traditional variance-reduced methods use a cumbersome double-loop structure:

  1. Outer Loop: Compute a very expensive, high-precision gradient using a massive batch of data.
  2. Inner Loop: Perform many small updates using cheap, noisy estimates adjusted by that high-precision anchor.

In RL, this structure is a headache. It’s hard to tune—specifically, determining how long the inner loop should be—and the "distribution shift" (the fact that the data distribution changes every time the policy is updated) makes the underlying math messy.

Methods: The Probabilistic Switch

The authors introduce PAGE-PG to do away with these nested loops entirely. Inspired by the PAGE estimator used in supervised learning, the algorithm relies on a simple probabilistic switch.

At every iteration, the algorithm makes a "coin flip" with probability $p_t$:

  • With probability $p_t$: It collects a large batch of trajectories to get a fresh, high-quality gradient estimate.
  • With probability $1-p_t$: It reuses the previous gradient estimate but applies a small adjustment based on a tiny new batch of data.

To handle the fact that the "old" gradient was calculated using an "old" policy, the authors use Importance Sampling (IS). This allows them to "re-weight" past data so it remains an unbiased estimate for the current policy. By replacing fixed loops with this probabilistic switch, the algorithm becomes "loopless," making it easier to analyze theoretically and more flexible to implement.

Key Insights and Theoretical Guarantees

Comparison of Sample Complexity and Restart properties
  • Optimal Complexity: As shown in the table above, PAGE-PG reaches an $\epsilon$-stationary point in $\mathcal{O}(\epsilon^{-3})$ trajectories. This is a significant jump over the $\mathcal{O}(\epsilon^{-4})$ required by standard REINFORCE and GPOMDP, matching the best theoretical bounds of much more complex algorithms while maintaining a "No-Restart" (loopless) property.
  • Simplicity is Power: By moving to a loopless design, PAGE-PG avoids the need to tune the inner-loop length, a hyperparameter that is notoriously difficult to optimize because it depends on unknown properties of the environment's landscape.
  • Exploration via Probability: The authors suggest that the switching probability $p_t$ could be adjusted on the fly. Starting with a low $p_t$ (more noise) might encourage exploration early in training, while increasing it later could provide the stability needed to converge to a sharp optimum.

Experimental Results

The authors evaluated PAGE-PG on classic continuous-state control benchmarks from OpenAI Gym, including Acrobot and Cartpole, using neural networks with Tanh activation functions.

Performance on Cartpole environment
  • Competitive Performance: In head-to-head tests against other state-of-the-art variance-reduced methods (like SVRPG, SRVRPG, and STORM-PG), PAGE-PG was consistently among the fastest to converge. As seen in the Cartpole results above, PAGE-PG (purple line) rapidly reaches the maximum reward, outpacing its competitors.
  • Theoretical Validation: The empirical results corroborated the $\mathcal{O}(\epsilon^{-3})$ theoretical sample complexity, showing that the algorithm is not just simpler, but highly data-efficient.

Limitations and Future Work

  • The Importance Sampling Assumption: Like almost all variance-reduced PG methods, PAGE-PG relies on the assumption that the variance of the importance weights remains bounded. In practice, if the policy changes too drastically, these weights can explode, making the gradient estimate useless.
  • Hyperparameter Sensitivity: While PAGE-PG removes the inner-loop length parameter, it is still sensitive to the step-size ($\eta$) and the switching probability ($p_t$). Finding the right configuration still requires a grid search.
  • Future Directions: The authors point toward gradient truncation as a way to relax the strict importance sampling assumptions and suggest exploring second-order information (curvature) to make the method even more robust to step-size selection.

Summary updated

BibTeX
@inproceedings{gargiani2022page,
  author = {Matilde Gargiani and Andrea Zanelli and Andrea Martinelli and Tyler H. Summers and John Lygeros},
  title = {{PAGE-PG: A Simple and Loopless Variance-Reduced Policy Gradient Method with Probabilistic Gradient Estimation}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=OW9ikf0RXn},
}
Figure