betaFeedback

WorksComputer Science

Variance-Reduced Policy Gradient is Nearly Minimax-Optimal

Abstract

Standard Policy Gradient (PG) algorithms suffer from high estimation variance because they rely on Monte Carlo updates. While off-policy variance reduction mitigates this problem, establishing optimal sample complexity currently requires either restrictive assumptions, such as uniformly bounded importance weights, or impractical second-order operations. In this work, we introduce Loopless Variance-Reduced PG (LVR-PG), a unified theoretical framework that abstracts a class of first-order estimators that integrate recursive updates with defensive importance sampling, including known estimators such as PAGE-PG and STORM-PG. We prove that this algorithmic class achieves O~(ε−2)\tilde{\mathcal{O}}(ε^{-2}) last-iterate global convergence under weak gradient domination for general parametric policies. We establish this guarantee using purely first-order updates, with minimal assumptions and without gradient preconditioners. By extending state-of-the-art lower bounds to continuous parametric policies, we establish an Ω(ε−2)Ω(ε^{-2}) sample complexity limit, confirming our framework is minimax-optimal up to logarithmic factors and horizon terms.

Introduction

In recent years, Reinforcement Learning (RL, Sutton et al., 1998) has been used as the central tool for aligning and scaling the reasoning capabilities of Large Language Models (LLMs, Brown et al., [7]; Achiam et al., [1]). Methods based on Proximal Policy Optimization (PPO, Schulman et al., 2017; Ouyang et al., 2022) and, more recently, Group Relative Policy Optimization (GRPO, Shao et al., 2024) have achieved enormous success on reasoning tasks (Guo et al., [15]) and aligning model outputs with human preferences (Ziegler et al., 2019; Bai et al., [5]). At their core, the algorithms powering these methods reduce to the Policy Gradient (PG, Deisenroth et al., [10]) framework.

Despite the empirical success, their learning efficiency is a matter of debate (Rafailov et al., 2023). Standard PG methods estimate the gradient of the expected return using sampled trajectories (Sutton et al., 1999), and the resulting Monte Carlo estimates can exhibit high estimation variance (Zhao et al., 2011). Actor-critic algorithms (Konda and Tsitsiklis, [17]) address this difficulty through a learned critic, whose approximation error can introduce bias. For LLMs, maintaining and updating an additional critic also entails substantial memory and computational costs, motivating actor-only methods that avoid a separate critic network (Yuan et al., 2023; Ahmadian et al., [3]). Improving trajectory efficiency without introducing a learned critic is therefore relevant to scalable policy optimization.

Reducing gradient-estimation variance has long motivated theoretical research on the sample complexity of PG methods, defined as the number of trajectories nn required to learn an ϵ\epsilon-optimal policy, where ϵ\epsilon is the required accuracy. Recent actor-only applications give this established problem renewed practical relevance. A central theoretical objective is to determine whether purely first-order, actor-only methods can achieve the optimal Ω(ϵ−2)\Omega(\epsilon^{-2}) sample-complexity lower bound (Azar et al., [4]). However, the existing guarantees for such methods do not match this lower bound and require additional assumptions on the Hessian of the log-policy or on the variance of the importance weights.

Within the class of actor-only PG methods, variance reduction seeks to improve sample complexity by reusing historical gradient information while retaining gradient-only updates. Unlike in standard stochastic optimization, the trajectory distribution depends on the policy parameters and therefore changes over the course of optimization. To account for this distribution shift, these methods employ Importance Sampling (IS), weighting trajectory-based estimates by likelihood ratios between the target and sampling policies. Inspired by stochastic non-convex optimization, early methods such as SVR-PG (Papini et al., 2018) and SRVR-PG (Xu et al., 2019) employ double-loop architectures. These compute large-batch gradient estimates at a fixed anchor policy to correct subsequent inner-loop mini-batch updates, making the refresh schedule dependent on the chosen epoch length. Loopless methods instead incorporate historical information through recursive momentum updates or probabilistic refreshes, as in STORM-PG (Yuan et al., 2020; Ding et al., [11]) and PAGE-PG (Gargiani et al., [14]), respectively.

