Global Convergence of Policy Gradient Methods to (Almost) Locally Optimal Policies: Random-Horizon Policy Gradient with Robbins–Monro Stepsizes Drives the Policy Gradient to Zero Almost SurelyResearch Paper
Motivation
Policy gradient methods are the main family of reinforcement learning algorithms that search directly over a parameterized class of stochastic policies , , by stochastic gradient ascent on the expected discounted return. They underlie REINFORCE, actor-critic methods and their deep-learning descendants. The return is a nonconvex function of , and the gradient is available only through Monte Carlo samples of trajectories, so the basic question is what the iterates of such a method converge to.
Classical analyses of actor-critic algorithms (Konda and Tsitsiklis, 2003) use the ODE method of stochastic approximation and assume that the gradient estimate is unbiased. In the infinite-horizon discounted setting, a trajectory of finite length cannot by itself produce an unbiased sample of the gradient. Zhang, Koppel, Zhu and Başar (arXiv:1906.08383, SIAM J. Control Optim. 58(6), 2020) resolve this with random horizons: drawing the trajectory lengths from geometric distributions makes the resulting estimate exactly unbiased and almost surely bounded. They then prove convergence of the resulting random-horizon policy gradient (RPG) algorithm with the supermartingale convergence theorem, an optimization argument that also yields rates. This mission formalizes that first part of the paper (§2–§4 and App. A.1–A.4). The paper's later results on escaping saddle points are not part of it.
Setting
A finite Markov decision process is a tuple : finite state and action sets, transition probabilities , rewards and a discount factor . A stochastic policy gives a probability vector on at each state. Its value and Q-function are the expected discounted returns from a state, respectively a state-action pair.
A parameterized policy assigns to each a policy . Fix an initial state . The objective is
The score function is . The discounted state-occupancy measure is , and .
Assumption 3.1 asks for and for a differentiable policy whose score exists, is -Lipschitz in and is bounded in norm by . Two constants recur below:
The RPG algorithm (Algorithm 3) works as follows at the current iterate :
- Draw a horizon and simulate under .
- From the last pair , the subroutine EstQ draws an independent , rolls out further steps and returns .
- Update
Assumption 4.1 is the Robbins–Monro condition , .
Formalization targets
Goal: Theorem 4.2, in the form its proof establishes
Under Assumptions 3.1 and 4.1, almost surely
and almost surely every cluster point of satisfies . The page states the conclusion as "", where is the set of stationary points. Read literally, that asserts convergence of , which fails when has no stationary point at all (one state, two actions, a softmax policy). The goal states what the proof on p. 30 concludes.
Milestones
- (p. 6).
- The policy gradient theorem (3.4): .
- Lemma 3.2: is -Lipschitz.
- Theorem 3.4, clauses: , , a.s.
- Lemma A.1: the ascent inequality (A.23), and is a bounded submartingale with .
- (A.26): a.s.
- (A.27): a.s.
Companion: Corollary 4.4 in its explicit form (A.37)
With constant stepsize and Assumption 3.1 only, for every ,
Significance
The theorem shows that Monte Carlo policy gradient, with a sampling scheme that can be implemented from simulated trajectories alone, behaves like an exact stochastic gradient method on a smooth nonconvex objective. It needs no ODE approximation, no two-timescale critic and no assumption that the estimate is unbiased: unbiasedness is proved (Theorem 3.4). The same estimates give the finite-time bound of Corollary 4.4 and are the starting point of the paper's second part, which adds perturbations to escape saddle points.
To our knowledge none of these results has been machine-checked. The mission's work is to formalize the known proof: the infinite-horizon policy gradient theorem with a vector parameter, the smoothness bound with its explicit constant, the exact law of the random-horizon estimator and its moments, and the supermartingale argument. The formal statements also repair three misprints of the source: the conclusion of Theorem 4.2, the tail of (A.22), which is read as , and the of Corollary 4.4, which is replaced by its explicit form (A.37).
Difficulty
Each step of the argument is standard on paper. The work is in the parts that the paper treats in one line:
- Unbiasedness. It rests on two separate identities. The law of the last state of a -length trajectory is . A -discounted sum over a horizon has the mean of a -discounted infinite sum. Both are exchanges of infinite sums over trajectories of unbounded length.
- Smoothness. Lemma 3.2 requires differentiating twice through an infinite series of policy-dependent transition matrices, with bounds uniform in .
- The final step. (A.26) and the non-summability of the stepsizes give only . Upgrading this to a limit needs a separate pathwise argument, which uses the Lipschitz continuity of and the almost sure convergence of the martingale part of the iterates. The tempting first idea, that a summable series with non-summable weights forces its terms to zero, is false.
Formalization scope
- Finite case. The state and action spaces are finite types. The paper also allows compact real vector spaces; this mission does not cover them. Values, Q-functions and occupation probabilities are the published FoundationsML layer (
PolicyValue,QFunction,OccupationDist,IsPolicy,IsTransitionKernel). isEuclideanSpace ℝ (Fin d), and is Mathlib'sgradient. - Assumption 3.1 includes : this is the reading of "the score function exists", since is a junk value in Lean. It also states , which is implicit in "-Lipschitz".
- The algorithm is encoded by its exact sampling law.
rpgLaw θis the law of , built from the geometric horizons, the trajectory probabilities and EstQ. A run is a filtered probability space carrying and with on every path, adapted, and the conditional law of given equal torpgLaw θ_k. - Ruled out. Postulating an abstract "unbiased bounded oracle" in place of
rpgLawwould assume Theorem 3.4 and turn the goal into generic SGD; that encoding is ruled out. A sorry-free example shows that the run hypothesis is satisfiable and thatrpgLawis a probability measure. - Stepsizes and limits. The stepsizes are positive; the page says only "stepsize", and its proofs divide by . Divergence of is
Tendstoof the partial sums to . "Cluster point" isMapClusterPt. - Contributions welcome: proofs of any milestone, in particular the infinite-horizon policy gradient theorem with vector parameters and the unbiasedness of
rpgLaw. These are reusable for every Monte Carlo policy gradient analysis.
Selected references
- K. Zhang, A. Koppel, H. Zhu, T. Başar, Global Convergence of Policy Gradient Methods to (Almost) Locally Optimal Policies, SIAM J. Control Optim. 58(6), 2020. https://arxiv.org/abs/1906.08383 (v3 is the source of this mission)
- R. S. Sutton, D. McAllester, S. Singh, Y. Mansour, Policy Gradient Methods for Reinforcement Learning with Function Approximation, NeurIPS 1999. https://papers.nips.cc/paper/1713-policy-gradient-methods-for-reinforcement-learning-with-function-approximation
- V. R. Konda, J. N. Tsitsiklis, On Actor-Critic Algorithms, SIAM J. Control Optim. 42(4), 2003. https://doi.org/10.1137/S0363012901385691
- D. P. Bertsekas, J. N. Tsitsiklis, Gradient Convergence in Gradient Methods with Errors, SIAM J. Optim. 10(3), 2000. https://doi.org/10.1137/S1052623497331063
- H. Robbins, D. Siegmund, A Convergence Theorem for Non Negative Almost Supermartingales and Some Applications, in Optimizing Methods in Statistics, 1971. https://doi.org/10.1016/B978-0-12-604550-5.50015-8