Abstract
In this paper, we propose several new stochastic second-order algorithms for policy optimization that only require gradient and Hessian-vector product in each iteration, making them computationally efficient and comparable to policy gradient methods. Specifically, we propose a dimension-reduced second-order method (DR-SOPO) which repeatedly solves a projected two-dimensional trust region subproblem. We show that DR-SOPO obtains an $\mathcal{O}(\epsilon^{-3.5})$ complexity for reaching approximate first-order stationary condition and certain subspace second-order stationary condition. In addition, we present an enhanced algorithm (DVR-SOPO) which further improves the complexity to $\mathcal{O}(\epsilon^{-3})$ based on the variance reduction technique. Preliminary experiments show that our proposed algorithms perform favorably compared with stochastic and variance-reduced policy gradient methods.
Introduction
Policy Gradient (PG) methods are fundamental to modern Reinforcement Learning (RL), particularly in high-dimensional continuous control tasks. Despite their popularity, they face two significant challenges: high variance in stochastic gradients leading to unstable training, and the tendency to get trapped in saddle points where the gradient vanishes but the objective is not locally optimized.
While second-order methods like Newton's method can navigate complex reward landscapes more effectively by utilizing Hessian information, they are often computationally prohibitive. Calculating and inverting a full Hessian matrix is impractical for deep RL policies with large parameter sets. This paper addresses these challenges by introducing computationally efficient second-order methods that maintain the scalability of first-order approaches.
Methodology
The authors propose two primary algorithms designed to balance the benefits of second-order information with computational efficiency:
DR-SOPO (Dimension-reduced Second-order Policy Optimization)
DR-SOPO simplifies the trust-region subproblem by projecting it onto a two-dimensional subspace. This subspace is spanned by the current gradient and the previous update direction. By reducing the problem to 2D, it admits a closed-form solution, making it computationally inexpensive. Crucially, it only requires Hessian-vector products, which can be efficiently computed via automatic differentiation.
DVR-SOPO (Dimension and Variance-reduced SOPO)
DVR-SOPO enhances the base algorithm with Hessian-aided variance reduction (HAVR). This technique uses Hessian-vector products to track gradient changes across iterations more accurately than standard importance sampling. This approach mitigates the "exploding weights" problem common in RL and significantly improves sample efficiency.
Theoretical Guarantees
The proposed methods offer superior theoretical performance compared to existing state-of-the-art algorithms. DR-SOPO achieves a sample complexity of $\mathcal{O}(\epsilon^{-3.5})$ for reaching subspace second-order stationary points (SOSPS). DVR-SOPO further improves this to $\mathcal{O}(\epsilon^{-3})$, matching the optimal rate for first-order variance-reduced methods while providing the added stability of second-order curvature information.
Experimental Evaluation
The algorithms were evaluated on standard continuous control benchmarks from the MuJoCo physics engine, including Swimmer-v2, Walker2d-v2, HalfCheetah-v2, and Ant-v2.
Key Results: * Performance: DR-SOPO consistently outperformed the classic REINFORCE algorithm, particularly in complex environments like Walker2d and Ant. * Convergence: DVR-SOPO demonstrated faster convergence and higher final average returns compared to HAPG, a leading variance-reduced first-order method. * Stability: The inclusion of second-order information resulted in smoother navigation of the reward landscape, avoiding the erratic performance dips typical of purely first-order stochastic methods.
Conclusion and Future Work
DR-SOPO and DVR-SOPO provide a practical framework for incorporating second-order optimization into RL. By reducing the trust-region problem to a 2D subspace and utilizing efficient Hessian-vector products, these methods achieve state-of-the-art sample complexity and improved stability.
Future research directions include exploring the global second-order guarantees beyond the 2D subspace, further investigating the relationship with Trust Region Policy Optimization (TRPO), and testing these methods in parameterized settings where global optimality can be theoretically analyzed.
Summary updated