In this article
  1. Before you start
  2. Why interviewers ask this
  3. Policy gradient from first principles
  4. The Staff-level answer
  5. The rubric
  6. Three variants of this question
  7. Common mistakes
  8. Follow-up questions
  9. Sources

Before you start

This page belongs to the large language model training path and assumes the basics of the transformer architecture.

Why interviewers ask this

A candidate who answers "no, GRPO has no critic, so it is not policy gradient" has confused a feature of PPO with the definition of the whole family. The question separates people who memorised "GRPO drops the critic" from people who know what makes a method policy gradient and can say what the group average does instead.

A weak answer repeats the name, "group relative", without saying relative to what. A strong answer says yes, gives the advantage formula and names PPO as the parent. A Staff-level answer also states what the shortcut costs: a baseline estimated from few samples, and normalising terms that bias the update. The question is reported by candidates in interviews on large language model training; no company is named here because no public source names one.

Policy gradient from first principles

Policy gradient algorithm
A policy gradient algorithm is a reinforcement learning (RL) method that improves a policy by moving its parameters along an estimate of the gradient of expected reward, written as a reward-like weight times the gradient of the log-probability of the sampled actions, without first learning a value for every state.

In plain words

Picture a class where each student writes an answer to the same question. A teacher gives every answer one score. A student learns by comparing their score with the class average. Above average, do more of that; below, do less. GRPO works like that, with the model as the student. The analogy breaks in one place: the score covers the whole answer, yet the update is applied to every token of it.

In one precise sentence, GRPO nudges the policy so that answers scoring above the average of their group become more probable and answers below it become less probable.

Step 1: The gradient has the policy-gradient form

GRPO's gradient is a coefficient times the gradient of the log-probability of each generated token, which is the policy-gradient (score-function) form. Shao et al. (2024), Appendix A write the PPO gradient with the coefficient A and the GRPO gradient with the coefficient  plus a KL term, both multiplying the log-probability gradient. The same paper writes supervised fine-tuning, rejection sampling, Direct Preference Optimization (DPO), PPO and GRPO in one template and concludes they are "either direct or simplified RL techniques."

That template shows GRPO has policy-gradient form. It does not make the methods identical. The textbook chapter on policy gradient methods lists a Monte Carlo method with no critic (13.3), a baseline version (13.4) and actor-critic methods (13.5). A critic is optional in the family. GRPO is the Monte Carlo policy gradient method called REINFORCE (REward Increment = Nonnegative Factor times Offset Reinforcement times Characteristic Eligibility) with a baseline (13.4) plus the PPO clip and a KL loss term. You now know GRPO qualifies; Step 2 shows what takes the critic's place.

GRPO keeps the policy-gradient form and swaps the criticFlow of four stages: the gradient has the policy-gradient form, a group average replaces the critic as the baseline, a clipped ratio and a KL term come from PPO, and two normalising terms add bias.Policy-gradient formscore functionGroup baselinemean of G rewardsClip and KLfrom PPOBias termslength and stdDiagram: Interview Clozo, CC BY 4.0 ·interview.clozo.ai/blog/is-grpo-a-policy-gradient-algorithm.html

GRPO keeps the policy-gradient form and the PPO clip, and swaps the learned critic for a group average.CC BY 4.0 — source: Is GRPO a policy gradient algorithm?
Step-by-step description
  1. Coefficient times log-probability gradient.
  2. The group mean replaces the critic.
  3. Both come from PPO.
  4. Length and std terms add bias.
  • The GRPO gradient is a coefficient times the gradient of the log-probability.
  • A group average replaces the learned value model as the baseline.
  • The clipped ratio and the KL term come from PPO.
  • The normalising terms add biases that Dr. GRPO removes.

Step 2: A group average replaces the critic as the baseline

A group average replaces the learned value model as the baseline in GRPO. A critic is a second network, often as large as the policy, that predicts how good each state is. An advantage is how much better an output is than the baseline expects. GRPO instead samples a group of answers to one prompt and normalises each reward by the group mean and standard deviation (Shao et al., 2024):

Aˆi=ri−mean(r)std(r)

Every token of output i receives that same value. Take a group of four with rewards 1, 0, 0, 1 (illustrative): the mean is 0.5, the standard deviation is 0.5, and the advantages are +1 and −1.1 With one correct answer in four, the correct one gets +1.7321 and each wrong one −0.5774.1 With three correct, the correct ones get only +0.5774. A rare success earns a larger push. The group mean includes r_i itself, so the baseline is not strictly independent of the action; this only shrinks the expected gradient by a factor of (G−1)/G, and leave-one-out variants avoid it.

