TL;DR
Policy gradient methods are a staple of reinforcement learning but are often hamstrung by high variance, especially in high-dimensional tasks. This paper introduces a bias-free, action-dependent baseline that exploits the factorized structure of common policies (like diagonal Gaussians) to significantly reduce variance and accelerate learning without adding significant computational overhead.
What Problem Does This Paper Address?
Reinforcement learning (RL) via policy gradients is elegant: you interact with an environment and nudge the policy to increase the probability of actions that led to high rewards. However, these methods suffer from high variance. Because rewards are influenced by a long sequence of stochastic actions, it is difficult for the algorithm to determine exactly which action coordinate was responsible for a good or bad outcome—a challenge known as the credit assignment problem.
To combat this, researchers typically use a "baseline" (usually the state-value function $V(s)$) to center the rewards. If an action performs better than the average for that state, its probability goes up. While helpful, these state-only baselines ignore the specific interactions between different components of the action itself. Previous attempts to include action information in the baseline often introduced bias or required expensive off-policy calculations. This paper seeks a way to use action information to reduce variance while remaining strictly unbiased and computationally efficient.
Methods
The authors' key insight is that most policies used in deep RL are factorized. For example, a robot's joints are often controlled by a multivariate Gaussian policy with a diagonal covariance matrix, meaning each joint's action is sampled independently given the state.
If the policy is factorized, the gradient for the $i$-th action component can be calculated using a baseline that depends on the state and all other action components ($a_{-i}$). Mathematically, they show that: $$\mathbb{E}_{a_i} [\nabla_\theta \log \pi_\theta(a_i|s) b_i(s, a_{-i})] = 0$$ This means you can subtract a baseline that "knows" what the other joints are doing to better isolate the contribution of the $i$-th joint.
The paper derives the optimal action-dependent baseline and proposes two practical versions:
- Monte Carlo Marginalized Q: Estimating the baseline by averaging the Q-function over several samples of the $i$-th action component.
- Mean Marginalized Q: A faster approximation that evaluates the Q-function using the mean action for the $i$-th component.
Datasets and Benchmarks
The authors evaluated their approach across a diverse set of environments:
- Standard MuJoCo Benchmarks: Hopper, HalfCheetah, and Ant locomotion tasks.
- High-Dimensional Hand Manipulation: A complex task involving a five-fingered hand opening a door (30 action dimensions).
- Synthetic Target Matching: A custom $m$-dimensional task designed to test scaling up to 2000 action dimensions.
- POMDP Task: A "blind" peg-in-hole insertion task where the agent lacks full state information.
- Multi-Agent Task: A communication task where two agents must coordinate to reach targets.
Key Insights and Ideas
- Exploiting Existing Structure: You don't need to change your policy architecture to benefit from this. Since most researchers already use diagonal Gaussian policies, this variance reduction is essentially a "free lunch" in terms of compatibility.
- Better Credit Assignment: By making the baseline for joint A depend on what joint B is doing, the algorithm can better understand if a high reward was due to joint A's specific movement or just because joint B happened to do something great.
- Global Info for Local Policies: In multi-agent or partially observed (POMDP) settings, the policy must rely on local observations, but the baseline can safely use global information (like the true state or other agents' actions) to reduce variance without introducing bias.
- Provable Superiority: The authors theoretically demonstrate that the optimal action-dependent baseline is guaranteed to be at least as good as, and usually better than, the optimal state-only baseline.
Key Results
The action-dependent factorized baseline consistently outperformed standard state-only baselines across all tested tasks.
- Continuous Control: As seen in Figure 1, the proposed method (green) learns faster and reaches higher scores than the standard $V(s)$ baseline (blue) in Ant, HalfCheetah, and Hopper environments.
- High-Dimensional Scaling: In the synthetic target matching task, the method scaled effectively to 2000 dimensions, converging roughly 10% faster than the state-only baseline.
- Complex Manipulation: In the 30-dimensional door opening task, the success percentage rose much more steeply with the action-dependent baseline.
- Efficiency: The "Mean Marginalized" variant proved to be nearly as effective as the more expensive Monte Carlo sampling variant while being much faster to compute (Figure 2).
Limitations and Future Work
- Function Approximation Errors: The method relies on learning a good Q-function. If the Q-function approximation is poor, the variance reduction benefits may diminish.
- Computational Cost: While the "mean" approximation is efficient, the "Monte Carlo" version requires multiple forward passes through a neural network, which can be slower than stepping through a fast simulator.
- Future Directions: The authors suggest exploring sparse covariance structures (where actions are partially dependent) and applying these techniques to even larger-scale multi-agent systems where variance is a primary bottleneck.
Summary updated