Existing analyses of these importance-sampling-based methods impose strong statistical assumptions, notably a uniform bound on the variance of Importance Weights (IW) (Liu et al., [18]; Ding et al., [11]). This condition is not generally guaranteed in continuous state-action spaces, where trajectory-level likelihood ratios accumulate the distribution shifts induced by policy updates. Paczolay et al. (2024) addresses this by using defensive IS (Owen and Zhou, 2000), but it only studies convergence to a first-order stationary point. In contrast, N-PG-IGT (Fatkhullin et al., [13]) circumvents the IW assumption through implicit gradient transport, retaining historical gradient information without using importance sampling. Its established sample complexity of O~(ϵ−2.5)\widetilde{O}(\epsilon^{-2.5}), however, does not attain the optimal accuracy dependence. Other approaches attain this dependence through different information mechanisms. HARPG uses Hessian-vector products (Fatkhullin et al., [13]), whereas ANPG estimates natural-gradient directions through an auxiliary stochastic optimization problem involving Fisher geometry (Mondal and Aggarwal, 2024). Despite their theoretical appeal, these approaches require additional computational overhead beyond policy-gradient estimation, motivating the study of gradient-only methods. Their analyses also impose regularity assumptions on policy derivatives, as summarized in Table 1.

AlgorithmComplexity†Convergence TypeGradient OnlyNo 2nd-Order Asm.No Bounded IW Asm.
GPOMDP (Montenegro et al., 2024)O~(ϵ−3)\widetilde{O}(\epsilon^{-3})Last-iterate✓\checkmark×\times✓\checkmark
SRVR-PG (Liu et al., [18])O(ϵ−3)O(\epsilon^{-3})Average-iterate✓\checkmark×\times×\times
STORM-PG-S (Ding et al., [11])O(ϵ−3)O(\epsilon^{-3})Average-iterate✓\checkmark×\times×\times
N-PG-IGT‡ (Fatkhullin et al., [13])O~(ϵ−2.5)\widetilde{O}(\epsilon^{-2.5})Last-iterate✓\checkmark×\times✓\checkmark
HARPG‡ (Fatkhullin et al., [13])O~(ϵ−2)\widetilde{O}(\epsilon^{-2})Last-iterate×\times×\times✓\checkmark
ANPG (Mondal and Aggarwal, 2024)O(ϵ−2)O(\epsilon^{-2})Average-iterate×\times×\times✓\checkmark
LVR-PG (Theorem 5.1)O~(ϵ−2)\widetilde{O}(\epsilon^{-2})Last-iterate✓\checkmark✓\checkmark✓\checkmark
Lower Bound (Theorem 3.1)Ω(ϵ−2)\Omega(\epsilon^{-2})—✓\checkmark✓\checkmark✓\checkmark

Table 1. Comparison of sample complexities and theoretical assumptions used for variance-reduced PG algorithms. Complexity denotes the number of trajectories required to reach the global optimal policy. Convergence Type, last-iterate or average-iterate guarantees, — denotes the necessary number of trajectories for any algorithm to return an ϵ\epsilon-optimal policy. Gradient Only denotes an algorithm that does not use second-order or Fisher information. No 2nd-Order Asm. denotes algorithms which do not require assumptions on the Hessian matrix of the log-policy. No Bounded IW Asm. indicates algorithms not requiring an assumption on the boundedness of the variance of the importance weights. † The O(⋅)O(\cdot) hides dependencies on γ\gamma, C1C_1, LSL_S, χ\chi and ψ\psi, O~(⋅)\widetilde{O}(\cdot) hides logarithmic factors. ‡ Requires an additional second-order smoothness assumption.

The question is therefore whether existing gradient-only PG methods can achieve last-iterate global convergence with the optimal accuracy dependence, without assuming uniformly bounded importance-weight variance or additional second-order regularity.

