Learning Optimal Deterministic Policies with Stochastic Policy Gradients

Alessandro Montenegro, Marco Mussi, Alberto Maria Metelli, Matteo Papini

Abstract

Reinforcement learning practitioners frequently train stochastic policies to leverage exploration but deploy deterministic versions for reliability and safety. This paper provides the first global convergence analysis for this common practice, quantifying the fundamental trade-off between exploration noise and the performance gap of the deployed deterministic policy. We analyze both action-based and parameter-based exploration, deriving sample complexity bounds under weak gradient domination assumptions and validating these theoretical insights on standard benchmarks.

Introduction

In high-stakes domains like autonomous driving or industrial robotics, stochastic controllers are often avoided due to lack of traceability and safety concerns. The standard practice is to train a stochastic policy using Policy Gradient methods and then "switch off the noise" for deployment. Despite its prevalence, this approach has lacked rigorous theoretical foundations. Key questions remain: does optimizing a stochastic objective lead to an optimal deterministic policy, and how does exploration noise influence sample complexity and final performance?

Exploration Paradigms: Action-Based vs. Parameter-Based

The authors introduce a framework to model "white-noise-based" exploration, distinguishing between two primary paradigms:

  • Action-Based (AB) Exploration (e.g., GPOMDP): Noise is injected into the actions at every time step.
  • Parameter-Based (PB) Exploration (e.g., PGPE): Noise is injected into the policy parameters at the start of each trajectory.

A critical finding is that PB exploration's complexity scales with the number of parameters ($d_\Theta$), whereas AB exploration scales with the action space dimension ($d_A$) and exhibits higher sensitivity to the task horizon ($T$).

Sample Complexity and Convergence Analysis

To establish global convergence in non-convex landscapes, the authors utilize (Weak) Gradient Domination (WGD) assumptions. They demonstrate that stochastic objectives inherit the WGD property from their deterministic counterparts, with an added error term proportional to the noise level.

The derived sample complexity bounds show that reaching a deterministic policy within $\epsilon$ of the optimum requires roughly $\tilde{O}(\epsilon^{-7})$ samples in general settings, which improves to $\tilde{O}(\epsilon^{-5})$ under additional smoothness assumptions.

Table 1: Comparison of sample complexity and performance gaps for PGPE and GPOMDP under different smoothness assumptions.

The analysis reveals a "Goldilocks zone" for noise ($\sigma$): insufficient noise leads to local optima, while excessive noise creates a large discrepancy between the trained stochastic objective and the target deterministic performance.

Empirical Validation

Theoretical predictions were tested on the MuJoCo suite and Linear Quadratic Regulator (LQR) environments. In Swimmer-v4, characterized by a long horizon and few parameters, PB exploration significantly outperformed AB exploration. Conversely, in the higher-dimensional HalfCheetah-v4, AB exploration proved more efficient. These results confirm the existence of an optimal fixed variance for minimizing the performance gap in specific tasks.

Conclusion and Future Work

This work provides a rigorous theoretical basis for the transition from stochastic training to deterministic deployment. While the derived optimal noise levels depend on often unknown environment constants, this framework paves the way for adaptive noise schedules and advanced variance-reduced policy gradient methods. Future research will explore whether specific noise levels can effectively "smooth" non-convex landscapes to eliminate local optima entirely.

Summary updated

BibTeX
@inproceedings{montenegro2024learning,
  author = {Alessandro Montenegro and Marco Mussi and Alberto Maria Metelli and Matteo Papini},
  title = {{Learning Optimal Deterministic Policies with Stochastic Policy Gradients}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=ABt0jlLZtX},
}
Figure