All-Action Policy Gradient Methods: A Numerical Integration Approach

Benjamin Petit, Loren Amdahl-Culleton, Yao Liu, Jimmy Smith, Pierre-Luc BaconarXiv 2019

Abstract

While often stated as an instance of the likelihood ratio trick, the original policy gradient theorem involves an integral over the action space. When this integral can be computed, the resulting "all-action" estimator provides a conditioning effect reducing the variance significantly compared to the REINFORCE estimator. In this paper, we adopt a numerical integration perspective to broaden the applicability of the all-action estimator to general spaces and to any function class for the policy or critic components, beyond the Gaussian case. In addition, we provide a new theoretical result on the effect of using a biased critic which offers more guidance than the previous "compatible features" condition. We demonstrate the benefit of our approach in continuous control tasks with nonlinear function approximation. Our results show improved performance and sample efficiency.

Introduction

Policy gradient methods are a cornerstone of modern reinforcement learning but are frequently hampered by high variance in gradient estimates. The standard REINFORCE algorithm utilizes a "single-action" estimator, which updates the policy based on a single sampled action and its observed reward. This approach is essentially a noisy, single-sample approximation of the complex integral over the action space defined by the policy gradient theorem.

While "all-action" estimators—which compute this integral—can significantly reduce variance through statistical conditioning, their practical use has historically been limited to specific scenarios, such as Gaussian policies paired with linear critics. This work bridges that gap by framing the all-action estimator as a numerical integration problem, making it compatible with general function classes like deep neural networks.

Methodology: Numerical Integration for Policy Gradients

The core proposal is to treat the inner integral of the policy gradient theorem as a numerical integration task. The authors explore two primary techniques:

  1. Numerical Quadrature: For low-dimensional action spaces, fixed-grid methods like the trapezoidal rule are employed. While highly precise, these methods struggle with the "curse of dimensionality" as the action space grows.
  2. Monte Carlo (MC) Integration: For higher-dimensional spaces, the "All-Action Policy Gradient" (AAPG) approach samples $N_s$ independent actions from the current policy for every state visited. An approximate critic (advantage function) evaluates these actions, and their average forms a stabilized gradient estimate. This process effectively "smooths out" noise from environment transitions and policy stochasticity.

Theoretical Insights and the $1/N_s$ Rule

A significant contribution of this work is the theoretical and empirical validation of the $1/N_s$ rule. The Mean Squared Error (MSE) of the gradient estimator is shown to decrease at a rate of $1/N_s$, where $N_s$ is the number of actions sampled. This provides practitioners with a clear parameter to balance computational cost against gradient accuracy.

Figure 1: Empirical validation of the $1/N_s$ MSE reduction rule and its impact on environment solving efficiency.

Furthermore, the paper introduces a new theoretical framework for analyzing biased critics. Unlike traditional theory that required "compatible features" to ensure unbiased gradients, this work provides a bound demonstrating that monotonic policy improvement can be guaranteed even with biased, non-linear critics (like deep neural nets), provided the bias is sufficiently small.

Experimental Evaluation

The proposed methods were evaluated on standard continuous control benchmarks from the MuJoCo physics engine: InvertedPendulum-v1, Reacher-v1, and Hopper-v1.

Key Results

  • Improved Sample Efficiency: In all tasks, the all-action Monte Carlo estimator (specifically with $N_s=256$) significantly outperformed the standard REINFORCE estimator with a baseline, reaching higher scores in fewer training episodes.
  • Variance Reduction: Empirical results confirmed that the gradient MSE drops sharply as more actions are sampled, directly translating to more stable training.
  • Scalability of MC Integration: While quadrature was effective for the simple Inverted Pendulum task, it failed to scale to more complex environments. In contrast, Monte Carlo integration proved robust for high-dimensional tasks like Hopper.
Figure 2: Performance comparison on the Hopper-v1 task, showing the significant advantage of the MC-256 estimator over standard REINFORCE.

Conclusion and Future Work

By reframing policy gradients as a numerical integration problem, this research breathes new life into all-action methods. The approach significantly reduces gradient variance and improves sample efficiency in continuous control tasks. While sampling multiple actions per update increases computational overhead, the resulting stability often justifies the cost. Future research may extend this Monte Carlo approach to off-policy learning via importance sampling or utilize numerical integration terms as control variates to further refine variance reduction.

Summary updated

BibTeX
@misc{petit2019all,
  author = {Benjamin Petit and Loren Amdahl-Culleton and Yao Liu and Jimmy Smith and Pierre-Luc Bacon},
  title = {{All-Action Policy Gradient Methods: A Numerical Integration Approach}},
  year = {2019},
  eprint = {1910.09093},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.09093},
}
Figure