Abstract: We study the variance of stochastic policy gradients (SPGs) with many action samples per state. We derive a many-actions optimality condition, which determines when many-actions SPG yields lower variance as compared to a single-action agent with proportionally extended trajectory. We propose Model-Based Many-Actions (MBMA), an approach leveraging dynamics models for many-actions sampling in the context of SPG. MBMA addresses issues associated with existing implementations of many-actions SPG and yields lower bias and comparable variance to SPG estimated from states in model-simulated rollouts. We find that MBMA bias and variance structure matches that predicted by theory. As a result, MBMA achieves improved sample efficiency and higher returns on a range of continuous action environments as compared to model-free, many-actions, and model-based on-policy SPG baselines.
Introduction
Stochastic Policy Gradient (SPG) methods are a cornerstone of reinforcement learning, but they are often hindered by high variance, which leads to poor sample efficiency and unstable learning. To combat this, researchers often use "Many-Actions" (MA) estimators, where the gradient is calculated using multiple action samples for a single state. This paper provides a theoretical and practical framework for MA-SPG, introducing a mathematical condition to determine when sampling multiple actions per state is more efficient than simply extending the trajectory length.
Theoretical Framework: The Efficiency Trade-off
A central question in SPG design is the "budget" allocation: is it better to sample many actions for the same state (going "wide") or to extend the trajectory to more states (going "deep")? The authors decompose SPG variance into two parts: marginalized policy variance (stemming from the underlying Markov chain) and policy-dependent variance (stemming from specific action choices).
They derive a Many-Actions optimality condition (Theorem 3.3), which posits that MA is most effective when the future outcomes of an environment depend heavily on the specific actions taken in the past (high action-dependent covariance). In complex MDPs where actions have long-term consequences, "going wide" is often mathematically superior to "going deep."
Model-Based Many-Actions (MBMA)
Existing MA methods often suffer from high bias. For instance, Q-network-based methods (QMA) use a value function that is itself a moving target, while model-based rollout methods (like MBPO) can suffer from compounding errors in synthetic trajectories.
To address this, the authors introduce Model-Based Many-Actions (MBMA). MBMA uses a learned dynamics model to estimate the Q-values of multiple actions at real states visited by the agent. By anchoring the gradient calculations to real states rather than simulated ones, MBMA avoids the compounding errors typically seen in long-horizon model-based rollouts, significantly reducing bias.
Experimental Evaluation
The researchers evaluated MBMA using the DeepMind Control Suite (DMC) across 14 tasks of varying difficulty, including high-dimensional tasks like Humanoid and Quadruped.
Performance and Sample Efficiency
MBMA outperformed standard PPO, QMA, and MBPO in 14 out of 18 tested environments. In aggregate, MBMA demonstrates superior sample efficiency and higher returns across the benchmark suite.
Bias-Variance Tradeoff
Quantitative results confirm that MBMA consistently produces lower bias than QMA and MBPO while achieving comparable or better variance reduction. By anchoring to real states, MBMA maintains a stable gradient estimate that facilitates faster convergence to optimal rewards.
Limitations and Future Work
While MBMA shows significant promise, the theoretical analysis relies on an ergodicity assumption (the environment eventually visits all states), which may not hold in all real-world scenarios. Additionally, while MBMA is sample-efficient in terms of environment interactions, it requires more computation to unroll the dynamics model for multiple action samples. Future work may explore extending this analysis to off-policy settings and deterministic policy gradients.
Summary updated