Skip to content
ImagineWorld

Demystifying Group Relative Policy Optimization: Its Policy Gradient is a U-Statistic

node_idnode-paper_arxiv-2603.01162_demystifying-group-relative-policy-optimization-its-policy-gradient-is-a-u
node_typenode-paper
schema_profileworld.node_paper.v1
alternate_namesarxiv-2603.01162
statusactive
orthogonal_scopemanifold, entropy, authority, state
manifoldworld
entropymedium
authorityguides
stateexternal
domainimagineworld.net
node_interiorrosetta_contract
unisonone evidence claim read five ways: seated in the value-estimation field, the work demystifies group-relative policy optimization, showing its policy gradient is a U-statistic and deriving what that identification buys in variance and bias — its framework, regime, and stance agreeing on what it is
governed_byWORLD-MANIFOLD, CORPUS
constitutional_citationCONSTITUTION
evidence_bundleworld-bundle-paper
publication_classarxiv_preprint
paper_titleDemystifying Group Relative Policy Optimization: Its Policy Gradient is a U-Statistic
paper_authorsHongyi Zhou, Kai Ye, Erhan Xu, Jin Zhu, Ying Yang, Shijin Gong, Chengchun Shi
arxiv_id2603.01162
arxiv_urlhttps://arxiv.org/abs/2603.01162
arxiv_categories{"primary":"cs.LG","secondary":["stat.ML"]}
arxiv_v3
arxiv_submitted_at2026-03-01
arxiv_updated_at2026-03-22
ocr_sourcearxiv_html
ocr_quality_classverbatim_latexml_html
extraction_toolarxiv-nodepaper-transpose
extraction_pipeline_versionworld-ingest-arxiv-html-v1.0
extracted_at2026-10-13T06:51:09Z
math_preserved_as_latextrue
figures_extractedtrue
references_structurally_parsedfalse
created_at2026-10-13T06:51:09Z
updated_at2026-10-14T05:10:36Z
local graph

Demystifying Group Relative Policy Optimization: Its Policy Gradient is a U-Statistic

Section titled “Demystifying Group Relative Policy Optimization: Its Policy Gradient is a U-Statistic”

Authors: Hongyi Zhou, Kai Ye, Erhan Xu, Jin Zhu, Ying Yang, Shijin Gong, Chengchun Shi

arxiv: 2603.01162

Converted to markdown on 2026-10-13 from the arXiv HTML (LaTeXML) rendering; figures embedded from the same source.


Group relative policy optimization (GRPO), a core methodological component of DeepSeekMath and DeepSeek-R1, has emerged as a cornerstone for scaling reasoning capabilities of large language models. Despite its widespread adoption and the proliferation of follow-up works, the theoretical properties of GRPO remain less studied. This paper provides a unified framework to understand GRPO through the lens of classical U-statistics. We demonstrate that the GRPO policy gradient is inherently a U-statistic, allowing us to characterize its mean squared error (MSE), derive the finite-sample error bound and asymptotic distribution of the suboptimality gap for its learned policy. Our findings reveal that GRPO is asymptotically equivalent to an oracle policy gradient algorithm – one with access to a value function that quantifies the goodness of its learning policy at each training iteration – and achieves asymptotically optimal performance within a broad class of policy gradient algorithms. Furthermore, we establish a universal scaling law that offers principled guidance for selecting the optimal group size. Empirical experiments further validate our theoretical findings, demonstrating that the optimal group size is universal, and verify the oracle property of GRPO.

11footnotetext: Equal contribution.22footnotetext: Corresponding authors.11footnotetext: Department of Mathematics, Tsinghua University; Email: [email protected]: Department of Statistics, London School of Economics and Political Science; Emails: [email protected], [email protected], [email protected]: School of Mathematics, University of Birmingham; Email: [email protected]: Department of Statistics and Data Science, Tsinghua University; Email: [email protected]: School of Management, University of Science and Technology of China; Email: [email protected].

Since the birth of ChatGPT in 2022, large language models (LLMs) have been increasingly integrated into our work and everyday life. These models are evolving at an extremely fast pace and can now perform a broad range of tasks at or beyond human level, ushering in an era of rapid technological advancement across scientific, industrial, and societal domains. One of the underlying technologies that enhance the capabilities of these LLMs is reasoning. The idea is straightforward: because LLMs generate human language, they can be guided to perform multi-step reasoning in a manner similar to humans. Initially, this is often achieved through some simple magical prompts (Wei et al., 2022) – for example, “Let us think step by step” – which encourage the model to decompose complex questions into intermediate reasoning steps and produce more accurate solutions; see Figure 1 for an illustration.

Figure 1: An illustration of LLM reasoning. The example shows a prompt and the corresponding model output, consisting of

Figure 1: An illustration of LLM reasoning. The example shows a prompt and the corresponding model output, consisting of a reasoning trace and a final solution.

Early progress in LLM reasoning was driven largely by inference-time techniques that avoid retraining the language model, focusing on eliciting or searching for more effective intermediate reasoning steps. In parallel, Ouyang et al. (2022) established a scalable reinforcement learning with human feedback (RLHF) pipeline for retraining – more precisely, post-training – LLMs to align their outputs with human values. Its main idea is to (i) collect multiple responses for each prompt and obtain human preference over these responses; (ii) learn a reward model from the resulting preference data (Christiano et al., 2017); and (iii) apply reinforcement learning (RL), specifically the proximal policy optimization algorithm (Schulman et al., 2017, PPO,) to fine-tune the LLM parameters so as to maximize the cumulative estimated reward. This work provided a practical demonstration that RL, when combined with human preference feedback, can reliably steer LLM behavior at scale.

The RLHF pipeline is applicable to LLM reasoning. However, it introduces two challenges. First, reasoning tasks often produce long intermediate trajectories, making human supervision for labeling responses time-consuming. This challenge can be addressed by reinforcement learning with verifiable rewards (Lambert et al., 2025, RLVR,), which similarly employs RL for post-training but replaces the reward function learned from subjective human preference with objective verifiers in applications such as mathematics problems, where solutions are unique, or programming tasks, where the generated code can be executed to verify its correctness. The second challenge is more technical: PPO requires to learn a critic network that quantifies the quality of the model at each step to reduce the variance of the stochastic gradient. Nonetheless, estimating and storing such a network in reasoning tasks is computationally expensive.

Group relative policy optimization (Shao et al., 2024, GRPO,) represents a major milestone for RL algorithms tailored to LLM reasoning. It provides a highly effective solution to the second challenge by eliminating the critic network entirely and instead sampling multiple outputs for each prompt, using their group average as a proxy for the critic; refer to Figure 2 for an overview of the GRPO pipeline, and Section 3 for details. This approach leads to the development of DeepSeek-R1, a prominent large reasoning model at the time, whose post-training requires only about 147K H800 GPU-hours – an order of magnitude lower than many contemporary large reasoning models, including OpenAI’s o1 series (Jaech et al., 2024).

The methodology was further formalized in a paper published in Nature (Guo et al., 2025), marking the first peer-reviewed LLM article in the journal, and was subsequently deployed by various open-source LLMs. These efforts established GRPO as a foundational RLVR algorithm for LLM reasoning, with numerous follow-up methods built upon it shortly after its introduction (see Section 2.2 for a review). Beyond LLM reasoning, GRPO has also been applied as a general-purpose RL engine in other domains, including agent settings, where the goal extends beyond chatbots to enabling the model to use external tools or perform more complex tasks (Qian et al., 2025; Ding and Ye, 2026, e.g.,).

Figure 2: Overview of the GRPO pipeline. For each prompt, GRPO samples multiple reasoning traces to generate outputs, wh

Figure 2: Overview of the GRPO pipeline. For each prompt, GRPO samples multiple reasoning traces to generate outputs, which are then evaluated by a reward model to measure their quality. These rewards are compared against the group mean and standardized to compute the advantage function, which is used to update the policy model, subject to KL regularization with respect to a reference model.

All of the aforementioned developments highlight the practical appeal of GRPO, but they also reveal a theoretical gap, as formal analyses remain limited in the literature. In particular:

  1. Q1.

    Why is GRPO so effective?

  2. Q2.

    What is the rationale for using the group mean to approximate the critic network?

  3. Q3.

    Can we provide finite-sample or asymptotic analyses regarding its convergence?

  4. Q4.

    How many outputs shall we sample per prompt?

This paper addresses these questions by demystifying GRPO from a statistical perspective. Our key observation is that GRPO is deeply connected to U-statistics (Hoeffding, 1948), a connection that has not been explicitly recognized in prior works. Building on this observation, we conduct a comprehensive analysis of GRPO, covering both finite-sample and asymptotic properties, examining both the original algorithm and its variants, and analyzing both the policy gradient estimator used to update model parameters at each iteration and the suboptimality gap, which measures the difference between the learned policy and the optimal policy; see Figure 3 for a visualization of our theoretical framework.

Our theoretical contributions are as follows:

    We establish the first connection between GRPO and U-statistics by showing that the GRPO policy gradient is inherently a U-statistic (Lemma 1). This addresses Q2 by providing a principled explanation for using the group mean to approximate the critic network through classical U-statistics theory.

    To address Q3, we provide finite-sample analyses that characterize the mean squared error (MSE) of the GRPO policy gradient (Theorem 2 & Proposition 3) and derive error bounds on its suboptimality gap (Lemma 6). We further establish parameter consistency and derive the asymptotic distribution of the suboptimality gap without requiring parameter identifiability (Theorem 8). This result is novel in two respects: (i) existing literature primarily focuses on error bounds for the suboptimality gap, which characterize its order but are not as accurate as its distribution; and (ii) classical asymptotic analyses rely on parameter identifiability, an assumption clearly violated in overparameterized LLMs.

    Our finite-sample and asymptotic analyses lead to two desirable properties of GRPO: (i) the oracle property (Corollaries 4 & 9), whereby GRPO is asymptotically equivalent to an oracle algorithm with access to the true critic network; and (ii) optimality (Corollaries 5 & 10), whereby GRPO asymptotically minimizes both the MSE and the suboptimality gap among a broad class of RL algorithms. These theoretical findings are further supported by empirical evidence (Figure 4), which addresses Q1 and explains GRPO’s effectiveness.

    Finally, to address Q4, we derive a scaling law that delineates how GRPO’s performance depends on the number of sampled outputs per group, and identifies the optimal group size that maximizes its performance (Theorem 7). Notably, this optimal choice depends only on the training data and model architecture, and is independent of other factors such as the training budget or number of iterations. This universality makes our scaling law particularly appealing, as it does not require retuning when these factors change. Its universality is further validated empirically (Table 2 & Figure 5).

Figure 3: Roadmap of our theoretical results.

Figure 3: Roadmap of our theoretical results.

Our work connects two modern areas in artificial intelligence – reinforcement learning (Section 2.1), and its emerging application to LLM reasoning through RLVR (Section 2.2) – with the classical theory of U-statistics (Section 2.3).

The literature on RL is vast. Existing algorithms are broadly distinguished as planning or learning, based on whether the data generating process is known (e.g., Sutton and Barto, 2018, Chapter 8). Within learning, model-based approaches explicitly estimate the MDP model (Jiang, 2024, e.g.,), while model-free methods do not. The latter can be further divided into value-based algorithms that learn a value function to measure the goodness of a policy and derive the optimal policy by maximizing this value, and policy-based algorithms that directly searches the optimal policy over a restricted policy class. Over time, RL research has evolved across four phases, summarized below in chronological order:

    Classical RL: Early works studied non-deep-learning algorithms, in the form of tabular methods that store estimates in lookup tables, or using classical ML models for function approximation. Two foundational examples are tabular Q-learning (Watkins and Dayan, 1992) and fitted Q-iteration (Ernst et al., 2005). Among these algorithms, GRPO is closely related to policy-based algorithms such as REINFORCE (Williams, 1992) and actor-critic (Konda and Tsitsiklis, 1999). As demonstrated later, GRPO is in essence a policy-based algorithm adapted for LLM reasoning.

    Deep RL: Spurred by the deep learning revolution of the 2010s, a line of advanced deep RL algorithms emerged. This era was largely catalyzed by the success of the deep Q-network in mastering video games (Mnih et al., 2015) and the development of AlphaGo for the game of Go (Silver et al., 2016). Since then, deep RL has become a cornerstone of modern AI research both methodologically (Mnih et al., 2016; Van Hasselt et al., 2016; Dabney et al., 2018; Zhou et al., 2020; Chen et al., 2021, e.g.,) and theoretically (Fan et al., 2020; Feng et al., 2023; Shen et al., 2025; Sun et al., 2025, e.g.,). Of particular relevance to GRPO are trust region policy optimization (Schulman et al., 2015, TRPO,) and its successor, PPO. The latter has been a prominent policy-based algorithm widely applied across various domains, including robotics (Andrychowicz et al., 2020) and LLM fine-tuning (Ouyang et al., 2022).

    Offline RL: In high-stakes applications where safety concerns make online exploration prohibitive, it is more practical to employ offline RL that learns exclusively from static, historical datasets (Levine et al., 2020). The core principle of offline RL is to apply the pessimistic principle (Jin et al., 2021; Rashidinejad et al., 2021, e.g.,) for conservative policy learning. While this principle traces back to the seminal works of Swaminathan and Joachims (2015b); Swaminathan and Joachims (2015a), the paradigm saw a resurgence in the early 2020s (Kumar et al., 2019; Wu et al., 2019; Yu et al., 2020; Xie et al., 2021; Uehara and Sun, 2022, e.g.,). Parallel to offline policy learning, off-policy evaluation seeks to evaluate the impact of adopting a target policy based on the historical data generated by a different policy (Thomas et al., 2015; Jiang and Li, 2016; Thomas and Brunskill, 2016; Liu et al., 2018; Xie et al., 2019; Kallus and Uehara, 2022, e.g.,); see Uehara et al. (2022) for a recent review.

    RLHF: Following the seminal work by Ouyang et al. (2022), the field has seen an unprecedented proliferation of literature dedicated to RLHF (Christiano et al., 2017), with the goal of aligning the output of LLMs with human preferences through RL (Munos et al., 2023; Rafailov et al., 2023; Wu et al., 2024; Wu et al., 2025b; Zeng et al., 2024, e.g.,). Theoretically, existing works have explored both the asymptotic distribution of the parameter estimates (Liu et al., 2024) and finite-sample error bounds for the sub-optimality gap (Chowdhury et al., 2024; Zhong et al., 2024; Aminian et al., 2025; Ye et al., 2025; Xu et al., 2025a, e.g.,) and regret (Zhang et al., 2025d). Despite these analyses, GRPO – a key driver of recent breakthroughs in LLM reasoning – remains largely under-theorized.

Finally, RL is closely related to two branches of research in statistics, primarily motivated by healthcare applications; see Chakraborty and Moodie (2013); Kosorok and Laber (2019); Tsiatis et al. (2019); Li et al. (2023); Shi (2025); Ge et al. (2025); Gazi et al. (2026) for reviews. (i) Early works develop RL algorithms to learn optimal dynamic treatment regimes (DTRs), which are individualized strategies that tailor medical interventions to a patient’s unique characteristics and evolving clinical state. Some representative algorithms include Q-learning (Qian and Murphy, 2011; Song et al., 2015), A-learning (Murphy, 2003; Robins, 2004; Shi et al., 2018) and policy-based methods (Zhang et al., 2013; Zhao et al., 2015). These studies focus on short-horizon settings, where treatment decisions are made at a single stage or over a small, finite number of stages. (ii) More recently, the literature has expanded to study MDPs under long-horizon settings (Ertefaie and Strawderman, 2018; Luckett et al., 2020; Liao et al., 2022; Chen et al., 2024; Li et al., 2024a; Shi et al., 2024a; Shi et al., 2024b; Zhou et al., 2024; Ma et al., 2025; Jin et al., 2025; Li et al., 2025b; Zhong et al., 2025, e.g.,) as well as RLHF (Lee et al., 2024; Liu et al., 2025b; Liu et al., 2025a; Lu et al., 2025; Xiao et al., 2025b, e.g.,).

2.2 Reinforcement learning from verifiable rewards

Section titled “2.2 Reinforcement learning from verifiable rewards”

RLVR, an LLM post-training strategy introduced by Lambert et al. (2025), directly optimizes LLMs against verifiable outcomes. Unlike RLHF, which requires to learn a reward function from subjective human preferences across multiple candidate responses, RLVR leverages objective feedback signals – for example, by verifying whether a model’s answer matches a ground-truth mathematical solution or by executing the model’s generated code in programming tasks. The original algorithm in Lambert et al. (2025) relied on PPO for policy learning, which learns a separate critic model that evaluates the quality of the learning policy.

GRPO, a major breakthrough in RLVR, drastically scales the reasoning capacities of existing LLMs. Its key ingredient lies in completely eliminating the critic model, sampling multiple reasoning traces, and using their average reward as a proxy for the critic (see Section 3 for details). This approach, originally introduced in DeepSeekMath (Shao et al., 2024), was largely popularized by DeepSeek-R1 (Guo et al., 2025) and later validated by a series of pioneering open-source reasoning models like Qwen2.5 (Yang et al., 2025). Together, these works have sparked a surge of follow-up RLVR algorithms (see, e.g., Zhang et al., 2025a, for a recent review), which can be broadly categorized into three types:

    The first line of works refined the GRPO policy gradient estimator by (i) modifying (Hao et al., 2025; Xiao et al., 2025a; Zeng et al., 2025) or replacing (Li et al., 2024b; Ahmadian et al., 2024; Hu et al., 2025) the baseline term (the empirical group mean in GRPO); (ii) revising the importance sampling ratio used in GRPO (Zheng et al., 2025a; Pang and Jin, 2025) or removing it altogether (Chu et al., 2025); and (iii) applying different normalizations to the reward (Xiong et al., 2025; Liu et al., 2025c; Xiao et al., 2025a). In summary, these algorithms preserve the critic-free GRPO framework while modifying how policy gradient estimators are computed or normalized.

    The second line of works considered different optimization objectives, including entropy-regularized objectives that encourage exploration to prevent the model from entropy collapse (Zhang et al., 2025b; Cheng et al., 2025; Chen et al., 2025), length- or difficulty-aware objectives that balance correctness with concise reasoning (Zhang and Zuo, 2025; Dai et al., 2025a), risk-sensitive targets (Ren et al., 2026) and objectives that guide the model to adaptively select reasoning formats (Wu et al., 2025a).

    The third line of works focused on improving GRPO’s training efficiency, either statistically or computationally (Dai et al., 2025b; Yu et al., 2025; Lin et al., 2025; Xu et al., 2025b; Zhang et al., 2025c). For example, Yan et al. (2025) leveraged off-policy data from stronger models to provide informative reasoning trajectories and enhance learning. Li et al. (2025a) and Zhan et al. (2026) reused previously generated trajectories instead of discarding all old samples after each policy update. Zheng et al. (2025b) explored multiple reasoning paths concurrently to accelerate reasoning speed, while Xu and Ding (2026) generated only a single sampled output per prompt to reduce computational cost.

Despite the popularity in developing practical RLVR algorithms, their theoretical foundations – and those of GRPO specifically – remain largely unexplored. Among those available, Liu et al. (2025c) and Yang et al. (2026) studied the biases of GRPO’s policy gradient and advantage function (see Section 3 for formal definitions). Pang and Jin (2025) upper bounded the expected squared ℓ_2\ell\_{2}-norm of the gradient for GRPO’s KL-regularized objective. Davis and Recht (2025) and Vojnovic and Yun (2025) characterized GRPO’s objective function. In particular, Davis and Recht (2025) proved GRPO optimizes an arcsin⁡\arcsin transformation of the expected reward, rather than the expected reward in its original form. More recently, Yao et al. (2026) discussed the off-policy nature of GRPO. However, these results do not deliver a unified finite-sample and asymptotic characterization of GRPO, nor do they establish a connection to U-statistics – both of which are precisely what our theory establishes.

Our work builds upon the classical theory of U-statistics, a class of estimators introduced by Hoeffding (1948) that generalize the sample mean to averages over functions of multiple random variables or vectors. Let {X_i}_i=1n\{X\_{i}\}\_{i=1}^{n} denote a sequence of independent and identically distributed (i.i.d.) random vectors. A U-statistic of order mm is defined by a symmetric kernel function h(X_1,…,X_m)h(X\_{1},\dots,X\_{m}). For instance, a second-order U-statistic with a bivariate kernel hh is defined as:

U=1n(n−1)∑_i≠jh(X_i,X_j).U=\frac{1}{n(n-1)}\sum\_{i\neq j}h(X\_{i},X\_{j}).(1)

Its statistical property is largely characterized through the Hoeffding decomposition, which expresses the U-statistic as a sum of several orthogonal components:

U=h_0+2n∑_i=1n[h_1(X_i)−h_0]⏟_first-order term+1n(n−1)∑_i≠j[h(X_i,X_j)−h_1(X_i)−h_1(X_j)+h_0]⏟_second-order term,U=h\_{0}+\underbrace{\frac{2}{n}\sum\_{i=1}^{n}[h\_{1}(X\_{i})-h\_{0}]}\_{\textrm{first-order term}}+\underbrace{\frac{1}{n(n-1)}\sum\_{i\neq j}[h(X\_{i},X\_{j})-h\_{1}(X\_{i})-h\_{1}(X\_{j})+h\_{0}]}\_{\textrm{second-order term}},(2)

where h_0=E[h(X_1,X_2)]h\_{0}=\mathbb{E}[h(X\_{1},X\_{2})] is the expectation of the kernel and h_1(x)=E[h(x,X_2)]h\_{1}(x)=\mathbb{E}[h(x,X\_{2})] denotes the first-order projection.

In the non-degenerate case where Var(h_1(X_1))>0\text{Var}(h\_{1}(X\_{1}))>0, the first-order term dominates the variance and fluctuates at an order of O_p(n−1/2)O\_{p}(n^{-1/2}), whereas the second-order term decays at a faster rate of O_p(n−1)O\_{p}(n^{-1}). In essence, this decomposition establishes the asymptotic equivalence between a U-statistic and a simple average of i.i.d. random variables (captured by the first-order term), allowing classical limit theorems for sample averages to be directly applied to U-statistics. As we will demonstrate in Section 4, this decomposition is instrumental in characterizing the behavior of GRPO’s policy gradient and its estimated optimal policy.

Owing to their favorable theoretical properties, U-statistics are widely employed across disciplines, including their extension to U-processes in probability theory (Nolan and Pollard, 1987), their use in semiparametric statistics via higher-order influence functions (Liu et al., 2017), their role in econometrics through the maximum rank correlation estimator (Han, 1987; Sherman, 1993), and their application in estimating optimal individualized treatment regimes via concordance-assisted learning (Fan et al., 2017; Liang et al., 2018).

In this section, we first introduce the sequential decision making problem in RL and formulates LLM reasoning as a sequential decision making problem (Section 3.1). We next present a meta-algorithm (see Algorithm 1 for the pseudocode) that unifies a range of policy-based approaches, ranging from the classical REINFORCE algorithm to more advanced advantage actor-critic methods and variants of GRPO (Section 3.2).

RL is a powerful machine learning framework for solving sequential decision making problems. In this framework, an agent repeatedly interacts with an environment. At each time step, the agent receives an observation which represents the environment’s current state, and selects an action based on this information. In response, the environment provides feedback in the form of a reward and transitions to a new state, yielding the next observation. The agent’s objective is to utilize the collected observation-action-reward tuples to learn an optimal policy – a mapping from its observed data history to the space of actions – that maximizes the expected cumulative reward in the long run.

In natural language processing, text is represented as a sequence of discrete units known as tokens. Let V\mathcal{V} denote the vocabulary consisting of all such tokens. LLMs produce text via autoregressive next token prediction. Specifically, given an input prompt XX (e.g., a user query) represented as a sequence of tokens, the model generates the first token Y_1∈VY\_{1}\in\mathcal{V} sampled from a conditional distribution π_θ(∙∣X)=P(Y_1=∙∣X)\pi\_{\theta}(\bullet|X)=\mathbb{P}(Y\_{1}=\bullet|X), parameterized by θ∈Θ\theta\in\Theta. Next, the second token Y_2Y\_{2} is produced according to π_θ(∙∣X,Y_1)\pi\_{\theta}(\bullet|X,Y\_{1}). At each time step tt, the model generates Y_tY\_{t} according to π_θ(∙∣X,Y_<t)\pi\_{\theta}(\bullet|X,Y\_{<t}), where Y_<t=(Y_1,…,Y_t−1)Y\_{<t}=(Y\_{1},\dots,Y\_{t-1}) represents the previously generated prefix. This iterative procedure continues until the model generates a complete output Y=(Y_1,…,Y_T)Y=(Y\_{1},\dots,Y\_{T}), terminating with an “end-of-sequence” token Y_TY\_{T}. To handle conditioning sets of varying lengths, a Transformer architecture (Vaswani et al., 2017) is commonly employed to parameterize π_θ\pi\_{\theta}. For reasoning tasks, the output YY contains both a reasoning trace and a final solution (denoted by SS); see Figure 1 for an illustration.

The above procedure can be naturally formulated as a sequential decision making problem. Specifically, the observation is fixed as the input prompt XX, the action at time step tt corresponds to the generated token Y_tY\_{t}, and the policy is given by π_θ\pi\_{\theta}. Unlike standard RL settings where rewards may be provided at each step, the reward here is sparse and observed only upon completion of the entire sequence. In GRPO, the terminal reward, denoted by ZZ, evaluates both the format consistency of the response (i.e., its adherence to a pre-specified template) and the accuracy of the final solution SS. All intermediate rewards are set to zero. Our goal is to optimize the policy π_θ\pi\_{\theta}, or equivalently, the parameter θ\theta, to maximize the expected reward of the generated output Eπ_θ(Z)\mathbb{E}^{\pi\_{\theta}}(Z).

Alternatively, this problem can be viewed from a different perspective by treating the entire output sequence YY as a single action. This effectively collapses the time horizon TT to 11. Consequently, the problem is recast as a bandit problem (Lai and Robbins, 1985, e.g.,), where the data is summarized by the context-action-reward (X,Y,Z)(X,Y,Z) tuples.

Existing RLVR algorithms are policy-based algorithms, grounded in the policy gradient theorem (Sutton et al., 1999). This theorem is instrumental as it provides a closed-form expression for the gradient of the expected reward with respect to the policy parameters, which enables the application of gradient-based algorithms for parameter optimization. In our specific formulation, the gradient of the expected reward can be expressed as:

$$g(\theta):=\nabla_{\theta}[\mathbb{E}^{\pi_{\theta}}(Z)]=\mathbb{E}\Big[\sum_{t}\nabla_{\theta}\log\pi_{\theta}(Y_{t}X,Y_{<t})Z\Big].$$

Equation (3) gives rise to the classical REINFORCE algorithm (Williams, 1992). At the iith iteration, the algorithm (i) samples a prompt XX from a reference distribution f(∙)f(\bullet)11 1 While the true distribution ff is unknown, it is typically approximated by the empirical distribution of a finite set of prompts. In such cases, our established theoretical guarantees are understood to be conditional on this specific prompt set., (ii) utilizes the current parameter θ_i\theta\_{i} to generate an output YY, (iii) computes its reward ZZ, (iv) constructs a plug-in estimator g^(θ_i)=∑_t∇_θlog⁡π_θ(Y_t∣X,Y_<t)Z\widehat{g}(\theta\_{i})=\sum\_{t}\nabla\_{\theta}\log\pi\_{\theta}(Y\_{t}|X,Y\_{<t})Z based on these samples, and (v) updates the parameters via stochastic gradient ascent θ_i+1←θ_i+η_ig^(θ_i)\theta\_{i+1}\leftarrow\theta\_{i}+\eta\_{i}\widehat{g}(\theta\_{i}) with learning rate η_i>0\eta\_{i}>0.

