Adaptive Step-Size for Policy Gradient Methods

Matteo Pirotta, Marcello Restelli, Luca Bascetta

Overview

This paper introduces a method to automatically calculate the optimal step size (learning rate) for policy gradient reinforcement learning. By deriving a mathematical lower bound on performance improvement, the authors provide a closed-form solution for the step size that guarantees the policy will improve at every update, avoiding the common pitfalls of oscillation and divergence.

Introduction & Motivation

In reinforcement learning (RL), policy gradient methods are the workhorses for robotics and continuous control. They work by iteratively "tweaking" policy parameters in the direction that increases expected rewards. However, they suffer from a major practical headache: the step size ($\alpha$).

If the step size is too small, the agent learns at a glacial pace. If it’s too large, the policy parameters can oscillate wildly or even diverge, causing the agent to "unlearn" everything it knows. Currently, most researchers find the right $\alpha$ through tedious manual hand-tuning or simple heuristics (like slowly decreasing the rate over time). This paper seeks to replace trial-and-error with a principled, automated calculation that ensures safe and steady progress.

Methodology

The authors build their approach on the foundation of "Safe Policy Iteration." The core logic follows these steps:

  1. Performance Lower Bound: They start with a known mathematical inequality that bounds the difference in performance between two policies. This bound depends on the "advantage" of the new policy and how much the new policy deviates from the old one.
  2. Specialization for Gaussian Policies: While the general bound is a complex fourth-order polynomial, the authors show that for Gaussian policies (the most common choice for continuous actions), the bound simplifies significantly.
  3. Closed-Form Solution: For Gaussian policies, the performance bound becomes a quadratic function of the step size. Because it's a quadratic with a negative leading coefficient, it has a single maximum. The authors derive a formula ($\alpha^*$) to find this peak, representing the "optimal" step size relative to that bound.
  4. Approximate Framework: Since we rarely have the "true" gradient in the real world, the authors extend the theory to work with estimated gradients (using algorithms like REINFORCE and PGT). They incorporate the uncertainty of these estimates into the step size calculation to ensure the improvement guarantee holds even with noisy data.

Experimental Setup

The approach is evaluated using a Linear-Quadratic Regulator (LQR) problem. While it might seem simple compared to modern benchmarks like MuJoCo, LQR is a fundamental control problem where the "ground truth" optimal policy can be calculated analytically. This allows the authors to precisely measure how close their adaptive method gets to the theoretical limit and verify their safety guarantees.

Key Insights

  • Safety as a Constraint: The most important takeaway is that you can treat the learning rate not as a hyperparameter to be guessed, but as an optimization problem in itself. By maximizing the lower bound of improvement, you ensure the agent never takes a step that makes it worse.
  • Variance vs. Step Size: A surprising insight is the relationship between policy variance ($\sigma$) and the step size. When a policy is nearly deterministic (low variance), even tiny changes in parameters can lead to huge changes in behavior. Consequently, the "safe" step size becomes very small. Conversely, a high-variance (noisier) policy can safely handle larger jumps in parameter space.
  • Sample Complexity Matters: In the approximate (model-free) setting, the "safe" step size depends heavily on how many trajectories you sample. If you have very few samples (high uncertainty), the algorithm automatically chooses a tiny step size to avoid acting on bad data.

Key Results

  • Avoiding Divergence and Improving Efficiency: In the LQR experiments, standard constant step sizes ($\alpha_{const}$) frequently led to divergence (indicated by $\bot$) if set even slightly too high. The proposed adaptive method ($\alpha^*$) never diverged. Furthermore, the adaptive step size often outperformed hand-tuned decreasing step sizes. For example, with a standard deviation of $\sigma = 1.00$, the adaptive method reached the target in 3,279 iterations, while many constant step sizes either took much longer or failed entirely.
Comparison of iterations to convergence for constant, decreasing, and adaptive step sizes across different policy variances.
  • Gradient Estimator Comparison: The paper confirms that the Policy Gradient Theorem (PGT) estimator, which has lower variance than REINFORCE (RF), allows for larger, more confident step sizes and faster convergence in the approximate setting.
Comparison of REINFORCE (RF) and PGT estimators across varying numbers of trajectories.

Limitations and Future Directions

  • Conservatism: Because the method relies on a lower bound, the calculated step size is inherently cautious. In some cases, a slightly larger step might actually be safe and faster, but the math cannot guarantee it.
  • Gaussian Assumption: Much of the mathematical simplification relies on the policy being Gaussian. Extending this to more complex policy architectures (like deep neural networks with non-Gaussian outputs) remains a challenge.
  • Computational Overhead: Calculating the bound requires estimating quantities like the supremum of the Q-function, which can be difficult in high-dimensional, model-free environments.

Future work should focus on deriving tighter bounds to reduce conservatism and extending the framework to other policy models like Gibbs policies.

Summary updated

BibTeX
@inproceedings{pirotta2013adaptive,
  author = {Matteo Pirotta and Marcello Restelli and Luca Bascetta},
  title = {{Adaptive Step-Size for Policy Gradient Methods}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2013},
}
Figure