Original Contributions. We study a unified theoretical framework encompassing existing gradient-only PG estimators equipped with defensive IS. In the remainder of the paper, we present our main contributions as follows:

  • In § 3, we adapt the hard-instance construction of Azar et al. [4] to continuously parameterized policies satisfying WGD, establishing that any algorithm guaranteeing expected ϵ\epsilon-optimality requires Ω(ϵ−2)\Omega(\epsilon^{-2}) trajectories in the worst-case.

  • In § 4, we introduce the unified LVR-PG framework, abstracting loopless estimators like PAGE-PG (Gargiani et al., [14]) and STORM-PG (Yuan et al., 2020). By integrating defensive importance sampling (Paczolay et al., 2024) to control off-policy variance, we avoid assumptions on the variance of the importance weights.

  • In § 5, we prove LVR-PG achieves last-iterate global convergence with a sample complexity of O~(ϵ−2)\widetilde{O}(\epsilon^{-2}), matching our lower bound

up to logarithmic factors, without assuming uniformly bounded importance-weight variance or additional second-order regularity.

  • In Section 6, we empirically benchmark the LVR-PG framework against state-of-the-art baselines, identifying the defensive variant of STORM-PG as the dominant algorithmic configuration with superior sample efficiency. The full experimental evaluation is provided in Appendix I.

Preliminaries

Notation. For a measurable set X\mathcal{X}, we denote by ΔX\Delta_{\mathcal{X}} the set of probability measures over X\mathcal{X}. For P∈ΔXP \in\Delta_{\mathcal{X}}, if it admits a density, we denote it by pp. We will use x∼Px \sim P to express that the random variable xx is distributed according to PP. For n∈Nn \in\mathbb{N}, we let ⟦n⟧:={1,…,n}\llbracket n \rrbracket:= \{1,\ldots,n\}. Vectors are indicated with bold letters. Given two symmetric matrices AA and BB, we say that A⪰BA \succeq B if the matrix A−BA-B is positive semidefinite.

Interaction Protocol. We consider an agent interacting with a Markov Decision Process (MDP, (Puterman, 2014)) M=(S,A,p,r,ρ0,γ)\mathcal{M} = (\mathcal{S}, \mathcal{A}, p, r, \rho_0, \gamma) over independent, indefinite-length episodes. In each timestep h=0,1,…h = 0,1,\ldots, the agent observes a state sh∈S⊆RdSs_h \in\mathcal{S} \subseteq\mathbb{R}^{d_S}, where s0∼ρ0s_0 \sim\rho_0 is the initial state and ρ0∈ΔS\rho_0 \in\Delta_{\mathcal{S}} is the initial-state distribution, and executes an action ah∈A⊆RdAa_h \in\mathcal{A} \subseteq\mathbb{R}^{d_A} sampled from a parametric stochastic policy πθ:S→ΔA\pi_\theta: \mathcal{S} \to\Delta_{\mathcal{A}}. Here, θ∈Θ⊆RdΘ\theta\in\Theta\subseteq\mathbb{R}^{d_\Theta} is the parameter vector defining the policy space ΠΘ={πθ∣θ∈Θ}\Pi_\Theta= \{\pi_\theta\mid\theta\in\Theta\}. The agent then receives a reward rh+1:=r(sh,ah)∈[−Rmax⁡,Rmax⁡]r_{h+1} := r(s_h, a_h) \in[-R_{\max}, R_{\max}] and transitions to a next state sh+1∼p(⋅∣sh,ah)∈ΔSs_{h+1} \sim p(\cdot\mid s_h, a_h) \in\Delta_{\mathcal{S}}. For a discount factor γ∈[0,1)\gamma\in[0,1), the performance of θ\theta is assessed via the expected discounted return under the assumption that θ↦πθ\theta\mapsto\pi_\theta is differentiable. The latter is defined as:

J(θ):=E[∑h≥0γhr(sh,ah)∣πθ].J(\theta) := \mathbb{E}\left[\left.\sum_{h \ge0} \gamma^h r(s_h,a_h)\right| \pi_\theta\right].