Algorithm 1 A meta-algorithm for LLM reasoning.

1:  Input: Prompt distribution f(X)f(X), initial parameters θ_0∈Θ\theta\_{0}\in\Theta, sequence of learning rates {η_i}_i∈N\{\eta\_{i}\}\_{i\in\mathbb{N}}, batch size BB, per-prompt group size GG, and baseline functions {C_i(b,g)}_i,b,g\{C\_{i}^{(b,g)}\}\_{\begin{subarray}{c}i,b,g\end{subarray}}.

2:  for i=0,1,2,…,n−1i=0,1,2,\dots,n-1 do

3:   Sample a batch of prompts {X(b)}_b=1B∼iidf(∙)\{X^{(b)}\}\_{b=1}^{B}\stackrel{{\scriptstyle iid}}{{\sim}}f(\bullet).

4:   For each X(b)X^{(b)}, generate a group of GG outputs {Y(b,g)}_g=1G∼π_θ_i(⋅∣X(b))\{Y^{(b,g)}\}\_{g=1}^{G}\sim\pi\_{\theta\_{i}}(\cdot|X^{(b)}).

5:   For each Y(b,g)Y^{(b,g)}, obtain its reward Z(b,g)Z^{(b,g)}.

6:   Compute the gradient

$$\widehat{g}(\theta_{i})=\frac{1}{BG}\sum_{b=1}^{B}\sum_{g=1}^{G}\sum_{t}\nabla_{\theta}\log\pi_{\theta_{i}}(Y_{t}^{(b,g)}X^{(b)},Y_{<t}^{(b,g)})(Z^{(b,g)}-C_{i}^{(b,g)})$$

7:   Parameter update: θ_i+1←θ_i+η_i+1g^(θ_i)\theta\_{i+1}\leftarrow\theta\_{i}+\eta\_{i+1}\widehat{g}(\theta\_{i}).

8:  end for

9:  Output: π_θ_n\pi\_{\theta\_{n}}.

While REINFORCE’s gradient estimator is unbiased, it is notoriously susceptible to high variance. A common trick in the literature to reduce its variance is to subtract a baseline term C_iC\_{i} (which can vary across iterations ii) from the reward ZZ. The rationale lies in that the score function ∑_t∇_θlog⁡π_θ(Y_t∣X,Y_<t)\sum\_{t}\nabla\_{\theta}\log\pi\_{\theta}(Y\_{t}|X,Y\_{<t}) has an expectation of zero. Consequently, provided that C_iC\_{i} is a function exclusively of the random variable XX (being conditionally independent of YY and ZZ given XX), the expectation in (3) remains invariant when ZZ is replaced by its “centered” version, Z−C_iZ-C\_{i}. As such, the resulting gradient estimator remains unbiased. However, a proper choice of C_iC\_{i} can effectively reduce the variance of the estimator.

The most widely adopted C_iC\_{i} is the value function Vπ_θ_i(X)=Eπ_θ_i(Z∣X)V^{\pi\_{\theta\_{i}}}(X)=\mathbb{E}^{\pi\_{\theta\_{i}}}(Z|X). This choice gives rise to advantage actor-critic (A2C) algorithms (Mnih et al., 2016, e.g.,), which, in addition to the policy (the actor), learn a value function (the critic) to estimate the baseline and calculate the advantage function (the difference between the return and the critic) for variance reduction. However, in reasoning tasks, maintaining and updating a separate critic network is extremely computationally intensive. GRPO addresses this inefficiency by eliminating the critic network entirely. It samples multiple outputs for each prompt and utilizes their group mean as the baseline term (see Equation (4)). Because sampling from the policy is drastically more efficient than training a critic model, GRPO offers a highly scalable solution to LLM reasoning. In Section 4, we show that this solution is also mathematically elegant.

To unify these methods, we introduce the meta-algorithm in Algorithm 1. It incorporates (i) the centering trick for variance reduction, (ii) minibatch sampling of BB prompts per iteration, and (iii) GG sampled outputs per prompt for evaluating the gradient. Several aforementioned algorithms arise as special cases:

  • •

    REINFORCE: Recovered by setting B=1,G=1B=1,G=1, and C_i(1,1)=0C\_{i}^{(1,1)}=0.

  • •

    A2C: Recovered by setting B=1,G=1B=1,G=1, and C_i(1,1)C\_{i}^{(1,1)} to the critic network.

  • •

    GRPO-type: Recovered by allowing B,G>1B,G>1 and setting C_i(b,g)C\_{i}^{(b,g)} to the leave-one-out group mean22 2 This is equivalent to using the full group mean G−1∑_k=1GZ(b,k)G^{-1}\sum\_{k=1}^{G}Z^{(b,k)} as the baseline, up to a rescaling of the learning rate by a factor of G/(G−1)G/(G-1).

    C_i(b,g)=Zˉ(b,−g):=∑_k≠gZ(b,g)G−1.C\_{i}^{(b,g)}=\bar{Z}^{(b,-g)}:=\frac{\sum\_{k\neq g}Z^{(b,g)}}{G-1}.(4)

We conclude this section by noting that while we focus on analyzing Algorithm 1 for building intuition, it simplifies the standard production-level implementation in three aspects: (i) it omits the reward normalization used in GRPO; (ii) it does not incorporate the importance sampling strategy used in GRPO to enhance sample efficiency through multiple gradient updates per batch; (iii) it excludes the Kullback–Leibler (KL) divergence penalty, which prevents the policy from deviating excessively from the reference model. These simplifications were implemented in GRPO variants such as Dr-GRPO (Liu et al., 2025c) and GPG (Chu et al., 2025), which we analyze rigorously in Sections 4.1 and 4.2. In Section A of the Supplementary Material, we will bridge these gaps to align our theoretical analyses with standard GRPO implementations.

This section presents our main theoretical results, where we compare GRPO with two alternatives to demonstrate its effectiveness. To ensure a fair comparison, all algorithms use the same batch size BB and group size GG. As summarized in Table 1, their differences lie solely in the choice of the baseline term. Specifically, we analyze:

(i) a vanilla algorithm, a minibatch variant of REINFORCE that sets C_i(b,g)=0C\_{i}^{(b,g)}=0;

(ii) a GRPO-type algorithm, which adopts the group mean defined in (4);

(iii) an oracle algorithm, which uses the true value function Vπ_θ_i(X)V^{\pi\_{\theta\_{i}}}(X) as the baseline;

Notice that the oracle algorithm is not practically implementable: the true value function is unknown and estimating it via a separate network is computationally expensive, as discussed earlier. Nevertheless, this algorithm serve as a benchmark whose performance practical algorithms aim to match. We say that an algorithm achieves the oracle property if it attains asymptotically equivalent performance to the oracle algorithm.

We next provide a high-level summary of our findings, covering both finite-sample and asymptotic results (see Figure 3 for a roadmap of our results):

  • •

    Gradient evaluation: Section 4.1 investigates the properties of policy gradient estimators employed by GRPO-type algorithms. Specifically, Lemma 1 formally establishes the connection between the estimator and the U-statistic. Theorem 2 and Proposition 3 derive bounds on its MSE, which in turn demonstrating the estimator’s superiority over the vanilla algorithm, yielding its oracle property (Corollary 4) and optimality (Corollary 5).

  • •

    Policy optimization: Section 4.2 shifts the focus to the sub-optimality gap of the learned policy. In particular, Lemma 6 presents a finite-sample upper bound on this gap, upon which Theorem 7 establishes a scaling law that offers insights into the optimal choice of the group size. Theorem 8 further establishes the consistency of the parameter estimates and derives the asymptotic distribution of the sub-optimality gap as a mixture of χ2\chi^{2} random variables without assuming parameter identifiability. These results verify the oracle property of the GRPO policy (Corollary 9) as well as its optimality (Corollary 10).

  • •

    Practical considerations: Section A of the Supplementary Material extends the aforementioned analyses to accommodate (i) reward standardization; (ii) importance sampling and (iii) the KL divergence penalty. This section connects the gradient estimator with U-statistics (Lemma 11), characterizes the gradient estimator’s MSE (Theorem 12), and derives the consistency of the parameter estimates (Proposition 13).

Table 1: Three meta-algorithms compared in Section 4, differing in their choice of baseline term.

AlgorithmVanilla algorithmGRPO-type algorithmOracle algorithm
Baseline termC_i(b,g)=0C\_{i}^{(b,g)}=0C_i(b,g)=Zˉ(b,−g)C\_{i}^{(b,g)}=\bar{Z}^{(b,-g)}C_i(b,g)=Vπ_θ_i(X(b))C\_{i}^{(b,g)}=V^{\pi\_{\theta\_{i}}}(X^{(b)})

In this section, we consider the task of evaluating the gradient g(θ)g(\theta) (see Equation (3)). To build intuition, we begin with estimating g(θ)g(\theta) for a fixed prompt xx. This corresponds to the setting where the prompt distribution ff in Algorithm 1 is degenerate at xx. The observed data consists of GG i.i.d. output-reward pairs {(Y(g),Z(g))}_g=1G\{(Y^{(g)},Z^{(g)})\}\_{g=1}^{G} sampled from the model’s policy π_θ\pi\_{\theta}. Here, we omit the superscript (b)(b) as the prompt is fixed. We denote the resulting gradient estimators for the vanilla, GRPO-type and oracle algorithms as g^_vanilla(x;θ)\widehat{g}\_{\textrm{vanilla}}(x;\theta), g^_GRPO(x;θ)\widehat{g}\_{\textrm{GRPO}}(x;\theta) and g^_oracle(x;θ)\widehat{g}\_{\textrm{oracle}}(x;\theta), respectively. These estimators follow the general form,

g^(x;θ)=1G∑_g=1G∇_θlog⁡π_θ(Y(g)∣x)[Z(g)−C(g)],\widehat{g}(x;\theta)=\frac{1}{G}\sum\_{g=1}^{G}\nabla\_{\theta}\log\pi\_{\theta}(Y^{(g)}\mid x)[Z^{(g)}-C^{(g)}],(5)

with different choices of the baseline term C(g)C^{(g)} summarized in Table 1.

We begin by demonstrating that the GRPO’s group relative gradient estimator, which contrasts a realized reward ZZ against its group average, admits a second-order U-statistic representation.

Lemma 1 (Gradient estimator as a U-statistic).
Section titled “Lemma 1 (Gradient estimator as a U-statistic).”

g^_GRPO(x;θ)\widehat{g}\_{\rm GRPO}(x;\theta) can be written as a second-order U-statistic:

g^_GRPO(x;θ)=(G2)−1∑_1≤i<j≤Gh((Y(i),Z(i)),(Y(j),Z(j))),\widehat{g}\_{\rm GRPO}(x;\theta)=\binom{G}{2}^{-1}\sum\_{1\leq i<j\leq G}h\big((Y^{(i)},Z^{(i)}),(Y^{(j)},Z^{(j)})\big),(6)

with a symmetric kernel

