Abstract
Policy Gradient (PG) methods are a cornerstone of modern Reinforcement Learning (RL), but they often suffer from high variance in gradient estimation, leading to sample inefficiency and training instability. This paper introduces Deep Bayesian Quadrature Policy Optimization (DBQPG), a framework that replaces standard Monte-Carlo estimates with more accurate, uncertainty-aware estimates derived from Bayesian Quadrature. By leveraging deep kernel learning and structured kernel interpolation, the authors scale Bayesian Quadrature to high-dimensional deep RL for the first time. Furthermore, the Uncertainty Aware Policy Gradient (UAPG) method utilizes the resulting gradient covariance to stabilize policy updates. Empirical results on MuJoCo benchmarks demonstrate that DBQPG significantly improves gradient quality and sample efficiency compared to traditional methods.
Introduction
Reinforcement Learning agents typically update their policies by estimating the gradient of expected returns. Traditionally, this is achieved via Monte-Carlo (MC) sampling—averaging results from random trajectories. While MC is unbiased, its high variance necessitates a massive number of samples, causing slow learning and instability.
Bayesian Quadrature (BQ) offers a sample-efficient alternative by treating integration as a statistical inference problem. However, BQ has historically struggled to scale to deep RL due to its $O(n^3)$ computational complexity and the difficulty of integrating Gaussian Process (GP) kernels over the complex, high-dimensional parameter spaces of deep neural networks. This paper bridges that gap with a scalable, deep-learning-compatible BQ framework.
Methods
The authors introduce two primary innovations to integrate BQ into deep RL architectures:
Deep Bayesian Quadrature Policy Gradient (DBQPG)
DBQPG places a Gaussian Process prior over the action-value function ($Q$). To ensure the framework is both tractable and scalable, it employs several key techniques:
- Additive Kernels: By combining a state kernel ($k_s$) with a fixed Fisher kernel ($k_f$), the policy gradient integral can be solved analytically.
- Deep Kernel Learning: A Deep Neural Network (DNN) serves as a feature extractor before an RBF kernel, enabling the model to learn complex representations of the state space.
- Linear-Time Scaling: Through Structured Kernel Interpolation (SKI) and Conjugate Gradient methods, the computational cost is reduced from $O(n^3)$ to $O(n)$, making it competitive with standard MC methods in terms of wall-clock time.
Uncertainty Aware Policy Gradient (UAPG)
Because BQ provides a full posterior distribution rather than a point estimate, it yields a gradient covariance matrix—a measure of the model's confidence in each gradient direction. UAPG leverages this covariance to normalize step sizes, taking smaller steps in directions of high uncertainty and larger steps where the estimate is confident. This prevents catastrophic updates in poorly explored regions.
Experimental Results
The methods were evaluated on the MuJoCo benchmark suite (including Swimmer, Walker2d, and Humanoid domains).
Gradient Quality and Sample Efficiency
DBQPG produces gradients with significantly higher cosine similarity to the "true" gradient (calculated with $10^6$ samples) compared to MC, even at early stages of training.
Key findings include:
- Lower Variance: DBQPG consistently exhibits lower variance than MC-PG across different sample sizes.
- Improved Convergence: When integrated into existing algorithms like TRPO and Natural Policy Gradient (NPG), DBQPG reached higher average returns with fewer environment interactions.
- Stability: UAPG showed particular strength in stabilizing Vanilla PG, mitigating sensitivity to learning rates by automatically dampening updates in noisy directions.
Discussion and Conclusion
This work demonstrates that standard Monte-Carlo PG is a limiting case of BQ where the state-value function is ignored. By treating the GP as an "implicit critic," DBQPG leverages value function information to solve the policy gradient integral more effectively. While challenges remain—such as handling ill-conditioned covariance matrices and optimal kernel selection—DBQPG represents a significant advancement in making Bayesian Quadrature a viable and efficient tool for high-dimensional deep reinforcement learning.
Summary updated