Abstract
Policy gradient methods are a cornerstone of modern reinforcement learning, yet they are frequently hampered by high variance during training. While state-dependent baselines are commonly used to mitigate this variance without introducing bias, action-dependent baselines have traditionally been avoided due to the bias they introduce into the gradient estimate. This paper presents a theoretical framework that allows for the use of arbitrary action-dependent baselines. By training a compatible function approximator to estimate the residual error between the true value function and the baseline, the authors prove that the resulting policy gradient remains unbiased. This result generalizes the Policy Gradient Theorem and opens new avenues for variance reduction using expert knowledge and complex baseline models.
Introduction
In Reinforcement Learning (RL), policy gradient methods optimize an agent's performance by directly adjusting the parameters of its policy to maximize expected rewards. Despite their success in high-dimensional and continuous action spaces, these methods often suffer from high variance in the gradient estimates. High variance leads to slow convergence and unstable training trajectories, necessitating a large number of samples to achieve reliable performance.
To address this, researchers typically employ a "baseline"—a value subtracted from the observed rewards to center the data and reduce noise. The standard Policy Gradient Theorem (Sutton et al., 2000) establishes that any state-dependent baseline $b(s)$ can be used without changing the expected direction of the gradient. However, action-dependent baselines $b(s, a)$ have the potential to capture more nuance and provide even greater variance reduction. Until now, these have been largely avoided because they typically introduce bias, causing the agent to converge to suboptimal policies.
The Challenge of Action-Dependent Baselines
The fundamental difficulty with action-dependent baselines lies in the gradient identity. In the standard formulation, the gradient of the performance measure $\rho(\theta)$ is proportional to the expected value of the score function multiplied by a value estimate. When a baseline $b(s)$ is subtracted, the term $\sum_a \nabla \pi(s, a, \theta) b(s)$ vanishes because the sum of the gradients of a probability distribution is zero. This is not true for $b(s, a)$, as the baseline itself now depends on the variable being summed over, preventing the bias from naturally cancelling out.
Proposed Methodology: Residual Function Approximation
Philip Thomas and Emma Brunskill propose a novel approach to circumvent this bias. The core of their method involves a shift in how the "compatible function approximator" ($f_w$) is trained. In traditional actor-critic setups, $f_w$ is trained to approximate the state-action value function $q_\theta(s, a)$ directly.
The authors introduce a new loss function, $\tilde{L}(w)$, which tasks the function approximator with predicting the residual: the difference between the true value and the chosen action-dependent baseline:
$$\text{Target for } f_w \approx q_\theta(s, a) - b(s, a)$$
By training the approximator to account for the "error" or the remaining signal not captured by the baseline, the function approximator effectively compensates for the bias that the baseline would otherwise introduce.
Theoretical Results
The primary contribution of this work is Theorem 1, a formal proof that generalizes the Policy Gradient Theorem. The authors demonstrate that if $f_w$ is trained using the proposed residual loss, the policy gradient $\nabla\rho(\theta)$ can be calculated as:
$$\nabla\rho(\theta) = \sum_{s} d_\theta(s) \sum_{a} \pi(s, a, \theta) (f_{\tilde{w}}(s, a) + b(s, a)) \frac{\partial}{\partial\theta} \ln(\pi(s, a, \theta))$$
Crucially, this identity holds true for any action-dependent baseline $b: \mathcal{S} \times \mathcal{A} \to \mathbb{R}$. The "aha moment" of the proof is the realization that the bias introduced by the action-dependent baseline in the gradient formula is exactly cancelled out by the specific way the function approximator is trained. This ensures that the gradient estimate remains mathematically sound and unbiased, regardless of the complexity of $b(s, a)$.
Key Insights and Implications
1. Bias Cancellation
The mathematical framework ensures that the function approximator and the baseline work in tandem. Any bias injected by the baseline is subtracted out by the residual-trained approximator, maintaining the integrity of the policy update.
2. Integration of Expert Knowledge
This framework allows for the integration of action-dependent baselines derived from expert knowledge, approximate models of the environment, or previous iterations of the policy. Even if these baselines are imperfect, the theorem guarantees that the final gradient will not be biased toward incorrect solutions.
3. Variance Reduction Potential
While the paper is theoretical, the ability to use $b(s, a)$ provides a much more powerful toolset for variance reduction than $b(s)$ alone. By choosing a baseline that is highly correlated with the return, the variance of the term $(f_{\tilde{w}}(s, a) + b(s, a))$ can be significantly lowered.
Conclusion and Future Work
This work provides the mathematical foundation for a new class of reinforcement learning algorithms. By proving that action-dependent baselines can be used without bias, it removes a long-standing restriction in policy gradient theory.
Future research directions include:
- Empirical Validation: Testing the variance reduction capabilities of this method on standard benchmarks like MuJoCo or Atari to quantify the practical speedup in training.
- Optimal Baseline Selection: Investigating which forms of $b(s, a)$ are most effective at reducing variance for specific task types.
- Simultaneous Learning: Exploring architectures where the baseline itself is a learned parameterization, optimized alongside the policy and the function approximator to maximize training efficiency.
Summary updated