Variance Reduction for Policy Gradient with Action-Dependent Factorized Baselines

Cathy Wu, Aravind Rajeswaran, Yan Duan, Vikash Kumar, Alexandre M Bayen, Sham Kakade, Igor Mordatch, Pieter Abbeel

Overview

Policy gradient methods have driven significant successes in deep reinforcement learning (RL), but they frequently struggle with "noisy" gradient estimates. This high variance problem is particularly exasperated in complex environments with long horizons or high-dimensional action spaces. To mitigate this issue, researchers introduce a bias-free, action-dependent baseline that exploits the mathematical structure of the stochastic policy itself. By doing so, it significantly reduces variance, leading to faster and more stable learning in high-dimensional robotics and multi-agent systems.

The Problem: High Variance and State-Only Baselines

In RL, policy gradient methods work by "nudging" a policy to increase the probability of actions that lead to higher rewards. However, these methods suffer from high variance: the gradient estimates are incredibly noisy. This noise makes learning slow and unstable, especially when rewards are delayed or when the agent controls many parameters simultaneously.

To combat this, researchers typically subtract a baseline from the reward to "center" the learning signal. Traditionally, these baselines only depend on the current state ($V(s)$). While helpful, state-only baselines ignore the noise contributed by the interactions between different action dimensions. For example, if a robot is moving 30 joints at once, it is difficult for a state-only baseline to distinguish whether a high reward was due to a precise movement by the "shoulder" or a lucky twitch by the "wrist."

Proposed Method: Action-Dependent Factorized Baselines

The authors propose Action-Dependent Factorized Baselines. Their key insight is that most stochastic policies used in RL are "factorized"—for instance, a robot’s individual joints are often modeled as independent Gaussian distributions.

  1. Exploiting Structure: For each specific action dimension (or "factor"), the authors derive a baseline that depends on the state and all other action dimensions.
  2. Bias-Free Guarantees: They mathematically prove that as long as the baseline for the $i$-th action factor does not depend on the $i$-th factor itself, the gradient estimate remains entirely unbiased.
  3. Practical Implementation: Learning a separate baseline for every action dimension would be computationally expensive. Instead, the authors propose a "Marginalized Q" approach: they learn a single action-value function ($Q$) and then marginalize out the specific action dimension using either Monte Carlo sampling or a "mean action" approximation. The latter is highly efficient, requiring only a single forward pass through a neural network.

Key Insights and Ideas

  • The Suboptimality of State-Only Baselines: The authors provide a theoretical proof showing that the "optimal" state-only baseline is mathematically inferior to their action-dependent version. A state-only baseline simply cannot account for how sensitive the reward is to specific directions in the action space.
  • Improved Credit Assignment: By conditioning the baseline on other actions, the algorithm effectively "cancels out" the noise from other joints. This makes the "credit" assigned to a specific joint much clearer.
  • Efficiency vs. Accuracy: The researchers found that using the "mean action" to approximate the baseline performed nearly as well as expensive sampling. This makes the method highly practical for real-world deep RL applications.
Comparison of baseline approximation methods on HalfCheetah. The computationally efficient 'mean action' approximation performs competitively with more expensive sampling techniques.

Experimental Results

The authors evaluated their method across a diverse set of challenges, including standard MuJoCo benchmarks (Hopper, HalfCheetah, Ant), a complex 30-dimensional door-opening task, a 2,000-dimensional synthetic scaling task, and specialized multi-agent scenarios.

  • Faster Convergence: The action-dependent baseline consistently outperformed state-only baselines across all MuJoCo benchmarks, reaching higher scores in fewer iterations.
  • Complex Manipulation: On the 30-dimensional robotic hand task (Door Opening), the proposed method showed a significantly steeper learning curve, demonstrating its utility for high-DOF (degrees of freedom) robotics.
  • Scaling to the Extreme: In the 2,000-dimensional synthetic task, the method achieved an 11.3% speedup in solve time compared to the state-only baseline.
  • Multi-Agent Success: In a communication task, providing the baseline with access to the other agent's state and actions resulted in dramatically faster training.
Performance comparison across MuJoCo benchmarks and a complex Door Opening task. The action-dependent baseline (green) consistently achieves higher scores and faster convergence than the state-only baseline (blue).

Limitations and Future Work

While the theoretical foundation is strong, the practical performance of this method depends heavily on the accuracy of the learned Q-function. If the Q-function is poorly estimated due to function approximation errors, the variance reduction might be less effective.

Additionally, the current work focuses primarily on policies with independent factors (like diagonal Gaussians). While the authors touch on general action structures, more research is needed for policies with highly complex, coupled dependencies. Finally, while the multi-agent results serve as a promising proof-of-concept, investigating these methods in massive, many-agent environments remains a key next step for future research.

Summary updated

BibTeX
@inproceedings{wu2018variance,
  author = {Cathy Wu and Aravind Rajeswaran and Yan Duan and Vikash Kumar and Alexandre M Bayen and Sham Kakade and Igor Mordatch and Pieter Abbeel},
  title = {{Variance Reduction for Policy Gradient with Action-Dependent Factorized Baselines}},
  booktitle = {International Conference on Learning Representations},
  year = {2018},
  url = {https://openreview.net/forum?id=H1tSsb-AW},
}
Figure