where the expectation is taken over the trajectory distribution induced by the policy and the environment dynamics. In the following, we will refer to J:Θ→RJ : \Theta\to\mathbb{R} as the performance function, which is generally non-convex. Because the per-step rewards are bounded, it satisfies ∣J(θ)∣≤Rmax⁡/(1−γ)|J(\theta)| \le R_{\max}/(1-\gamma) for all θ∈Θ\theta\in\Theta. We denote the optimal performance as J∗:=max⁡θ∈ΘJ(θ)J^* := \max_{\theta\in\Theta} J(\theta).

Policy Gradients. We consider learning algorithms that iteratively update a sequence of policies πθ1,…,πθK\pi_{\theta_1},\ldots,\pi_{\theta_K}. At each iteration kk, the agent collects a dataset Dk={τ1k,…,τnkk}D_k = \{\tau^k_1,\ldots,\tau^k_{n_k}\} of nkn_k independent trajectories drawn from the trajectory distribution induced by the policy pθk(τ)p_{\theta_k}(\tau). To accommodate structural or safety constraints common in practical applications, we consider PG methods that restrict the parameter space to a closed convex set Θ⊆RdΘ\Theta\subseteq\mathbb{R}^{d_\Theta} and, similarly to Xu et al. (2019), update the parameters via projected stochastic gradient ascent: θk+1←PΘ(θk+η∇^θJ(θk))\theta_{k+1} \leftarrow\mathcal{P}_{\Theta}\left(\theta_k + \eta\widehat{\nabla}_{\theta}J(\theta_k)\right). Here, η>0\eta> 0 is the learning rate, and ∇^θJ(θk)\widehat{\nabla}_{\theta}J(\theta_k) is an unbiased estimator of the true gradient ∇θJ(θk)\nabla_{\theta}J(\theta_k). We formalize the optimization geometry over the parameter domain Θ\Theta using the generalized gradient mapping Gη(θ):=1η(PΘ(θ+η∇J(θ))−θ)\mathcal{G}_{\eta}(\theta) := \frac{1}{\eta}\left(\mathcal{P}_{\Theta}(\theta+ \eta\nabla J(\theta)) - \theta\right). This mapping acts as the projected gradient at θ\theta, recovering the standard gradient ∇θJ(θ)\nabla_{\theta}J(\theta) in the unconstrained case Θ=RdΘ\Theta= \mathbb{R}^{d_\Theta}. To compute the stochastic gradient estimator ∇^θJ(θ)\widehat{\nabla}_{\theta}J(\theta) from finite interaction data without introducing approximation or truncation bias, we evaluate the infinite-horizon discounted objective using a randomized geometric stopping rule, in which the interaction with the environment is terminated after each transition with probability 1−γ1-\gamma, independently of the interaction history. For each trajectory τi\tau_i, let Hγ,i∈{1,2,…}H_{\gamma,i} \in\{1,2,\ldots\} denote the number of executed transitions, with stopping randomness independent across trajectories. In this way, the expected length of each trajectory is E[Hγ,i]=(1−γ)−1\mathbb{E}[H_{\gamma,i}] = (1-\gamma)^{-1} and, since Pr⁡(Hγ,i>h)=γh\Pr(H_{\gamma,i} > h) = \gamma^h, the expected undiscounted return accumulated before stopping matches the infinite-horizon discounted objective function J(θ)J(\theta). For theoretical analysis, we adopt the geometric stopping rule to obtain unbiased estimates of the infinite-horizon objective. In the empirical evaluation, we use a fixed horizon. Using the geometric horizons Hγ,iH_{\gamma,i}, the estimate ∇^θJ(θk)\widehat{\nabla}_{\theta}J(\theta_k) is computed from the on-policy dataset DkD_k via the GPOMDP ([6]) estimator:

∇^θJ(θk)=1nk∑i=1nkg(τi∣θk),(1)\widehat{\nabla}_{\theta}J(\theta_k) = \frac{1}{n_k}\sum_{i=1}^{n_k} g(\tau_i \mid\theta_k), \tag*{(1)}

