Global Convergence of Policy Gradients
Gradient domination, softmax convergence rates and the role of entropy.
The expected return of a softmax policy is not a concave function of its parameters, yet in tabular problems gradient ascent provably finds a globally optimal policy. The proofs also reveal what sets the speed: how well the start distribution explores, how small the optimal action's probability gets along the way, and whether the step respects the geometry of probability distributions. This lesson states the results precisely, from gradient domination to an exponential lower bound, and shows how entropy and natural gradients restore fast convergence.
What you’ll learn
- Show with a two-state example that is not concave, and explain how an exploratory start distribution removes spurious stationary points.
- State and prove the gradient domination lemma for the direct parameterization, and the iteration bound it gives for projected gradient ascent.
- State the rate of softmax policy gradient with its Łojasiewicz-type inequality, and the exponential lower bound of Li, Wei, Chi and Chen.
- Explain why entropy regularization gives linear convergence, and compare natural policy gradient's rates and the LQR results with plain policy gradient.
Not concave, yet no bad local optima
Throughout, for a distribution over states. Following Agarwal, Kakade, Lee and Mahajan (2021), we optimize under a start distribution of our choosing and measure suboptimality under the distribution we care about. The gradients are exact: these are statements about optimization, not sampling.
In , go moves to with reward 0 and stop ends the episode with reward 0. In , go ends with reward 1 and stop ends with reward 0. Use the direct parameterization , and start in with probability and in otherwise:
Not concave. The Hessian has eigenvalues ; along the diagonal the objective grows like , a convex function:
A trap when . Starting only in , the gradient vanishes at , the worst policy, and is tiny near it, so ascent started there barely moves. Under a policy that never goes to , nothing in the objective says what to do in :
Exploration removes the trap. With , the derivative in is at least everywhere, so rises to 1, after which and follows. The only stationary point of the projected ascent is the optimum . Gradient domination is the general form of this argument.
Agarwal et al. (2021, Proposition 6) make the trap quantitative for the direct parameterization. In a deterministic chain of states with and the reward at the far end, started at the other end, every policy that gives all actions positive probability but the forward action less than in each state has a gradient, and many higher derivatives, of norm at most , while being worse than optimal by at least . Without exploration, the gradient carries exponentially little information.
Gradient domination
Start from the performance difference lemma with against , then bound the average advantage under by the largest advantage in each state, which is because 's own advantages average to zero:
Change measure to . Since every , this costs at most the largest density ratio:
For the direct parameterization the policy gradient theorem reads , and . A that is greedy for in every state attains the maxima:
That is the first inequality. The second uses , since the process starts in with probability . At a stationary point the maximum is , so .
The lemma is a gradient-domination (Polyak–Łojasiewicz-type) inequality: suboptimality is bounded by a first-order quantity, so a small projected gradient certifies near-optimality despite non-concavity. Combined with smoothness of in , it gives a rate.
In the two-state chain, let start in and optimize under . What happens to the mismatch coefficient as ?
- It stays bounded by
- It tends to 1
- It grows without bound, at least like , matching the vanishing gradient at when
- It does not depend on
Show the answer
C. It grows without bound, at least like , matching the vanishing gradient at when
The optimal policy goes to , so while . The ratio blows up as , and the bounds above blow up with it, which is exactly the regime in which the gradient at the worst policy vanishes.
Softmax: a Łojasiewicz inequality and its catch
With the softmax parameterization , iterates stay inside the simplex and no projection is needed, but probabilities can approach 0, and the gradient toward a nearly abandoned action vanishes with its probability. Agarwal et al. (2021, Theorem 10) proved asymptotic convergence to a global optimum (for and with full support) and conjectured that the rate could be exponentially slow. Mei, Xiao, Szepesvári and Schuurmans (2020) gave the first rate.
The inequality is "non-uniform" because its constant depends on the current policy through , and that is the catch: is the smallest probability the optimal action ever receives, and it can be astronomically small. Li, Wei, Chi and Chen (2023) turned this into a lower bound, in the direction Agarwal et al. had conjectured: on a carefully built MDP with at most three actions per state, from the uniform initial policy and with a uniform , softmax policy gradient with step size needs iterations. The mechanism is visible in one state.
Take the widget's bandit with rewards , start near the 0.9 corner, and ignore the third arm, whose probability stays negligible. Softmax policy gradient flow is with . For the log-ratio :
While is small, and , so . The time to bring up to grows like (integrating the exact flow gives about 5064 for ):
For a softmax bandit the Fisher matrix is and the gradient is , so the natural gradient is up to a constant shift, which leaves unchanged. The flow is continuous multiplicative weights, , and the log-ratio grows at the constant rate :
Polynomial in against logarithmic. That gap is why enters Mei et al.'s bound, why it can be exponentially bad in an MDP where small probabilities compound across states, and what the natural gradient removes.
Entropy, natural gradients, and LQR
Entropy regularization. Add times the discounted entropy of the policy to the objective. The regularized optimum is a softmax of regularized action values, , strictly inside the simplex, and near it the regularized landscape is well conditioned. Mei et al. (2020) proved that entropy-regularized softmax policy gradient converges linearly, , to , with a constant that depends on the problem and the initialization. The price is bias: since the discounted entropy is at most , the regularized optimum loses at most of unregularized return.
For the bandit with rewards and , the regularized optimum is . What probability does it give the best arm?
Show the answer
0.73
normalizes to about , with expected reward : a gap of , within the bound (a bandit has no future, so the factor is 1). Halving to 0.05 gives about .
As the unregularized update puts all mass on the greedy actions: natural policy gradient becomes policy iteration, which converges linearly. The step size interpolates between a slow, smooth gradient method and policy iteration, the theoretical root of the trust-region methods of Trust Regions: TRPO & PPO.
Beyond tabular: the linear–quadratic regulator. Fazel, Ge, Kakade and Mesbahi (2018) found the same structure in continuous control. With linear policies , the cost is not convex (for state dimension at least 3 it is not even quasi-convex), and the set of stabilizing gains is not convex. Yet is gradient dominated, with , where a full-rank initial-state covariance plays the role of the exploratory start distribution. Exact natural gradient, Gauss–Newton and even plain gradient descent all converge at linear rates, with iteration counts of order times factors polynomial in the problem's constants, and model-free versions with zeroth-order gradient estimates need a polynomial number of rollouts. The Linear–Quadratic Regulator develops the setting.
Key takeaways
- is not concave even with two states, and under a non-exploratory start distribution its gradient can vanish at the worst policy; an exploratory removes such traps.
- Gradient domination, , makes every stationary point optimal and gives polynomial iteration bounds for projected gradient ascent.
- Softmax policy gradient converges at rate with a constant set by the smallest probability of the optimal action, and can take iterations (Li et al., 2023).
- Entropy regularization gives linear convergence to a softmax-optimal policy within of optimal; natural policy gradient converges at a dimension-free rate, linearly with entropy; LQR is non-convex yet gradient dominated.
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
Why doesn't the non-concavity of doom tabular policy gradient methods?
- Because is concave after all in the softmax parameters
- Because gradient domination bounds the suboptimality by a first-order quantity, so with an exploratory start distribution every stationary point is globally optimal
- Because the noise in sampled gradients always escapes local optima
- Because tabular problems have a single policy
Show the answer
B. Because gradient domination bounds the suboptimality by a first-order quantity, so with an exploratory start distribution every stationary point is globally optimal
Non-concave functions can still have no spurious stationary points. Gradient domination shows that wherever the projected gradient is small the policy is near-optimal, up to the mismatch coefficient, which is finite when covers every state.
In Mei et al.'s bound for softmax policy gradient, what is the constant , and why can it hurt?
- The step size, which must be tiny
- The discount factor, which appears as
- The smallest probability the optimal action receives along the trajectory; it can be extremely small, and the bound scales like
- The number of states
Show the answer
C. The smallest probability the optimal action receives along the trajectory; it can be extremely small, and the bound scales like
The gradient toward an action is proportional to that action's current probability, so progress stalls while the optimal action is rarely chosen. Li et al. (2023) show the stall can last iterations even from a benign start.
Entropy-regularized policy gradient converges linearly. To what?
- To the softmax-optimal policy , which can be worse than optimal for the unregularized return by at most
- To an optimal deterministic policy
- To the uniform policy
- To a stationary point that may be a poor local optimum
Show the answer
A. To the softmax-optimal policy , which can be worse than optimal for the unregularized return by at most
Regularization changes the objective. Its maximizer is a softmax of the regularized action values, strictly inside the simplex, and the extra entropy it collects bounds how much return it gives up. For the bandit with rewards and , the gap is about .
What distinguishes natural policy gradient's bound from the softmax policy gradient bound?
- It requires an exploratory start distribution
- It is slower in
- It grows with the number of states
- It depends on neither the numbers of states and actions nor any distribution mismatch coefficient
Show the answer
D. It depends on neither the numbers of states and actions nor any distribution mismatch coefficient
Natural policy gradient updates each state by multiplicative weights on its own advantages, so no state's update is scaled down by how rarely it is visited. The bound holds for every , with no exploratory .
Further reading
- A. Agarwal, S. M. Kakade, J. D. Lee & G. Mahajan, "On the theory of policy gradient methods: Optimality, approximation, and distribution shift," JMLR 22(98), 1–76 (2021).
- J. Mei, C. Xiao, C. Szepesvári & D. Schuurmans, "On the global convergence rates of softmax policy gradient methods," ICML (2020).
- G. Li, Y. Wei, Y. Chi & Y. Chen, "Softmax policy gradient methods can take exponential time to converge," Mathematical Programming 201, 707–802 (2023).
- S. Cen, C. Cheng, Y. Chen, Y. Wei & Y. Chi, "Fast global convergence of natural policy gradient methods with entropy regularization," Operations Research 70(4), 2563–2578 (2022).
- M. Fazel, R. Ge, S. M. Kakade & M. Mesbahi, "Global convergence of policy gradient methods for the linear quadratic regulator," ICML (2018).