Notes on RL for Robotics

ON-POLICY policy πk robot / sim batch of rollouts one (or a few) gradient steps → πk+1 discarded OFF-POLICY policy π robot replay buffer + demos critic Q(s,a) sampled many times (UTD ≫ 1)
On-policy: use each sample once, then throw it away. Off-policy: keep everything, reuse it many times.

Every RL algorithm answers one question first: whose data is the update allowed to use? On-policy methods learn only from experience the current policy just generated. Off-policy methods learn from anything: older versions of themselves, demos, a human teleoperator, another robot. Almost everything else (sample cost, stability, whether demos help, which robot problems fit) follows from that choice. This post builds both families from their simplest members and follows them into dexterous hands and vision-language-action (VLA) models. Spinning Up covers the details this post skips.

The setup in one paragraph

A policy \(\pi_\theta(a\mid s)\) acts, the world returns rewards, and we maximise expected return:

$$J(\theta) = \mathbb{E}_{\tau\sim\pi_\theta}\Big[\sum_t \gamma^t r_t\Big]$$

The subscript is the whole story. The objective is an average over trajectories from the current policy. On-policy methods estimate it directly by sampling from \(\pi_\theta\). Off-policy methods instead learn \(Q(s,a)\), the return of taking \(a\) in \(s\), which can be fit from any transition, and then pick actions that \(Q\) likes.

fresh data fixed data REINFORCE PPO SAC · TD3 · DQN RLPD · HIL-SERL offline RL imitation
A spectrum, not a switch. Where you sit depends on what a fresh sample costs.

On-policy, from the bottom up

Policy gradient: make good samples more likely

$$\nabla_\theta J = \mathbb{E}_{\tau\sim\pi_\theta}\Big[\sum_t \nabla_\theta \log\pi_\theta(a_t\mid s_t)\,\hat A_t\Big]$$

Sample from the policy, then raise the log-probability of actions that did better than expected (\(\hat A_t > 0\)) and lower the rest. That is REINFORCE. The gradient is an expectation under \(\pi_\theta\), so once \(\theta\) moves the batch is from the wrong distribution and must be thrown away.

better than batch mean (Â>0) worse (Â<0) last batch, discarded
iteration 0samples collected 0samples kept 0
Blue samples beat the batch average, orange didn't. The policy steps toward blue, then discards the batch.

Everything on-policy since REINFORCE is one of two moves. Reduce variance by learning a baseline \(V(s)\) and using it to compute \(\hat A\) (actor-critic, GAE). Reuse each batch a little without the gradient going wrong. The second move runs into importance weights: to reuse data from an old policy \(\mu\), reweight each sample by \(\pi/\mu\). Drag the slider to see why that only works for small policy changes.

As the new policy drifts from the one that collected the data, a few samples get huge weights and the useful batch shrinks.

PPO: reuse the batch, but stay close

$$L^{\text{CLIP}}=\mathbb{E}_t\Big[\min\big(r_t\hat A_t,\;\text{clip}(r_t,1\pm\epsilon)\,\hat A_t\big)\Big],\quad r_t=\tfrac{\pi_\theta(a_t\mid s_t)}{\pi_{\text{old}}(a_t\mid s_t)}$$

PPO takes a few epochs on each batch and simply stops caring about any action whose probability has already moved by more than \(\epsilon\). The weights never leave the safe zone, so the gradient stays roughly on-policy. (TRPO does the same with an explicit KL constraint.)

PPO objectiveunclipped r·Âtrust region 1±ε
Past 1 ± ε the objective goes flat, so the policy stops moving away from the data.

That is why PPO is robotics' default on-policy method: it only needs \(\log\pi\), rarely diverges, and scales with parallel simulators. When samples are free, wasting them is fine.


Off-policy, from the bottom up

Q-learning: the Bellman equation does not care who drove

