Introduction
In the field of reinforcement learning (RL) for robotics, a persistent observation has puzzled researchers: simple "black-box" finite-difference (FD) methods often outperform more sophisticated policy gradient algorithms like REINFORCE or PPO. While the Policy Gradient Theorem (PGT) provides an elegant theoretical foundation for deep RL, its practical application in low-noise environments—typical of many robotic simulations—frequently lags behind simpler alternatives. This paper provides a theoretical explanation for this phenomenon by analyzing the sample complexity of gradient estimation in "nearly deterministic" dynamical systems.
Methodology
The study evaluates three primary strategies for estimating the policy gradient $\nabla_\theta J(\theta)$:
- Model-Based Gradient: This approach assumes full knowledge of the system dynamics, allowing for direct backpropagation through the physics engine. It serves as a theoretical lower bound for sample complexity.
- Finite-Differences (FD): A derivative-free method that estimates the gradient by applying small perturbations to the policy parameters $\theta$ and observing the resulting change in total reward.
- Policy Gradient Theorem (PGT): The standard approach in stochastic RL, which introduces noise into the actions and uses the likelihood ratio trick to estimate the gradient.
The analysis focuses on systems where the dynamics are dominated by a deterministic core with a small stochastic perturbation $\sigma_\zeta$. The goal is to determine how the number of samples $n$ required to achieve an estimation error $\epsilon$ scales with this noise parameter.
Key Insights: Variance and Noise Scaling
The central finding of the paper is a fundamental difference in how variance scales with system noise across these methods.
The Advantage of Determinism
For both model-based and finite-difference methods, the estimation variance is directly proportional to the system noise $\sigma_\zeta$. As the system becomes more deterministic ($\sigma_\zeta \to 0$), the gradient estimate becomes cleaner. In the limit of a perfectly deterministic system, FD requires only a number of samples proportional to the parameter dimension $d_\Theta$ to achieve a near-perfect gradient estimate.
The PGT Bottleneck
In contrast, PGT variance is primarily driven by the artificial noise injected for exploration. This noise is necessary for the algorithm to function but makes the gradient estimate inherently noisy, even if the underlying physical system is perfectly predictable. Consequently, the sample complexity of PGT remains largely independent of the system's inherent noise level.
Dimensionality and Precision
While FD excels in low-noise settings, it faces a steeper trade-off regarding the number of policy parameters ($d_\Theta$) and the required precision ($1/\epsilon$). The paper derives bounds showing that FD complexity scales linearly with $d_\Theta$ and as $1/\epsilon^4$, whereas PGT is independent of $d_\Theta$ and scales as $1/\epsilon^2$.
Experimental Validation
The theoretical predictions were tested using an Inverted Pendulum benchmark from OpenAI Gym. By varying the system noise $\sigma_\zeta$ across six orders of magnitude, the researchers observed the convergence behavior of each method.
As shown in the figures above, the learning curves for Finite-Difference methods are perfectly ordered by noise level: lower noise leads to significantly faster and more stable convergence. In contrast, the PGT curves are jumbled and show no clear benefit from reduced system noise, confirming that PGT cannot exploit the "cleanliness" of nearly deterministic systems.
Discussion and Limitations
This work highlights why FD-based methods are so effective in robotics, where environments are often highly predictable. However, several challenges remain:
- Smoothness: The current theory assumes Lipschitz continuous rewards and dynamics. It does not yet account for discontinuities like contact forces or sparse rewards.
- Exploration: The analysis focuses on local gradient estimation rather than global exploration.
- Parameter Scaling: For high-dimensional neural network policies, the linear scaling of FD with $d_\Theta$ may eventually become a bottleneck, suggesting that hybrid methods combining FD's noise-sensitivity with PGT's parameter-efficiency could be a fruitful area for future research.
Summary updated