Skip to main content
Open In Colab In BC versus RL on a claw machine you fine-tuned a cloned MiniVLA with PPO. PPO needs a critic: a value head Vϕ(o,ℓ)V_\phi(o, \ell) that predicts the return, so that each step’s advantage can be estimated. The critic has to be trained alongside the policy, it starts out wrong, and it shares features with a policy you would rather not disturb. That section stopped the critic’s gradient at the summary vector and gave it five iterations to warm up before the policy moved. Group relative policy optimization (GRPO) (Shao et al., 2024) drops the critic. It runs several episodes from the same start and uses their average outcome as the baseline. It was introduced for training language models on math problems, where the reward is 1 for a correct answer and 0 otherwise, and it carries over to robot policies whose reward is 1 for a completed task. SimpleVLA-RL uses it to fine-tune OpenVLA-OFT. The general method is on the GRPO page; this section applies it to the claw machine and compares it with PPO from the same starting policy.

The machine and the policy

The task is ClawGrab, the claw machine of the BC and RL section: three squares, an instruction that names one of them, a stochastic grasp whose success depends on how well the claw is centered, and a reward of 1 when the named square drops into the chute within 60 steps. The code below is the same.

Groups of identical starts

GRPO compares episodes that started in the same state, so that a difference in outcome comes from the policy’s actions and the grasp’s chance, not from an easier layout. A group is GG machines with the same square positions, the same named square and the same wording of the instruction. The grasp still draws its random numbers per machine, and the policy samples its tokens independently, so the GG episodes of a group can end differently.
MiniVLA and the behavioral cloning code are unchanged from the BC and RL section. The policy emits three tokens per step, Δx\Delta x, Δz\Delta z and the grip, and its log-probability is the sum of the three token log-probabilities.
Both methods start from the same BC policy, trained on the operator’s successful episodes.

The PPO baseline

The baseline is the PPO recipe of the BC and RL section: rollouts of 64 steps on 128 machines sampled at temperature 0.5, generalized advantage estimation with γ=0.99\gamma = 0.99 and λ=0.95\lambda = 0.95, a critic on the stopped summary vector, and early stopping of an iteration’s epochs once the approximate KL divergence from the rollout policy exceeds 0.01. Machines that finish an episode restart at once, so a rollout cuts across episode boundaries and the critic has to estimate the value of the unfinished ones.

GRPO

GRPO runs every episode to its end. Episode ii of a group earns the return Ri∈{0,1}R_i \in \{0, 1\}, and its advantage is the return measured against the group: A^i=Ri−mean⁡(R1,…,RG)std⁡(R1,…,RG).\hat A_i = \frac{R_i - \operatorname{mean}(R_1, \dots, R_G)}{\operatorname{std}(R_1, \dots, R_G)}. Every step of the episode shares A^i\hat A_i. The update is PPO’s clipped surrogate, with the probability ratio of the step’s three action tokens: J(θ)=Ei,t[min⁡(ρi,tA^i, clip⁡(ρi,t,1−ϵ,1+ϵ) A^i)],ρi,t=πθ(zi,t∣oi,t,ℓ)πθold(zi,t∣oi,t,ℓ).\begin{aligned} J(\theta) &= \mathbb E_{i,t}\Big[\min\big(\rho_{i,t}\hat A_i,\ \operatorname{clip}(\rho_{i,t}, 1 - \epsilon, 1 + \epsilon)\,\hat A_i\big)\Big], \\ \rho_{i,t} &= \frac{\pi_\theta(z_{i,t} \mid o_{i,t}, \ell)}{\pi_{\theta_{old}}(z_{i,t} \mid o_{i,t}, \ell)}. \end{aligned} There is no value function, no discount and no bootstrapping: the group mean plays the role of the baseline that the critic provides in PPO. With a binary reward the group advantage has a simple form. If kk of the GG episodes succeed, write p=k/Gp = k/G. A successful episode gets A^=(1−p)/p\hat A = \sqrt{(1-p)/p} and a failed one A^=−p/(1−p)\hat A = -\sqrt{p/(1-p)}, so a rare success in a group that mostly fails receives a large push, and a rare failure in a group that mostly succeeds receives a large penalty. When all GG episodes succeed, or all fail, the standard deviation is zero, every advantage is zero and the group contributes no gradient. For a start state where the policy succeeds with probability pp, that happens with probability pG+(1−p)Gp^G + (1 - p)^G. At p=0.75p = 0.75 this is 0.32 for G=4G = 4 and 0.01 for G=16G = 16. The comparison runs PPO and GRPO, with G=4G = 4 and G=16G = 16, for the same number of environment steps and with the same temperature and KL limit. All three use a learning rate of 10−510^{-5}, a third of the rate in Behavioral cloning and RL on a claw machine.