Rarer correct answers earn a larger advantage in a groupBar chart for a group of four answers with binary rewards: the advantage of a correct answer is 1.7321 when one answer is correct, 1 when two are correct and 0.5774 when three are correct.Advantage of a correct answer0121 of 42 of 43 of 4Correct answers in the group1.732110.5774Diagram: Interview Clozo, CC BY 4.0 ·interview.clozo.ai/blog/is-grpo-a-policy-gradient-algorithm.html
A correct answer is worth most when it is rare in its group, which is the group baseline at work.CC BY 4.0 — source: Is GRPO a policy gradient algorithm?
Text description of the diagram
  • With one correct answer in four, the correct one gets +1.7321.
  • With three correct, the correct ones get only +0.5774.

Step 3: The clipped ratio and the KL term come from PPO

GRPO keeps PPO's clipped probability ratio and moves the KL penalty from the reward into the loss. Schulman et al. (2017) describe PPO as "a new family of policy gradient methods" that optimise a surrogate objective, with a clipped ratio that "forms a pessimistic estimate (i.e., lower bound)" (stated in the introduction of the PPO paper) and allows several epochs of minibatch updates. PPO for language models adds a per-token KL penalty to the reward; GRPO instead "regularizes by directly adding the KL divergence between the trained policy and the reference policy to the loss" (Shao et al., 2024).

In the gradient, the coefficient becomes:

Aˆi,t+β(πrefπθ−1)

With the paper's β of 0.04 and an advantage of +1, values of πref/πθ of 0.5, 1 and 2 (illustrative) give coefficients 0.98, 1.0 and 1.04.1 The KL term is a small correction beside the advantage. The setting for DeepSeekMath was 64 sampled outputs per question (Shao et al., 2024).

Step 4: The normalising terms add bias

GRPO's two normalising terms, division by output length and by the standard deviation, add biases that the Dr. GRPO authors report and remove. Liu et al. (2025) "identify the bias in optimization of GRPO," which "may lead to progressively longer incorrect responses," and propose "GRPO Done Right (Dr. GRPO)."

With the 1/length factor, two outputs with an advantage of +1 and lengths 100 and 400 tokens (illustrative) get per-token weights 0.01 and 0.0025, so the short one is pushed harder per token.1 The reported effect on negative advantages is the mirror image: long wrong answers are penalised less. Dividing by the standard deviation reweights questions: at illustrative success rates of 0.5, 0.1 and 0.01, the weight is 2, 3.3333 and 10.0504, so very easy or very hard questions count more.1 These remain policy-gradient updates, only biased ones.

Knowing it is half the job. Saying it is the other half.

Interview Clozo is an AI interview copilot for real interview rounds: it hears the question and puts a strong answer on your screen, and you say it in your own words. See the features or how it works.

Start Free Trial →

The Staff-level answer

Interviewer asks

Is GRPO a policy gradient algorithm?

A strong answer

Yes. GRPO is a policy gradient algorithm. Its gradient is an advantage times the gradient of the log-probability of each generated token, which is the policy-gradient form, and it keeps the clipped ratio from PPO. What it drops is the critic. Instead of a learned value model, it samples a group of answers to the same prompt, subtracts the group's mean reward as the baseline and divides by the group's standard deviation. That saves a model-sized copy in memory, but the baseline is noisier for small groups, and the length and standard-deviation terms add biases that Dr. GRPO removes.

What makes it Staff-level: it names the defining form, says what changed and why, and ends on the cost rather than on the benefit.

The rubric

Strong answers separate the gradient form from the critic and finish on the cost of the group baseline.
DimensionWeak answerStrong answerStaff answer
CorrectnessSays no, because there is no critic.Says yes: a PPO variant with a policy-gradient gradient.Writes advantage times log-probability gradient and names the group mean as baseline.
DepthRepeats "group relative" as a label.Gives the advantage formula.Works a small group and the zero-variance case.
Trade-offsNames none.Notes memory saved without a critic.Adds baseline noise and the length and standard-deviation biases.
CommunicationLists terms without order.Answers first, then explains.Answers in one sentence, then defends it in two.
Follow-up readinessStalls on "why no critic?"Explains the PPO difference.Raises the on-policy point and what RL does and does not add.

Three variants of this question

Is GRPO an actor-critic method?

