Overview
This paper introduces SVRPG, an algorithm that adapts the powerful variance-reduction techniques of Supervised Learning (specifically SVRG) to Reinforcement Learning (RL). By utilizing importance sampling to handle the non-stationary nature of RL data, SVRPG achieves faster convergence and more stable policy updates compared to traditional policy gradient methods.
The Problem: Noise in Policy Gradients
Policy Gradient (PG) methods are a staple of Reinforcement Learning, but they are notoriously "noisy." Estimating a gradient from a few random trajectories often results in high variance, leading to slow convergence or unstable learning.
In Supervised Learning (SL), Stochastic Variance-Reduced Gradient (SVRG) solves a similar problem for finite datasets by periodically calculating a "full" gradient to anchor smaller, stochastic updates. However, RL presents three unique hurdles that prevent a direct application of SVRG:
- Non-concavity: The RL objective function is generally not well-behaved (non-concave).
- Infinite Datasets: RL doesn't have a fixed dataset; it samples from an environment, making "full" gradients impossible to compute exactly.
- Non-stationarity: As the policy improves, the distribution of trajectories changes. A gradient calculated for an old policy is "wrong" for the current one.
Methods: Bridging the Gap with SVRPG
The authors propose Stochastic Variance-Reduced Policy Gradient (SVRPG) to overcome these challenges.
The Core Algorithm
SVRPG operates in "epochs." At the start of each epoch, it collects a large batch of trajectories ($N$) to compute a high-quality snapshot gradient. Then, for several sub-iterations, it uses a much smaller mini-batch ($B$) to perform updates.
The "magic" lies in the Importance Weighting. To use the snapshot information (calculated at policy $\tilde{\theta}$) for the current update (at policy $\theta_t$), the algorithm weights the samples by the probability ratio of the two policies. This ensures the gradient estimate remains unbiased despite the distribution shift.
Practical Innovations
Beyond the basic algorithm, the authors introduce several practical techniques to make it work in real-world scenarios:
- Adaptive Step Size (ADAM): They use two separate ADAM optimizers—one for the snapshot and one for the inner loop—to handle the different scales of noise.
- Adaptive Epoch Length: Instead of a fixed number of sub-iterations, the algorithm triggers a new snapshot when the "noise" in the inner loop (measured via the ADAM step size) exceeds the "signal" provided by the snapshot.
- Normalized Importance Sampling: A technique to further stabilize the importance weights, which can otherwise become volatile if the policy changes too rapidly.
Key Insights and Theoretical Guarantees
- Unbiasedness is Preserved: The most critical insight is that importance sampling allows SVRG-style variance reduction to work even when the underlying data distribution is moving.
- Sample Efficiency: Standard PG methods often "waste" samples by using them for only one update. SVRPG leverages a large batch of samples over multiple updates, effectively getting more "mileage" out of every interaction with the environment.
- Theoretical Convergence: The authors prove that SVRPG achieves a convergence rate of $O(1/T)$ for non-concave objectives, matching the theoretical performance of SVRG in non-convex supervised learning.
Key Results
The algorithm was evaluated on standard continuous control benchmarks from the rllab library, including Cart-pole Balancing, Swimmer, and Half-Cheetah.
- Faster Convergence: On the Cart-pole task, SVRPG reached optimal performance significantly faster than the standard G(PO)MDP baseline.
- Superior Stability: In the Swimmer and Half-Cheetah environments, SVRPG exhibited much tighter confidence intervals and smoother learning curves, indicating that the variance reduction was working as intended.
- Synergy with Critics: The experiments on Half-Cheetah showed that SVRPG is complementary to other variance-reduction techniques like baselines/critics. Combining a critic with SVRPG yielded the best overall performance and the lowest variance.
Limitations and Future Work
While SVRPG marks a significant step forward, it is not without limitations:
- Importance Weight Explosion: If the policy changes too drastically between snapshots, the importance weights can become extremely large, leading to instability. While the adaptive epoch length helps, this remains a fundamental constraint.
- Hyperparameter Sensitivity: Like many RL algorithms, performance can be sensitive to the choice of batch sizes ($N$ and $B$).
For future work, the authors suggest exploring Natural Policy Gradients within the SVRPG framework and developing baselines specifically optimized for the variance-reduced structure. They also aim to make the batch sizes $N$ and $B$ fully adaptive.
Summary updated