Presented at ICML 2020, this paper introduces a new family of momentum-based policy gradient methods that achieve state-of-the-art sample complexity for reinforcement learning (RL). By integrating adaptive learning rates with importance sampling or Hessian-aided updates, the authors provide a more stable and efficient path to finding optimal policies in complex environments—without the need for the massive batches typically required by variance-reduction techniques.
The Challenge of High Variance in Policy Gradients
Policy Gradient (PG) methods are a cornerstone of model-free RL, especially for high-dimensional continuous action spaces. However, they suffer from a notorious "high variance" problem: because gradients are estimated from sampled trajectories, the inherent noise can lead to poor convergence or even divergence.
To fix this, researchers previously adapted variance-reduction techniques from supervised learning (like SVRG or SPIDER). While theoretically sound, these adaptations have two major drawbacks in an RL context:
- Large Batches: They often require periodic "full" or very large batch gradient evaluations to reset the variance, which is highly sample-inefficient.
- Non-Oblivious Distributions: In RL, the data distribution changes as the policy updates (a "non-oblivious" setting). Standard variance reduction struggles with this shift unless strict, non-adaptive learning rates are used, making them difficult to tune in practice.
Proposed Methods: IS-MBPG and HA-MBPG
The authors propose two momentum-based policy gradient algorithms that achieve an optimal $O(\epsilon^{-3})$ sample complexity using only a single trajectory per iteration. Inspired by the STORM/Hybrid-SGD framework, these methods utilize adaptive learning rates and eliminate the need for computationally expensive "large batch" resets.
- IS-MBPG (Importance-Sampling Momentum-Based Policy Gradient): This method uses Importance Sampling (IS) weights to correct the gradient estimate as the policy moves from $\theta_{t-1}$ to $\theta_t$. This allows the algorithm to "reuse" information from the previous step to reduce current variance.
- HA-MBPG (Hessian-Aided Momentum-Based Policy Gradient): Instead of IS weights, this version uses a Hessian-vector product (approximated via finite differences) to track how the gradient changes. This is particularly useful when the policy is second-order smooth.
- Adaptive Learning Rates: Both methods use an adaptive learning rate (similar to AdaGrad or Adam) that adjusts based on the norm of the stochastic gradients, making the algorithms more robust to different scales of rewards and environments.
- Single-Loop Structure: Unlike "double-loop" algorithms that require a massive batch every $N$ steps, these are "single-loop," meaning they update continuously with as little as one trajectory per step.
Evaluated Environments
The algorithms were evaluated on four standard RL benchmarks:
- CartPole: A classic discrete control task (balancing a pole on a cart).
- MuJoCo Environments: Three continuous control tasks—Walker2d, Hopper, and HalfCheetah—which involve training simulated robots to walk or run.
Key Insights and Results
Breaking the $O(\epsilon^{-4})$ Barrier
Standard REINFORCE has a sample complexity of $O(\epsilon^{-4})$. By using momentum to track the gradient "velocity," these algorithms reach $O(\epsilon^{-3})$, which is the theoretical lower bound for this class of stochastic optimization. The core insight is that momentum isn't just for speeding up descent; when formulated correctly, it acts as a powerful variance reducer that naturally handles the shifting distributions of RL.
Superior Convergence and Efficiency
In all four environments, IS-MBPG and HA-MBPG outperformed baseline algorithms (REINFORCE, HAPG, and SRVR-PG) in terms of both convergence speed and final average return.
The algorithms showed much faster reward growth at the beginning of training, which is critical for real-world applications where samples are expensive. A significant finding is that these methods remain highly effective even when the batch size is reduced to 1, a major departure from previous state-of-the-art methods like HAPG or SRVR-PG that rely on larger inner-loop batches to maintain stability.
Interestingly, IS-MBPG generally outperformed HA-MBPG. The authors suggest this is because HA-MBPG relies on an estimated Hessian-vector product, which introduces its own approximation error, whereas the Importance Sampling weights are more direct.
Limitations and Future Work
While highly effective, the authors note a few limitations:
- Importance Sampling Weight Explosion: In deep RL, IS weights can become extremely large or small, leading to numerical instability. The authors had to "clip" these weights in practice to maintain performance.
- Hessian Approximation Error: The HA-MBPG method uses finite differences to avoid the massive cost of computing a full Hessian. While efficient, this adds an error term that must be carefully managed.
- Hyperparameter Sensitivity: While the learning rate is adaptive, the algorithms still introduce new hyperparameters related to the momentum and adaptation schedule. Future work could focus on making these parameters more self-tuning.
Summary updated