$$h\big((Y^{(i)},Z^{(i)}),(Y^{(j)},Z^{(j)})\big):=\frac{1}{2}[\nabla_{\theta}\log\pi_{\theta}(Y^{(i)}x)-\nabla_{\theta}\log\pi_{\theta}(Y^{(j)}

The proof of Lemma 1 is straightforward. By setting C(g)C^{(g)} in (5) to the group mean baseline Zˉ(−g)=(G−1)−1∑_k≠gZ(g)\bar{Z}^{(-g)}=(G-1)^{-1}\sum\_{k\neq g}Z^{(g)}, each individual term in the sum satisfies

∇_θlog⁡π_θ(Y(g)∣x)[Z(g)−Zˉ(−g)]=1G−1∑_k≠g∇_θlog⁡π_θ(Y(g)∣x)[Z(g)−Z(k)].\nabla\_{\theta}\log\pi\_{\theta}(Y^{(g)}\mid x)[Z^{(g)}-\bar{Z}^{(-g)}]=\frac{1}{G-1}\sum\_{k\neq g}\nabla\_{\theta}\log\pi\_{\theta}(Y^{(g)}\mid x)[Z^{(g)}-Z^{(k)}].

Averaging over all g∈{1,…,G}g\in\{1,\dots,G\} and applying a standard symmetrization argument allows g^_GRPO(x;θ)\widehat{g}\_{\textrm{GRPO}}(x;\theta) to be reformulated as the average of the symmetric kernel hh over all pairs, yielding the UU-statistic in (6).

Next, applying the Hoeffding decomposition from (2) partitions the group relative gradient estimator into three orthogonal components:

(i) the expectation of the kernel, which equals the true gradient

$$g(x;\theta)=\mathbb{E}^{\pi_{\theta}}[\nabla_{\theta}\log\pi_{\theta}(Y\mid x)\mathbb{E}(ZX=x)];$$

(ii) a first-order term, which can be represented as the difference between the oracle gradient estimator and g(x;θ)g(x;\theta), since the first-order projection h_1h\_{1} satisfies

2h_1(y,z)=E[h((y,z),(Y,Z))]=∇_θlog⁡π_θ(y∣x)[z−Eπ_θ(Z∣X=x)],2h\_{1}(y,z)=\mathbb{E}\Big[h\big((y,z),(Y,Z)\big)\Big]=\nabla\_{\theta}\log\pi\_{\theta}(y\mid x)\big[z-\mathbb{E}^{\pi\_{\theta}}(Z\mid X=x)\big],

which is precisely each summand in (5) under the oracle baseline C(g)=Vπ_θ(x)C^{(g)}=V^{\pi\_{\theta}}(x);

(iii) a second-order degenerate term.

Since these components are uncorrelated, this decomposition leads to the following MSE bound, as summarized in Theorem 2.

ZZ is almost surely bounded.

Theorem 2 (MSE conditional on the prompt).
Section titled “Theorem 2 (MSE conditional on the prompt).”

Under Assumption 1, we have

$\displaystyle\begin{split}\text{MSE}(\widehat{g}_{\text{GRPO}}(x;\theta)):=\mathbb{E}|\widehat{g}_{\text{GRPO}}(x;\theta)-g(x;\theta)|^{2}\ =\frac{\text{trace}[\Sigma_{\text{oracle}}(x;\theta)]}{G}+O\Big(\frac{\mathbb{E}|\nabla_{\theta}\log\pi_{\theta}(Yx)|^{2}}{G^{2}}\Big),\end{split}$

where trace[∙]\text{trace}[\bullet] denotes the trace of a matrix, Σ_oracle(x;θ)\Sigma\_{\text{oracle}}(x;\theta) denotes the asymptotic covariance matrix of the oracle gradient estimator GCov(g^_oracle(x;θ))G\text{Cov}(\widehat{g}\_{\text{oracle}}(x;\theta)) and ∥∙∥\|\bullet\| denotes the ℓ_2\ell\_{2}-norm of a vector.

We make two remarks. First, Assumption 1 is generally satisfied. In GRPO, the reward ZZ is typically the sum of a format reward and an accuracy reward, which evaluate the format consistency and the correctness of the output, respectively. Since both components are bounded within [0,1][0,1], the final reward ZZ remains bounded within [0,2][0,2].

Second, the two terms on the second line of (7) correspond to the expected squared ℓ_2\ell\_{2}-norm of the first- and second-order projections from the Hoeffding decomposition. Crucially, the first-order projection serves as the leading term that scales at a rate of G−1G^{-1} and coincides with the MSE of the oracle gradient estimator. In contrast, the second-order term decays at a faster rate of G−2G^{-2}, confirming its role as a higher-order residual. This observation establishes the oracle property of g^_GRPO(θ)\widehat{g}\_{\text{GRPO}}(\theta), which we formalize in Corollary 4: as the group size G→∞G\to\infty, the estimator’s MSE becomes equivalent to that of the oracle estimator with access to the true value function. In the official DeepSeekMath implementation, GG is set to 64 (Shao et al., 2024), which is sufficiently large for the residual term to be negligible relative to the leading term.

Next, we extend Theorem 2 to the minibatch setting, where the prompt is no longer fixed at xx. Instead, we sample BB i.i.d. prompts {X(b)}_b=1B\{X^{(b)}\}\_{b=1}^{B} and GG output-reward pairs per prompt to estimate

g(θ)=E_X∼f(∙)[g(X;θ)].\displaystyle g(\theta)=\mathbb{E}\_{X\sim f(\bullet)}[g(X;\theta)].(8)

Accordingly, we define the vanilla, oracle, and GRPO-type minibatch gradient estimators as the empirical average of the prompt-specific estimators:

g^(θ)=1B∑_b=1Bg^(X(b);θ).\widehat{g}(\theta)=\frac{1}{B}\sum\_{b=1}^{B}\widehat{g}(X^{(b)};\theta).
Proposition 3 (MSE in the minibatch setting).
Section titled “Proposition 3 (MSE in the minibatch setting).”

Under Assumption 1, we have

$\displaystyle\begin{split}&\text{MSE}(\widehat{g}_{\text{GRPO}}(\theta)):=\mathbb{E}|\widehat{g}_{\text{GRPO}}(\theta)-g(\theta)|^{2}\ =&\frac{\mathbb{E}|g(X;\theta)-g(\theta)|^{2}}{B}+\frac{\text{trace}[\Sigma_{\text{oracle}}(\theta)]}{BG}+O\Big(\frac{\mathbb{E}|\nabla_{\theta}\log\pi_{\theta}(YX)|^{2}}{BG^{2}}\Big),\end{split}$

where Σ_oracle(θ)=E[Σ_oracle(X;θ)]\Sigma\_{\text{oracle}}(\theta)=\mathbb{E}[\Sigma\_{\text{oracle}}(X;\theta)].

In the minibatch setting, the MSE is further reduced by a factor of B−1B^{-1}. The first term in the second line of (9) represents the inherent variance arising from prompt sampling, which is independent of GG and shared by all gradient estimators (e.g., vanilla, oracle). Equation (9) is instrumental in deriving our scaling law detailed in the next section. To elaborate, suppose we fix the sampling budget per prompt as N=B×GN=B\times G. Then B=N/GB=N/G, so the first term scales linearly with GG, the second term is constant when NN is fixed, and the third term scales inversely with GG. Consequently, there exists an optimal choice of GG that is neither too small nor too large, balancing the first and third terms to minimize the MSE. As we will show later, the MSE is closely related to the suboptimality gap of the learned policy, and thus there exists a corresponding GG that minimizes this suboptimality gap.

Additionally, as G→∞G\to\infty, the MSE of the GRPO-type gradient again becomes equivalent to that of the oracle gradient, and we formalize such oracle property below.

Corollary 4 (Oracle property of gradient estimator).
Section titled “Corollary 4 (Oracle property of gradient estimator).”

Let MSE_A(∙)\text{MSE}\_{A}(\bullet) denote the asymptotic MSE of a gradient estimator, obtained by removing errors that are high-order in the group size GG, we have MSE_A(g^_GRPO(x;θ))=MSE(g^_oracle(x;θ))\text{MSE}\_{A}(\widehat{g}\_{\rm GRPO}(x;\theta))=\text{MSE}(\widehat{g}\_{\text{oracle}}(x;\theta)) and MSE_A(g^_GRPO(θ))=MSE(g^_oracle(θ)).\text{MSE}\_{A}(\widehat{g}\_{\rm GRPO}(\theta))=\text{MSE}(\widehat{g}\_{\text{oracle}}(\theta)).

Finally, we establish the optimality of the GRPO estimator in Corollary 5 by demonstrating the following properties: (i) it asymptotically minimizes the MSE within the class of gradient estimators of the form (5) where the baseline term is a function of the prompt xx only; and (ii) its asymptotic MSE is strictly smaller than that of the vanilla algorithm.

∥∇_θlog⁡π_θ(Y∣X)∥2\|\nabla\_{\theta}\log\pi\_{\theta}(Y|X)\|^{2} is conditionally uncorrelated of ZZ given XX.

Corollary 5 (Optimality of gradient estimator).
Section titled “Corollary 5 (Optimality of gradient estimator).”

Suppose Assumptions 1 and 2 hold. For any gradient estimator g^(x;θ)\widehat{g}(x;\theta) of the form (5) whose baseline term is a function of the prompt xx only, we have

MSE_A(g^_GRPO(x;θ))≤MSE(g^(x;θ))andMSE_A(g^_GRPO(θ))≤MSE(g^(θ)).\text{MSE}\_{A}(\widehat{g}\_{\rm GRPO}(x;\theta))\leq\text{MSE}(\widehat{g}(x;\theta))\quad\text{and}\quad\text{MSE}\_{A}(\widehat{g}\_{\rm GRPO}(\theta))\leq\text{MSE}(\widehat{g}(\theta)).

In particular, provided that the score functions ∇_θlog⁡π_θ(Y∣x)\nabla\_{\theta}\log\pi\_{\theta}(Y\mid x), ∇_θlog⁡π_θ(Y∣X)\nabla\_{\theta}\log\pi\_{\theta}(Y\mid X) and the value function Vπ_θ(X)V^{\pi\_{\theta}}(X) are not almost surely zero, and Vπ_θ(x)≠0V^{\pi\_{\theta}}(x)\neq 0,

MSE_A(g^_GRPO(x;θ))<MSE(g^_vanilla(x;θ))andMSE_A(g^_GRPO(θ))<MSE(g^_vanilla(θ)).\text{MSE}\_{A}(\widehat{g}\_{\rm GRPO}(x;\theta))<\text{MSE}(\widehat{g}\_{\text{vanilla}}(x;\theta))\quad\text{and}\quad\text{MSE}\_{A}(\widehat{g}\_{\rm GRPO}(\theta))<\text{MSE}(\widehat{g}\_{\text{vanilla}}(\theta)).

To conclude this section, we remark that Assumption 2 ensures that the oracle gradient estimator minimizes the MSE within the class of unbiased policy gradient estimators (Greensmith et al., 2004). This assumption is well-supported by the empirical success of modern RL algorithms such as advantage actor-critic and PPO, which prioritize the value function as the optimal baseline for variance reduction.

This section turns to policy optimization and investigates the properties of the policy learned by Algorithm 1. For a given policy π\pi, we evaluate its performance via the suboptimality gap, defined as the difference in the expected return between π\pi and the optimal policy:

Δ(π)=max⁡_θ∈ΘEπ_θ(Z)−Eπ(Z)\Delta(\pi)=\max\_{\theta\in\Theta}\mathbb{E}^{\pi\_{\theta}}(Z)-\mathbb{E}^{\pi}(Z)

By definition, a smaller gap indicates a policy closer to the optimal one. Additionally, the suboptimality gap measures only the quality of the final policy obtained at the last iteration. In the RL literature, an alternative metric is regret, which quantifies the cumulative difference between the optimal policy and the sequence of intermediate policies across iterations. However, we adopt the suboptimality gap because it better reflects practical LLM applications: once training is complete, only the final policy is deployed in practice. This criterion also aligns with the evaluation metric in deployment-efficient RL (Huang et al., 2022, e.g.,).

We begin with the following set of conditions under which we establish a finite-sample error bound for the suboptimality gap of the meta-algorithm in Lemma 6.

The expected return Eπ_θ(Z)\mathbb{E}^{\pi\_{\theta}}(Z) is LL-smooth with respect to θ\theta. That is, its gradient g(∙)g(\bullet) is differentiable and Lipschitz continuous with some constant L>0L>0 such that:

∥g(θ_1)−g(θ_2)∥≤L∥θ_1−θ_2∥,∀θ_1,θ_2∈Θ.\|g(\theta\_{1})-g(\theta\_{2})\|\leq L\|\theta\_{1}-\theta\_{2}\|,\quad\forall\theta\_{1},\theta\_{2}\in\Theta.

Additionally, the score function ∇_θlog⁡π_θ\nabla\_{\theta}\log\pi\_{\theta} is uniformly bounded and continuous in θ\theta.

Assumption 4 (Polyak-Lojasiewicz (PL) condition).
Section titled “Assumption 4 (Polyak-Lojasiewicz (PL) condition).”

There exists some constant μ>0\mu>0 such that

∥g(θ)∥2≥2μΔ(π_θ),∀θ∈Θ.\|g(\theta)\|^{2}\geq 2\mu\Delta(\pi\_{\theta}),\quad\forall\theta\in\Theta.(10)

The sequence of learning rates {η_i}_i≥1\{\eta\_{i}\}\_{i\geq 1} in Algorithm 1 satisfies either (a) a constant schedule where η_i=β\eta\_{i}=\beta for some 0<β<(2L)−10<\beta<(2L)^{-1}, or (b) an 1/i1/i schedule where η_i=i−1β\eta\_{i}=i^{-1}\beta for some constant β>(2μ)−1\beta>(2\mu)^{-1}.

The LL-smoothness condition (Assumption 3) is standard in the optimization literature (Nesterov, 2013, e.g.,). It requires the gradient of the expected return to be a Lipschitz continuous function of θ\theta. The PL condition (Assumption 4) is substantially weaker than the strong concavity condition commonly imposed in the literature (Boyd and Vandenberghe, 2004, e.g.,). Specifically, strong concavity requires a unique global optimizer and a strictly negative definite Hessian matrix ∇2_θEπ_θ(Z)\nabla^{2}\_{\theta}\mathbb{E}^{\pi\_{\theta}}(Z) – both requirements are likely violated in over-parameterized models such as LLMs.

The PL condition, to the contrary, accommodates landscapes with multiple global optimizers and singular Hessians. To see this, consider a hypothetical two-dimensional example where θ=(θ_1,θ_2)\theta=(\theta\_{1},\theta\_{2}), Θ=R2\Theta=\mathbb{R}^{2}, and the expected return is Eπ_θ(Z)=−θ_12\mathbb{E}^{\pi\_{\theta}}(Z)=-\theta\_{1}^{2}. Its Hessian matrix (−2000)\begin{pmatrix}-2&0\\ 0&0\end{pmatrix} has an eigenvalue of 00 and is therefore not negative definite, violating strong concavity. Nonetheless, its gradient is g(θ)=(−2θ_1,0)⊤g(\theta)=(-2\theta\_{1},0)^{\top}, which satisfies (10) for any μ≤2\mu\leq 2.

Finally, Assumption 5 considers two standard learning rate schedules. The constant schedule (a) is common in practical applications (Sheng et al., 2025). To the contrary, the 1/i1/i schedule (b) is motivated by stochastic approximation theory: it ensures that the suboptimality gap theoretically achieves the optimal convergence rate (Zhang, 2016).

Lemma 6 (Finite-sample sub-optimality gap).
Section titled “Lemma 6 (Finite-sample sub-optimality gap).”

Suppose Assumptions 1 and 3–5 hold. Suppose each C_i(b,g)C\_{i}^{(b,g)} in Algorithm 1 is either a function of X(b)X^{(b)} or a GRPO-type baseline in (4). Let M=sup⁡_θMSE(g^(θ))M=\sup\_{\theta}\textrm{MSE}(\widehat{g}(\theta)) denote the uniform upper bound on the MSE of this algorithm’s gradient estimator. Then for any n≥1n\geq 1, under the constant schedule (a), the output policy of π_θ_n\pi\_{\theta\_{n}} satisfies

E[Δ(π_θ_n)]≤(1−2μβ+Lμβ2)nE[Δ(π_θ_0)]+Lβ2M4μβ−2Lμβ2,\mathbb{E}[\Delta(\pi\_{\theta\_{n}})]\leq(1-2\mu\beta+L\mu\beta^{2})^{n}\mathbb{E}[\Delta(\pi\_{\theta\_{0}})]+\frac{L\beta^{2}M}{4\mu\beta-2L\mu\beta^{2}},

where the expectation is taken with respect to the randomness in the estimator θ_n\theta\_{n} and any randomness in the initial parameter θ_0\theta\_{0}. Under the 1/i1/i schedule (b), we have

E[Δ(π_θ_n)]≤max⁡((1+ϵ)Lβ2M(4μβ−2)n,cn),\mathbb{E}[\Delta(\pi\_{\theta\_{n}})]\leq\max\Big(\frac{(1+\epsilon)L\beta^{2}M}{(4\mu\beta-2)n},\frac{c}{n}\Big),

for any sufficiently small ϵ>0\epsilon>0, where cc is a positive constant depending only on (β,μ,L,ϵ)(\beta,\mu,L,\epsilon).

Lemma 6 provides a unified analysis for the meta-algorithm, covering vanilla, oracle, and GRPO-type estimators under both learning rate schedules. The bounds reveal that the sub-optimality gap: (i) scales with the smoothness constant LL; (ii) decreases with the PL constant μ\mu and the number of iterations nn; and (iii) is crucially governed by the MSE of the gradient estimator MM. As this MSE is the dominant factor (for the constant schedule) and the convergence rate constant (for the 1/i1/i schedule), the oracle property and optimality we established for the GRPO gradient estimator directly translates into the learned policy’s performance. By substituting the MSE bounds derived in Proposition 3 into Lemma 6, we can explicitly characterize how the group size GG and batch size BB affects the suboptimality gap, leading to the following scaling law for GRPO:

For GRPO-type algorithms, the sub-optimality upper bounds established in Lemma 6 depend on BB and GG through the following quantity

c_1B+c_2BG+c_3BG2,\frac{c\_{1}}{B}+\frac{c\_{2}}{BG}+\frac{c\_{3}}{BG^{2}},(11)

where the constants are given by c_1=sup⁡_θE∥g(X;θ)−g(θ)∥_22c\_{1}=\sup\_{\theta}\mathbb{E}\|g(X;\theta)-g(\theta)\|\_{2}^{2}, c_2=sup⁡_θtrace[Σ_oracle(θ)]c\_{2}=\sup\_{\theta}\text{trace}[\Sigma\_{\text{oracle}}(\theta)] and c_3=O(sup⁡_θE∥∇_θlog⁡π_θ(Y∣X)∥2)c\_{3}=O(\sup\_{\theta}\mathbb{E}\|\nabla\_{\theta}\log\pi\_{\theta}(Y|X)\|^{2}).

Under a fixed sampling budget N=BGN=BG per iteration or a total sampling budget N=nBG\bm{N}=nBG, the optimal group size G\*G^{\*} that minimizes the sub-optimality upper bounds is:

G\*=c_3c_1.G^{\*}=\sqrt{\frac{c\_{3}}{c\_{1}}}.(12)

In GRPO, sampling reasoning traces from the learning policy (Line 4 of Algorithm 1) is computationally expensive. With a fixed sampling budget, Equation (11) reveals a trade-off in the allocation of computational resources. A small GG allows for a larger batch size BB and more iterations nn, which reduces the first variance term in (11) and accelerates the convergence rates established in Lemma 6. Conversely, a large GG reduces the higher-order residual term (the third term in (11)).

Our scaling law proposed in (12) explicitly balances this trade-off. Crucially, the optimal group size G\*G^{\*} is universal: it is independent of the budget NN, the number of iterations nn and the learning rate schedule. Instead, G\*G^{\*} depends solely on the underlying data generating process and the geometry of the policy space. This makes our result highly practical for implementation, as the optimal group size remains constant for a given task regardless of the total compute available. We will verify this observation empirically in Section 5. While the constants c_ic\_{i} are formally defined as suprema over the parameter space, they may yield conservative theoretical bounds. In practice, these suprema can be relaxed by estimating the constants at a few representative parameter values (e.g., those of the reference model).

We remark that the aforementioned results apply only to upper bounds on the suboptimality gap. Although GRPO attains a sharper upper bound, this does not necessarily imply that it achieves a strictly smaller suboptimality gap. To rigorously establish its superior performance, a more refined characterization of its suboptimality gap – beyond bounds – is required. This motivates our study of its asymptotic distribution in Theorem 8 below.

Nonetheless, the asymptotic analysis presents substantial theoretical challenges. Most classical asymptotic results rely on the uniqueness of the population-level optimizer (i.e., a unique θ\*\theta^{\*} that maximizes Eπ_θ(Z)\mathbb{E}^{\pi\_{\theta}}(Z)) and the strict negative definiteness of the Hessian matrix H(θ\*)H(\theta^{\*}) at that optimum. In overparameterized models such as LLMs, both assumptions are inherently violated. This leads to two complications: (i) Parameter convergence is not well-defined in the classical sense: the estimators may oscillate within an optimal manifold of population-level maximizers and approach different maximizers across iterations. This lack of identifiability prevents the sequence of estimators from converging to a single fixed point. (ii) The parameter’s asymptotic distribution becomes analytically intractable, since the estimator fails to converge to a fixed point in the first place.

To address the first challenge, we shift our focus from point-wise convergence to set-wise convergence. We define Θ\*\Theta^{\*} as the set of all population-level maximizers,

Θ\*={θ∈Θ:θ∈arg⁡max⁡_θ\*∈ΘEπ_θ\*(Z)},\Theta^{\*}=\{\theta\in\Theta:\theta\in\arg\max\_{\theta^{\*}\in\Theta}\mathbb{E}^{\pi\_{\theta^{\*}}}(Z)\},

and characterize parameter convergence by the distance of the estimator θ_n\theta\_{n} to the set Θ\*\Theta^{\*},

d(θ_n,Θ\*)=inf⁡_θ\*∈Θ\*∥θ_n−θ\*∥.d(\theta\_{n},\Theta^{\*})=\inf\_{\theta^{\*}\in\Theta^{\*}}\|\theta\_{n}-\theta^{\*}\|.

We say the estimator θ_n\theta\_{n} is consistent if d(θ_n,Θ\*)→P0d(\theta\_{n},\Theta^{\*})\stackrel{{\scriptstyle P}}{{\to}}0 as n→∞n\to\infty. To address the second challenge, we recognize that while the parameter estimates are non-identifiable, the suboptimality gap remains identifiable. We thus analyze the asymptotic distribution of the suboptimality gap rather than the parameters themselves.

Consider the asymptotic regime where the number of iterations n→∞n\to\infty and other parameters such as the batch size BB and group size GG are constant. For this analysis, we adopt the 1/i1/i schedule for the learning rate. This is motivated by Lemma 6: under the constant learning rate schedule, the sub-optimality gap might not converge to zero when BB and GG are fixed. While one could theoretically allow BB and GG to grow with nn or explore alternative decay schedules, these configurations introduce substantial technical complexity into the proofs without altering our major findings. We focus on this specific regime to more clearly elucidate the performance of GRPO, and impose the following conditions.

The parameter space Θ\Theta is compact.

Θ\*\Theta^{\*} is closed and convex, and all Hessian matrices at Θ\*\Theta^{\*} share the same rank rr. Moreover, there exists an orthogonal projection matrix QQ and a strictly negative definite matrix H\*H^{\*} such that Q⊤Q=I_rQ^{\top}Q=I\_{r} and Q⊤H(θ\*)Q=H\*,∀θ\*∈Θ\*Q^{\top}H(\theta^{\*})Q=H^{\*},\forall\theta^{\*}\in\Theta^{\*}.

Assumption 8 (Convergence of covariance matrix).
Section titled “Assumption 8 (Convergence of covariance matrix).”

There exists a (possibly random) matrix Γ\Gamma such that the following holds almost surely as n→∞n\to\infty,

$$\mathbb{E}\left{(\widehat{g}(\theta_{n})-g(\theta_{n}))(\widehat{g}(\theta_{n})-g(\theta_{n}))^{\top}\Big\theta_{n}\right}\to\Gamma.$$

Let Π_Θ\*\Pi\_{\Theta^{\*}} denote the projection operator such that Π_Θ\*(θ):=arg⁡min⁡_x∈Θ\*d(θ,x)\Pi\_{\Theta^{\*}}(\theta):=\arg\min\_{x\in\Theta^{\*}}d(\theta,x), we have

⟨g(θ),Π_Θ\*(θ)−θ⟩≥μd2(θ,Θ\*),∀θ∈Θ.\langle g(\theta),\Pi\_{\Theta^{\*}}(\theta)-\theta\rangle\geq\mu d^{2}(\theta,\Theta^{\*}),\quad\forall\theta\in\Theta.

Assumption 6 is mild and commonly imposed in the literature (Schmidt-Hieber, 2020, e.g.,). Assumption 7 relaxes the standard identifiability condition by allowing the population parameter to form a connected manifold rather than a unique point. It assumes that, after projection onto a suitable rr-dimensional subspace, the parameter becomes identifiable with a strictly negative definite Hessian H\*H^{\*}. This effectively decomposes the parameter space into an identifiable component defined through the transformation matrix QQ and a non-identifiable component along its orthogonal complement. Assumption 8 is not overly restrictive, as the limiting matrix Γ\Gamma is allowed to be random. The resulting asymptotic distribution can be interpreted as a mixture distribution: first, Γ\Gamma is realized, and then the limiting distribution is obtained conditionally on Γ\Gamma. Finally, Assumption 9 imposes a weak strong concavity (WSC) condition. It is weaker than strong concavity (which entails a unique optimizer) but stronger than PL (Assumption 4). In contrast to strong concavity, WSC does not require the objective function to be globally concave in all directions, but only along directions that point toward the optimal set Θ\*\Theta^{\*}. Thus, the objective function Eπ_θ(Z)\mathbb{E}^{\pi\_{\theta}}(Z) may remain flat along other directions, allowing multiple optimizers to exist. Under the LL-smoothness condition (Assumption 3), it can be shown that WSC implies the PL condition.

Theorem 8 (Consistency & asymptotic distribution).
Section titled “Theorem 8 (Consistency & asymptotic distribution).”

Suppose Assumptions 1, 3, 4, 5(b) and 6 hold. Suppose each C_i(b,g)C\_{i}^{(b,g)} in Algorithm 1 is either a function of X(b)X^{(b)} or a GRPO-type baseline in (4). Then the estimator θ_n\theta\_{n} is consistent in the sense that d(θ_n,Θ\*)→P0d(\theta\_{n},\Theta^{\*})\stackrel{{\scriptstyle P}}{{\to}}0.

Suppose Assumptions 7 – 9 hold additionally. Then the output policy satisfies

nΔ(π_θ_n)→d∑_k=1rw_kχ2_1,k,n\Delta(\pi\_{\theta\_{n}})\stackrel{{\scriptstyle d}}{{\to}}\sum\_{k=1}^{r}w\_{k}\chi^{2}\_{1,k},

where rr is the rank of the Hessian matrix, {χ_1,k2}_k=1r\{\chi\_{1,k}^{2}\}\_{k=1}^{r} are i.i.d. χ_12\chi\_{1}^{2} random variables, and {w_k}_k=1r\{w\_{k}\}\_{k=1}^{r} are positive weights arranged in non-increasing order, determined by the asymptotic covariance matrix of the gradient estimators (see step (iv) of the proof of Theorem 8 in the Supplementary Material).

Theorem 8 is novel in two respects: (i) It establishes the asymptotic distribution of the suboptimality gap for policy gradient estimators as a weighted sum of independent χ2\chi^{2} random variables, whereas most existing literature focuses primarily on finite-sample error bounds. (ii) It derives this limiting distribution in the overparameterized regime, which goes beyond the classical assumption of a unique optimizer with a non-singular Hessian.

Nonetheless, establishing such a result in the overparameterized regime is non-trivial. While classical results have established CLTs for parameter estimates in stochastic gradient algorithms (Zhang, 2016, e.g.,), these results do not directly apply due to overparameterization. Our key idea is to first establish a CLT for the subset of parameters corresponding to directions in which the Hessian is negative definite. A second-order Taylor expansion then shows that the suboptimality gap is driven entirely by the asymptotic behavior of these directions, which facilitates the derivation of its limit.

As mentioned earlier, the weights w_kw\_{k}s are determined by the covariance matrices of the gradient estimators. The oracle and optimality properties of GRPO gradient estimators (Corollaries 4 and 5) directly affect these weights, which in turn establishes the oracle and optimality properties of the GRPO policy. We summarize these results in Corollaries 9 and 10 below.

Corollary 9 (Oracle property of the policy).
Section titled “Corollary 9 (Oracle property of the policy).”

Suppose the assumptions in Theorem 8 hold. Suppose the projected covariance matrix Ω(θ\*)=Cov(Q⊤g^(θ\*))\Omega(\theta^{\*})=\textrm{Cov}(Q^{\top}\widehat{g}(\theta^{\*})) depends on θ\*∈Θ\*\theta^{\*}\in\Theta^{\*} only through Q⊤θ\*Q^{\top}\theta^{\*} and is non-singular. Then GRPO’s weights and oracle weights satisfy w_k,GRPO−w_k,oracle=O(G−2)w\_{k,\rm GRPO}-w\_{k,\rm oracle}=O(G^{-2}). Consequently, the suboptimality gap of GRPO is asymptotically equivalent to that of the oracle algorithm as G→∞G\to\infty.

Suppose the assumptions in Corollary 9 hold. Suppose Q⊤∇_θlog⁡π_θ\*(Y∣X)[∇_θlog⁡π_θ\*(Y∣X)]⊤QQ^{\top}\nabla\_{\theta}\log\pi\_{\theta^{\*}}(Y|X)[\nabla\_{\theta}\log\pi\_{\theta^{\*}}(Y|X)]^{\top}Q is conditionally uncorrelated with ZZ given XX, for some θ\*∈Θ\*\theta^{\*}\in\Theta^{\*}. Then for any meta-algorithm whose baseline term is a function of the prompt only, its weights satisfy w_k≥w_k,oracle+O(G−2)w\_{k}\geq w\_{k,\rm oracle}+O(G^{-2}). Consequently, as G→∞G\to\infty, its suboptimality gap is asymptotically no smaller than that of GRPO.

We conduct two sets of experiments in this section to validate our theoretical findings. In Section 5.1, we empirically compare GRPO with the vanilla and oracle algorithms in terms of gradient evaluation, to verify the oracle property of the GRPO gradient estimator (Corollary 4) and its superiority over the vanilla estimator (Corollary 5). In Section 5.2, we investigate the optimal group size for policy optimization, to verify the universality of the optimal group size G\*G^{\*} established by our scaling law (Theorem 7).

5.1 Oracle property in gradient evaluation

Section titled “5.1 Oracle property in gradient evaluation”

Figure 4: MSEs of three policy gradient estimators (vanilla, GRPO-type, and oracle) under three model configurations (ba

Figure 4: MSEs of three policy gradient estimators (vanilla, GRPO-type, and oracle) under three model configurations (ba

Figure 4: MSEs of three policy gradient estimators (vanilla, GRPO-type, and oracle) under three model configurations (ba

Figure 4: MSEs of three policy gradient estimators (vanilla, GRPO-type, and oracle) under three model configurations (base, instruct and in-context learning (ICL)) for different group sizes. Error bars represent 95% confidence intervals of the empirically estimated MSEs.

We first evaluate the MSE of the three gradient estimators introduced in Section 4.1: vanilla, GRPO-type, and oracle. To conduct this comparison, we construct a synthetic arithmetic dataset consisting of 500 questions. Each question is a medium-difficulty integer arithmetic problem, sampled uniformly from five categories: (i) two-step addition or subtraction, (ii) three-step addition or subtraction, (iii) single-step multiplication, (iv) integer division, and (v) addition or subtraction with parentheses. For each generated problem, we record the ground-truth solution. We then query an LLM (the prompt is provided in Section C of the Supplementary Material), extract the solution from its output, and compute a binary reward indicating whether the solution equals the ground truth.

We evaluate gradients aggregated over the 500 questions (see Equation (8)) with respect to three target policies, derived from three models with progressively stronger reasoning capabilities: (i) Qwen/Qwen2.5-0.5B Base model, (ii) Qwen/Qwen2.5-0.5B Instruct model, and (iii) Qwen/Qwen2.5-0.5B Instruct model with in-context learning (Brown et al., 2020, ICL,). For the third model, in addition to the prompt, we provide a few-shot in-context demonstration containing several arithmetic questions with solutions (see Section C of the Supplementary Material). These models produce target policies of different quality: the base model is expected to achieve the lowest accuracy, while the ICL model attains the highest. We also consider multiple groups sizes G∈{4,8,16,32,64}G\in\{4,8,16,32,64\} to estimate the gradient and use Monte Carlo simulations to evaluate each gradient estimator’s MSE and report their associated 95%95\% confidence interval in Figure 4.

We make the following observations:

    Across all combinations of group size and target policy, the vanilla estimator (blue line) exhibits the largest MSE, reflecting the well-known high-variance nature of REINFORCE. In contrast, the GRPO-type estimator (orange line) achieves significantly smaller MSEs in all cases, which verifies the second assertion of Corollary 5 and demonstrates its superiority over the vanilla estimator.

    The oracle estimator (green line) achieves the smallest MSE, as expected. Nevertheless, with a moderately large group size (G=8G=8), the MSE of the GRPO-type estimator is already close to that of the oracle estimator. As GG increases further (e.g., G=32G=32 or 6464), the two estimators become nearly indistinguishable, confirming the oracle property in Corollary 4.

    Finally, the MSE of all estimators decreases as the group size GG increases. It also decreases with the model’s reasoning capability. This behavior is expected as well: as the model becomes stronger, its outputs are more likely to be correct and thus more deterministic. Conversely, weaker models generate more random outputs, which enlarges the variance of the gradient estimator.

5.2 Optimal group size for policy optimization

Section titled “5.2 Optimal group size for policy optimization”

As shown in our theoretical analysis and empirical results (Section 5.2), increasing the group size GG reduces the MSE of the GRPO-type gradient estimator. However, a larger GG also increases computational cost, as more outputs must be sampled per prompt. Under a fixed sampling budget (i.e., a fixed total number of sampled outputs), our scaling law in Theorem 7 shows that the optimal group size G\*G^{\*} depends only on the data and the policy model, and is universal with respect to other parameters such as the number of iterations nn and the total budget per prompt NN. In this section, we verify this universality using two widely adopted math reasoning benchmark datasets, GSM8K (Cobbe et al., 2021) and MATH (Hendrycks et al., 2021).

We first utilize GSM8K to examine the universality of G\*G^{\*} across different training iterations nn. Specifically, we fix the total sampling budget per prompt at N=BG=1024N=BG=1024 and evaluate six candidate group sizes: G∈{4,8,16,32,64,128}G\in\{4,8,16,32,64,128\}. For each choice of GG, we apply GRPO to fine-tune the Qwen2.5-1.5B Instruct model and calculate its test accuracy, defined as the percentage of correctly solved problems in the test dataset. In addition to reporting the final accuracy at the last iteration, we also record accuracy at intermediate checkpoints where n∈{200,300,400,600,800}n\in\{200,300,400,600,800\}. Given the inherent stochasticity of RLVR – arising, for example, from randomness in sampled outputs – which often leads to high variance across runs, we repeat the training five times for each value of GG. We report the mean accuracy along with its associated confidence interval in Figure 5. We note that much of the existing literature reports results from a single training run due to the substantial computational cost of training, which can lead to results that are difficult to reproduce.

Figure 5: Test accuracy of GRPO-fine-tuned models at different training steps with a fixed sampling budget of N = B × G

Figure 5: Test accuracy of GRPO-fine-tuned models at different training steps with a fixed sampling budget of N = B × G

Figure 5: Test accuracy of GRPO-fine-tuned models at different training steps with a fixed sampling budget of N = B × G

Figure 5: Test accuracy of GRPO-fine-tuned models at different training steps with a fixed sampling budget of N = B × G

Figure 5: Test accuracy of GRPO-fine-tuned models at different training steps with a fixed sampling budget of N = B × G

Figure 5: Test accuracy of GRPO-fine-tuned models at different training steps with a fixed sampling budget of N = B × G

Figure 5: Test accuracy of GRPO-fine-tuned models at different training steps with a fixed sampling budget of N = B × G = 1024 N=B\times G=1024 per prompt. Both training and evaluation are conducted on GSM8K. Each curve shows accuracy as a function of the group size G ∈ { 4 , 8 , 16 , 32 , 64 , 128 } G\in{4,8,16,32,64,128} . Results are averaged over five independent runs, with shaded regions visualizing 95% confidence bands.

We make the following observations from Figure 5:

    Except at training step n=200n=200, the test accuracy generally increases with the group size GG and then decreases as GG becomes larger. This trend is consistent with the scaling law in Theorem 7. When GG is small, the second-order residual term can be large, inflating the variance of the gradient estimator. Conversely, when GG is large, fixing the total sampling budget forces the batch size BB to be small, which enlarges the first variance term in (11). As a result, the optimal group size G\*G^{\*} lies between these two extremes.

    With the exception of n=200n=200, the optimal group size is consistently G\*=32G^{\*}=32 across all training steps, demonstrating the universality of G\*G^{\*} with respect to nn. For n=300n=300 and n=800n=800, the performance with G=16G=16 is very close to that with G=32G=32. However, its accuracy deteriorates more noticeably for other values of nn.

    Finally, the differences in test accuracy across different values of GG are mostly statistically insignificant, as only five independent runs are conducted for each setting. This limitation is due to the high computational cost of training. While increasing the number of runs could yield more statistically meaningful conclusions, doing so is not computationally feasible at this stage.

We next use the MATH dataset to assess the universality of the optimal group size G\*G^{\*} across different sampling budgets NN. The procedure closely follows that used for GSM8K: we consider the same candidate group sizes G∈{4,8,16,32,64,128}G\in\{4,8,16,32,64,128\} and train the model separately for each choice of GG. The differences are that, for MATH, we fine-tune a larger and more powerful Qwen2.5-Math-7B model, and we evaluate three different sampling budgets, N∈{1024,2048,4096}N\in\{1024,2048,4096\}. Test accuracies of the resulting trained models are reported in Table 2.

It can be seen that the optimal group size is mostly 64, but increases to 128 as the sampling budget grows. We suspect this shift is due to the finite number of prompts, which remains constant with respect to the batch size BB and group size GG, and is not accounted for in our theoretical analysis for simplicity. Meanwhile, when the sampling budget is fixed at 1024, the optimal G\*G^{\*} is larger than that for GSM8K. This shift is expected, as the constants in (11) depend on the data and the model, and thus the optimal G\*G^{\*} varies accordingly. These results suggest that larger models may benefit from a larger group size during training.

Table 2: Test accuracy of GRPO-fine-tuned models at the final training step. Each row reports accuracy as a function of the group size G∈4,8,16,32,64,128G\in{4,8,16,32,64,128} with a fixed sampling budget per prompt; the sampling budget varies across rows. Both training and evaluation are conducted on MATH. Due to the high computational cost of training a 7B model, results are reported from a single run, with the highest accuracy highlighted in bold.

Sampling budget   Group size GG

  4   8   16   32   64   128

  1024   0.7677   0.7491   0.7753   0.7627   0.7817   0.7743

  2048   0.7703   0.7679   0.7697   0.7793   0.7819   0.7665

  4096   0.7691   0.7713   0.7701   0.7673   0.7703   0.7757

This paper provides a rigorous theoretical analysis of GRPO, a cornerstone algorithm for enhancing the reasoning capabilities of LLMs. We show that GRPO is a statistically principled policy gradient algorithm whose gradient estimator naturally forms a U-statistic (Lemma 1). Leveraging Hoeffding’s decomposition, we characterize its MSE (Theorem 2, Proposition 3) and establish both oracle (Corollary 4) and optimality (Corollary 5) properties. For policy optimization, we derive explicit bounds on GRPO’s suboptimality gap (Lemma 6), leading to a scaling law that informs the optimal choice of group size (Theorem 7). We characterize the asymptotic distribution of the suboptimality gap (Theorem 8), confirming GRPO’s oracle (Corollary 9) and optimality (Corollary 10) properties in policy learning. We further extend these results to practical settings by accommodating reward normalization, importance sampling, and KL-divergence penalties (Lemma 11, Theorem 12, Proposition 13). Finally, we empirically validate GRPO’s gradient estimator’s oracle and optimality properties (Figure 4), and verify our scaling law with respect to group size GG, demonstrating its universality across training iterations (Figure 5) and sampling budgets (Table 2).

  • Ahmadian et al. (2024) A. Ahmadian, C. Cremer, M. Gallé, M. Fadaee, J. Kreutzer, O. Pietquin, A. Üstün, and S. 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), pp. 12248–12267. Cited by: item 1.
  • Aminian et al. (2025) G. Aminian, A. R. Asadi, I. Shenfeld, and Y. Mroueh KL-regularized rlhf with multiple reference models: exact solutions and sample complexity. In Advances in Neural Information Processing Systems (NeurIPS), Vol. 38. External Links: Link Cited by: item 4.
  • Andrychowicz et al. (2020) O. M. Andrychowicz, B. Baker, M. Chociej, R. Jozefowicz, B. McGrew, J. Pachocki, A. Petron, M. Plappert, G. Powell, A. Ray, et al. Learning dexterous in-hand manipulation. The International Journal of Robotics Research 39 (1), pp. 3–20. Cited by: item 2.
  • Boyd and Vandenberghe (2004) S. Boyd and L. Vandenberghe Convex optimization. Cambridge university press. Cited by: §4.2.
  • Brown et al. (2020) T. Brown, B. Mann, N. Ryder, M. Subbiah, J. D. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, et al. Language models are few-shot learners. Advances in neural information processing systems 33, pp. 1877–1901. Cited by: §5.1.
  • Chakraborty and Moodie (2013) B. Chakraborty and E. E. Moodie Statistical methods for dynamic treatment regimes. Springer-Verlag. doi 10 (978-1), pp. 4–1. Cited by: §2.1.
  • Chen et al. (2024) E. Y. Chen, R. Song, and M. I. Jordan Reinforcement learning in latent heterogeneous environments. Journal of the American Statistical Association 119 (548), pp. 3113–3126. Cited by: §2.1.
  • Chen et al. (2021) L. Chen, K. Lu, A. Rajeswaran, K. Lee, A. Grover, M. Laskin, P. Abbeel, A. Srinivas, and I. Mordatch Decision transformer: reinforcement learning via sequence modeling. In Advances in Neural Information Processing Systems, pp. 15084–15097. Cited by: item 2.
  • Chen et al. (2025) M. Chen, G. Chen, W. Wang, and Y. Yang Seed-grpo: semantic entropy enhanced grpo for uncertainty-aware policy optimization. arXiv preprint arXiv:2505.12346. Cited by: item 2.
  • Cheng et al. (2025) D. Cheng, S. Huang, X. Zhu, B. Dai, W. X. Zhao, Z. Zhang, and F. Wei Reasoning with exploration: an entropy perspective. arXiv preprint arXiv:2506.14758. Cited by: item 2.
  • Chowdhury et al. (2024) S. R. Chowdhury, A. Kini, and N. Natarajan Provably robust dpo: aligning language models with noisy feedback. arXiv preprint arXiv:2403.00409. Cited by: item 4.
  • Christiano et al. (2017) P. F. Christiano, J. Leike, T. Brown, M. Martic, S. Legg, and D. Amodei Deep reinforcement learning from human preferences. In Advances in Neural Information Processing Systems, pp. 4299–4307. Cited by: §1, item 4.
  • Chu et al. (2025) X. Chu, H. Huang, X. Zhang, F. Wei, and Y. Wang Gpg: a simple and strong reinforcement learning baseline for model reasoning. arXiv preprint arXiv:2504.02546. Cited by: item 1, §3.2.
  • Cobbe et al. (2021) K. Cobbe, V. Kosaraju, M. Bavarian, M. Chen, H. Jun, L. Kaiser, M. Plappert, J. Tworek, J. Hilton, R. Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168. Cited by: §5.2.
  • Dabney et al. (2018) W. Dabney, M. Rowland, M. Bellemare, and R. Munos Distributional reinforcement learning with quantile regression. In Proceedings of the AAAI conference on artificial intelligence, Vol. 32. Cited by: item 2.
  • Dai et al. (2025a) M. Dai, S. Liu, and Q. Si Stable reinforcement learning for efficient reasoning. arXiv preprint arXiv:2505.18086. Cited by: item 2.
  • Dai et al. (2025b) R. Dai, L. Song, H. Liu, Z. Liang, D. Yu, H. Mi, Z. Tu, R. Liu, T. Zheng, H. Zhu, et al. CDE: curiosity-driven exploration for efficient reinforcement learning in large language models. In The 5th Workshop on Mathematical Reasoning and AI at NeurIPS 2025, Cited by: item 3.
  • Davis and Recht (2025) D. Davis and B. Recht What is the objective of reasoning with reinforcement learning?. arXiv preprint arXiv:2510.13651. Cited by: Appendix A, §2.2.
  • Ding and Ye (2026) Z. Ding and W. Ye TreeGRPO: tree-advantage GRPO for online RL post-training of diffusion models. In The Fourteenth International Conference on Learning Representations, External Links: Link Cited by: §1.
  • Ernst et al. (2005) D. Ernst, P. Geurts, and L. Wehenkel Tree-based batch mode reinforcement learning. Journal of Machine Learning Research 6. Cited by: item 1.
  • Ertefaie and Strawderman (2018) A. Ertefaie and R. L. Strawderman Constructing dynamic treatment regimes over indefinite time horizons. Biometrika 105 (4), pp. 963–977. Cited by: §2.1.
  • Fan et al. (2017) C. Fan, W. Lu, R. Song, and Y. Zhou Concordance-assisted learning for estimating optimal individualized treatment regimes. Journal of the Royal Statistical Society: Series B (Statistical Methodology) 79 (5), pp. 1565–1582. Cited by: §2.3.
  • Fan et al. (2020) J. Fan, Z. Wang, Y. Xie, and Z. Yang A theoretical analysis of deep q-learning. In Learning for dynamics and control, pp. 486–489. Cited by: item 2.
  • Feng et al. (2023) X. Feng, Y. Jiao, L. Kang, B. Zhang, and F. Zhou Over-parameterized deep nonparametric regression for dependent data with its applications to reinforcement learning. Journal of Machine Learning Research 24 (383), pp. 1–40. Cited by: item 2.
  • Gazi et al. (2026) A. H. Gazi, Y. Guo, D. Gao, Z. Xu, K. W. Zhang, and S. A. Murphy Statistical reinforcement learning in the real world: a survey of challenges and future directions. arXiv preprint arXiv:2601.15353. Cited by: §2.1.
  • Ge et al. (2025) L. Ge, H. Cai, R. Wan, Y. Xu, and R. Song A review of causal decision making. arXiv preprint arXiv:2502.16156. Cited by: §2.1.
  • Greensmith et al. (2004) E. Greensmith, P. L. Bartlett, and J. Baxter Variance reduction techniques for gradient estimates in reinforcement learning. Journal of Machine Learning Research 5 (Nov), pp. 1471–1530. Cited by: §4.1.
  • Guo et al. (2025) D. Guo, D. Yang, H. Zhang, J. Song, P. Wang, Q. Zhu, R. Xu, R. Zhang, S. Ma, X. Bi, et al. DeepSeek-r1 incentivizes reasoning in llms through reinforcement learning. Nature 645 (8081), pp. 633–638. Cited by: §1, §2.2.
  • Han (1987) A. K. Han Non-parametric analysis of a generalized regression model: the maximum rank correlation estimator. Journal of Econometrics 35 (2), pp. 303–316. Cited by: §2.3.
  • Hao et al. (2025) Y. Hao, L. Dong, X. Wu, S. Huang, Z. Chi, and F. Wei On-policy rl with optimal reward baseline. arXiv preprint arXiv:2505.23585. Cited by: item 1.
  • Hendrycks et al. (2021) D. Hendrycks, C. Burns, S. Kadavath, A. Arora, S. Basart, E. Tang, D. Song, and J. Steinhardt Measuring mathematical problem solving with the math dataset. In Thirty-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track (Round 2), Cited by: §5.2.
  • Hoeffding (1948) W. Hoeffding A class of statistics with asymptotically normal distribution. The Annals of Mathematical Statistics 19 (3), pp. 293–325. Cited by: §1, §2.3.
  • Hu et al. (2025) J. Hu, J. K. Liu, and W. Shen Reinforce++: an efficient rlhf algorithm with robustness to both prompt and reward models. arXiv preprint arXiv:2501.03262. Cited by: item 1.
  • Huang et al. (2022) J. Huang, J. Chen, L. Zhao, T. Qin, N. Jiang, and T. Liu Towards deployment-efficient reinforcement learning: lower bound and optimality. In International Conference on Learning Representations, Cited by: §4.2.
  • Jaech et al. (2024) A. Jaech, A. Kalai, A. Lerer, A. Richardson, A. El-Kishky, A. Low, A. Helyar, A. Madry, A. Beutel, A. Carney, et al. Openai o1 system card. arXiv preprint arXiv:2412.16720. Cited by: §1.
  • Jiang and Li (2016) N. Jiang and L. Li Doubly robust off-policy value evaluation for reinforcement learning. In International conference on machine learning, pp. 652–661. Cited by: item 3.
  • Jiang (2024) N. Jiang A note on loss functions and error compounding in model-based reinforcement learning. arXiv preprint arXiv:2404.09946. Cited by: §2.1.
  • Jin et al. (2025) Y. Jin, Z. Ren, Z. Yang, and Z. Wang Policy learning “without” overlap: pessimism and generalized empirical bernstein’s inequality. The Annals of Statistics 53 (4), pp. 1483–1512. Cited by: §2.1.
  • Jin et al. (2021) Y. Jin, Z. Yang, and Z. Wang Is pessimism provably efficient for offline rl?. In International conference on machine learning, pp. 5084–5096. Cited by: item 3.
  • Jordan et al. (2024) K. Jordan, Y. Jin, V. Boza, Y. Jiacheng, F. Cesista, L. Newhouse, and J. Bernstein Muon: an optimizer for hidden layers in neural networks, 2024. URL https://kellerjordan. github. io/posts/muon 6 (3), pp. 4. Cited by: Appendix A.
  • Kallus and Uehara (2022) N. Kallus and M. Uehara Efficiently breaking the curse of horizon in off-policy evaluation with double reinforcement learning. Operations Research 70 (6), pp. 3282–3302. Cited by: item 3.
  • Konda and Tsitsiklis (1999) V. Konda and J. Tsitsiklis Actor-critic algorithms. Advances in neural information processing systems 12. Cited by: item 1.
  • Kosorok and Laber (2019) M. R. Kosorok and E. B. Laber Precision medicine. Annual review of statistics and its application 6 (1), pp. 263–286. Cited by: §2.1.
  • Kumar et al. (2019) A. Kumar, J. Fu, M. Soh, G. Tucker, and S. Levine Stabilizing off-policy q-learning via bootstrapping error reduction. Advances in neural information processing systems 32. Cited by: item 3.
  • Lai and Robbins (1985) T. L. Lai and H. Robbins Asymptotically efficient adaptive allocation rules. Advances in applied mathematics 6 (1), pp. 4–22. Cited by: §3.1.
  • Lambert et al. (2025) N. Lambert, J. Morrison, V. Pyatkin, S. Huang, H. Ivison, F. Brahman, L. J. V. Miranda, A. Liu, N. Dziri, X. Lyu, Y. Gu, S. Malik, V. Graf, J. D. Hwang, J. Yang, R. L. Bras, O. Tafjord, C. Wilhelm, L. Soldaini, N. A. Smith, Y. Wang, P. Dasigi, and H. Hajishirzi Tulu 3: pushing frontiers in open language model post-training. In Second Conference on Language Modeling, External Links: Link Cited by: §1, §2.2.
  • Lee et al. (2024) S. J. Lee, W. W. Sun, and Y. Liu Low-rank contextual reinforcement learning from heterogeneous human feedback. arXiv preprint arXiv:2412.19436. Cited by: §2.1.
  • Levine et al. (2020) S. Levine, A. Kumar, G. Tucker, and J. Fu Offline reinforcement learning: tutorial, review, and perspectives on open problems. arXiv preprint arXiv:2005.01643. Cited by: item 3.
  • Li et al. (2024a) G. Li, L. Shi, Y. Chen, Y. Chi, and Y. Wei Settling the sample complexity of model-based offline reinforcement learning. The Annals of Statistics 52 (1), pp. 233–260. Cited by: §2.1.
  • Li et al. (2025a) S. Li, Z. Zhou, W. Lam, C. Yang, and C. Lu Repo: replay-enhanced policy optimization. arXiv preprint arXiv:2506.09340. Cited by: item 3.
  • Li et al. (2025b) Y. Li, E. Han, Y. Hu, Z. Qi, Y. Cui, and R. Zhu Reinforcement learning with continuous actions under unmeasured confounding. Journal of the American Statistical Association To appear. Cited by: §2.1.
  • Li et al. (2023) Z. Li, J. Chen, E. Laber, F. Liu, and R. Baumgartner Optimal treatment regimes: a review and empirical comparison. International Statistical Review 91 (3), pp. 427–463. Cited by: §2.1.
  • Li et al. (2024b) Z. Li, T. Xu, Y. Zhang, Z. Lin, Y. Yu, R. Sun, and Z. Luo ReMax: a simple, effective, and efficient reinforcement learning method for aligning large language models. In Proceedings of the 41st International Conference on Machine Learning, ICML’24. Cited by: item 1.
  • Liang et al. (2018) S. Liang, W. Lu, R. Song, and L. Wang Sparse concordance-assisted learning for optimal treatment decision. Journal of Machine Learning Research 18 (202), pp. 1–26. Cited by: §2.3.
  • Liao et al. (2022) P. Liao, Z. Qi, R. Wan, P. Klasnja, and S. A. Murphy Batch policy learning in average reward markov decision processes. Annals of statistics 50 (6), pp. 3364. Cited by: §2.1.
  • Lin et al. (2025) Z. Lin, M. Lin, Y. Xie, and R. Ji Cppo: accelerating the training of group relative policy optimization-based reasoning models. arXiv preprint arXiv:2503.22342. Cited by: item 3.
  • Liu et al. (2025a) K. Liu, Q. Long, Z. Shi, W. J. Su, and J. Xiao Statistical impossibility and possibility of aligning llms with human preferences: from condorcet paradox to nash equilibrium. arXiv preprint arXiv:2503.10990. Cited by: §2.1.
  • Liu et al. (2017) L. Liu, R. Mukherjee, W. K. Newey, and J. M. Robins Semiparametric efficient empirical higher order influence function estimators. arXiv preprint arXiv:1705.07577. Cited by: §2.3.
  • Liu et al. (2025b) P. Liu, J. Lu, and W. W. Sun Uncertainty quantification for large language model reward learning under heterogeneous human feedback. arXiv preprint arXiv:2512.03208. Cited by: §2.1.
  • Liu et al. (2024) P. Liu, C. Shi, and W. W. Sun Dual active learning for reinforcement learning from human feedback. arXiv preprint arXiv:2410.02504. Cited by: item 4.
  • Liu et al. (2018) Q. Liu, L. Li, Z. Tang, and D. Zhou Breaking the curse of horizon: infinite-horizon off-policy estimation. In Advances in Neural Information Processing Systems (NeurIPS), Vol. 31. Cited by: item (ii), item 3.
  • Liu et al. (2025c) Z. Liu, C. Chen, W. Li, P. Qi, T. Pang, C. Du, W. S. Lee, and M. Lin Understanding r1-zero-like training: a critical perspective. In Second Conference on Language Modeling, Cited by: item 1, §2.2, §3.2.
  • Lu et al. (2025) N. Lu, E. X. Fang, and J. Lu Contextual online uncertainty-aware preference learning for human feedback. arXiv preprint arXiv:2504.19342. Cited by: §2.1.
  • Luckett et al. (2020) D. J. Luckett, E. B. Laber, A. R. Kahkoska, D. M. Maahs, E. Mayer-Davis, and M. R. Kosorok Estimating dynamic treatment regimes in mobile health using v-learning. Journal of the American Statistical Association 115 (530), pp. 692. Cited by: §2.1.
  • Ma et al. (2025) T. Ma, J. Zhu, H. Cai, Z. Qi, Y. Chen, C. Shi, and E. B. Laber Sequential knockoffs for variable selection in reinforcement learning. Journal of the American Statistical Association accepted. Cited by: §2.1.
  • Mnih et al. (2016) V. Mnih, A. P. Badia, M. Mirza, A. Graves, T. Lillicrap, T. Harley, D. Silver, and K. Kavukcuoglu Asynchronous methods for deep reinforcement learning. In International Conference on Machine Learning, pp. 1928–1937. Cited by: item 2, §3.2.
  • Mnih et al. (2015) V. Mnih, K. Kavukcuoglu, D. Silver, A. A. Rusu, J. Veness, M. G. Bellemare, A. Graves, M. Riedmiller, A. K. Fidjeland, G. Ostrovski, et al. Human-level control through deep reinforcement learning. nature 518 (7540), pp. 529–533. Cited by: item 2.
  • Munos et al. (2023) R. Munos, M. Valko, D. Calandriello, M. G. Azar, M. Rowland, Z. D. Guo, Y. Tang, M. Geist, T. Mesnard, A. Michi, et al. Nash learning from human feedback. arXiv preprint arXiv:2312.00886 18. Cited by: item 4.
  • Murphy (2003) S. A. Murphy Optimal dynamic treatment regimes. Journal of the Royal Statistical Society Series B: Statistical Methodology 65 (2), pp. 331–355. Cited by: §2.1.
  • Nesterov (2013) Y. Nesterov Introductory lectures on convex optimization: a basic course. Vol. 87, Springer Science & Business Media. Cited by: §4.2.
  • Nolan and Pollard (1987) D. Nolan and D. Pollard U-processes: rates of convergence. The Annals of Statistics 15 (2), pp. 780–799. Cited by: §2.3.
  • Ouyang et al. (2022) L. Ouyang, J. Wu, X. Jiang, D. Almeida, C. Wainwright, P. Mishkin, C. Zhang, S. Agarwal, K. Slama, A. Ray, et al. Training language models to follow instructions with human feedback. In Advances in neural information processing systems, pp. 27730–27744. Cited by: §1, item 2, item 4.
  • Pang and Jin (2025) L. Pang and R. Jin On the theory and practice of grpo: a trajectory-corrected approach with fast convergence. arXiv preprint arXiv:2508.02833. Cited by: item 1, §2.2.
  • Qian et al. (2025) C. Qian, E. C. Acikgoz, Q. He, H. WANG, X. Chen, D. Hakkani-Tür, G. Tur, and H. Ji ToolRL: reward is all tool learning needs. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, External Links: Link Cited by: §1.
  • Qian and Murphy (2011) M. Qian and S. A. Murphy Performance guarantees for individualized treatment rules. Annals of statistics 39 (2), pp. 1180. Cited by: §2.1.
  • Rafailov et al. (2023) R. Rafailov, A. Sharma, E. Mitchell, C. D. Manning, S. Ermon, and C. Finn Direct preference optimization: your language model is secretly a reward model. Advances in Neural Information Processing Systems 36, pp. 53728–53741. Cited by: item 4.
  • Rashidinejad et al. (2021) P. Rashidinejad, B. Zhu, C. Ma, J. Jiao, and S. Russell Bridging offline reinforcement learning and imitation learning: a tale of pessimism. Advances in Neural Information Processing Systems 34, pp. 11702–11716. Cited by: item 3.
  • Ren et al. (2026) T. Ren, J. Jiang, H. Yang, W. Tian, M. Zou, G. Li, Z. Zhang, Q. Wang, S. Qin, Y. Zhao, R. Tao, H. Shao, and Y. Peng RiskPO: risk-based policy optimization with verifiable reward for LLM post-training. In The Fourteenth International Conference on Learning Representations, External Links: Link Cited by: item 2.
  • Robbins and Siegmund (1971) H. Robbins and D. Siegmund A convergence theorem for non negative almost supermartingales and some applications. In Optimizing methods in statistics, pp. 233–257. Cited by: §B.4.
  • Robins (2004) J. M. Robins Optimal structural nested models for optimal sequential decisions. In Proceedings of the Second Seattle Symposium in Biostatistics: analysis of correlated data, pp. 189–326. Cited by: §2.1.
  • Schmidt-Hieber (2020) J. Schmidt-Hieber Nonparametric regression using deep neural networks with relu activation function. The Annals of Statistics 48 (4), pp. 1875. Cited by: §4.2.
  • Schulman et al. (2015) J. Schulman, S. Levine, P. Abbeel, M. Jordan, and P. Moritz Trust region policy optimization. In International conference on machine learning, pp. 1889–1897. Cited by: item 2.
  • Schulman et al. (2017) J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347. Cited by: §1.
  • Shao et al. (2024) Z. Shao, P. Wang, Q. Zhu, R. Xu, J. Song, X. Bi, H. Zhang, M. Zhang, Y. Li, Y. Wu, et al. Deepseekmath: pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300. Cited by: item (iii), §1, §2.2, §4.1.
  • Shen et al. (2025) G. Shen, R. Dai, G. Wu, S. Luo, C. Shi, and H. Zhu Deep distributional learning with non-crossing quantile network. arXiv preprint arXiv:2504.08215. Cited by: item 2.
  • Sheng et al. (2025) G. Sheng, C. Zhang, Z. Ye, X. Wu, W. Zhang, R. Zhang, Y. Peng, H. Lin, and C. Wu Hybridflow: a flexible and efficient rlhf framework. In Proceedings of the Twentieth European Conference on Computer Systems, pp. 1279–1297. Cited by: §4.2.
  • Sherman (1993) R. P. Sherman The limiting distribution of the maximum rank correlation estimator. Econometrica 61 (1), pp. 123–137. Cited by: §2.3.
  • Shi et al. (2018) C. Shi, A. Fan, R. Song, and W. Lu High-dimensional a-learning for optimal dynamic treatment regimes. Annals of statistics 46 (3), pp. 925. Cited by: §2.1.
  • Shi et al. (2024a) C. Shi, S. Luo, Y. Le, H. Zhu, and R. Song Statistically efficient advantage learning for offline reinforcement learning in infinite horizons. Journal of the American Statistical Association 119 (545), pp. 232–245. Cited by: §2.1.
  • Shi et al. (2024b) C. Shi, Z. Qi, J. Wang, and F. Zhou Value enhancement of reinforcement learning via efficient and robust trust region optimization. Journal of the American Statistical Association 119 (547), pp. 2011–2025. Cited by: §2.1.
  • Shi (2025) C. Shi Statistical inference in reinforcement learning: a selective survey. arXiv preprint arXiv:2502.16195. Cited by: §2.1.
  • Silver et al. (2016) D. Silver, A. Huang, C. J. Maddison, A. Guez, L. Sifre, G. Van Den Driessche, J. Schrittwieser, I. Antonoglou, V. Panneershelvam, M. Lanctot, et al. Mastering the game of go with deep neural networks and tree search. nature 529 (7587), pp. 484–489. Cited by: item 2.
  • Song et al. (2015) R. Song, W. Wang, D. Zeng, and M. R. Kosorok Penalized q-learning for dynamic treatment regimens. Statistica Sinica 25 (3), pp. 901. Cited by: §2.1.
  • Sun et al. (2025) K. Sun, Y. Zhao, E. Shi, Y. Wang, X. Yan, B. Jiang, and L. Kong Intrinsic benefits of categorical distributional loss: uncertainty-aware regularized exploration in reinforcement learning. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, Cited by: item 2.
  • Sutton and Barto (2018) R. S. Sutton and A. G. Barto Reinforcement learning: an introduction. A Bradford Book. Cited by: §2.1.
  • Sutton et al. (1999) R. S. Sutton, D. McAllester, S. Singh, and Y. Mansour Policy gradient methods for reinforcement learning with function approximation. In Proceedings of the 12th International Conference on Neural Information Processing Systems, pp. 1057–1063. Cited by: §3.2.
  • Swaminathan and Joachims (2015a) A. Swaminathan and T. Joachims Batch learning from logged bandit feedback through counterfactual risk minimization. The Journal of Machine Learning Research 16 (1), pp. 1731–1755. Cited by: item 3.
  • Swaminathan and Joachims (2015b) A. Swaminathan and T. Joachims The self-normalized estimator for counterfactual learning. In advances in neural information processing systems, Vol. 28. Cited by: item 3.
  • Thomas and Brunskill (2016) P. Thomas and E. Brunskill Data-efficient off-policy policy evaluation for reinforcement learning. In International Conference on Machine Learning, pp. 2139–2148. Cited by: item 3.
  • Thomas et al. (2015) P. Thomas, G. Theocharous, and M. Ghavamzadeh High-confidence off-policy evaluation. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 29. Cited by: item 3.
  • Tsiatis et al. (2019) A. A. Tsiatis, M. Davidian, S. T. Holloway, and E. B. Laber Dynamic treatment regimes: statistical methods for precision medicine. Chapman and Hall/CRC. Cited by: §2.1.
  • Uehara et al. (2022) M. Uehara, C. Shi, and N. Kallus A review of off-policy evaluation in reinforcement learning. arXiv preprint arXiv:2212.06355. Cited by: Appendix A, item 3.
  • Uehara and Sun (2022) M. Uehara and W. Sun Pessimistic model-based offline reinforcement learning under partial coverage. In International Conference on Learning Representations, Cited by: item 3.
  • Van Hasselt et al. (2016) H. Van Hasselt, A. Guez, and D. Silver Deep reinforcement learning with double q-learning. In Proceedings of the AAAI conference on artificial intelligence, Vol. 30. Cited by: item 2.
  • Vaswani et al. (2017) A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin Attention is all you need. In Advances in neural information processing systems, Cited by: §3.1.
  • Vojnovic and Yun (2025) M. Vojnovic and S. Yun What is the alignment objective of grpo?. arXiv preprint arXiv:2502.18548. Cited by: §2.2.
  • Watkins and Dayan (1992) C. J. Watkins and P. Dayan Q-learning. Machine learning 8 (3), pp. 279–292. Cited by: item 1.
  • Wei et al. (2022) J. Wei, X. Wang, D. Schuurmans, M. Bosma, F. Xia, E. Chi, Q. V. Le, D. Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems 35, pp. 24824–24837. Cited by: §1.
  • Williams (1992) R. J. Williams Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning 8 (3), pp. 229–256. Cited by: item 1, §3.2.
  • Wu et al. (2025a) S. Wu, J. Xie, Y. Zhang, A. Chen, K. Zhang, Y. Su, and Y. Xiao ARM: adaptive reasoning model. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, External Links: Link Cited by: item 2.
  • Wu et al. (2024) T. Wu, B. Zhu, R. Zhang, Z. Wen, K. Ramchandran, and J. Jiao Pairwise proximal policy optimization: language model alignment with comparative rl. In First Conference on Language Modeling, Cited by: item 4.
  • Wu et al. (2019) Y. Wu, G. Tucker, and O. Nachum Behavior regularized offline reinforcement learning. arXiv preprint arXiv:1911.11361. Cited by: item 3.
  • Wu et al. (2025b) Y. Wu, Z. Sun, H. Yuan, K. Ji, Y. Yang, and Q. Gu Self-play preference optimization for language model alignment. In The Thirteenth International Conference on Learning Representations (ICLR), External Links: Link Cited by: item 4.
  • Xiao et al. (2025a) C. Xiao, M. Zhang, and Y. Cao Bnpo: beta normalization policy optimization. arXiv preprint arXiv:2506.02864. Cited by: item 1.
  • Xiao et al. (2025b) J. Xiao, Z. Li, X. Xie, E. Getzen, C. Fang, Q. Long, and W. Su On the algorithmic bias of aligning large language models with RLHF: preference collapse and matching regularization. Journal of the American Statistical Association 120 (552), pp. 2154–2164. Cited by: §2.1.
  • Xie et al. (2021) T. Xie, C. Cheng, N. Jiang, P. Mineiro, and A. Agarwal Bellman-consistent pessimism for offline reinforcement learning. Advances in neural information processing systems 34, pp. 6683–6694. Cited by: item 3.
  • Xie et al. (2019) T. Xie, Y. Ma, and Y. Wang Towards optimal off-policy evaluation for reinforcement learning with marginalized importance sampling. Advances in neural information processing systems 32. Cited by: item 3.
  • Xiong et al. (2025) W. Xiong, J. Yao, Y. Xu, B. Pang, L. Wang, D. Sahoo, J. Li, N. Jiang, T. Zhang, C. Xiong, et al. A minimalist approach to llm reasoning: from rejection sampling to reinforce. arXiv preprint arXiv:2504.11343. Cited by: item 1.
  • Xu et al. (2025a) E. Xu, K. Ye, H. Zhou, L. Zhu, F. Quinzan, and C. Shi Doubly robust alignment for large language models. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: item 4.
  • Xu et al. (2025b) Y. E. Xu, Y. Savani, F. Fang, and J. Z. Kolter Not all rollouts are useful: down-sampling rollouts in llm reinforcement learning. arXiv preprint arXiv:2504.13818. Cited by: item 3.
  • Xu and Ding (2026) Z. Xu and Z. Ding Single-stream policy optimization. In The Fourteenth International Conference on Learning Representations, External Links: Link Cited by: item 3.
  • Yan et al. (2025) J. Yan, Y. Li, Z. Hu, Z. Wang, G. Cui, X. Qu, Y. Cheng, and Y. Zhang Learning to reason under off-policy guidance. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, External Links: Link Cited by: item 3.
  • Yang et al. (2025) A. Yang, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Li, D. Liu, F. Huang, H. Wei, H. Lin, J. Yang, J. Tu, J. Zhang, J. Yang, J. Yang, J. Zhou, J. Lin, K. Dang, K. Lu, K. Bao, K. Yang, L. Yu, M. Li, M. Xue, P. Zhang, Q. Zhu, R. Men, R. Lin, T. Li, T. Tang, T. Xia, X. Ren, X. Ren, Y. Fan, Y. Su, Y. Zhang, Y. Wan, Y. Liu, Z. Cui, Z. Zhang, and Z. Qiu Qwen2.5 technical report. External Links: 2412.15115, Link Cited by: §2.2.
  • Yang et al. (2026) F. Yang, Z. Chen, X. Wang, X. Lu, J. Chai, G. Yin, W. Lin, S. Ma, F. Zhuang, D. Wang, et al. Your group-relative advantage is biased. arXiv preprint arXiv:2601.08521. Cited by: §2.2.
  • Yao et al. (2026) C. Yao, Y. Chen, Y. Sun, Y. Chen, W. Zhang, X. Pan, Y. Li, and B. Ding Group-relative REINFORCE is secretly an off-policy algorithm: demystifying some myths about GRPO and its friends. In The Fourteenth International Conference on Learning Representations, External Links: Link Cited by: §2.2.
  • Ye et al. (2025) K. Ye, H. Zhou, J. Zhu, F. Quinzan, and C. Shi Robust reinforcement learning from human feedback for large language models fine-tuning. arXiv preprint arXiv:2504.03784. Cited by: item 4.
  • Yu et al. (2025) Q. Yu, Z. Zhang, R. Zhu, Y. Yuan, X. Zuo, Y. Yue, W. Dai, T. Fan, G. Liu, L. Liu, et al. Dapo: an open-source llm reinforcement learning system at scale. arXiv preprint arXiv:2503.14476. Cited by: item 3.
  • Yu et al. (2020) T. Yu, G. Thomas, L. Yu, S. Ermon, J. Y. Zou, S. Levine, C. Finn, and T. Ma Mopo: model-based offline policy optimization. Advances in Neural Information Processing Systems 33, pp. 14129–14142. Cited by: item 3.
  • Zeng et al. (2025) G. Zeng, Z. Zhou, D. Arora, and A. Zanette Shrinking the variance: shrinkage baselines for reinforcement learning with verifiable rewards. arXiv preprint arXiv:2511.03710. Cited by: item 1.
  • Zeng et al. (2024) Y. Zeng, G. Liu, W. Ma, N. Yang, H. Zhang, and J. Wang Token-level direct preference optimization. In International conference on machine learning, pp. 58348–58365. Cited by: item 4.
  • Zhan et al. (2026) R. Zhan, Y. Li, Z. Wang, X. Qu, D. Liu, J. Shao, D. F. Wong, and Y. Cheng ExGRPO: learning to reason from prior successes. In The Fourteenth International Conference on Learning Representations, External Links: Link Cited by: item 3.
  • Zhang et al. (2013) B. Zhang, A. A. Tsiatis, E. B. Laber, and M. Davidian Robust estimation of optimal dynamic treatment regimes for sequential treatment decisions. Biometrika 100 (3), pp. 681–694. Cited by: §2.1.
  • Zhang et al. (2025a) D. Zhang, Z. Li, M. Zhang, J. Zhang, Z. Liu, Y. Yao, H. Xu, J. Zheng, X. Chen, Y. Zhang, et al. From system 1 to system 2: a survey of reasoning large language models. IEEE Transactions on Pattern Analysis and Machine Intelligence. Cited by: §2.2.
  • Zhang and Zuo (2025) J. Zhang and C. Zuo Grpo-lead: a difficulty-aware reinforcement learning approach for concise mathematical reasoning in language models. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pp. 5642–5665. Cited by: item 2.
  • Zhang (2016) L. Zhang Central limit theorems of a recursive stochastic algorithm with applications to adaptive designs.. Annals of applied probability: an official journal of the Institute of Mathematical Statistics 26 (6), pp. 3630–3658. Cited by: §B.2, §B.4, §4.2, §4.2.
  • Zhang et al. (2025b) Q. Zhang, H. Wu, C. Zhang, P. Zhao, and Y. Bian Right question is already half the answer: fully unsupervised LLM reasoning incentivization. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, External Links: Link Cited by: item 2.
  • Zhang et al. (2025c) X. Zhang, J. Wang, Z. Cheng, W. Zhuang, Z. Lin, M. Zhang, S. Wang, Y. Cui, C. Wang, J. Peng, et al. Srpo: a cross-domain implementation of large-scale reinforcement learning on llm. arXiv preprint arXiv:2504.14286. Cited by: item 3.
  • Zhang et al. (2025d) Y. Zhang, D. Yu, B. Peng, L. Song, Y. Tian, M. Huo, N. Jiang, H. Mi, and D. Yu Iterative nash policy optimization: aligning LLMs with general preferences via no-regret learning. In The Thirteenth International Conference on Learning Representations, External Links: Link Cited by: item 4.
  • Zhao et al. (2015) Y. Zhao, D. Zeng, E. B. Laber, and M. R. Kosorok New statistical learning methods for estimating optimal dynamic treatment regimes. Journal of the American Statistical Association 110 (510), pp. 583–598. Cited by: §2.1.
  • Zheng et al. (2025a) C. Zheng, S. Liu, M. Li, X. Chen, B. Yu, C. Gao, K. Dang, Y. Liu, R. Men, A. Yang, et al. Group sequence policy optimization. arXiv preprint arXiv:2507.18071. Cited by: item 1.
  • Zheng et al. (2025b) T. Zheng, H. Zhang, W. Yu, X. Wang, R. Dai, R. Liu, H. Bao, C. Huang, H. Huang, and D. Yu Parallel-r1: towards parallel thinking via reinforcement learning. arXiv preprint arXiv:2509.07980. Cited by: item 3.
  • Zhong et al. (2025) H. Zhong, X. Deng, E. X. Fang, Z. Yang, Z. Wang, and R. Li Risk-sensitive deep rl: variance-constrained actor-critic provably finds globally optimal policy. Journal of the American Statistical Association To appear. Cited by: §2.1.
  • Zhong et al. (2024) H. Zhong, Z. Deng, W. J. Su, Z. S. Wu, and L. Zhang Provable multi-party reinforcement learning with diverse human feedback. arXiv preprint arXiv:2403.05006. Cited by: item 4.
  • Zhou et al. (2020) F. Zhou, J. Wang, and X. Feng Non-crossing quantile regression for distributional reinforcement learning. Advances in neural information processing systems 33, pp. 15909–15919. Cited by: item 2.
  • Zhou et al. (2024) W. Zhou, R. Zhu, and A. Qu Estimating optimal infinite horizon dynamic treatment regimes via pt-learning. Journal of the American Statistical Association 119 (545), pp. 625–638. Cited by: §2.1.

As commented in the main paper, the GRPO-type algorithm analyzed in Section 4 differs from the implementation proposed in the original DeepSeekMath paper. To bridge this gap, we present a more consistent formulation in Algorithm 2. There are three major differences compared to Algorithm 1: (i) reward normalization, (ii) importance sampling (IS), and (iii) KL penalty. Specifically:

  1. (i)

    Reward normalization. According to (15), the advantage function A(b,g)A^{(b,g)} is not simply the difference between the reward Z(b,g)Z^{(b,g)} and the baseline Zˉ(b,−g)\bar{Z}^{(b,-g)}. Instead, this difference is normalized by the standard error of the within-group rewards (see (16)). Consequently, the algorithm assigns larger weight to prompts whose rewards are more uncertain. Intuitively, when a prompt is either too easy or too difficult, most responses receive a score of zero or achieve the maximum score, and the normalized advantage is small. In contrast, when the level of difficulty lies in the middle — so that some responses are correct while others are wrong — the prompt receives large weight.

  2. (ii)

    Importance sampling. The practical implementation includes a minibatch parameter. Whenever the minibatch size is smaller than the full batch size BB, the sampled prompts are divided into mm minibatches, and the parameter is updated multiple times within each iteration (see Lines 8–10 of Algorithm 2). This is intended to improve learning efficiency: smaller minibatches lead to more frequent parameter updates, although each update is based on less data and is therefore noisier. Since the outputs are generated under the initial parameter θ_old\theta\_{\mathrm{old}} (see Line 4), whereas the gradient is evaluated at the current parameter θ\theta, a distributional shift arises. To correct for this mismatch, the advantage function is multiplied by an IS ratio μ(b,g)_t=π_θ,t(b,g)/π_θ_old,t(b,g)\mu^{(b,g)}\_{t}=\pi\_{\theta,t}^{(b,g)}/\pi\_{\theta\_{\mathrm{old}},t}^{(b,g)} in (14). Ideally, one would instead use the sequential IS ratio up to time tt, Π_k=1tμ(b,g)_k\Pi\_{k=1}^{t}\mu^{(b,g)}\_{k}, which yields an unbiased correction. However, it is well known that such sequential IS ratio suffers from the curse of horizon [Liu et al., 2018], in the sense that their variance grows exponentially fast with tt. As such, the practical algorithm uses only the token-level ratio, which substantially reduces variance at the cost of introducing bias, as we show formally in Theorem 12. The use of the token-level ratio is also in line with the PPO algorithm.

  3. (iii)

    KL penalty. The second and third terms inside the square brackets in (14) arise from imposing a KL penalty

    $\displaystyle\kappa\textrm{KL}(\pi_{\theta}|\pi_{\theta_{\text{ref}}})=\kappa,\mathbb{E}_{X\sim f,Y\sim\pi_{\theta}(\bulletX)}\log\frac{\pi_{\theta}(Y

    on the objective function, for some regularization parameter κ>0\kappa>0. The purpose is to discourage the learning policy to departure too far away from a reference policy, an idea that shares similar spirits with the pessimistic principle in offline RL. In particular, GRPO uses Schulman’s K3 estimator33 3 http://joschu.net/blog/kl-approx.html

    $\displaystyle\frac{1}{G}\sum_{g=1}^{G}\Big[\frac{\pi_{\theta_{\text{ref}}}(Y^{(b,g)}X)}{\pi_{\theta}(Y^{(b,g)}X)}-\log\frac{\pi_{\theta_{\text{ref}}}(Y^{(b,g)}

    for the KL divergence, which leads to the gradient estimator G−1∑_t∇_θlog⁡π_θ,t(b,g)(1−π_θ,t(b,g)/π_θ_ref,t(b,g))G^{-1}\sum\_{t}\nabla\_{\theta}\log\pi\_{\theta,t}^{(b,g)}(1-\pi\_{\theta,t}^{(b,g)}/\pi\_{\theta\_{\text{ref}},t}^{(b,g)}) in (14). When Y(g)Y^{(g)} is sampled from π_θ(∙∣X)\pi\_{\theta}(\bullet|X), it is immediate that the first term inside the square brackets of (13) has mean one, so the expectation of (13) reduces to the second term alone and is thus unbiased for the KL divergence. The advantage of using the K3 estimator over solely the second term (known as the K1 estimator) is that K3 achieves lower variance and is guaranteed to be non-negative, both of which help stabilize training [Shao et al., 2024].

Algorithm 2 Group relative policy optimization

1:  Input: prompt distribution f(X)f(X), initial parameter θ∈Θ\theta\in\Theta, learning rates {η_i}_i∈N\{\eta\_{i}\}\_{i\in\mathbb{N}}, batch size BB, per-prompt group size GG, number of minibatches mm, KL regularization parameter κ>0\kappa>0 and reference model θ_ref\theta\_{\textrm{ref}}.

2:  for i=0,1,2,…,n−1i=0,1,2,\dots,n-1 do

3:   Set θ_old←θ\theta\_{\text{old}}\leftarrow\theta.

4:   Sample prompts {X(b)}_b=1B∼iidf(⋅)\{X^{(b)}\}\_{b=1}^{B}\stackrel{{\scriptstyle\mathrm{iid}}}{{\sim}}f(\cdot).

5:   For each prompt X(b)X^{(b)}, generate a group of GG outputs

{Y(b,g)}_g=1G∼π_θ_old(⋅∣X(b)).\{Y^{(b,g)}\}\_{g=1}^{G}\sim\pi\_{\theta\_{\mathrm{old}}}(\cdot\mid X^{(b)}).

6:   For each output Y(b,g)Y^{(b,g)}, obtain reward Z(b,g)Z^{(b,g)}.

7:   Partition {1,…,B}\{1,\dots,B\} into mm disjoint minibatches B_1,…,B_m\mathcal{B}\_{1},\dots,\mathcal{B}\_{m} of equal size.

8:   for j=1,…,mj=1,\dots,m do

9:    Compute the minibatch gradient estimator g^(θ)=∣B_j∣−1∑_b∈B_jg^(X(b);θ)\widehat{g}(\theta)=|\mathcal{B}\_{j}|^{-1}\sum\_{b\in\mathcal{B}\_{j}}\widehat{g}(X^{(b)};\theta) where

g^(X(b);θ):=1G∑_g=1G∑_t∇_θlog⁡π_θ,t(b,g)[π_θ,t(b,g)π_θ_old,t(b,g)A(b,g)+κπ_θ_ref,t(b,g)π_θ,t(b,g)−κ],\displaystyle\widehat{g}(X^{(b)};\theta):=\frac{1}{G}\sum\_{g=1}^{G}\sum\_{t}\nabla\_{\theta}\log\pi\_{\theta,t}^{(b,g)}\Bigg[\frac{\pi\_{\theta,t}^{(b,g)}}{\pi\_{\theta\_{\mathrm{old}},t}^{(b,g)}}A^{(b,g)}+\kappa\frac{\pi\_{\theta\_{\mathrm{ref}},t}^{(b,g)}}{\pi\_{\theta,t}^{(b,g)}}-\kappa\Bigg],(14)

where

π_θ,t(b,g):=π_θ ⁣(Y_t(b,g)∣X(b),Y_<t(b,g)),\pi\_{\theta,t}^{(b,g)}:=\pi\_{\theta}\!\left(Y\_{t}^{(b,g)}\mid X^{(b)},Y\_{<t}^{(b,g)}\right),

and

A(b,g):=Z(b,g)−Zˉ(b,−g)se⁡(Z(b,∙)),\displaystyle A^{(b,g)}:=\frac{Z^{(b,g)}-\bar{Z}^{(b,-g)}}{\operatorname{se}(Z^{(b,\bullet)})},(15)

where Z(b,∙)={Z(b,g)}_g=1GZ^{(b,\bullet)}=\{Z^{(b,g)}\}\_{g=1}^{G} and

se⁡(Z(b,∙))=1G−1∑_g[Z(b,g)−Zˉ(b)]2,\displaystyle\operatorname{se}(Z^{(b,\bullet)})=\sqrt{\frac{1}{G-1}\sum\_{g}[Z^{(b,g)}-\bar{Z}^{(b)}]^{2}},(16)

denotes its standard error and Zˉ(b)\bar{Z}^{(b)} denotes the empirical group mean G−1∑_g=1GZ(b,g)G^{-1}\sum\_{g=1}^{G}Z^{(b,g)}.

10:    Update the parameter:

θ←θ+η_i+1 g^(θ).\theta\leftarrow\theta+\eta\_{i+1}\,\widehat{g}(\theta).

11:   end for

12:  end for

13:  Output: policy π_θ\pi\_{\theta}.

We begin by analyzing the gradient estimator g^(x;θ)\widehat{g}(x;\theta) in (14). The following lemma shows that, due to reward normalization, this gradient estimator is not exactly a U-statistic – as the kernel function depends on se⁡(Z(b,∙))\operatorname{se}(Z^{(b,\bullet)}), which is data-dependent – but admits a U-statistic representation asymptotically as G→∞G\to\infty.

π_θ\pi\_{\theta} is lower bounded by ϵ\epsilon for some ϵ>0\epsilon>0 and any θ∈Θ\theta\in\Theta.

Conditions similar to 10 are frequently imposed in offline RL [Uehara et al., 2022, e.g.,].

Lemma 11 (Gradient estimator asymptotically equivalent to a U-statistic).
Section titled “Lemma 11 (Gradient estimator asymptotically equivalent to a U-statistic).”

Suppose Assumptions 1, 3 and 10 hold. Suppose std_X(Z):=Var_Z∼π_θ_old(∙∣X)(Z∣X)\text{std}\_{X}(Z):=\sqrt{\text{Var}\_{Z\sim\pi\_{\theta\_{\text{old}}(\bullet|X)}}(Z|X)} is bounded away from zero. Then g^(x;θ)\widehat{g}(x;\theta) converges in probability to a second-order U-statistic

g^(x;θ)=(G2)−1∑_1≤i<j≤Gh((Y(i),Z(i)),(Y(j),Z(j))),\widehat{g}(x;\theta)=\binom{G}{2}^{-1}\sum\_{1\leq i<j\leq G}h\big((Y^{(i)},Z^{(i)}),(Y^{(j)},Z^{(j)})\big),

as G→∞G\to\infty, with symmetric kernel

h((Y(i),Z(i)),(Y(j),Z(j)))\displaystyle h\big((Y^{(i)},Z^{(i)}),(Y^{(j)},Z^{(j)})\big)
------------
=\displaystyle=12[∑_tμ_t(i)W_t(i)−∑_tμ_t(j)W_t(j)]Z(i)−Z(j)std_x(Z)+κ2[∑_t(μ_t(i)−1)W_t(i)+∑_t(μ_t(j)−1)W_t(j)],\displaystyle\frac{1}{2}\Big[\sum\_{t}\mu\_{t}^{(i)}W\_{t}^{(i)}-\sum\_{t}\mu\_{t}^{(j)}W\_{t}^{(j)}\Big]\frac{Z^{(i)}-Z^{(j)}}{\mathrm{std}\_{x}(Z)}+\frac{\kappa}{2}\Big[\sum\_{t}(\mu\_{t}^{(i)}-1)W\_{t}^{(i)}+\sum\_{t}(\mu\_{t}^{(j)}-1)W\_{t}^{(j)}\Big],

where W(g)_t=∇_θlog⁡π_θ(Y(g)_t∣x,Y(g)_<t)W^{(g)}\_{t}=\nabla\_{\theta}\log\pi\_{\theta}(Y^{(g)}\_{t}|x,Y^{(g)}\_{<t}) and the superscript (b)(b) on YY and ZZ is removed for simplicity.

We next analyze the MSE of g^(x,θ)\widehat{g}(x,\theta), defined as MSE(g^(x,θ))=E[∥g^(x;θ)−g†(x;θ)∥2]\text{MSE}(\widehat{g}(x,\theta))=\mathbb{E}[\|\widehat{g}(x;\theta)-g^{\dagger}(x;\theta)\|^{2}] where

$\displaystyle g^{\dagger}(x;\theta)=\mathbb{E}\Big[\mu^{(g)}\nabla_{\theta}\log\pi_{\theta}(Y^{(g)}x)\frac{Z^{(g)}-\bar{Z}^{(-g)}}{\text{std}_{x}(Z)}+\kappa\mu^{(g)}\sum_{t}(\mu_{t}^{(g)}-1)W_{t}^{(g)}\mid X=x\Big],$

and μ(g)\mu^{(g)} denotes the sequential IS (SIS) ratio ∏_tμ_t(g)\prod\_{t}\mu\_{t}^{(g)}. This ratio appears in the ground-truth gradient to account for the distributional shift: the gradient is evaluated under the current policy π_θ\pi\_{\theta}, whereas the outcomes were generated under π_θ_old\pi\_{\theta\_{\text{old}}}. As discussed earlier, the practical implementation does not use the SIS ratio for gradient estimation due to its extraordinarily large variance; instead, only the token-level IS ratio μ_t(b,g)\mu\_{t}^{(b,g)} is used to multiply the score and the advantage function. Meanwhile, the KL divergence term does not include any IS ratio and is therefore biased as well. Thus, bias arises from both sources. In Theorem 12 below, we characterize the MSE of the gradient estimator, upper bounding both its squared bias and variance.

Under Assumptions 1, 3, 10 and the same conditions in lemma 11, we have

MSE(g^(x;θ))=O(m2η_i+12ϵ)+O(κ2m2η_i+12ϵ3)+trace[Σ_1(x;θ)]G+O(1ϵG2),\displaystyle\text{MSE}(\widehat{g}(x;\theta))=O\Big(\frac{m^{2}\eta\_{i+1}^{2}}{\epsilon}\Big)+O\Big(\frac{\kappa^{2}m^{2}\eta\_{i+1}^{2}}{\epsilon^{3}}\Big)+\frac{\text{trace}[\Sigma\_{1}(x;\theta)]}{G}+O\Big(\frac{1}{\epsilon G^{2}}\Big),(17)

where

$\displaystyle\Sigma_{1}(x;\theta)=\text{Cov}\Big[\sum_{t}\mu_{t}^{(g)}W_{t}^{(g)}\frac{Z^{(g)}-V^{\pi_{\theta_{\text{old}}}}(x)}{\text{std}_{x}(Z)}+\kappa\sum_{t}(\mu_{t}^{(g)}-1)W_{t}^{(g)}X=x\Big].$

Theorem 12 gives a bias-variance decomposition regarding the gradient estimator’s MSE:

    The first two terms on the right hand side (RHS) of (17) are bias terms that upper bound the squared biases arising from the two sources mentioned above, respectively. Notably, these bias terms are proportional to the learning rate η_i+1\eta\_{i+1} and vanish as η_i+1\eta\_{i+1} approaches zero.

    The last two terms are variance terms. In particular, trace[Σ_1(x;θ)]/G\mathrm{trace}[\Sigma\_{1}(x;\theta)]/G is the leading term, which, by its definition in (18), corresponds to the variance of an oracle estimator that knows the value function Vπ_θ_old(x)V^{\pi\_{\theta\_{\text{old}}}}(x) a priori.

    The last term is a higher-order variance term that measures the error of the U-statistic in approximating the oracle estimator, and is of the same order O(G−2)O(G^{-2}) as in Theorem 2. As GG grows to infinity, this term decays to zero at a faster rate, so that the estimator achieves the same asymptotic variance as the oracle estimator.

Finally, we establish the consistency of the estimated policy parameter θ^_n\widehat{\theta}\_{n}.

Suppose the reward signal ZZ is binary and the value function Vπ_θV^{\pi\_{\theta}} is bounded away from 0 and 1. Then under Assumptions 1, 3, 4, 5(b) and 6, we have

d(θ^_n,Θ~\*)→P0,d(\widehat{\theta}\_{n},\widetilde{\Theta}^{\*})\stackrel{{\scriptstyle P}}{{\to}}0,

where Θ~\*=arg⁡max⁡_θJ(θ)\widetilde{\Theta}^{\*}=\arg\max\_{\theta}\mathcal{J}(\theta) and

J(θ)=E[2arcsin⁡(Vπ_θ(X))]−κ KL(π_θ∥π_θ_ref).\mathcal{J}(\theta)=\mathbb{E}\Big[2\arcsin\big(\sqrt{V^{\pi\_{\theta}}(X)}\big)\Big]-\kappa\,\textrm{KL}(\pi\_{\theta}\|\pi\_{\theta\_{\textrm{ref}}}).(19)

We make a few remarks. First, we adopt the same asymptotic framework as in Section 4 for establishing consistency, by allowing multiple optimizers to exist and by letting n→∞n\to\infty while fixing all other parameters such as BB, GG, κ\kappa, mm and ϵ\epsilon. Second, consider the case where κ=0\kappa=0, so that the KL penalty is not imposed. Interestingly, according to (19), the policy parameter does not directly maximize the value function but rather an arcsin transformation of it. To see why, note that when ZZ is binary, std_x(Z)=Vπ_θ_old(x)[1−Vπ_θ_old(x)]\textrm{std}\_{x}(Z)=\sqrt{V^{\pi\_{\theta\_{\textrm{old}}}}(x)[1-V^{\pi\_{\theta\_{\textrm{old}}}}(x)]}. Under the stated conditions, we can show that the ground-truth gradient

$\displaystyle g^{\dagger}(\theta)=\mathbb{E}[g^{\dagger}(X;\theta)]=\mathbb{E}^{\pi_{\theta}}\Big[W_{t}^{(g)}\frac{Z}{\textrm{std}_{x}(Z)}\Big]\to\mathbb{E}^{\pi_{\theta}}\Big[\nabla_{\theta}\log\pi_{\theta}(Y^{(g)}_{t}X,Y^{(g)}_{<t})\frac{\sqrt{V^{\pi_{\theta}}(X)}}{\sqrt{1-V^{\pi_{\theta_{\textrm{old}}}}(X)}}\Big],$

which is precisely the derivative of J(θ)\mathcal{J}(\theta) in (19). This arises from reward normalization. This relationship was identified by Davis and Recht [2025], who did not consider the use of minibatches or KL penalties. Nor did they establish parameter consistency. We formally verify their result by establishing parameter consistency under more practical settings.

To conclude this section, we remark that although we aim to match practical settings as closely as possible, two gaps remain: (i) the original GRPO uses length normalization, which further divides each advantage function A(b,g)A^{(b,g)} by the length of Y(g)Y^{(g)}, although this is not used in later variants such as Dr. GRPO and GPG; (ii) simple stochastic gradient descent algorithm is no longer used in practice, and has been replaced by more sophisticated optimizers such as Muon [Jordan et al., 2024]. We leave these gaps for future research.

In this section, we provide the proofs of Lemma 1, Theorem 2, Proposition 3, and Corollaries 4 and 5 stated in Section 4.1.

To ease notation, we denote W(g)=∇_θlog⁡π_θ(Y(g)∣x)W^{(g)}=\nabla\_{\theta}\log\pi\_{\theta}(Y^{(g)}|x). As discussed below Lemma 1, by setting C(g)C^{(g)} in (5) to the leave-one-out group mean baseline, each individual term in the sum satisfies

W(g)[Z(g)−Zˉ(−g)]=1G−1∑_k≠gW(g)[Z(g)−Z(k)].W^{(g)}[Z^{(g)}-\bar{Z}^{(-g)}]=\frac{1}{G-1}\sum\_{k\neq g}W^{(g)}[Z^{(g)}-Z^{(k)}].

By definition, we obtain

g^_GRPO(x;θ)=1G(G−1)∑_k≠gW(g)[Z(g)−Z(k)].\widehat{g}\_{\rm GRPO}(x;\theta)=\frac{1}{G(G-1)}\sum\_{k\neq g}W^{(g)}[Z^{(g)}-Z^{(k)}].

Applying a standard symmetrization argument, it follows that

g^_GRPO(x;θ)\displaystyle\widehat{g}\_{\rm GRPO}(x;\theta)=\displaystyle=12G(G−1)∑_k≠gW(g)[Z(g)−Z(k)]+12G(G−1)∑_k≠gW(k)[Z(k)−Z(g)]\displaystyle\frac{1}{2G(G-1)}\sum\_{k\neq g}W^{(g)}[Z^{(g)}-Z^{(k)}]+\frac{1}{2G(G-1)}\sum\_{k\neq g}W^{(k)}[Z^{(k)}-Z^{(g)}]
=\displaystyle=12G(G−1)∑_k≠g[W(g)Z(g)−W(g)Z(k)−W(k)Z(g)+W(k)Z(k)]\displaystyle\frac{1}{2G(G-1)}\sum\_{k\neq g}[W^{(g)}Z^{(g)}-W^{(g)}Z^{(k)}-W^{(k)}Z^{(g)}+W^{(k)}Z^{(k)}]
=\displaystyle=12G(G−1)∑_k≠g[(W(g)−W(k))(Z(g)−Z(k))]\displaystyle\frac{1}{2G(G-1)}\sum\_{k\neq g}[(W^{(g)}-W^{(k)})(Z^{(g)}-Z^{(k)})]
=\displaystyle=12G(G−1)∑_k≠gh((Y(k),Z(k)),(Y(g),Z(g))).\displaystyle\frac{1}{2G(G-1)}\sum\_{k\neq g}h\big((Y^{(k)},Z^{(k)}),(Y^{(g)},Z^{(g)})\big).

The conclusion of Lemma 1 thus follows. ∎

Recall that the Hoeffding decomposition (2) expresses a U-statistic as the sum of the expectation of the kernel h_0h\_{0}, a first-order component,

1n∑_i=1nζ_1(X_i)=2n∑_i=1n[h_1(X_i)−h_0],\displaystyle\frac{1}{n}\sum\_{i=1}^{n}\zeta\_{1}(X\_{i})=\frac{2}{n}\sum\_{i=1}^{n}\bigl[h\_{1}(X\_{i})-h\_{0}\bigr],

and a second-order component

1n(n−1)∑_i≠jζ_2(X_i,X_j)=1n(n−1)∑_i≠j[h(X_i,X_j)−h_1(X_i)−h_1(X_j)+h_0].\displaystyle\frac{1}{n(n-1)}\sum\_{i\neq j}\zeta\_{2}(X\_{i},X\_{j})=\frac{1}{n(n-1)}\sum\_{i\neq j}\bigl[h(X\_{i},X\_{j})-h\_{1}(X\_{i})-h\_{1}(X\_{j})+h\_{0}\bigr].

With some calculations, it is straightforward to show that

  • (i)

    Each of ζ_1(X_i)\zeta\_{1}(X\_{i}) and ζ_2(X_i,X_j)\zeta\_{2}(X\_{i},X\_{j}) has mean zero and is therefore orthogonal (i.e., uncorrelated) to h_0h\_{0};

  • (ii)

    The first-order term ζ_1(X_i)\zeta\_{1}(X\_{i}) is orthogonal to the second-order term ζ_2(X_k,X_g)\zeta\_{2}(X\_{k},X\_{g}) for any i,k,gi,k,g;

  • (iii)

    Different first-order and second-order terms are mutually orthogonal, i.e., ζ_1(X_i)⊥ζ_1(X_j)\zeta\_{1}(X\_{i})\perp\zeta\_{1}(X\_{j}) for i≠ji\neq j, and ζ_2(X_i,X_j)⊥ζ_2(X_k,X_g)\zeta\_{2}(X\_{i},X\_{j})\perp\zeta\_{2}(X\_{k},X\_{g}) whenever {i,j}≠{k,g}\{i,j\}\neq\{k,g\}.

These orthogonality relations lead to the following MSE decomposition for the UU-statistic:

MSE(U)\displaystyle\mathrm{MSE}(U)=\displaystyle=1n2∑_i=1ntrace[Var(ζ_1(X_i))]+4n2(n−1)2∑_1≤i<j≤ntrace[Var(ζ_2(X_i,X_j))]\displaystyle\frac{1}{n^{2}}\sum\_{i=1}^{n}\textrm{trace}\big[\mathrm{Var}\bigl(\zeta\_{1}(X\_{i})\bigr)\big]+\frac{4}{n^{2}(n-1)^{2}}\sum\_{1\leq i<j\leq n}\textrm{trace}\big[\mathrm{Var}\bigl(\zeta\_{2}(X\_{i},X\_{j})\bigr)\big]
=\displaystyle=1ntrace[Var(ζ_1(X_1))]+2n(n−1)trace[Var(ζ_2(X_1,X_2))].\displaystyle\frac{1}{n}\textrm{trace}\big[\mathrm{Var}\bigl(\zeta\_{1}(X\_{1})\bigr)\big]+\frac{2}{n(n-1)}\textrm{trace}\big[\mathrm{Var}\bigl(\zeta\_{2}(X\_{1},X\_{2})\bigr)\big].

Next, by Jensen’s inequality,

trace[Var(ζ_2(X_1,X_2))]\displaystyle\textrm{trace}\big[\mathrm{Var}\bigl(\zeta\_{2}(X\_{1},X\_{2})\bigr)\big]=E∥h(X_1,X_2)−E[h(X_1,X_2)∣X_1]−E[h(X_2,X_1)∣X_2]+Eh(X_1,X_2)∥2\displaystyle=\mathbb{E}\bigl\|h(X\_{1},X\_{2})-\mathbb{E}[h(X\_{1},X\_{2})\mid X\_{1}]-\mathbb{E}[h(X\_{2},X\_{1})\mid X\_{2}]+\mathbb{E}h(X\_{1},X\_{2})\bigr\|^{2}
------------
≤4 E∥h(X_1,X_2)∥2+4 E∥E[h(X_1,X_2)∣X_1]∥2\displaystyle\leq 4\,\mathbb{E}\|h(X\_{1},X\_{2})\|^{2}+4\,\mathbb{E}\bigl\|\mathbb{E}[h(X\_{1},X\_{2})\mid X\_{1}]\bigr\|^{2}
------------
+4 E∥E[h(X_2,X_1)∣X_2]∥2+4 ∥Eh(X_1,X_2)∥2\displaystyle\qquad+4\,\mathbb{E}\bigl\|\mathbb{E}[h(X\_{2},X\_{1})\mid X\_{2}]\bigr\|^{2}+4\,\|\mathbb{E}h(X\_{1},X\_{2})\|^{2}
------------
≤16 E∥h(X_1,X_2)∥2.\displaystyle\leq 16\,\mathbb{E}\|h(X\_{1},X\_{2})\|^{2}.

It follows that

MSE(U)=1ntrace[Var(ζ_1(X_1))]+O(E∥h(X_1,X_2)∥2)n(n−1).\displaystyle\mathrm{MSE}(U)=\frac{1}{n}\textrm{trace}\big[\mathrm{Var}\bigl(\zeta\_{1}(X\_{1})\bigr)\big]+\frac{O\bigl(\mathbb{E}\|h(X\_{1},X\_{2})\|^{2}\bigr)}{n(n-1)}.(20)

By setting UU to the GRPO gradient estimator g^_GRPO(θ;x)\widehat{g}\_{\text{GRPO}}(\theta;x), it is immediate to see that the first-order component becomes the oracle gradient estimator so that

trace[Var(ζ_1(X_1))]=trace[Σ_oracle(x;θ)].\displaystyle\textrm{trace}\big[\mathrm{Var}\bigl(\zeta\_{1}(X\_{1})\bigr)\big]=\textrm{trace}\big[\Sigma\_{\text{oracle}}(x;\theta)\big].(21)

Additionally, under the boundedness assumption 1, we obtain

E∥W(1)−W(2)∥2(Z(1)−Z(2))2=O(E∥W(1)−W(2)∥2)=O(E∥W∥2),\displaystyle\mathbb{E}\|W^{(1)}-W^{(2)}\|^{2}(Z^{(1)}-Z^{(2)})^{2}=O\bigl(\mathbb{E}\|W^{(1)}-W^{(2)}\|^{2}\bigr)=O\bigl(\mathbb{E}\|W\|^{2}\bigr),(22)

where the last equality follows from the fact that for any random vectors XX and YY, E∥X+Y∥2≤2(E∥X∥2+E∥Y∥2)\mathbb{E}\|X+Y\|^{2}\leq 2(\mathbb{E}\|X\|^{2}+\mathbb{E}\|Y\|^{2}). Combining (22) with (20) and (21), we have

$\displaystyle\text{MSE}(\widehat{g}_{\text{GRPO}}(x;\theta))=\frac{1}{G}\text{trace}[\Sigma_{\text{oracle}}(x;\theta)]+O\left(\frac{\mathbb{E}|\nabla_{\theta}\log\pi_{\theta}(Yx)|^{2}}{G^{2}}\right).$

This completes the proof of Theorem 2. ∎

By definition, MSE(g^_GRPO(θ))\text{MSE}(\widehat{g}\_{\text{GRPO}}(\theta)) equals

E∥g^_GRPO(θ)−g(θ)∥2\displaystyle\mathbb{E}\|\widehat{g}\_{\text{GRPO}}(\theta)-g(\theta)\|^{2}
=\displaystyle=E∥1B∑_b=1B[g^_GRPO(X(b);θ)−g(X(b);θ)]+1B∑_b=1B[g(X(b);θ)−g(θ)]∥2.\displaystyle\mathbb{E}\left\|\frac{1}{B}\sum\_{b=1}^{B}[\widehat{g}\_{\text{GRPO}}(X^{(b)};\theta)-g(X^{(b)};\theta)]+\frac{1}{B}\sum\_{b=1}^{B}[g(X^{(b)};\theta)-g(\theta)]\right\|^{2}.

Since g(X(b);θ)g(X^{(b)};\theta) equals the conditional mean of g^_GRPO(X(b);θ)\widehat{g}\_{\text{GRPO}}(X^{(b)};\theta) given X(b)X^{(b)}, g^_GRPO(X(b);θ)−g(X(b);θ)\widehat{g}\_{\text{GRPO}}(X^{(b)};\theta)-g(X^{(b)};\theta) is orthogonal to g(X(b);θ)−g(θ)g(X^{(b)};\theta)-g(\theta). It follows that

MSE(g^_GRPO(θ))=E∥1B∑_b=1B[g^_GRPO(X(b);θ)−g(X(b);θ)]∥2+E∥1B∑_b=1B[g(X(b);θ)−g(θ)]∥2\displaystyle\text{MSE}(\widehat{g}\_{\text{GRPO}}(\theta))=\mathbb{E}\left\|\frac{1}{B}\sum\_{b=1}^{B}[\widehat{g}\_{\text{GRPO}}(X^{(b)};\theta)-g(X^{(b)};\theta)]\right\|^{2}+\mathbb{E}\left\|\frac{1}{B}\sum\_{b=1}^{B}[g(X^{(b)};\theta)-g(\theta)]\right\|^{2}
---------
=1BE∥g^_GRPO(X;θ)−g(X;θ)∥2+1BE∥g(X;θ)−g(θ)∥2.\displaystyle=\frac{1}{B}\mathbb{E}\left\|\widehat{g}\_{\text{GRPO}}(X;\theta)-g(X;\theta)\right\|^{2}+\frac{1}{B}\mathbb{E}\left\|g(X;\theta)-g(\theta)\right\|^{2}.

Applying the conclusion of Theorem 2, we obtain

E∥g^_GRPO(θ)−g(θ)∥2\displaystyle\mathbb{E}\|\widehat{g}\_{\text{GRPO}}(\theta)-g(\theta)\|^{2}=\displaystyle=E∥g(X;θ)−g(θ)∥2B\displaystyle\frac{\mathbb{E}\left\|g(X;\theta)-g(\theta)\right\|^{2}}{B}
$\displaystyle\qquad+\frac{\text{trace}[\Sigma_{\text{oracle}}(\theta)]}{BG}+O\left(\frac{\mathbb{E}|\nabla_{\theta}\log\pi_{\theta}(YX)|^{2}}{BG^{2}}\right).$

This completes the proof of Proposition 3. ∎

The conclusion directly follows from Theorem 2 and Proposition 3 by letting G→∞G\to\infty. ∎

Any gradient estimator g^(x;θ)\widehat{g}(x;\theta) whose baseline term b(x)b(x) is a function of the prompt xx only is an unbiased estimator of g(x;θ)g(x;\theta). Therefore, its MSE can be represented as:

MSE(g^(θ;x))=trace[Var(g^(θ;x))]=E∥g^(θ;x)∥2−∥g(θ;x)∥2.\displaystyle\text{MSE}(\widehat{g}(\theta;x))=\text{trace}\big[\text{Var}(\widehat{g}(\theta;x))\big]=\mathbb{E}\|\widehat{g}(\theta;x)\|^{2}-\|g(\theta;x)\|^{2}.(23)

The first term on the RHS can be further decomposed as

$\displaystyle\begin{split}\mathbb{E}|\widehat{g}(\theta;x)|^{2}=&\frac{1}{G}\mathbb{E}\left{|\nabla_{\theta}\log\pi_{\theta}(Yx)|^{2}[Z-V^{\pi_{\theta}}(x)+V^{\pi_{\theta}}(x)-b(x)]^{2}\right}\ =&\frac{1}{G}\mathbb{E}\left{|\nabla_{\theta}\log\pi_{\theta}(Yx)|^{2}[Z-V^{\pi_{\theta}}(x)]^{2}\right}\ +&\frac{1}{G}\mathbb{E}\left{|\nabla_{\theta}\log\pi_{\theta}(Y

Notice that the second line of (24) equals trace[Σ_oracle(x;θ)]\text{trace}[\Sigma\_{\text{oracle}}(x;\theta)]. Under Assumption 2 that ZZ and ∥∇_θlog⁡π_θ(Y∣x)∥\|\nabla\_{\theta}\log\pi\_{\theta}(Y|x)\| are conditionally independent given xx, the interaction term (i.e., the last line of (24)) equals zero. This together with (23) and (24) yields that

$\displaystyle\begin{split}\text{MSE}(\widehat{g}(x;\theta))=&\frac{1}{G}\text{trace}[\Sigma_{\text{oracle}}(x;\theta)]+\frac{1}{G}\mathbb{E}\left{|\nabla_{\theta}\log\pi_{\theta}(Yx)|^{2}[V^{\pi_{\theta}}(x)-b(x)]^{2}\right}\ \geq&\frac{1}{G}\text{trace}[\Sigma_{\text{oracle}}(x;\theta)].\end{split}$

Since Corollary 4 implies MSE_A(g^_GRPO(x;θ))=G−1trace[Σ_oracle(x;θ)]\text{MSE}\_{A}(\widehat{g}\_{\text{GRPO}}(x;\theta))=G^{-1}\text{trace}[\Sigma\_{\text{oracle}}(x;\theta)], we obtain

MSE_A(g^_GRPO(x;θ))≤MSE(g^(x;θ)).\text{MSE}\_{A}(\widehat{g}\_{\rm GRPO}(x;\theta))\leq\text{MSE}(\widehat{g}(x;\theta)).

Moreover, when the baseline term b(x)≡0b(x)\equiv 0, the above inequality becomes strict given that Vπ_θ(x)≠0V^{\pi\_{\theta}}(x)\neq 0 and ∇_θlog⁡π_θ(Y∣x)\nabla\_{\theta}\log\pi\_{\theta}(Y|x) is not almost surely zero.

Next, consider g^(θ)=∑_bg^(X(b);θ)/B\widehat{g}(\theta)=\sum\_{b}\widehat{g}(X^{(b)};\theta)/B in the minibatch setting. Following a similar argument to the proof of Proposition 3, we obtain

E∥g^(θ)−g(θ)∥2\displaystyle\mathbb{E}\|\widehat{g}(\theta)-g(\theta)\|^{2}=\displaystyle=E∥g(X;θ)−g(θ)∥2B+1BE∥g^(X;θ)−g(X;θ)∥2.\displaystyle\frac{\mathbb{E}\left\|g(X;\theta)-g(\theta)\right\|^{2}}{B}+\frac{1}{B}\mathbb{E}\|\widehat{g}(X;\theta)-g(X;\theta)\|^{2}.

Applying inequality (25), we obtain

MSE(g^(θ))≥E∥g(X;θ)−g(θ)∥2B+1BGtrace[Σ_oracle(θ)]=MSE_A(g^_GRPO(θ)).\text{MSE}(\widehat{g}(\theta))\geq\frac{\mathbb{E}\left\|g(X;\theta)-g(\theta)\right\|^{2}}{B}+\frac{1}{BG}\text{trace}[\Sigma\_{\text{oracle}}(\theta)]=\text{MSE}\_{A}(\widehat{g}\_{\rm GRPO}(\theta)).

For a zero baseline function, the above inequality becomes strict given that Vπ_θ(X)V^{\pi\_{\theta}}(X) and ∇_θlog⁡π_θ(Y∣X)\nabla\_{\theta}\log\pi\_{\theta}(Y|X) are not almost surely zero. This completes the proof of Corollary 5. ∎

This section presents the proofs of Lemma 6, Theorems 7 and 8, and Corollaries 9 and 10.

Let J(θ)=Eπ_θ(Z)J(\theta)=\mathbb{E}^{\pi\_{\theta}}(Z) denote our objective function defined on θ∈Θ\theta\in\Theta. Its gradient is given by ∇_θJ(θ)=g(θ)\nabla\_{\theta}J(\theta)=g(\theta) Recall that the parameter is updated according to θ_n+1=θ_n+η_ng^(θ_n)\theta\_{n+1}=\theta\_{n}+\eta\_{n}\widehat{g}(\theta\_{n}). Under the LL-smoothness condition (Assumption 3), we have

J(θ_n+1)=J(θ_n+η_ng^(θ_n))≥J(θ_n)+η_ng⊤(θ_n)g^(θ_n)−12Lη_n2∥g^(θ_n)∥2.J(\theta\_{n+1})=J(\theta\_{n}+\eta\_{n}\widehat{g}(\theta\_{n}))\geq J(\theta\_{n})+\eta\_{n}g^{\top}(\theta\_{n})\widehat{g}(\theta\_{n})-\frac{1}{2}L\eta\_{n}^{2}\|\widehat{g}(\theta\_{n})\|^{2}.

Notice that g^(θ)\widehat{g}(\theta) is unbiased to g(θ)g(\theta). Conditioned on θ_n\theta\_{n} and take conditional expectation on both sides, we obtain

$\displaystyle\mathbb{E}[J(\theta_{n+1})\theta_{n}]$≥\displaystyle\geq$\displaystyle J(\theta_{n})+\eta_{n}|g(\theta_{n})|^{2}-\frac{1}{2}L\eta_{n}^{2}\mathbb{E}\bigr[|\widehat{g}(\theta_{n})|^{2}\theta_{n}\bigr].$

The last term on the RHS can be represented by −Lη_n2[MSE(g^(θ_n))+∥g(θ_n)∥2]/2-L\eta\_{n}^{2}\big[\textrm{MSE}(\widehat{g}(\theta\_{n}))+\|g(\theta\_{n})\|^{2}\big]/2. Let θ\*\theta^{\*} be a maximizer of J(θ)J(\theta). Then, rearranging the terms in (26) yields:

$\displaystyle J(\theta^{*})-\mathbb{E}[J(\theta_{n+1})\theta_{n}]$≤\displaystyle\leqJ(θ\*)−J(θ_n)−η_n∥g(θ_n)∥2\displaystyle J(\theta^{\*})-J(\theta\_{n})-\eta\_{n}\|g(\theta\_{n})\|^{2}
+12Lη_n2∥g(θ_n)∥2+12Lη_n2MSE(g^_n(θ_n)).\displaystyle\qquad+\frac{1}{2}L\eta\_{n}^{2}\|g(\theta\_{n})\|^{2}+\frac{1}{2}L\eta\_{n}^{2}\text{MSE}(\widehat{g}\_{n}(\theta\_{n})).

It follows that

$$\mathbb{E}[\Delta(\pi_{\theta_{n+1}})\theta_{n}]\leq\Delta(\pi_{\theta_{n}})-\left(\eta_{n}-\frac{L\eta_{n}^{2}}{2}\right)|g(\theta_{n})|^{2}+\frac{L\eta_{n}^{2}}{2}\text{MSE}(\widehat{g}(\theta_{n}))$$

Under the PL condition (Assumption 4), we obtain

$$\mathbb{E}[\Delta(\pi_{\theta_{n+1}})\theta_{n}]\leq\left(1-2\mu\eta_{n}+\mu L\eta_{n}^{2}\right)\Delta(\pi_{\theta_{n}})+\frac{1}{2}L\eta_{n}^{2}M,$$

where MM denotes the uniform upper bound of the MSEs.

Based on this inequality, we derive suboptimality gap bounds for the two learning-rate schedules separately, as follows.

(i) The constant schedule. Under the constant schedule where η_i=β\eta\_{i}=\beta, (27) becomes

$$\mathbb{E}[\Delta(\pi_{\theta_{n+1}})\theta_{n}]\leq\left(1-2\mu\beta+\mu L\beta^{2}\right)\Delta(\pi_{\theta_{n}})+\frac{1}{2}L\beta^{2}M.$$

By Lemma 16 in Section B.4, we have μ≤L\mu\leq L. Consider the quadratic equation 1−2μβ+μLβ2=01-2\mu\beta+\mu L\beta^{2}=0 with β\beta treated as the variable. Its discriminant equals μ2−4μL≤0\mu^{2}-4\mu L\leq 0 so that the equation has at most one real solution. As such, we have ρ:=1−2μβ+μLβ2≥0\rho:=1-2\mu\beta+\mu L\beta^{2}\geq 0. Additionally, since β<(2L)−1\beta<(2L)^{-1} (Assumption 5(a)), ρ\rho is strictly smaller than 11.

Taking expectations on both sides of (28) with respect to θ_n\theta\_{n} and unrolling the recursion yields

E[Δ(π_θ_n+1)]≤ρnE[Δ(π_θ_0)]+12Lβ2M∑_k=1nρk−1=ρnE[Δ(π_θ_0)]+Lβ2M2(1−ρ).\displaystyle\mathbb{E}[\Delta(\pi\_{\theta\_{n+1}})]\leq\rho^{n}\mathbb{E}[\Delta(\pi\_{\theta\_{0}})]+\frac{1}{2}L\beta^{2}M\sum\_{k=1}^{n}\rho^{k-1}=\rho^{n}\mathbb{E}[\Delta(\pi\_{\theta\_{0}})]+\frac{L\beta^{2}M}{2(1-\rho)}.

This completes the proof under the constant schedule.

(ii) The 1/i1/i schedule. When η_i=β/i\eta\_{i}=\beta/i for some constant β\beta, (27) becomes

$$\mathbb{E}[\Delta(\pi_{\theta_{n+1}})\theta_{n}]\leq\left(1-\frac{2\mu\beta}{n}+\frac{\mu L\beta^{2}}{n^{2}}\right)\Delta(\pi_{\theta_{n}})+\frac{L\beta^{2}M}{2n^{2}}.$$

Taking expectation on both sides yields

E[Δ(π_θ_n+1)]≤(1−2μβn+μLβ2n2)E[Δ(π_θ_n)]+Lβ2M2n2.\mathbb{E}[\Delta(\pi\_{\theta\_{n+1}})]\leq\left(1-\frac{2\mu\beta}{n}+\frac{\mu L\beta^{2}}{n^{2}}\right)\mathbb{E}[\Delta(\pi\_{\theta\_{n}})]+\frac{L\beta^{2}M}{2n^{2}}.

To this end, we apply Lemma 14 (Section B.4) by letting a_n=E[Δ(π_θ_n)]a\_{n}=\mathbb{E}[\Delta(\pi\_{\theta\_{n}})], A=2μβA=2\mu\beta, B=μLβ2B=\mu L\beta^{2} and C=12Lβ2MC=\frac{1}{2}L\beta^{2}M. Since β>(2μ)−1\beta>(2\mu)^{-1}, we have A>1A>1. Notice that the sequence a_na\_{n} is bounded under Assumption 1. Therefore, lemma 14 implies that for any constant ε>0\varepsilon>0,

E[Δ(π_θ_n)]≤max⁡{(1+ε)Lβ2M(4μβ−2)n,cn}\mathbb{E}[\Delta(\pi\_{\theta\_{n}})]\leq\max\left\{\frac{(1+\varepsilon)L\beta^{2}M}{(4\mu\beta-2)n},\frac{c}{n}\right\}

holds for all n≥1n\geq 1, where cc is a constant only depends on μ,β,L\mu,\beta,L and ε\varepsilon. This finishes the proof of Lemma 6. ∎

According to Lemma 6, the sub-optimality upper bounds depend on sup⁡_θMSE(g^(θ))/n\sup\_{\theta}\text{MSE}(\widehat{g}(\theta))/n. By Proposition 3, we know that for GRPO-type algorithm,

sup⁡_θMSE(g^(θ))≤c_1B+c_2BG+c_3BG2,\sup\_{\theta}\text{MSE}(\widehat{g}(\theta))\leq\frac{c\_{1}}{B}+\frac{c\_{2}}{BG}+\frac{c\_{3}}{BG^{2}},(29)

where c_1=sup⁡_θE∥g(X;θ)−g(θ)∥_22c\_{1}=\sup\_{\theta}\mathbb{E}\|g(X;\theta)-g(\theta)\|\_{2}^{2}, c_2=sup⁡_θtrace[Σ_oracle(θ)]c\_{2}=\sup\_{\theta}\text{trace}[\Sigma\_{\text{oracle}}(\theta)] and c_3=O(sup⁡_θE∥∇_θlog⁡π_θ(Y∣X)∥2)c\_{3}=O(\sup\_{\theta}\mathbb{E}\|\nabla\_{\theta}\log\pi\_{\theta}(Y|X)\|^{2}).

Under a fixed sampling budget N=BGN=BG per iteration, the RHS becomes

c_1GN+c_2N+c_3NG≥c_2N+2Nc_1c_3,\frac{c\_{1}G}{N}+\frac{c\_{2}}{N}+\frac{c\_{3}}{NG}\geq\frac{c\_{2}}{N}+\frac{2}{N}\sqrt{c\_{1}c\_{3}},

where the inequality follows from that a2+b2≥2aba^{2}+b^{2}\geq 2ab, and the equality holds if and only if G=c_3/c_1G=\sqrt{c\_{3}/c\_{1}}. Similarly, under a fixed total sampling budget N=nBG\mathbf{N}=nBG, the MSE is upper bounded by

c_1nGN+c_2nN+c_3nNG≥c_2nN+2Nc_1c_3n.\frac{c\_{1}nG}{\mathbf{N}}+\frac{c\_{2}n}{\mathbf{N}}+\frac{c\_{3}n}{\mathbf{N}G}\geq\frac{c\_{2}n}{\mathbf{N}}+\frac{2}{\mathbf{N}}\sqrt{c\_{1}c\_{3}n}.

Again, the the equality holds if and only if G=c_3/c_1G=\sqrt{c\_{3}/c\_{1}}. ∎

We first prove consistency. For any θ_1,θ_2∈Θ\theta\_{1},\theta\_{2}\in\Theta, the distance function satisfies

$$\bigld(\theta_{1},\Theta^{*})-d(\theta_{2},\Theta^{*})\bigr

and is therefore continuous in θ\theta. Hence, for any ε>0\varepsilon>0, the level set

N_ε:={θ∈Θ: d(θ,Θ\*)≥ε}\mathcal{N}\_{\varepsilon}:=\left\{\theta\in\Theta:\,d(\theta,\Theta^{\*})\geq\varepsilon\right\}

is closed. Under the compactness assumption of Θ\Theta in Assumption 6, N_ε\mathcal{N}\_{\varepsilon} is compact as well. Combined with the continuity of the policy learning objective JJ (implied by Assumption 3), we obtain that the supremum sup⁡_θ∈N_εJ(θ)\sup\_{\theta\in\mathcal{N}\_{\varepsilon}}J(\theta) is attainable at some θ_ε∈N_ε\theta\_{\varepsilon}\in\mathcal{N}\_{\varepsilon}.

Since θ_ε∉Θ\*\theta\_{\varepsilon}\notin\Theta^{\*}, we have δ_ε:=J\*−J(θ_ε)>0\delta\_{\varepsilon}:=J^{\*}-J(\theta\_{\varepsilon})>0. Therefore,

P(d(θ_n,Θ\*)≥ε)≤P(Δ(π_θ_n)≥δ_ε).\mathbb{P}\bigl(d(\theta\_{n},\Theta^{\*})\geq\varepsilon\bigr)\leq\mathbb{P}\bigl(\Delta(\pi\_{\theta\_{n}})\geq\delta\_{\varepsilon}\bigr).

Applying Markov’s inequality and invoking Lemma 6, we obtain

P(d(θ_n,Θ\*)≥ε)≤E[Δ(π_θ_n)]δ_ε≤cˉnδ_ε→0as n→∞,\mathbb{P}\bigl(d(\theta\_{n},\Theta^{\*})\geq\varepsilon\bigr)\leq\frac{\mathbb{E}\bigl[\Delta(\pi\_{\theta\_{n}})\bigr]}{\delta\_{\varepsilon}}\leq\frac{\bar{c}}{n\delta\_{\varepsilon}}\to 0\qquad\text{as }n\to\infty,

where cˉ\bar{c} is a positive constant depending on (β,μ,L,M,ε)(\beta,\mu,L,M,\varepsilon). Thus,

d(θ_n,Θ\*)→P0,d(\theta\_{n},\Theta^{\*})\xrightarrow{P}0,

which establishes the consistency of θ_n\theta\_{n}.

Next, we derive the asymptotic distribution of Δ(π_θ_n)\Delta(\pi\_{\theta\_{n}}). The proof proceeds in four steps:

  • •

    Step (i): We strengthen consistency to almost sure convergence, i.e., d(θ_n,Θ\*)→a.s.0d(\theta\_{n},\Theta^{\*})\stackrel{{\scriptstyle\mathrm{a.s.}}}{{\to}}0.

  • •

    Step (ii): We derive the convergence rate of θ_n\theta\_{n} by showing that E[d2(θ_n,Θ\*)]=O(n−1)\mathbb{E}[d^{2}(\theta\_{n},\Theta^{\*})]=O(n^{-1}).

  • •

    Step (iii): We establish the asymptotic normality of the identifiable part of θ_n\theta\_{n}, Q⊤θ_nQ^{\top}\theta\_{n}.

  • •

    Step (iv): We derive the asymptotic distribution of Δ(π_θ_n)\Delta(\pi\_{\theta\_{n}}).

Step (i): Almost sure convergence. To prove this result, recall the inequality established in equation (27):

$$\mathbb{E}[\Delta(\pi_{\theta_{n+1}})\theta_{n}]\leq\left(1-2\mu\eta_{n}+\mu L\eta_{n}^{2}\right)\Delta(\pi_{\theta_{n}})+\frac{1}{2}L\eta_{n}^{2}M,$$

where η_n=β/n\eta\_{n}=\beta/n. We apply the Robbins-Siegmund theorem (see Lemma 17) by setting V_n=Δ(π_θ_n)V\_{n}=\Delta(\pi\_{\theta\_{n}}), A_n=μLη_n2A\_{n}=\mu L\eta\_{n}^{2}, B_n=12Lη_n2MB\_{n}=\frac{1}{2}L\eta\_{n}^{2}M and C_n=2μη_nV_nC\_{n}=2\mu\eta\_{n}V\_{n}. It is immediate to see that

∑_n=1∞A_n=∑_n=1∞μLβ2n2<∞\sum\_{n=1}^{\infty}A\_{n}=\sum\_{n=1}^{\infty}\frac{\mu L\beta^{2}}{n^{2}}<\infty

and

∑_n=1∞B_n=∑_n=1∞LMβ22n2<∞.\sum\_{n=1}^{\infty}B\_{n}=\sum\_{n=1}^{\infty}\frac{LM\beta^{2}}{2n^{2}}<\infty.

By the Robbins-Siegmund theorem, it follows that V_n=Δ(π_θ_n)V\_{n}=\Delta(\pi\_{\theta\_{n}}) converges to some random variable V_∞V\_{\infty} almost surely.

Additionally, by the suboptimality gap bound established in Lemma 6, an application of Fatou’s lemma yields

EV_∞≤lim inf⁡_nEΔ(π_θ_n)≤lim inf⁡_nc\*/n=0,\mathbb{E}V\_{\infty}\leq\liminf\_{n}\mathbb{E}\Delta(\pi\_{\theta\_{n}})\leq\liminf\_{n}c^{\*}/n=0,

for some constant c\*>0c^{\*}>0. Since V_∞V\_{\infty} is non-negative, it follows that V_∞=0V\_{\infty}=0 almost surely. Consequently, Δ(π_θ_n)→0\Delta(\pi\_{\theta\_{n}})\to 0 almost surely. This implies for any δ>0\delta>0,

P({Δ(π_θ_n)≥δ, i.o.})=0,\mathbb{P}\left(\{\Delta(\pi\_{\theta\_{n}})\geq\delta,\text{ i.o.}\}\right)=0,

where {A_n, i.o.}\{A\_{n},\text{ i.o.}\} represents the event that A_nA\_{n} occurs infinitely often. Using the same argument as in the proof of consistency of θ_n\theta\_{n}, we obtain for any ε>0\varepsilon>0 that,

P({d(θ_n,Θ\*)≥ε, i.o.})≤P({Δ(π_θ_n)≥δ_ε, i.o.})=0.\mathbb{P}\left(\{d(\theta\_{n},\Theta^{\*})\geq\varepsilon,\text{ i.o.}\}\right)\leq\mathbb{P}\left(\{\Delta(\pi\_{\theta\_{n}})\geq\delta\_{\varepsilon},\text{ i.o.}\}\right)=0.

This establishes the almost sure convergence of θ_n\theta\_{n}.

Step (ii): Convergence rate of θ_n\theta\_{n}: Recall that the projection operator Π_Θ\*\Pi\_{\Theta^{\*}} is defined as:

Π_Θ\*(θ):=arg⁡min⁡_x∈Θ\*d(θ,x).\Pi\_{\Theta^{\*}}(\theta):=\arg\min\_{x\in\Theta^{\*}}d(\theta,x).

Since Θ\*\Theta^{\*} is closed and convex (Assumption 7), the projection operator is well-defined. It follows from its definition that

d2(θ_n+1,Θ\*)≤∥θ_n+1−Π_Θ\*(θ_n)∥2.d^{2}(\theta\_{n+1},\Theta^{\*})\leq\|\theta\_{n+1}-\Pi\_{\Theta^{\*}}(\theta\_{n})\|^{2}.

According to the update rule θ_n+1=θ_n+η_ng^(θ_n)\theta\_{n+1}=\theta\_{n}+\eta\_{n}\widehat{g}(\theta\_{n}), we have

d2(θ_n+1,Θ\*)\displaystyle d^{2}(\theta\_{n+1},\Theta^{\*})≤\displaystyle\leq∥θ_n+η_ng^(θ_n)−Π_Θ\*(θ_n)∥2\displaystyle\|\theta\_{n}+\eta\_{n}\widehat{g}(\theta\_{n})-\Pi\_{\Theta^{\*}}(\theta\_{n})\|^{2}
=\displaystyle=d2(θ_n,Θ\*)+2η_ng^(θ_n)⊤(θ_n−Π_Θ\*(θ_n))+η_n2∥g^(θ_n)∥2.\displaystyle d^{2}(\theta\_{n},\Theta^{\*})+2\eta\_{n}\widehat{g}(\theta\_{n})^{\top}(\theta\_{n}-\Pi\_{\Theta^{\*}}(\theta\_{n}))+\eta\_{n}^{2}\|\widehat{g}(\theta\_{n})\|^{2}.

Taking conditional expectation with respect to θ_n\theta\_{n} on both sides yields

$\displaystyle\begin{split}\mathbb{E}[d^{2}(\theta_{n+1},\Theta^{*})\theta_{n}]\leq d^{2}(\theta_{n},\Theta^{*})+2\eta_{n}g^{\top}(\theta_{n})(\theta_{n}-\Pi_{\Theta^{*}}(\theta_{n}))+\eta_{n}^{2}\mathbb{E}\bigl[|\widehat{g}(\theta_{n})|^{2}\theta_{n}\bigr]\ =d^{2}(\theta_{n},\Theta^{*})+2\eta_{n}g^{\top}(\theta_{n})(\theta_{n}-\Pi_{\Theta^{*}}(\theta_{n}))+\eta_{n}^{2}\bigl[\textrm{MSE}(\widehat{g}(\theta_{n}))+|g(\theta_{n})|^{2}\bigr].\end{split}$

Under LL-smoothness (Assumption 3) and weak strong concavity (Assumption 9), we have

∥g(θ_n)∥2=∥g(θ_n)−g(Π_Θ\*(θ_n))∥2≤L2∥θ_n−Π_Θ\*(θ_n)∥2=L2d2(θ_n,Θ\*),\displaystyle\|g(\theta\_{n})\|^{2}=\|g(\theta\_{n})-g(\Pi\_{\Theta^{\*}}(\theta\_{n}))\|^{2}\leq L^{2}\|\theta\_{n}-\Pi\_{\Theta^{\*}}(\theta\_{n})\|^{2}=L^{2}d^{2}(\theta\_{n},\Theta^{\*}),

and

g⊤(θ_n)(θ_n−Π_Θ\*(θ_n))≤−μd2(θ_n,Θ\*).\displaystyle g^{\top}(\theta\_{n})(\theta\_{n}-\Pi\_{\Theta^{\*}}(\theta\_{n}))\leq-\mu d^{2}(\theta\_{n},\Theta^{\*}).

Setting η_n=β/n\eta\_{n}=\beta/n, and combining these inequalities with (30) yields

E[d2(θ_n+1,Θ\*)]≤(1−2μβn+L2β2n2)E[d2(θ_n,Θ\*)]+β2Mn2.\mathbb{E}[d^{2}(\theta\_{n+1},\Theta^{\*})]\leq\left(1-\frac{2\mu\beta}{n}+\frac{L^{2}\beta^{2}}{n^{2}}\right)\mathbb{E}[d^{2}(\theta\_{n},\Theta^{\*})]+\frac{\beta^{2}M}{n^{2}}.

Under the assumption that β>(2μ)−1\beta>(2\mu)^{-1}, we can apply Lemma 14 again to obtain

E[d2(θ_n,Θ\*)]=O(n−1).\mathbb{E}[d^{2}(\theta\_{n},\Theta^{\*})]=O(n^{-1}).

This establishes the desired convergence rate of θ_n\theta\_{n}.

Step (iii) Asymptotic normality of Q⊤θ_n:Q^{\top}\theta\_{n}: In overparameterized models such as LLMs, the entire parameter vector is not asymptotically normal because it is not fully identifiable. To address this, we decompose the parameter into its identifiable and non-identifiable components. Specifically, the matrix QQ introduced in Assumption 7 forms an orthonormal basis for the identifiable subspace.

Without loss of generality, we assume the Hessian matrix H\*H^{\*} in Assumption 7 is a diagonal matrix diag(−λ_1,…,−λ_r)\text{diag}(-\lambda\_{1},\ldots,-\lambda\_{r}), where λ_1\lambda\_{1}, ⋯\cdots, λ_r\lambda\_{r} are the rr positive eigenvalues of −H\*-H^{\*}. Indeed, since H(θ\*)H(\theta^{\*}) is symmetric, so is H\*H^{\*}. As such, there exists an orthogonal matrix PP such that P⊤H\*P=diag(−λ_1,…,−λ_r)P^{\top}H^{\*}P=\text{diag}(-\lambda\_{1},\ldots,-\lambda\_{r}). Consequently, we can replace H\*H^{\*} and the projection matrix QQ by P⊤H\*PP^{\top}H^{\*}P (which is diagonal) and QP⊤QP^{\top}, respectively. Let Qˉ=(Q,Q~)\bar{Q}=(Q,\widetilde{Q}) denote an orthogonal completion of QQ so that Qˉ\bar{Q} is a d×dd\times d orthogonal matrix and

Qˉ⊤H(θ\*)Qˉ=diag(−λ_1,…,−λ_r,0…,0).\displaystyle\bar{Q}^{\top}H(\theta^{\*})\bar{Q}=\text{diag}(-\lambda\_{1},\ldots,-\lambda\_{r},0\ldots,0).(31)

By Lemma 15, the set Q⊤Θ\*={Q⊤θ:θ∈Θ\*}Q^{\top}\Theta^{\*}=\{Q^{\top}\theta:\theta\in\Theta^{\*}\} consists of a single point, which we denote by v\*v^{\*}. We aim to establish the asymptotic normality of Q⊤θ_n−v\*Q^{\top}\theta\_{n}-v^{\*} in this step.

Let γ_n=Qˉ⊤θ_n\gamma\_{n}=\bar{Q}^{\top}\theta\_{n}. Then γ_n\gamma\_{n} satisfies the recursion

γ_n+1\displaystyle\gamma\_{n+1}=γ_n+η_nQˉ⊤g(Qˉγ_n)+η_nQˉ⊤(g^(θ_n)−g(θ_n)).\displaystyle=\gamma\_{n}+\eta\_{n}\bar{Q}^{\top}g(\bar{Q}\gamma\_{n})+\eta\_{n}\bar{Q}^{\top}\bigl(\widehat{g}(\theta\_{n})-g(\theta\_{n})\bigr).(32)

Let v_n=Q⊤θ_nv\_{n}=Q^{\top}\theta\_{n} denote the first rr components of γ_n\gamma\_{n} (the identifiable component), and let u_nu\_{n} denote the remaining d−rd-r components (the non-identifiable component), where dd is the dimension of θ\theta. Then

\displaystyle\begin{split}v\_{n+1}&=v\_{n}+\eta\_{n}Q^{\top}g(Qv\_{n}+\widetilde{Q}u\_{n})+\eta\_{n}Q^{\top}\bigl(\widehat{g}(\theta\_{n})-g(\theta\_{n})\bigr)\\ &=v\_{n}+\frac{h(v\_{n},u\_{n})}{n}+\frac{\Delta M\_{n+1}}{n},\end{split}(33)

where

h(v,u)=βQ⊤g(Qv+Q~u),ΔM_n+1=βQ⊤(g^(θ_n)−g(θ_n))h(v,u)=\beta Q^{\top}g(Qv+\widetilde{Q}u),\qquad\Delta M\_{n+1}=\beta Q^{\top}\bigl(\widehat{g}(\theta\_{n})-g(\theta\_{n})\bigr)

is a martingale difference satisfying E(ΔM_n+1∣θ_n)=0\mathbb{E}(\Delta M\_{n+1}\mid\theta\_{n})=0.

We aim to apply central limit theorems (CLTs) for stochastic approximation [e.g., Zhang, 2016, Proposition B.2] to establish the asymptotic normality of v_nv\_{n}. To invoke this CLT (see Lemma 18), we need to represent v_nv\_{n} in the form

v_n+1−v\*=(I_r−Σ+o(1)n)(v_n−v\*)+e_n+1n,v\_{n+1}-v^{\*}=\Big(I\_{r}-\frac{\Sigma+o(1)}{n}\Big)(v\_{n}-v^{\*})+\frac{e\_{n+1}}{n},

for some martingale difference sequence {e_n}\{e\_{n}\}. Comparing with (33), we can set e_n+1e\_{n+1} to ΔM_n+1\Delta M\_{n+1}. It remains to show that

h(v_n,u_n)=−H(v_n−v\*)+o(∥v_n−v\*∥),h(v\_{n},u\_{n})=-H(v\_{n}-v^{\*})+o(\|v\_{n}-v^{\*}\|),(34)

for some deterministic matrix HH.

Nonetheless, it remains challenging to prove (34). Although the orthogonal transformation isolates the identifiable component, the update still depends on the full parameter vector. Consequently, the recursion for v_nv\_{n} involves not only v_nv\_{n} but also the non-identifiable component u_nu\_{n}, as reflected in (33). However, (34) requires to approximate h(v_n,u_n)h(v\_{n},u\_{n}) using only v_nv\_{n}. While this may seem impossible at first glance, we show below that it can be achieved under the WSC condition (Assumption 9) by setting H=−βH\*H=-\beta H^{\*}.

Let u_n\*u\_{n}^{\*} denote the projection of the non-identifiable component u_nu\_{n} onto Θ\*\Theta^{\*}, defined through the following sequence of mappings:

u_n  ↦  θ_n  ↦  θ_n\*  ↦  γ_n\*  ↦  u_n\*.u\_{n}\;\mapsto\;\theta\_{n}\;\mapsto\;\theta\_{n}^{\*}\;\mapsto\;\gamma\_{n}^{\*}\;\mapsto\;u\_{n}^{\*}.

Specifically, recall that θ_n=Qˉγ_n=Qˉ(v_n⊤,u_n⊤)⊤\theta\_{n}=\bar{Q}\gamma\_{n}=\bar{Q}(v\_{n}^{\top},u\_{n}^{\top})^{\top}. Let θ_n\*=Π_Θ\*(θ_n)\theta\_{n}^{\*}=\Pi\_{\Theta^{\*}}(\theta\_{n}) denote the projection of θ_n\theta\_{n} onto Θ\*\Theta^{\*}, and define γ_n\*=Qˉ⊤θ_n\*\gamma\_{n}^{\*}=\bar{Q}^{\top}\theta\_{n}^{\*}. We decompose γ_n\*\gamma\_{n}^{\*} as γ_n\*=(v\*⊤,u_n\*⊤)⊤\gamma\_{n}^{\*}=(v^{\*\top},u\_{n}^{\*\top})^{\top}, where v\*v^{\*} and u_n\*u\_{n}^{\*} correspond to the first rr and last d−rd-r components of γ_n\*\gamma\_{n}^{\*}, respectively.

Note that by Lemma 15, v\*v^{\*} is unique and does not depend on nn, whereas u_n\*u\_{n}^{\*} may vary with nn. By definition, we have h(v\*,u_n\*)=0h(v^{\*},u\_{n}^{\*})=0. It follows from Taylor’s theorem that

h(v_n,u_n)=h(v_n,u_n)−h(v\*,u_n\*)=βQ⊤[g(Qv_n+Q~u_n)−g(Qv\*+Q~u_n\*)]\displaystyle h(v\_{n},u\_{n})=h(v\_{n},u\_{n})-h(v^{\*},u\_{n}^{\*})=\beta Q^{\top}[g(Qv\_{n}+\widetilde{Q}u\_{n})-g(Qv^{\*}+\widetilde{Q}u\_{n}^{\*})]
=\displaystyle=βQ⊤H(θ\*)[Q(v_n−v\*)+Q~(u_n−u_n\*)]+o(∥Q(v_n−v\*)∥+∥Q~(u_n−u_n\*)∥),\displaystyle\beta Q^{\top}H(\theta^{\*})[Q(v\_{n}-v^{\*})+\widetilde{Q}(u\_{n}-u\_{n}^{\*})]+o(\|Q(v\_{n}-v^{\*})\|+\|\widetilde{Q}(u\_{n}-u\_{n}^{\*})\|),

where the first term on the second line equals βQ⊤H(θ\*)Q(v_n−v\*)=βH\*(v_n−v\*)\beta Q^{\top}H(\theta^{\*})Q(v\_{n}-v^{\*})=\beta H^{\*}(v\_{n}-v^{\*}) by (31). Moreover, the second term =o ⁣(∥v_n−v\*∥+∥u_n−u_n\*∥)=o\!\left(\|v\_{n}-v^{\*}\|+\|u\_{n}-u\_{n}^{\*}\|\right), and somewhat surprisingly, this term further simplifies to o(∥v_n−v\*∥)o(\|v\_{n}-v^{\*}\|) under the WSC condition (Assumption 9), as we show below.

Under Assumption 9, we have

μ[∥v_n−v\*∥2+∥u_n−u\*∥2]≤g⊤(Qγ_n)Qˉ(γ_n\*−γ_n).\displaystyle\mu\big[\|v\_{n}-v^{\*}\|^{2}+\|u\_{n}-u^{\*}\|^{2}\big]\leq g^{\top}(Q\gamma\_{n})\bar{Q}(\gamma\_{n}^{\*}-\gamma\_{n}).

Applying Taylor’s theorem again, the RHS becomes

−(γ_n−γ_n\*)⊤Q⊤HQ(γ_n−γ_n\*)+o(∥γ_n−γ_n\*∥2)=−∑_k=1rλ_k(v_nk−v_k\*)2+o(∥γ_n−γ_n\*∥2).\displaystyle-(\gamma\_{n}-\gamma\_{n}^{\*})^{\top}Q^{\top}HQ(\gamma\_{n}-\gamma\_{n}^{\*})+o(\|\gamma\_{n}-\gamma\_{n}^{\*}\|^{2})=-\sum\_{k=1}^{r}\lambda\_{k}(v\_{nk}-v\_{k}^{\*})^{2}+o(\|\gamma\_{n}-\gamma\_{n}^{\*}\|^{2}).

Consequently, we have for sufficiently large nn that

∑_k=1r(ϵ−λ_k−μ)(v_nk−v_k\*)2≥(μ−ϵ)∥u_n−u\*∥2,\displaystyle\sum\_{k=1}^{r}(\epsilon-\lambda\_{k}-\mu)(v\_{nk}-v\_{k}^{\*})^{2}\geq(\mu-\epsilon)\|u\_{n}-u^{\*}\|^{2},

for some ϵ<μ\epsilon<\mu. This leads to ∥u_n−u\*∥=O(∥v_n−v\*∥)\|u\_{n}-u^{\*}\|=O(\|v\_{n}-v^{\*}\|).

To summarize, we have shown that

h(v_n,u_n)=βH\*(v_n−v\*)+o(∥v_n−v\*∥).\displaystyle h(v\_{n},u\_{n})=\beta H^{\*}(v\_{n}-v^{\*})+o(\|v\_{n}-v^{\*}\|).(35)

This proves (34) with Σ=−βH\*\Sigma=-\beta H^{\*}. Define

H_n={−βH\*−[h(v_n,u_n)−βH\*(v_n−v\*)](v_n−v\*)⊤∥v_n−v\*∥2,if (v_n,u_n)∉Qˉ⊤Θ\*,−βH\*,if (v_n,u_n)∈Qˉ⊤Θ\*.H\_{n}=\begin{cases}-\beta H^{\*}-\displaystyle\frac{[h(v\_{n},u\_{n})-\beta H^{\*}(v\_{n}-v^{\*})](v\_{n}-v^{\*})^{\top}}{\|v\_{n}-v^{\*}\|^{2}},&\text{if }(v\_{n},u\_{n})\notin\bar{Q}^{\top}\Theta^{\*},\\ -\beta H^{\*},&\text{if }(v\_{n},u\_{n})\in\bar{Q}^{\top}\Theta^{\*}.\end{cases}

It follows from (35) that H_nH\_{n} is well-defined and satisfies H_n→−βH\*H\_{n}\to-\beta H^{\*} almost surely, given the almost sure convergence of the estimated parameters.

Additionally, we have h(v_n,u_n)=H_n(v_n−v\*)h(v\_{n},u\_{n})=H\_{n}(v\_{n}-v^{\*}) by definition. This together with (33) leads to

v_n+1−v\*=(I_r−H_nn)(v_n−v\*)+ΔM_n+1n.v\_{n+1}-v^{\*}=\left(I\_{r}-\frac{H\_{n}}{n}\right)(v\_{n}-v^{\*})+\frac{\Delta M\_{n+1}}{n}.

Based on this equation, according to Lemma 18, it remains to verify the following conditions to establish the CLT:

  1. (i)

    The smallest eigenvalue of the limit of H_nH\_{n}, i.e., −βH\*-\beta H^{\*}, should be larger than 1/21/2.

  2. (ii)

    The Lindeberg condition for martingale differences: for any ϵ>0\epsilon>0,

    $\displaystyle\frac{1}{n}\sum_{i=1}^{n}\mathbb{E}[|\Delta M_{i}|^{2}\mathbb{I}{|\Delta M_{i}|\geq\epsilon\sqrt{n}\mathcal{F}_{i-1}]\to 0\text{ a.s.,}$

    where F_i\mathcal{F}\_{i} denotes the filtration generated by the martingale process.

  3. (iii)

    Convergence of the quadratic variation:

    $$\frac{1}{n}\sum_{i=1}^{n}\mathbb{E}\left[(\Delta M_{i})(\Delta M_{i})^{\top}\mathcal{F}_{i-1}\right]\to\Omega\quad\text{ a.s.},$$

    for some symmetric positive semidefinite (random) matrix Ω\Omega.

To verify Condition (i), notice that by Lemma 16, the smallest eigenvalue of −H\*-H^{\*} is lower bounded by μ\mu. Condition (i) thus holds under the assumption that β>(2μ)−1\beta>(2\mu)^{-1} (Assumption 5). Condition (ii) follows from the bounded reward assumption (Assumption 1) and the bounded score assumption (Assumption 3), which together imply the boundedness of ∇M_i\nabla M\_{i}. Condition (iii) is directly implied by Assumption 8, with Ω=Q⊤ΓQ\Omega=Q^{\top}\Gamma Q. Applying Lemma 18, we obtain

v_n→dN(0,Σ),v\_{n}\stackrel{{\scriptstyle d}}{{\rightarrow}}N(0,\Sigma),

where

Σ=∫_0∞(e−(−βH\*−12I_r)u)⊤Q⊤ΓQe−(−βH\*−12I_r)udu.\Sigma=\int\_{0}^{\infty}(e^{-(-\beta H^{\*}-\frac{1}{2}I\_{r})u})^{\top}Q^{\top}\Gamma Qe^{-(-\beta H^{\*}-\frac{1}{2}I\_{r})u}du.

This completes the proof of this step.

Step (iv) Asymptotic distribution of Δ(π_θ_n)\Delta(\pi\_{\theta\_{n}}): Finally, we derive the asymptotic distribution of Δ(π_θ_n)\Delta(\pi\_{\theta\_{n}}). Recall that θ_n\*=arg⁡min⁡_θ∈Θ\*d(θ_n,θ)\theta\_{n}^{\*}=\arg\min\_{\theta\in\Theta^{\*}}d(\theta\_{n},\theta). It follows from Taylor’s theorem that

Δ(π_θ_n)\displaystyle\Delta(\pi\_{\theta\_{n}})=\displaystyle=−[J(θ_n)−J(θ_n\*)]\displaystyle-[J(\theta\_{n})-J(\theta\_{n}^{\*})]
=\displaystyle=−12(θ_n−θ_n\*)⊤H(θ_n\*)(θ_n−θ_n\*)+o(∥θ_n−θ_n\*∥2)\displaystyle-\frac{1}{2}(\theta\_{n}-\theta\_{n}^{\*})^{\top}H(\theta\_{n}^{\*})(\theta\_{n}-\theta\_{n}^{\*})+o(\|\theta\_{n}-\theta\_{n}^{\*}\|^{2})
=\displaystyle=−12(θ_n−θ_n\*)⊤H(θ_n\*)(θ_n−θ_n\*)+o_p(n−1),\displaystyle-\frac{1}{2}(\theta\_{n}-\theta\_{n}^{\*})^{\top}H(\theta\_{n}^{\*})(\theta\_{n}-\theta\_{n}^{\*})+o\_{p}(n^{-1}),

where the last equation follows from the rate of convergence derived in Step (ii).

Consider the leading term on the RHS. Notice that

(θ_n−θ_n\*)⊤H(θ_n\*)(θ_n−θ_n\*)\displaystyle(\theta\_{n}-\theta\_{n}^{\*})^{\top}H(\theta\_{n}^{\*})(\theta\_{n}-\theta\_{n}^{\*})
=\displaystyle=(θ_n−θ_n\*)⊤QˉH\*Qˉ⊤(θ_n−θ_n\*)\displaystyle(\theta\_{n}-\theta\_{n}^{\*})^{\top}\bar{Q}H^{\*}\bar{Q}^{\top}(\theta\_{n}-\theta\_{n}^{\*})
=\displaystyle=−(v_n−v\*)⊤diag(λ_1,…,λ_r)(v_n−v\*)\displaystyle-(v\_{n}-v^{\*})^{\top}\text{diag}(\lambda\_{1},\ldots,\lambda\_{r})(v\_{n}-v^{\*})

Combining this with the asymptotic normality n(v_n−v\*)→dN(0,Σ)\sqrt{n}(v\_{n}-v^{\*})\stackrel{{\scriptstyle d}}{{\rightarrow}}\mathcal{N}(0,\Sigma) established in Step (iii), we obtain

nΔ(π_θ_n)→d∑_k=1rw_kχ2_1,kn\Delta(\pi\_{\theta\_{n}})\stackrel{{\scriptstyle d}}{{\rightarrow}}\sum\_{k=1}^{r}w\_{k}\chi^{2}\_{1,k}

where w_kw\_{k} are eigenvalues of 12Σ1/2diag(λ_1,…,λ_r)Σ1/2\frac{1}{2}\Sigma^{1/2}\text{diag}(\lambda\_{1},\ldots,\lambda\_{r})\Sigma^{1/2}. This completes the proof of Theorem 8. ∎

Under Assumption 3, the policy score ∇_θlog⁡π_θ\nabla\_{\theta}\log\pi\_{\theta} is both continuous (as a function of θ\theta) and uniformly bounded. This together with the bounded reward assumption (Assumption 1) enables us to invoke the dominated convergence theorem to show that ∣Ω(θ_n)−Ω(θ_n\*)∣→0|\Omega(\theta\_{n})-\Omega(\theta\_{n}^{\*})|\to 0 whenever d(θ_n,Θ\*)→0d(\theta\_{n},\Theta^{\*})\to 0, where we recall θ_n\*=Π_Θ\*(θ_n)\theta\_{n}^{\*}=\Pi\_{\Theta^{\*}}(\theta\_{n}). By assumption, Ω(θ\*)\Omega(\theta^{\*}) depends on θ\*\theta^{\*} only through Q⊤θ\*=v\*Q^{\top}\theta^{\*}=v^{\*}, which is unique and invariant over Θ\*\Theta^{\*} by Lemma 15. Fixing any θ\*∈Θ\*\theta^{\*}\in\Theta^{\*}, we thus obtain Ω(θ_n)→Ω(θ\*)\Omega(\theta\_{n})\to\Omega(\theta^{\*}), which under Assumption 8 yields Q⊤ΓQ=Ω(θ\*)Q^{\top}\Gamma Q=\Omega(\theta^{\*}).

Using the same calculations as in the proof of Proposition 3, we have

Cov(g^_GRPO(θ\*))−Cov(g^_oracle(θ\*))=O(G−2).\textrm{Cov}(\widehat{g}\_{\textrm{GRPO}}(\theta^{\*}))-\textrm{Cov}(\widehat{g}\_{\text{oracle}}(\theta^{\*}))=O(G^{-2}).

Consequently, the same order of magnitude holds for Ω_GRPO(θ\*)−Ω_oracle(θ\*)\Omega\_{\mathrm{GRPO}}(\theta^{\*})-\Omega\_{\mathrm{oracle}}(\theta^{\*}), and hence for Q⊤(Γ_GRPO−Γ_oracle)QQ^{\top}(\Gamma\_{\mathrm{GRPO}}-\Gamma\_{\mathrm{oracle}})Q, where Γ_oracle\Gamma\_{\mathrm{oracle}} and Γ_GRPO\Gamma\_{\mathrm{GRPO}} denote the matrices Γ\Gamma in Assumption 8 under the oracle and GRPO algorithms, respectively.

It follows that Σ_GRPO−Σ_oracle=O(G−2)\Sigma\_{\mathrm{GRPO}}-\Sigma\_{\mathrm{oracle}}=O(G^{-2}), where Σ_GRPO\Sigma\_{\mathrm{GRPO}} and Σ_oracle\Sigma\_{\mathrm{oracle}} denote the asymptotic covariance matrices of Q⊤θ^_n,GRPOQ^{\top}\widehat{\theta}\_{n,\mathrm{GRPO}} and Q⊤θ^_n,oracleQ^{\top}\widehat{\theta}\_{n,\mathrm{oracle}} defined in Step (iii) of the proof of Theorem 8. Now, define

W_a:=−12 Σ_a1/2(θ\*)H\*Σ_a1/2(θ\*),a∈{GRPO,oracle}.W\_{a}:=-\frac{1}{2}\,\Sigma\_{a}^{1/2}(\theta^{\*})H^{\*}\Sigma\_{a}^{1/2}(\theta^{\*}),\qquad a\in\{\mathrm{GRPO},\mathrm{oracle}\}.

By assumption, both Ω_GRPO(θ\*)\Omega\_{\mathrm{GRPO}}(\theta^{\*}) and Ω_oracle(θ\*)\Omega\_{\mathrm{oracle}}(\theta^{\*}) are positive definite. So are Σ_oracle\Sigma\_{\mathrm{oracle}} and Σ_GRPO\Sigma\_{\mathrm{GRPO}}. Therefore, the matrix square-root map is locally Lipschitz so that

∥Σ_GRPO1/2−Σ_oracle1/2∥=O(∥Σ_GRPO−Σ_oracle∥)=O(G−2).\bigl\|\Sigma\_{\mathrm{GRPO}}^{1/2}-\Sigma\_{\mathrm{oracle}}^{1/2}\bigr\|=O\big(\bigl\|\Sigma\_{\mathrm{GRPO}}-\Sigma\_{\mathrm{oracle}}\bigr\|\big)=O(G^{-2}).

Hence, it follows from the negative definiteness of H\*H^{\*} (Assumption 7) that

W_GRPO−W_oracle\displaystyle W\_{\mathrm{GRPO}}-W\_{\mathrm{oracle}}=12(Σ_GRPO1/2(−H\*)Σ_GRPO1/2−Σ_oracle1/2(−H\*)Σ_oracle1/2)\displaystyle=\frac{1}{2}\Bigl(\Sigma\_{\mathrm{GRPO}}^{1/2}(-H^{\*})\Sigma\_{\mathrm{GRPO}}^{1/2}-\Sigma\_{\mathrm{oracle}}^{1/2}(-H^{\*})\Sigma\_{\mathrm{oracle}}^{1/2}\Bigr)
------------
=12[(Σ_GRPO1/2−Σ_oracle1/2)(−H\*)Σ_GRPO1/2+Σ_oracle1/2(−H\*)(Σ_GRPO1/2−Σ_oracle1/2)],\displaystyle=\frac{1}{2}\Bigl[\bigl(\Sigma\_{\mathrm{GRPO}}^{1/2}-\Sigma\_{\mathrm{oracle}}^{1/2}\bigr)(-H^{\*})\Sigma\_{\mathrm{GRPO}}^{1/2}+\Sigma\_{\mathrm{oracle}}^{1/2}(-H^{\*})\bigl(\Sigma\_{\mathrm{GRPO}}^{1/2}-\Sigma\_{\mathrm{oracle}}^{1/2}\bigr)\Bigr],

if of the order O(G−2)O(G^{-2}) as well.

By Weyl’s inequality,

$$w_{k,\mathrm{GRPO}}-w_{k,\mathrm{oracle}}

Therefore,

w_k,GRPO−w_k,oracle=O(G−2).w\_{k,\mathrm{GRPO}}-w\_{k,\mathrm{oracle}}=O(G^{-2}).

The proof is hence completed. ∎

Using the same calculations as in the proof of Corollary 5, we can show that Ω_oracle(θ\*)⪯Ω(θ\*)\Omega\_{\mathrm{oracle}}(\theta^{\*})\preceq\Omega(\theta^{\*}) in the positive semidefinite order, under the conditional uncorrelation assumption in Corollary 10, where Ω(θ\*)\Omega(\theta^{\*}) denotes the projected covariance matrix Cov(g^(θ\*))\mathrm{Cov}(\widehat{g}(\theta^{\*})) for a given meta-algorithm whose baseline is a function of XX only. The remainder of the proof follows very similarly to that of Corollary 9. ∎

This section presents the proofs of Lemma 11, Theorem 12 and Proposition 13.

By the law of large numbers, se(Z)→Pstd_x(Z)\text{se}(Z)\stackrel{{\scriptstyle P}}{{\to}}\text{std}\_{x}(Z) as G→∞G\to\infty. Under the assumption that std_x(Z)\text{std}\_{x}(Z) is bounded away from zero, it follows from the continuous mapping theorem that 1/se(Z)→P1/std_x(Z)1/\text{se}(Z)\stackrel{{\scriptstyle P}}{{\to}}1/\text{std}\_{x}(Z). Under the bounded reward assumption (Assumption 1), the bounded score assumption (Assumption 3) and the coverage assumption (Assumption 10), it follows from that the gradient estimator is asymptotically equivalent to a version with se(Z(∙))\text{se}(Z^{(\bullet)}) replaced by std(Z)\text{std}(Z), as G→∞G\to\infty. Following arguments similar to those in the proof of Lemma 1, this version is a U-statistic with the kernel function given in Lemma 11. This completes the proof. ∎

According to the bias-variance decomposition, we have

MSE(g^(x;θ))=∥b(x;θ)∥2+trace(Var(g^(x;θ)),\text{MSE}(\widehat{g}(x;\theta))=\|b(x;\theta)\|^{2}+\text{trace}(\text{Var}(\widehat{g}(x;\theta)),

where b(x;θ):=E[g^(x;θ)]−g†(x;θ)b(x;\theta):=\mathbb{E}[\widehat{g}(x;\theta)]-g^{\dagger}(x;\theta).

Following similar arguments to those in the proof of Theorem 2, we can derive that

trace(Var(g^†(x;θ))=trace[Σ_1(x;θ)]G+O(1ϵG2).\text{trace}(\text{Var}(\widehat{g}^{\dagger}(x;\theta))=\frac{\text{trace}[\Sigma\_{\text{1}}(x;\theta)]}{G}+O\Big(\frac{1}{\epsilon G^{2}}\Big).

It remains to upper bound the squared bias term. Notice that the bias can be represented by

b(x;θ)=∑_tE[(μ_t(g)−μ(g))W_t(g)Z(g)−Zˉ(−g)std(Z)]+κE[(1−μ(g))∑_t(μ_t(g)−1)W_t(g)].\displaystyle b(x;\theta)=\sum\_{t}\mathbb{E}\Big[(\mu\_{t}^{(g)}-\mu^{(g)})W\_{t}^{(g)}\frac{Z^{(g)}-\bar{Z}^{(-g)}}{\text{std}(Z)}\Big]+\kappa\mathbb{E}\Big[(1-\mu^{(g)})\sum\_{t}(\mu\_{t}^{(g)}-1)W\_{t}^{(g)}\Big].

Since ∇_θπ_θ=π_θ∇log⁡π_θ\nabla\_{\theta}\pi\_{\theta}=\pi\_{\theta}\nabla\log\pi\_{\theta}, it follows from the bounded score condition in Assumption 3 that π_θ\pi\_{\theta} is Lipchitz continuous as a function of θ\theta. Under Assumptions 1, 3 and 10, the gradient g^\widehat{g} is bounded. As such,

π_θ−π_θ_old=O(∥θ−θ_old∥)=O(mη_i+1).\displaystyle\pi\_{\theta}-\pi\_{\theta\_{\text{old}}}=O(\|\theta-\theta\_{\text{old}}\|)=O(m\eta\_{i+1}).(36)

This together with the coverage assumption yields

$\displaystyle\mathbb{E}^{\pi_{\theta_{\text{old}}}}\mu_{t}^{(g)}-1^{2}=\mathbb{E}^{\pi_{\theta_{\text{old}}}}\left{\frac{(\pi_{\theta}(Y_{t}^{(g)}
------------
$\displaystyle\leq\frac{cm^{2}\eta_{i+1}^{2}}{\epsilon}\mathbb{E}^{\pi_{\theta_{\text{old}}}}[\pi_{\theta_{\text{old}}}^{-1}(Y_{t}^{(i)}x,Y_{<t}^{(i)})]=O\Big(\frac{m^{2}\eta_{i+1}^{2}}{\epsilon}\Big),$

for some constant c>0c>0.

Following a similar argument, we have

$\displaystyle\mathbb{E}^{\pi_{\theta_{\text{old}}}}\mu^{(g)}-1^{2}=O\Big(\frac{m^{2}\eta_{i+1}^{2}}{\epsilon}\Big).$

It follows the Cauchy-Schwarz inequality that

$\displaystyle\begin{split}b^{2}(x;\theta)\leq&2\Big|\sum_{t}\mathbb{E}^{\pi_{\theta_{\text{old}}}}\Big{(1-\mu^{(g)})W_{t}^{(g)}\Big[\frac{Z^{(g)}-\bar{Z}^{(-g)}}{\text{std}_{x}(Z)}+\kappa(\mu_{t}^{(g)}-1)\Big]\Big}\Big|^{2}\ +&2\Big|\sum_{t}\mathbb{E}^{\pi_{\theta_{\text{old}}}}\Big[(1-\mu_{t}^{(g)})W_{t}^{(g)}\frac{Z^{(g)}-\bar{Z}^{(-g)}}{\text{std}_{x}(Z)}\Big]\Big|^{2}\ =&O\Big(\frac{\kappa^{2}}{\epsilon^{2}}\mathbb{E}^{\pi_{\theta_{\text{old}}}}\mu^{(g)}-1^{2}\Big)+O\Big(\sum_{t}\mathbb{E}^{\pi_{\theta_{\text{old}}}}

where the last equality holds under the bounded reward assumption (Assumption 1), the bounded score assumption (Assumption 3), the coverage assumption (Assumption 10) and that std_X(Z)\text{std}\_{X}(Z) is uniformly bounded away from 00.

Combining (37) – (40), we obtain

b2(x;θ)=O([κ2ϵ2+1]m2η_i+12ϵ).\displaystyle b^{2}(x;\theta)=O\Big(\Big[\frac{\kappa^{2}}{\epsilon^{2}}+1\Big]\frac{m^{2}\eta\_{i+1}^{2}}{\epsilon}\Big).

This completes the proof of Theorem 12. ∎

As discussed below Proposition 13, the ground-truth gradient g†(θ)g^{\dagger}(\theta) is asymptotically equivalent to the derivative of J(θ)\mathcal{J}(\theta) by (36). The rest of the proof follows very similarly to those of Lemma 6 and Theorem 8. We omit the details for brevity. ∎

Consider a sequence {a_n}_n\{a\_{n}\}\_{n} that satisfies 0≤a_n≤a0\leq a\_{n}\leq a for some a>0a>0 and

a_n+1≤(1−An+Bn2)a_n+Cn2,∀n≥0,a\_{n+1}\leq\left(1-\frac{A}{n}+\frac{B}{n^{2}}\right)a\_{n}+\frac{C}{n^{2}},\quad\forall n\geq 0,(41)

where A,B,CA,B,C are three constants satisfying A>1A>1 and B,C≥0B,C\geq 0. Then for any constant ε>0\varepsilon>0, we have

a_n≤max⁡{(1+ε)C(A−1)n,an_0n}a\_{n}\leq\max\left\{\frac{(1+\varepsilon)C}{(A-1)n},\frac{an\_{0}}{n}\right\}(42)

holds for all nn, where n_0n\_{0} is a constant that depends only on A,BA,B and ε\varepsilon.

For any fixed ε\varepsilon, let n_0n\_{0} denote ⌈B(1+ε)ε(A−1)⌉+1\lceil\frac{B(1+\varepsilon)}{\varepsilon(A-1)}\rceil+1 where ⌈x⌉\lceil x\rceil represents the smallest integer that is larger than xx. We prove (42) by induction:

  1. Base step: For any n≤n_0n\leq n\_{0}, it directly follows from the condition a_n≤aa\_{n}\leq a that a_n≤an_0/na\_{n}\leq an\_{0}/n. The inequality thus holds for any n≤n_0n\leq n\_{0}.

  2. Induction step: Suppose inequality (42) holds for n=kn=k. We aim to show it holds for n=k+1n=k+1 as well. To ease notation, let M=max⁡{(1+ε)C/(A−1),an_0}M=\max\{(1+\varepsilon)C/(A-1),an\_{0}\}. Then according to inequality (41),

a_k+1−Mk+1\displaystyle a\_{k+1}-\frac{M}{k+1}≤\displaystyle\leq(1−Ak+Bk2)a_k+Ck2−Mk+1.\displaystyle\left(1-\frac{A}{k}+\frac{B}{k^{2}}\right)a\_{k}+\frac{C}{k^{2}}-\frac{M}{k+1}.

Applying the induction hypothesis that a_k≤M/ka\_{k}\leq M/k yields

a_k+1−Mk+1\displaystyle a\_{k+1}-\frac{M}{k+1}≤\displaystyle\leq(1−Ak+Bk2)Mk+Ck2−Mk+1\displaystyle\left(1-\frac{A}{k}+\frac{B}{k^{2}}\right)\frac{M}{k}+\frac{C}{k^{2}}-\frac{M}{k+1}
=\displaystyle=Mk(k+1)−AM−Ck2+BMk3\displaystyle\frac{M}{k(k+1)}-\frac{AM-C}{k^{2}}+\frac{BM}{k^{3}}
=\displaystyle=1k3[k2Mk+1−(AM−C)k+BM]\displaystyle\frac{1}{k^{3}}\left[\frac{k^{2}M}{k+1}-(AM-C)k+BM\right]
≤\displaystyle\leq1k3[kM−(AM−C)k+BM]\displaystyle\frac{1}{k^{3}}\left[kM-(AM-C)k+BM\right]
=\displaystyle=1k3{k[(1−A)M+C]+BM}.\displaystyle\frac{1}{k^{3}}\left\{k[(1-A)M+C]+BM\right\}.

Since M≥(1+ε)CA−1M\geq\frac{(1+\varepsilon)C}{A-1}, we have (1−A)M+C≤−εC≤0(1-A)M+C\leq-\varepsilon C\leq 0. Combining the fact that k>B(1+ε)ε(A−1)k>\frac{B(1+\varepsilon)}{\varepsilon(A-1)}, we obtain

a_k+1−Mk+1\displaystyle a\_{k+1}-\frac{M}{k+1}≤\displaystyle\leq1k3{B(1+ε)ε(A−1)[(1−A)M+C]+BM}\displaystyle\frac{1}{k^{3}}\left\{\frac{B(1+\varepsilon)}{\varepsilon(A-1)}[(1-A)M+C]+BM\right\}
=\displaystyle=Bk3{C(1+ε)A−1−M}≤0,\displaystyle\frac{B}{k^{3}}\left\{\frac{C(1+\varepsilon)}{A-1}-M\right\}\leq 0,

where the last inequality follows from the definition of MM as well.

Combining the results from both steps completes the proof of Lemma 14. ∎

Assume the Hessian matrix H\*H^{\*} in Assumption 7 is a diagonal matrix diag(−λ_1,…,−λ_r)\text{diag}(-\lambda\_{1},\ldots,-\lambda\_{r}), where λ_1\lambda\_{1}, ⋯\cdots, λ_r\lambda\_{r} are the rr positive eigenvalues of −H\*-H^{\*}. Under Assumption 7, the set Q⊤Θ\*={Q⊤θ:θ∈Θ\*}Q^{\top}\Theta^{\*}=\{Q^{\top}\theta:\theta\in\Theta^{\*}\} consists of a single point v\*v^{\*}.

Suppose there are two different points v_1,v_2∈Q⊤Θ\*v\_{1},v\_{2}\in Q^{\top}\Theta^{\*} with v_1=Q⊤θ_1\*,v_2=Q⊤θ_2\*v\_{1}=Q^{\top}\theta\_{1}^{\*},v\_{2}=Q^{\top}\theta\_{2}^{\*}. Applying Taylor’s expansion leads to,

J(θ_1\*)−J(θ_2\*)=∇_θJ(θ_2\*)+12(θ_2\*−θ_1\*)⊤H(θ~\*)(θ_2\*−θ_1\*),\displaystyle J(\theta\_{1}^{\*})-J(\theta\_{2}^{\*})=\nabla\_{\theta}J(\theta\_{2}^{\*})+\frac{1}{2}(\theta\_{2}^{\*}-\theta\_{1}^{\*})^{\top}H(\widetilde{\theta}^{\*})(\theta\_{2}^{\*}-\theta\_{1}^{\*}),(43)

for some θ~\*\widetilde{\theta}^{\*} lying between θ_1\*\theta\_{1}^{\*} and θ_2\*\theta\_{2}^{\*}. Since Θ\*\Theta^{\*} is convex (Assumption 7), we have θ~\*∈Θ\*\widetilde{\theta}^{\*}\in\Theta^{\*}. Given that J(θ_1\*)=J(θ_2\*)J(\theta\_{1}^{\*})=J(\theta\_{2}^{\*}) and ∇J(θ_2\*)=0\nabla J(\theta\_{2}^{\*})=0, it follows from (43) that

0=(θ_2\*−θ_1\*)⊤H(θ~\*)(θ_2\*−θ_1\*)=(θ_2\*−θ_1\*)⊤Qˉdiag(λ_1,⋯ ,λ_r,0⊤)Qˉ⊤(θ_2\*−θ_1\*).0=(\theta\_{2}^{\*}-\theta\_{1}^{\*})^{\top}H(\widetilde{\theta}^{\*})(\theta\_{2}^{\*}-\theta\_{1}^{\*})=(\theta\_{2}^{\*}-\theta\_{1}^{\*})^{\top}\bar{Q}\text{diag}(\lambda\_{1},\cdots,\lambda\_{r},\bm{0}^{\top})\bar{Q}^{\top}(\theta\_{2}^{\*}-\theta\_{1}^{\*}).

Expanding further, we obtain

0=∑_k=1rλ_k(v_2k−v_1k)2,\displaystyle 0=\sum\_{k=1}^{r}\lambda\_{k}(v\_{2k}-v\_{1k})^{2},(44)

where v_ikv\_{ik} denotes the kk-th element of v_iv\_{i}. From (44), it is immediate to see that v_1=v_2v\_{1}=v\_{2}, confirming that Q⊤Θ\*Q^{\top}\Theta^{\*} is a singleton. This completes the proof. ∎

Consider a function J(θ)J(\theta) defined on a compact parameter set Θ⊆Rd\Theta\subseteq\mathbb{R}^{d}. Suppose J(θ)J(\theta) is twice continuously differentiable, and its gradient vector g(θ)g(\theta) satisfies PL with constant μ\mu (refer to Assumption 4). Then, for any maximizer θ\*∈Θ\theta^{\*}\in\Theta of JJ, every positive eigenvalue of the negative Hessian matrix −∇_θg(θ\*)-\nabla\_{\theta}g(\theta^{\*}) is no smaller than μ\mu. In particular, under the L-smoothness condition (Assumption 3), we have μ≤L\mu\leq L.

Let θ\*∈Θ\theta^{\*}\in\Theta be a maximizer of J(θ)J(\theta), λ\lambda be a positive eigenvalue of −∇_θg(θ\*)-\nabla\_{\theta}g(\theta^{\*}) and vv be its eigenvector with ∥v∥=1\|v\|=1. Applying Talyor’s theorem to the function f(t)=J(θ\*+tv)f(t)=J(\theta^{\*}+tv) at t=0t=0, we obtain:

J(θ\*+tv)−J(θ\*)=tv⊤g(θ\*)+12t2v⊤∇_θg(θ\*)v+o(t2).J(\theta^{\*}+tv)-J(\theta^{\*})=tv^{\top}g(\theta^{\*})+\frac{1}{2}t^{2}v^{\top}\nabla\_{\theta}g(\theta^{\*})v+o(t^{2}).

Since θ\*\theta^{\*} maximizes J(θ)J(\theta), we have g(θ\*)=0g(\theta^{\*})=0. Moreover, since vv is an eigenvector with unit ℓ_2\ell\_{2}-norm, we have v⊤∇_θg(θ\*)v=−λv^{\top}\nabla\_{\theta}g(\theta^{\*})v=-\lambda. Therefore,

J(θ\*)−J(θ\*+tv)=12t2λ+o(t2).J(\theta^{\*})-J(\theta^{\*}+tv)=\frac{1}{2}t^{2}\lambda+o(t^{2}).(45)

Applying the PL condition to the left hand side, we obtain

\displaystyle\begin{split}J(\theta^{\*})-J(\theta^{\*}+tv)\leq&\frac{1}{2\mu}\|g(\theta^{\*}+tv)\|^{2}\\ =&\frac{1}{2\mu}\|g(\theta^{\*}+tv)-g(\theta^{\*})\|^{2}\\ =&\frac{t^{2}}{2\mu}\|v^{T}\nabla\_{\theta}g(\theta^{\*})\|^{2}+o(t^{2})\\ =&\frac{\lambda^{2}t^{2}}{2\mu}+o(t^{2}).\end{split}(46)

Combining (45) and (46) yields

λ2t22μ≥12λt2+o(t2).\frac{\lambda^{2}t^{2}}{2\mu}\geq\frac{1}{2}\lambda t^{2}+o(t^{2}).

Dividing both sides by t2t^{2} and letting t→0t\to 0 gives λ2≥μλ\lambda^{2}\geq\mu\lambda. Since λ>0\lambda>0, it follows that λ≥μ\lambda\geq\mu. Therefore, all positive eigenvalues of −∇_θg(θ\*)-\nabla\_{\theta}g(\theta^{\*}) are lower bounded by μ\mu. Using similar arguments, we can show that the smoothness constant LL must also satisfy L≥μL\geq\mu. ∎

Let (Ω,F,(F_n)_n≥1,P)(\Omega,\mathcal{F},(\mathcal{F}\_{n})\_{n\geq 1},P) be a filtered probability space. For each n≥1n\geq 1, V_n,A_n,B_n,C_nV\_{n},A\_{n},B\_{n},C\_{n} are four positive F_n\mathcal{F}\_{n}-measurable random variable such that

$$\mathbb{E}[V_{n+1}\mathcal{F}_{n}]\leq(1+A_{n})V_{n}+B_{n}-C_{n}.$$

if ∑_n=1∞A_n<∞\sum\_{n=1}^{\infty}A\_{n}<\infty and ∑_n=1∞B_n<∞\sum\_{n=1}^{\infty}B\_{n}<\infty holds almost surely, then V_nV\_{n} converges to some random variable V_∞V\_{\infty} almost surely. Moreover, ∑_n=1∞C_n<∞\sum\_{n=1}^{\infty}C\_{n}<\infty almost surely.

Refer to Theorem 1 of Robbins and Siegmund [1971]. ∎

Let {ΔM_n,F_n,n≥1}\{\Delta M\_{n},\mathcal{F}\_{n},n\geq 1\} is a martingale difference sequence satisfying

$$\frac{1}{n}\sum_{i=1}^{n}\mathbb{E}\left[(\Delta M_{i})(\Delta M_{i})^{\top}\mathcal{F}_{i-1}\right]\to\Lambda\quad\text{ a.s.},$$

where Λ\Lambda is a symmetric positive semidefinite random matrix and

$$\frac{1}{n}\sum_{i=1}^{n}\mathbb{E}\left[|\Delta M_{i}|^{2}\mathbb{I}{\Delta M_{i}\geq\varepsilon\sqrt{n}}\mathcal{F}_{i-1}\right]\to 0\quad\text{ a.s. for }\forall\varepsilon>0.$$

Let {H_n}_n\{H\_{n}\}\_{n} denote a sequence of random matrices satisfying H_n→HH\_{n}\to H almost surely, where HH is a nonrandom matrix with all its eigenvalues larger than 1/21/2. Then for a sequence of random vectors Δ_n\Delta\_{n} that satisfies

Δ_n+1=(I−H_nn)Δ_n+ΔM_n,\Delta\_{n+1}=\Big(I-\frac{H\_{n}}{n}\Big)\Delta\_{n}+\Delta M\_{n},

we have nΔ_n→dN(0,Σ)\sqrt{n}\Delta\_{n}\stackrel{{\scriptstyle d}}{{\to}}N(0,\Sigma) where

Σ=∫_0∞(e−(H−12I)u)⊤Λe−(H−12I)udu.\Sigma=\int\_{0}^{\infty}(e^{-(H-\frac{1}{2}I)u})^{\top}\Lambda e^{-(H-\frac{1}{2}I)u}du.

The proof follows immediately from Propositions B.1 and B.2 of Zhang [2016]. ∎

This section provides the prompts we used in Section 5.

Prompt template for the In-Context Learning model.

Prompt template for the Base and Instruct models.