Abstract
Model-based reparameterization (RP) policy gradients are theoretically attractive for their potential for low variance compared to likelihood ratio methods. However, they frequently fail in long-horizon reinforcement learning (RL) tasks due to exploding gradient variance—a phenomenon characterized as "chaotic" unrolls. This paper investigates the theoretical underpinnings of this failure, identifying non-smoothness in learned models as the primary driver. By incorporating Spectral Normalization (SN) to constrain the Lipschitz constants of both the model and the policy, the authors mitigate variance explosion. Experimental results on MuJoCo benchmarks demonstrate that this approach enables stable training with longer unroll horizons, achieving performance comparable to or better than state-of-the-art methods like MBPO and SAC.
Introduction
In Reinforcement Learning, policy gradients are typically estimated via two main approaches: Likelihood Ratio (LR) and Reparameterization (RP). LR methods do not require a differentiable model but often suffer from high variance. RP methods, popularized by the "reparameterization trick" in Variational Autoencoders, use a differentiable model to backpropagate gradients. While highly effective for short-term tasks, RP becomes "chaotic" in long-horizon RL. When a learned model is unrolled over many timesteps, small errors or sharp changes in the neural network function approximator are amplified, leading to an extremely non-smooth optimization landscape and exploding gradient variance. The authors provide a theoretical framework to understand this "curse of chaos" and propose a practical solution using Spectral Normalization.
Methods
The authors analyze two frameworks for model-based RP:
- Model Derivatives on Predictions (DP): Backpropagating through entirely simulated trajectories.
- Model Derivatives on Real Samples (DR): Using the model only to calculate derivatives along real-world data samples.
The core contribution is the introduction of Spectral Normalization (SN) into the training loop. SN constrains the Lipschitz constant of the neural network layers, ensuring the function does not change too abruptly. By enforcing smoothness on both the transition model and the policy, they prevent the exponential growth of gradient variance during long model unrolls.
The general workflow, as shown in Algorithm 1, involves iterative updates to the model parameters (via MSE or MLE), the critic parameters (via Temporal Difference learning), and the policy parameters using the estimated RP gradient (DP or DR).
Theoretical Insights and Results
The Lipschitz Connection
The authors prove that gradient variance depends polynomially on the Lipschitz continuity of the model and policy. Specifically, if the Lipschitz constant $L > 1$, the variance scales catastrophically with the unroll length $h$. While enforcing smoothness via SN can introduce some bias (as the model might not fit sharp transitions perfectly), experiments show that the benefit of drastically lower variance far outweighs the cost of this slight bias.
Key Results
The researchers evaluated their approach on standard continuous control benchmarks from the MuJoCo physics engine (Hopper, Walker2d, Half-Cheetah, Ant, Double-Pendulum).
- Variance Reduction: In tasks like Walker2d, the gradient variance of the vanilla RP method exploded as the unroll length increased. Adding Spectral Normalization reduced this variance by several orders of magnitude (e.g., from $10^{17}$ down to $10^8$).
- Superior Performance: The proposed SN-based method (RP-DP-SN) consistently outperformed or matched top-tier baselines like MBPO, PPO, and SAC.
- Robustness to Horizon: While vanilla model-based RP methods usually fail when unrolling for more than 3-5 steps, the SN-regularized version remained stable even with unrolls of 15 steps, allowing the agent to leverage more "look-ahead" information.
Conclusion and Future Work
The primary limitation of this approach is that in environments with inherent physical non-smoothness (e.g., complex collisions), forcing model smoothness via SN might introduce significant bias. Future work should explore more sophisticated smoothness regularization designs and investigate the application of these proxy models to differentiable simulations to obtain even more accurate policy gradients.
Summary updated