Approximate Newton Policy Gradient Algorithms

Haoya Li, Samarth Gupta, Hsiang-Fu Yu, Lexing Ying, Inderjit S. Dhillon

TL;DR

This paper introduces a novel "Approximate Newton" method for policy gradient algorithms in reinforcement learning. It achieves significantly faster convergence (often in single-digit iterations) compared to existing methods by cleverly approximating the Hessian matrix, leading to quadratic convergence and outperforming state-of-the-art approaches on various benchmarks.

What Problem Does This Paper Address?

Policy gradient (PG) algorithms are a cornerstone of reinforcement learning (RL) and Markov Decision Processes (MDPs), enabling agents to learn optimal behaviors. However, vanilla PG methods often suffer from slow convergence. While techniques like entropy regularization and natural policy gradients (NPG) have improved convergence rates, they can still be too slow for practical applications, especially in large-scale problems. Existing methods often exhibit sublinear or linear convergence, which can be orders of magnitude slower than the desired quadratic convergence seen in other optimization domains. This paper aims to bridge this gap by developing a policy gradient algorithm that achieves fast, provable quadratic convergence.

Methods

The core innovation is an Approximate Newton method tailored for entropy-regularized policy optimization. The key idea is to decompose the Hessian matrix of the objective function into a diagonal matrix and a remainder term that vanishes at the optimum. The algorithm then uses only the diagonal approximation of the Hessian as a preconditioner for the policy gradient. This approach offers a balance: it leverages second-order information for faster convergence while maintaining computational efficiency due to the simplicity of the diagonal preconditioner.

When Shannon entropy is used as the regularizer, this method recovers the well-known Natural Policy Gradient (NPG) algorithm. For other forms of entropy regularization (like KL-divergence, reverse KL-divergence, Hellinger divergence, and $\alpha$-divergence), the proposed method yields entirely new policy gradient algorithms. The paper provides theoretical guarantees of local quadratic convergence and global convergence of the gradient flow to the optimal policy.

Datasets

The paper evaluates its proposed method on synthetic MDPs and an industrial-scale MDP constructed from online shopping search logs.

  • Synthetic MDP: A medium-scale MDP with 200 states and 50 actions, used to compare the approximate Newton method with Policy Mirror Descent (PMD) and Generalized Policy Mirror Descent (GPMD).
  • Industrial-Scale MDP: A large-scale MDP with 135,000 states and a very sparse transition tensor, derived from real-world search log data. This dataset highlights the scalability of the proposed method.
  • Large State and Action Space MDP: An MDP with 10,000 states and 300 actions, designed to test performance on problems with both large state and action spaces.

Key Insights and Ideas

  • Diagonal Hessian Approximation: The core insight is that a diagonal approximation of the Hessian, derived from a specific decomposition, is sufficient to achieve quadratic convergence. This avoids the computational burden of computing and inverting the full Hessian.
  • Unified Framework: The proposed method provides a unified framework that encompasses NPG as a special case and naturally extends to various other entropy regularization functions, creating novel algorithms.
  • Fast Convergence in Practice: Despite theoretical guarantees, the paper demonstrates that the approximate Newton method converges remarkably quickly in practice, often in single-digit iterations, even for large and complex problems. This is a significant improvement over existing methods that can take tens of thousands of iterations.
  • Connection to Mirror Descent: The paper highlights a deep connection between the approximate Newton method (with $\eta=1$) and mirror descent, suggesting a broader theoretical understanding of these optimization techniques.

Key Results

  • Quadratic Convergence: The paper theoretically proves and numerically verifies local quadratic convergence for the approximate Newton policy gradient algorithms.
  • Dramatic Speedup: On synthetic and industrial-scale MDPs, the proposed method converges in 5-7 iterations, while existing methods like PMD and GPMD require tens of thousands of iterations to reach similar precision.
  • Scalability: The method demonstrates strong performance on large-scale problems with over 100,000 states, converging in a few minutes on a regular laptop.
  • Global Convergence: The approximate Newton gradient flow is proven to converge globally to the optimal policy.

Limitations and Future Work

  • Multiplier Determination: For general entropy functions, determining the Lagrange multipliers ($c_s$) can be more complex than for Shannon entropy, requiring numerical methods like bisection.
  • Future Work: The authors suggest adapting this technique to other gradient-based algorithms and exploring different f-divergences. They also propose investigating numerical schemes for ODEs to improve initial policy selection for faster convergence and extending the framework to continuous MDPs using function approximation and model reduction.

Summary updated

BibTeX
@article{li2023approximate,
  author = {Haoya Li and Samarth Gupta and Hsiang-Fu Yu and Lexing Ying and Inderjit S. Dhillon},
  title = {{Approximate Newton Policy Gradient Algorithms}},
  journal = {SIAM J. Sci. Comput.},
  year = {2023},
  doi = {10.1137/22m1492088},
}
Figure