$$Q(s,a)\leftarrow r + \gamma\max_{a'}Q(s',a')$$

This target needs one transition \((s,a,r,s')\) and nothing about which policy chose \(a\). So keep every transition in a replay buffer and fit to it forever. No importance weights, no discarding. The price: you are now regressing onto your own guesses (bootstrapping) on data your policy may never visit, and the \(\max\) picks out whichever estimate is most wrong in the optimistic direction. Off-policy learning is sample-efficient and fragile for the same reason.

max Q (DQN, DDPG target)double Q (select with Q₁, evaluate with Q₂)clipped double Q, min(Q₁,Q₂) (TD3, SAC)
Every action is truly worth 0. The max of noisy guesses is too optimistic; the min of two critics is not.

Actor-critic for continuous actions: climb the critic

$$\max_\theta\;\mathbb{E}_{s\sim\mathcal{D}}\big[Q_\phi(s,\pi_\theta(s))\big]$$

Robot actions are continuous, so you cannot enumerate \(\max_{a'}\). Instead, train an actor to output the action the critic rates highest, using states from the buffer \(\mathcal{D}\). DDPG, TD3 and SAC are all this idea; they differ in how they keep the critic honest (TD3: the pessimistic two-critic minimum above) and how they explore (SAC: add an entropy bonus). SAC is the usual choice on real robots.

Same budget, different reuse

Same 6×6 room, same budget of environment steps, reward only at the goal. REINFORCE uses each episode for one gradient step. Q-learning with replay reuses every transition UTD times per step.

Q-learning with replayREINFORCE
REINFORCE
Q-learning
env steps 0REINFORCE updates 0Q updates 0
Same number of environment steps. Replay turns each step into many updates.

So which one does robotics use?

Whichever one matches the cost of a sample. That gives a clean two-by-two.

Cheap samples favour on-policy. Expensive samples favour off-policy.

Dexterity: on-policy at massive scale

Hands have 16–24 joints and contact-rich dynamics that are hard to teleoperate, so demos are scarce, but rewards are easy to write. GPU simulators make samples nearly free. That is the exact regime where on-policy wins, and the recipe since OpenAI's Dactyl has been PPO in randomized simulation:

thousands of simsteacher · PPOstudentreal hand sees the trueobject state sees camerasand joints only
The teacher cheats with simulator state; the student learns to copy it from real sensors.

With 104 simulated hands, each PPO update sees around 105 fresh transitions, so the bottleneck is wall-clock, not samples, and PPO's simple batched update wins. That is starting to shift: off-policy methods with huge batches (FastTD3, FastSAC, 2025) now match PPO's speed in sim, and only off-policy methods can also mix in real data. Real-world dexterous RL, where it happens, is off-policy and demo-seeded.

What dexterity RL can do, and where it breaks

Each clip links to the full video. Under it is the limit the authors themselves report.

Real-world success, as reported
0% 25% 50% 75% 100% Rubik's, 15 rotations60% Rubik's, hardest (26)20% Visual Dex., duck kept44% not dropped …and on target≈33% overall industrial bar: 99%+
Consecutive cube reorientations: sim vs real
0 12.5 25 37.5 50 Dactyl (median) 50 (cap) 13 DeXtreme, hand-tuned DR (mean) ~35 14.8 DeXtreme ADR (median) 14 · best run 112 simulationreal hand
Videos show the best runs. The papers' own numbers are far from reliable, and drop sharply from sim to real.

Off-policy on real hardware

On hardware a sample costs seconds of robot time, so you keep everything. The progress here is one idea refined: put every useful source of data in the buffer.

  • QT-Opt (2018): Q-learning on 580k grasps from a robot fleet. Proved off-policy RL can absorb messy multi-robot logs, but took months.
  • RLPD (2023): put demonstrations in the buffer and sample half of every minibatch from them. Demos become free off-policy data.
  • HIL-SERL (2024): also put human corrections in the buffer. Reports near-perfect success on precise assembly tasks in 1–2.5 hours of real training.
What is in the replay buffer over a training run
What one minibatch looks like
offline demos (fixed)autonomous robot datahuman interventions
Demos become a small share of the buffer, but still fill half of every batch. (Schematic.)

RL on vision-language-action models

VLAs (OpenVLA, π0/π0.5, GR00T, …) are pretrained by imitation and get to "often works". RL is the attempt to reach "reliably works". The same trade-off applies, with three twists: models have billions of parameters, so every gradient step is expensive; diffusion and flow action heads have no cheap \(\log\pi\), which on-policy methods need; and rewards are a binary success at the end. The figure shows where each family of methods plugs in.

A PPO / GRPO image "cup in sink" VLM backbone action head ε action chunk robot adv: + ERecap DRLDG BDPPO CDSRL · residual FQ(s, chunk)
Orange: on-policy. Blue: off-policy. Violet: offline reweighting.

APPO on the whole VLA

actions = tokens, reward = success

VLA-RL, SimpleVLA-RL, RIPT-VLA

BPPO through denoising

each denoise step = an action

DPPO, ReinFlow, FPO

CSteer a frozen base

RL picks the noise, or adds a residual

DSRL, ResiP, Policy Decorator

DDistil RL experts

RL specialists → SFT the VLA

RLDG, iRe-VLA, ConRFT

ECondition on advantage

train on all data, ask for "good"

π*0.6 / Recap

FQ over chunks

TD on whole action chunks

Q-chunking, PA-RL

GRPO: the baseline is your siblings

$$\hat A_i=\frac{R_i-\operatorname{mean}(R_{1..G})}{\operatorname{std}(R_{1..G})}$$

Run \(G\) rollouts of the same task and judge each against the group average. No critic, which matters for a billion-parameter policy. The catch: a group that all succeeds or all fails gives zero gradient, so learning happens only on tasks at the edge of the model's ability.

Click a rollout to flip success / failure
Group-relative advantages.

The direction of travel

Where a simulator exists, on-policy RL on the whole model is the simplest thing that works. Where data comes from real robots, every method drifts to the stale end of the spectrum: learn a critic, keep everything, and use RL to reweight what the policy imitates. The open problem is an off-policy one: critics that are reliable for long, chunked, multi-task behaviour and cheap enough to train next to a VLA.


What nobody has solved yet

On-policy needs a simulator you can trust. Off-policy needs a critic you can trust. For dexterity and VLAs we have neither yet.

Physics we can't simulate

Fast, contact-rich motion is where simulators are wrong, and RL exploits it.

Learning on the hand itself

Hands break, drop things and need resets.

The last 1%

From "works in the video" to 99.9%, and proving it.

Seeing through your fingers

The hand hides the object it holds.

Rewards beyond poses

Tool use and assembly are hard to score.

Critics for generalists

Q-functions that hold up across many tasks.

Specialists into generalists

Fold many RL skills into one VLA.

Shared benchmarks

Every paper has its own hand and metric.


Where to go next

Foundations. OpenAI Spinning Up: key concepts, taxonomy of algorithms, policy optimization derivation, and the algorithm pages for VPG, PPO, DDPG, TD3 and SAC. Their key papers list covers 2013–2018 well.

  1. Mnih et al., Playing Atari with Deep RL (DQN), 2013
  2. Schulman et al., TRPO, 2015
  3. Schulman et al., GAE, 2015
  4. Lillicrap et al., DDPG, 2015
  5. Schulman et al., PPO, 2017
  6. Fujimoto et al., TD3, 2018
  7. Haarnoja et al., SAC, 2018
  8. Kalashnikov et al., QT-Opt, 2018
  9. OpenAI, Learning Dexterous In-Hand Manipulation, 2018
  10. OpenAI, Solving Rubik's Cube with a Robot Hand, 2019
  11. Kumar et al., CQL, 2020
  12. Nair et al., AWAC, 2020
  13. Kostrikov et al., IQL, 2021
  14. Qi et al., Hora: in-hand rotation via rapid motor adaptation, 2022
  15. Handa et al., DeXtreme, 2022
  16. Petrenko et al., DexPBT, 2023
  17. Chen et al., Visual Dexterity, 2023
  18. Ball et al., RLPD, 2023
  19. Luo et al., SERL, 2024
  20. Luo et al., HIL-SERL, 2024
  21. Shao et al., DeepSeekMath (GRPO), 2024
  22. Ren et al., DPPO, 2024
  23. Ankile et al., ResiP: from imitation to refinement, 2024
  24. Yuan et al., Policy Decorator, 2024
  25. Xu et al., RLDG, 2024
  26. Chen et al., ConRFT, 2025
  27. Lu et al., VLA-RL, 2025
  28. Li et al., SimpleVLA-RL, 2025
  29. Liu et al., What Can RL Bring to VLA Generalization? (RL4VLA), 2025
  30. Wagenmaker et al., DSRL, 2025
  31. Li, Zhou, Levine, Q-chunking, 2025
  32. Seo et al., FastTD3, 2025
  33. Physical Intelligence, π*0.6 and Recap, 2025

All interactive figures compute in your browser from fixed formulas or seeded simulations. The buffer-composition figure is schematic. Paper results are as reported by their authors.




Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • Post-Astra Robotics
  • Sutton's Big World Hypothesis
  • Classes that I am taking this semester (Spring 2026)
  • The Alchemist’s Shadow in a Chemist’s World
  • Unconditional Normalizing Flows for Conditional Generation