Abstract
Standard Natural Gradient methods are often viewed as approximations to trust-region optimization. This work demonstrates that for exponential family distributions, the natural gradient update is the exact solution to the trust-region problem when using natural parameters and compatible value function approximation. However, standard natural gradients can lead to premature convergence due to aggressive entropy reduction. We propose Compatible Policy Search (COPOS), which introduces an explicit entropy bound to maintain exploration. COPOS achieves state-of-the-art performance on complex continuous control tasks and discrete POMDP benchmarks.
Introduction
Policy search is a fundamental approach in reinforcement learning (RL), yet it faces significant challenges regarding stability and exploration. Trust-region methods, such as Trust Region Policy Optimization (TRPO), have become popular for ensuring stable updates by bounding the KL-divergence between successive policies. The Natural Gradient is a closely related tool, often interpreted as a second-order approximation of the trust-region constraint.
This paper provides a deeper theoretical link between these concepts and identifies a critical failure mode: "entropy collapse." We show that without explicit constraints on policy variance, natural gradient updates can shrink the agent's exploration too quickly, leading to suboptimal performance or stagnation.
Methods
Equivalence of Natural Gradient and Trust Regions
A key contribution of this work is the proof that the natural gradient update is not merely an approximation but the exact analytical solution to the trust-region optimization problem for exponential family distributions (e.g., Gaussians). This equivalence holds when the policy is parameterized using natural parameters and the value function is approximated using compatible features.
Compatible Policy Search (COPOS)
To address the issue of premature convergence, we introduce COPOS. Unlike standard trust-region methods that only bound the KL-divergence, COPOS incorporates an additional entropy bound. This constraint prevents the policy from losing too much entropy in a single update, ensuring the agent continues to explore the environment effectively.
The algorithm uses a dual optimization approach to solve for Lagrange multipliers that balance the reward objective with the KL-divergence and entropy constraints.
Key Insights
- Natural Parameters Matter: Using natural parameters (precision matrices and linear vectors) for Gaussian policies makes the updates more theoretically sound and mathematically cleaner.
- The "Entropy Collapse" Trap: Through a toy example, the authors demonstrate that the natural gradient reduces variance at every step. Without an explicit entropy bound, the step size for the next update shrinks, leading to agonizingly slow convergence or getting stuck in local optima.
- Compatible Features for Neural Networks: The authors derive the exact structure of compatible features for neural networks, showing they represent an advantage function.
Experimental Results
We evaluated COPOS on two main benchmarks: Roboschool (continuous control) and Field Vision Rock Sample (discrete POMDP).
Continuous Control
In the RoboHumanoid-v1 task, COPOS significantly outperformed existing methods, achieving a mean return of 113.85 compared to TRPO's 64.77. The algorithm demonstrated superior stability and faster convergence across all tested environments.
Discrete POMDPs
In the FVRS benchmark, COPOS maintained higher entropy for longer periods, allowing it to discover better strategies than TRPO or the standard Natural Policy Gradient (TNPG) in environments where observations are noisy or limited.
Conclusion
COPOS provides a theoretically grounded and practically effective framework for policy search. By recognizing the exact nature of the natural gradient and explicitly managing policy entropy, COPOS avoids the common pitfalls of premature convergence and performance collapse. Future work will focus on scaling these methods to even larger neural architectures and exploring applications in safety-critical domains like autonomous driving.
Summary updated