NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Beyond Exact Gradients: Convergence of Stochastic Soft-Max Policy Gradient Methods with Entropy Regularization

Yuhao Ding, Junzi Zhang, Hyunin Lee, Javad Lavaei

TL;DR

This paper provides the first theoretical guarantee of global convergence for vanilla policy gradient (PG) methods using entropy regularization in a stochastic setting. The authors introduce a novel two-phase algorithm that achieves a sample complexity of $\widetilde{\mathcal{O}}(1/\epsilon^2)$, proving that the popular practice of adding entropy to RL objectives is not just empirically sound but theoretically optimal in its convergence rate.

What Problem Does This Paper Address?

In Reinforcement Learning (RL), practitioners often add an entropy regularization term to their objective functions. This encourages the agent to keep exploring and prevents it from "collapsing" into a single, potentially sub-optimal action too early.

While this works great in practice (powering algorithms like Soft Actor-Critic), the theory has lagged behind. Most existing proofs for the global convergence of entropy-regularized PG assume the agent has access to "exact gradients"—meaning it perfectly knows the environment's dynamics. In the real world, we use stochastic gradients derived from limited samples of trajectories.

The challenge with stochastic gradients in this context is twofold:

  1. Unbounded Estimators: The entropy term involves a logarithm of the policy ($\log \pi$). As a probability approaches zero, this term blows up, potentially making gradient estimates wildly unstable.
  2. Non-Coercive Landscapes: The optimization landscape for entropy-regularized RL can be extremely flat in some regions (non-coercive). A stochastic algorithm using small batches can easily get "lost" in the noise of these flat regions and fail to find the global optimum.

Methods

The authors propose a new algorithm called Ent-RPG (Random-horizon PG for Entropy-regularized RL) and a specific two-phase execution strategy to solve the landscape problem:

  • New Estimators: They develop two stochastic gradient estimators for trajectory-level entropy. One is strictly unbiased (using a random horizon technique), and the other is a more practical, nearly unbiased version based on truncated trajectories. Crucially, they prove that while the estimators can be unbounded, their variance remains uniformly bounded.
  • Two-Phase Strategy:
    • Phase 1: Uses a large batch size and a constant step size. This provides enough "signal" to navigate the flat, non-coercive parts of the landscape and move the policy toward a region with better curvature.
  • Phase 2: Once the policy is in a "good" neighborhood, the algorithm switches to a small batch size and a decaying step size, leveraging the local quadratic-like curvature to converge quickly to the global optimum.
  • Soft-max Parametrization: The work focuses on the standard soft-max policy, which is complete for finite state-action spaces.

Datasets

The authors evaluated their approach using the Cartpole environment from the MuJoCo physics engine. This is a standard benchmark in RL for testing control and stability. They compared their proposed entropy-regularized estimator against a KL-divergence-based estimator from prior literature.

Key Insights and Ideas

  • Variance vs. Magnitude: The "aha moment" regarding the estimators is that even if the gradient estimate itself can become very large (due to the $\log \pi$ term), the probability of hitting those extreme values is low enough that the variance doesn't explode. This makes stochastic approximation theory applicable.
  • The "Soft-max Gravity Well": The paper highlights that the soft-max landscape has regions where gradients vanish. The two-phase approach is a clever engineering solution to a geometric problem: use "brute force" (large batches) to get out of the flats, then use "finesse" (small batches) to finish the job.
  • Matching NPG: Perhaps the most significant insight is that vanilla PG with entropy regularization can match the $\widetilde{\mathcal{O}}(1/\epsilon^2)$ sample complexity of the more complex Natural Policy Gradient (NPG). This suggests that the simpler vanilla PG is more powerful than previously thought when properly regularized.

Key Results

  • Global Convergence: The paper provides the first proof that stochastic vanilla PG with entropy regularization converges to the global optimum.
  • Sample Complexity: They establish a rate of $\widetilde{\mathcal{O}}(1/\epsilon^2)$ to reach an $\epsilon$-optimal policy. This is the "gold standard" rate for stochastic first-order methods.
  • Empirical Superiority: In the Cartpole experiments, the proposed entropy-regularized estimator converged to high rewards significantly faster than the KL-divergence-based baseline across different batch sizes.

Limitations and Future Work

  • State-Space Scaling: While the sample complexity is optimal with respect to $\epsilon$, the constants in the proof have an exponential dependence on some problem parameters. The authors note that future work should investigate how these bounds scale with the dimension of the state space.
  • Tightness of Bounds: The polynomial dependence on the failure probability ($1/\delta$) suggests the current theoretical bounds might be conservative and could be tightened.
  • Generalization: The current analysis is specific to soft-max policies. Extending these global convergence results to general function approximations (like deep neural networks) remains a major open challenge in the field.

Summary updated

BibTeX
@article{ding2021beyond,
  author = {Yuhao Ding and Junzi Zhang and Hyunin Lee and Javad Lavaei},
  title = {{Beyond Exact Gradients: Convergence of Stochastic Soft-Max Policy Gradient Methods with Entropy Regularization}},
  journal = {IEEE Trans. Automatic Control},
  year = {2021},
  doi = {10.1109/tac.2025.3540965},
}
Figure