No. An actor-critic method learns a policy and a critic; GRPO learns only the policy, with a sampled group mean as the baseline. Shao et al. (2024) call PPO "an actor-critic RL algorithm" and present GRPO as dropping the critic.

Is GRPO on-policy or off-policy?

GRPO is on-policy, like PPO. It samples each group from the current (old) policy, and the clipped ratio πθ/πθold only corrects the small drift across a few inner gradient steps on that batch; it does not learn from a fixed dataset or a replay buffer. The Hugging Face documentation calls it "an online learning algorithm" that uses "the data generated by the trained model itself during training."

What happens when every answer in the group gets the same reward?

The advantage of every answer is 0, so that prompt contributes no policy-gradient signal from the advantage term. The KL term still acts. The paper does not state an epsilon; implementations add one to avoid dividing by zero.

Common mistakes

  • "GRPO is not policy gradient because it has no value function." (wrong) A critic is optional in the family. (right) "Policy gradient needs a gradient of the log-probability weighted by an advantage; the baseline can be a group mean."
  • "GRPO removes the reward model." (wrong) It removes the critic. DeepSeekMath still used a learned reward model. (right) "GRPO drops the value model, not the reward signal."
  • "GRPO is a new kind of RL unrelated to PPO." (wrong) The paper calls it a variant of PPO and keeps the clipped surrogate. (right) "It is PPO without the critic, with the KL term moved into the loss."
  • "GRPO is unbiased." (wrong) The length and standard-deviation terms add bias, per Dr. GRPO. (right) "It has known biases that Dr. GRPO removes."
  • "The KL penalty sits in the reward, as in PPO." (wrong) GRPO adds it to the loss. (right) "KL is a loss term in GRPO."

Follow-up questions

How is GRPO different from PPO?

PPO learns a value model and computes advantages with Generalized Advantage Estimation (GAE); GRPO uses the group-mean reward instead and moves the KL term into the loss (Shao et al., 2024). PPO for language models usually keeps four models in memory: the policy, a frozen reference, a reward model and a value model. GRPO drops the value model, leaving three, or two when the reward is a rule-based check rather than a learned model (Shao et al., 2024: the value function "is typically another model of comparable size as the policy model").

Does GRPO still need a reward model?

It needs a reward signal, not a critic. DeepSeekMath used a learned reward model, and other setups use rule-based rewards; see what a reward function is.

What bias does Dr. GRPO remove?

Dr. GRPO is built by removing the length and standard-deviation normalisation terms, which the authors tie to longer wrong answers and to uneven weighting of easy and hard questions (Liu et al., 2025).

Is DPO also a policy gradient method?

Usually not: DPO learns from a fixed set of preference pairs rather than fresh samples, and DeepSeekMath's unified view only shows that its gradient fits the same template. For the full contrast, read how GRPO compares to DPO and DPO vs RLHF.

Does GRPO teach a model new abilities?

In DeepSeekMath, RL improved majority-vote accuracy but not pass-at-k, so it sharpens the output distribution rather than adding capability (Shao et al., 2024, §5.2.2). Reported findings differ on whether longer RL training can extend pass-at-k beyond the base model, so treat that wider question as open. That paper reports gains from 82.9% to 88.2% on a grade-school math benchmark and from 46.8% to 51.7% on a competition-math benchmark. A full walkthrough of the method is in GRPO explained.

Key takeaways
  • GRPO is a policy gradient algorithm: its gradient is a coefficient times the log-probability gradient.
  • It is a variant of PPO that drops the critic and keeps the clipped ratio.
  • The group-mean reward, divided by the standard deviation, replaces the learned value baseline.
  • The KL term sits in the loss, not in the reward.
  • Length and standard-deviation normalisation add biases, which Dr. GRPO removes.

Sources

  1. DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models (arXiv 2402.03300) — arXiv (Shao et al.), 27 Apr 2024
  2. Proximal Policy Optimization Algorithms (arXiv 1707.06347) — arXiv (Schulman et al.), 28 Aug 2017
  3. Understanding R1-Zero-Like Training: A Critical Perspective (arXiv 2503.20783) — arXiv (Sea AI Lab, NUS, SMU), 26 Mar 2025
  4. GRPO Trainer documentation — Hugging Face, 26 Oct 2026
  5. Reinforcement Learning: An Introduction, 2nd ed., Chapter 13 Policy Gradient Methods — MIT Press (Sutton and Barto), 1 Jan 2018
  6. Deep Reinforcement Learning: An Overview (arXiv 1701.07274) — arXiv, 25 Jan 2017