Results

The figure plots the greedy delivery rate on 500 fixed layouts against the environment steps each method consumed. The BC policy delivers 74% of the time with greedy actions and 73% when it samples at temperature 0.5. After 400,000 steps, PPO delivers 82% and GRPO delivers 84% with G=4G = 4 and 84% with G=16G = 16. The best evaluations along the way were 83%, 86% and 87%. All three methods improve the cloned policy by eight to ten points, and most of the gain arrives in the first 150,000 steps. The gap between GRPO and PPO is two points at the end and three at the best evaluation. With 500 evaluation episodes the standard error of a delivery rate near 85% is about 1.6 points, and each method ran with one seed. That gap is within the noise, so the run shows only that GRPO matches PPO on this task. Wall time was close as well: 103 seconds for PPO, 111 for GRPO with G=4G = 4 and 113 with G=16G = 16. GRPO saves the critic’s forward and backward passes, but it waits for the slowest machine of each batch to finish its episode, while PPO’s machines restart as soon as they finish. The right panel counts the groups that taught nothing. With G=4G = 4, an average of 51% of the groups delivered in every episode and 2% failed in every episode, so about half of the episodes GRPO collected had zero advantage. With G=16G = 16 those shares were 16% and 1%. The all-delivered share grows during training because the policy improves, which is the pGp^G term of the formula above. Even so, G=4G = 4 finished level with G=16G = 16. One explanation is that at this budget the number of informative episodes does not limit learning, and the policy is close to what its grasp precision allows. The run does not test that explanation. Left: greedy delivery against environment steps, in thousands, for PPO and for GRPO with group sizes 4 and 16, with the level of the cloned policy marked. Right: the share of groups in which every episode delivered or every episode failed, for group sizes 4 and 16, over training.

Choosing between GRPO and PPO

GRPO fits a task when you can restart from the same state several times and the reward arrives once, at the end of the episode. A simulator gives you repeated starts for free. The binary outcome then needs no critic to turn it into an advantage, and you avoid the critic’s failure modes: a value head that starts wrong, competes with the policy for shared features, and has to estimate the value of episodes cut off at the rollout boundary. PPO fits when starts cannot be repeated, as on a real robot where every reset is a new scene, or when the reward is dense enough that a per-step advantage carries information a whole-episode outcome does not. SimpleVLA-RL (Li et al., 2025) fine-tunes OpenVLA-OFT with GRPO and a binary success reward. Three of its changes target the zero-advantage groups you measured above. It discards groups in which every episode succeeded or every episode failed, and samples again until each group in the batch is mixed. It raises the upper clip bound from 1.2 to 1.28, so the probability of a rare successful action can grow faster. It raises the rollout temperature from 1.0 to 1.6 so that groups are more likely to be mixed. It also drops the KL penalty. With these changes the average LIBERO success of OpenVLA-OFT rose from 91.0% to 99.1%, and on LIBERO-Long with a single demonstration per task it rose from 17.1% to 91.7%. The comparison has gone the other way elsewhere. Liu et al. fine-tuned OpenVLA with LoRA on a pick-and-place task and found that PPO consistently outperformed GRPO, which used groups of eight trajectories from a common initial state (Liu et al., 2025). Their hypothesis is that in a robot task each action changes the state the next action sees, which may make the group-relative advantage estimates unstable. On the claw machine the two methods ended level, so this section gives no evidence either way. TorchRL’s VLA tutorial implements the same update as ClipPPOLoss with critic_network=None, fed with advantages computed per group. PPO for a VLA takes up the critic side: how to train a value head on a pretrained VLA without damaging it.

References

  • Liu, J., Gao, F., Wei, B., Chen, X., Liao, Q., et al. (2025). What can RL bring to VLA generalization? An empirical study. arXiv [cs.LG]. DOI
  • Shao, Z., Wang, P., Zhu, Q., Xu, R., Song, J., et al. (2024). DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv [cs.CL]. Link

Found an error on this page? Report an issue.