arXiv:2610.03165cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.03165

Sample complexity of variance-reduced policy gradient: weaker assumptions and lower bounds

Gabor Paczolay, Matteo Papini, Alberto Maria Metelli, Istvan Harmati, Marcello Restelli

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Several variance-reduced versions of REINFORCE based on importance sampling achieve an improved O(ϵ−3)O(\epsilon^{-3}) sample complexity to find an ϵ\epsilon-stationary point, under an unrealistic assumption on the variance of the importance weights. In this paper, we propose the DEF-PG (Defensive Policy Gradient) algorithm, based on defensive importance sampling, which achieves the same rate without any assumption on the variance of ordinary importance weights. We also establish lower bounds in a generalized black-box policy-optimization model that hides states and actions and permits parameter-dependent rewards. In this model, the optimal rates are Θ(ϵ−4)\Theta(\epsilon^{-4}) with bounded-variance one-policy feedback and Θ(ϵ−3)\Theta(\epsilon^{-3}) with mean-square-smooth coupled two-policy feedback. Under standard policy-regularity conditions, REINFORCE and DEF-PG realize the corresponding oracle conditions and attain the O(ϵ−4)O(\epsilon^{-4}) and O(ϵ−3)O(\epsilon^{-3}) upper bounds, respectively. Although the lower bounds do not apply directly to the classical MDP interaction model in which these algorithms operate, this correspondence provides oracle-level evidence that the faster rate of DEF-PG is optimal and genuinely separated from that of vanilla policy gradient.

1 Introduction

Policy gradient methods (PG) are a family of reinforcement learning algorithms (Sutton and Barto, 2018) that are particularly suited for large-scale decision and control problems. Recent applications of PG algorithms range from video games (Wurman et al, 2022), to robotics (Rudin et al, 2021), to large language models (OpenAI, 2023; Ahmadian et al, 2024), where fine-tuning of the LLM with these methods shows a concrete application within the current conversational artificial intelligence boom, and the potential impact of accelerated versions of these methods. In fact, the widespread adoption of these methods is still limited by their need for a huge amount of training data, meaning very long training times in the case of cyber-physical systems or massive computational resources in the case of virtual systems. This motivates the study of the sample complexity of PG from a theoretical perspective (Agarwal et al, 2021) and the development of accelerated algorithms from a practical one.

The sample complexity of policy gradient algorithms can be measured in terms of the number of interaction episodes, or samples, required to find an ϵ\epsilon-stationary point (Papini et al, 2018). More formally, if Θ⊆Rd\Theta \subseteq \mathbb{R}^d is a space of policy parameters and J:Θ→RJ : \Theta \to \mathbb{R} is an objective function measuring the performance of a policy, the goal is to find a θ∈Θ\theta \in \Theta such that

∣∣∇θJ(θ)∣∣≤ϵ,||\nabla_{\theta}J(\theta)||\leq\epsilon,

using as few samples as possible, or at least with a number of samples that is polynomial in ϵ−1\epsilon^{-1} and all relevant problem-dependent quantities. Alternatively, under stronger assumptions, one can study the number of samples necessary to find a globally optimal policy (Liu et al, 2020). However, since J can be nonconvex, convergence to a local optimum is the best one can hope for in full generality. In this paper, we will focus on convergence to ϵ\epsilon-first-order-stationary points ( ϵ\epsilon-FOSP). Furthermore, we will restrict our attention to policy gradient algorithms that use first-order information only, which are typically more computationally efficient (Fatkhullin et al, 2023).

The prototypical policy gradient algorithm is REINFORCE (Williams, 1992) and its sample complexity is O(ϵ−4)O(\epsilon^{-4}). This simply follows from the sample complexity of stochastic gradient descent (Bertsekas and Tsitsiklis, 1996; Sutton et al, 1999), but the details were only worked out recently (see, e.g., Yuan et al, 2022). Variants of REINFORCE based on stochastic variance reduction, a technique originally developed for finite-sum optimization (Johnson and Zhang, 2013), can obtain a better sample complexity. The first algorithm to break the ϵ−4\epsilon^{-4} barrier was SVRPG (Papini et al, 2018), for which Xu et al (2019) proved O(ϵ−10/3)O(\epsilon^{-10/3}) sample complexity. A further improvement was achieved by SRVR-PG (Xu et al, 2020), with a sample complexity of O(ϵ−3)O(\epsilon^{-3}). This is commonly believed to be optimal (e.g., Yuan et al, 2020) due to a lower bound for the related setting of nonconvex stochastic optimization (Arjevani et al, 2023), although the latter is not directly comparable with policy optimization. Several other algorithms followed: STORM-PG (Yuan et al, 2020), PAGE-PG (Gargiani et al, 2022), and others (Pham et al, 2020; Huang et al, 2020), all with O(ϵ−3)O(\epsilon^{-3}) sample complexity. Modest empirical improvements over REINFORCE were also observed in these works.

However, all these algorithms employ importance weights to keep the variance-reduced gradient unbiased, an issue specific to RL (Papini et al, 2018), which is absent in stochastic optimization. Their sample complexity upper bounds rely on an unrealistic assumption on the variance of the importance weights, which can be infinite in practically relevant cases (Zhang et al, 2021). Notable exceptions are algorithms based on second-order information (Shen et al, 2019; Fatkhullin et al, 2023), and TSIVR-PG by Zhang et al (2021). The latter could remove the unrealistic assumption (while still using importance weights) by truncating the gradients. However, their O~(ϵ−3)\widetilde{O}(\epsilon^{-3}) upper bound only holds for softmax policy parametrizations, which are impractical for continuous action spaces. More recently Fatkhullin et al (2023) proposed an accelerated policy gradient algorithm that uses neither importance weighting nor second-order information. However, its sample complexity to find an ϵ\epsilon-FOSP is O(ϵ−3.5)O(\epsilon^{-3.5}). It is then only natural to ask the following question:

Can policy gradient algorithms achieve O(ϵ−3)O(\epsilon^{-3}) sample complexity to find an ϵ\epsilon-FOSP, using first-order information only and without any assumption on the variance of importance weights?

In this paper, we answer positively by designing a variance-reduced policy gradient algorithm based on defensive importance sampling (Owen and Zhou, 2000), a variant of importance weighting with naturally bounded variance. Although we build on existing variance-reduced policy gradient algorithms (Gargiani et al, 2022, in particular), we are the first to introduce to this line of work the defensive importance sampling technique, which overcomes in a very natural way a major limitation of existing algorithms. Fully exploiting this method poses two main challenges. The first is to design and analyze a defensive sampling scheme within the context of policy gradient learning. The second, more technical, is a characterization of the continuity of the variance of the defensive importance weights, as boundedness alone is not enough to prove the sample complexity upper bound (Lemma 4).

Moreover, we establish lower bounds in a generalized black-box policy-optimization model where the learner observes rewards and policy scores but not states or actions, and where the reward mechanism may depend explicitly on the queried policy parameter. In this model, the optimal rates are Θ(ϵ−4)\Theta(\epsilon^{-4}) with bounded-variance one-policy feedback and Θ(ϵ−3)\Theta(\epsilon^{-3}) with mean-square-smooth coupled two-policy feedback. Under standard policy-regularity conditions, REINFORCE and DEF-PG realize the corresponding oracle conditions and attain the O(ϵ−4)O(\epsilon^{-4}) and O(ϵ−3)O(\epsilon^{-3}) upper bounds, respectively. Although the lower bounds do not apply directly to the classical observed-trajectory MDP model, this correspondence provides oracle-level evidence that the faster rate of DEF-PG reflects a genuine improvement over that of REINFORCE.

References (48)