References

  1. [1]Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023.arxiv.org/abs/2303.08774
  2. [2]Alekh Agarwal, Sham M Kakade, Jason D Lee, and Gaurav Mahajan. On the theory of policy gradient methods: Optimality, approximation, and distribution shift. Journal of Machine Learning Research, 22(98):1–76, 2021.
  3. [3]Arash Ahmadian, Chris Cremer, Matthias Gallé, Marzieh Fadaee, Julia Kreutzer, Olivier Pietquin, Ahmet Üstün, and Sara Hooker. Back to basics: Revisiting reinforce-style optimization for learning from human feedback in llms. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12248–12267, 2024.arxiv.org/abs/2402.14740
  4. [4]Mohammad Gheshlaghi Azar, Rémi Munos, and Hilbert J. Kappen. Minimax PAC bounds on the sample complexity of reinforcement learning with a generative model. Mach. Learn., 91(3):325–349, 2013.
  5. [5]Yuntao Bai, Andy Jones, Kamal Ndouse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, et al. Training a helpful and harmless assistant with reinforcement learning from human feedback. arXiv. arXiv preprint arXiv:2204.05862, 2022.arxiv.org/abs/2204.05862
  6. [6]Jonathan Baxter and Peter L Bartlett. Infinite-horizon policy-gradient estimation. Journal of artificial intelligence research, 15:319–350, 2001.DOI
  7. [7]Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020.arxiv.org/abs/2005.14165
  8. [8]Leonardo Cesani, Matteo Papini, and Marcello Restelli. How log-barrier helps exploration in policy optimization, 2026. URL https://arxiv.org/abs/2603.15001.
  9. [9]Corinna Cortes, Yishay Mansour, and Mehryar Mohri. Learning bounds for importance weighting. Advances in neural information processing systems, 23, 2010.
  10. [10]Marc Peter Deisenroth, Gerhard Neumann, and Jan Peters. A survey on policy search for robotics. Foundations and Trends® in Robotics, 2(1-2):1–142, 2013.
  11. [11]Yuhao Ding, Junzi Zhang, and Javad Lavaei. On the global optimum convergence of momentum-based policy gradient, 2022. URL https://arxiv.org/abs/2110.10116.
  12. [12]Ilyas Fatkhullin, Jalal Etesami, Niao He, and Negar Kiyavash. Sharp analysis of stochastic optimization under global kurdyka-lojasiewicz inequality. Advances in Neural Information Processing Systems, 35:15836–15848, 2022.
  13. [13]Ilyas Fatkhullin, Anas Barakat, Anastasia Kireeva, and Niao He. Stochastic policy gradient methods: Improved sample complexity for fisher-nondegenerate policies. In International Conference on Machine Learning, pages 9827–9869. PMLR, 2023.arxiv.org/abs/2302.01734
  14. [14]Matilde Gargiani, Andrea Zanelli, Andrea Martinelli, Tyler Summers, and John Lygeros. Page-pg: A simple and loopless variance-reduced policy gradient method with probabilistic gradient estimation. In International conference on machine learning, pages 7223–7240. PMLR, 2022.arxiv.org/abs/2202.00308
  15. [15]Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, et al. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025.DOI
  16. [16]Sham M Kakade. A natural policy gradient. Advances in neural information processing systems, 14, 2001.
  17. [17]Vijay R. Konda and John N. Tsitsiklis. Actor-critic algorithms, 2000. URL http://papers.nips.cc/paper/1786-actor-critic-algorithms.
  18. [18]Yanli Liu, Kaiqing Zhang, Tamer Basar, and Wotao Yin. An improved analysis of (variance-reduced) policy gradient and natural policy gradient methods. Advances in Neural Information Processing Systems, 33:7624–7636, 2020.arxiv.org/abs/2211.07937

Paper details

vlnc:W_sqwsf9ma
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative AI tools

View statement
Looking for related papers…
Contents