Robot Wiki

RL for Robotics

Sample efficiency decides which reinforcement learning algorithms a robot can actually be trained with, from PPO in simulation to offline learning on a fixed dataset.

Last reviewed
Reading time
18 min
Citations
27

Reinforcement learning is one idea with two entirely different economies. The idea is a policy improved from its own experience of acting in an environment, formalized as a Markov decision process: states, actions, a transition rule, a reward Sutton 2018. The economies are what a step of that experience costs. In a GPU simulator, a step costs under ten microseconds of wall clock, amortized across the four thousand robots taking one at once Rudin 2021. On a real robot, a step is a real moment of a real machine's life, and the machine has to be reset afterwards.

Most of what reads as an algorithmic preference in robot learning is that cost difference showing up somewhere else.

What a budget buys, and what it forbids

Set the environment-step budget below, then switch from simulation to a single robot without changing the budget. The instrument holds collection rates constant to illustrate a cost difference. Its family bands are editorial toy categories, not rules about which algorithms a robot can use.

where the steps come from
toy offline bandANYmal flat terrain, under 4 minANYmal uneven terrain, 20 minA1 walking, one reported run, 1 hMinitaur walking on hardware, about 2 hQT-Opt grasping, about 800 robot hoursAbout 800k attempts, 6–14 robots, two monthspaper-reported durations and bounds21.5 min massively parallel simulation82.5 d a single real robot11.8 d a fleet of 7 real robotsmodelled conversions at a constant rate, not measured1 s1 min1 h1 d1 wk30 d1 yr10 yr

model wall clock 21.5 min slower than sim 1.0x toy band toy on-policy band

In this toy, 158M steps through massively parallel simulation at 123k steps/s takes 21.5 min. Illustration: PPO example; not an eligibility rule.

What is modelled rather than measured: the three lanes use constant illustrative rates. The simulation constant is 122,880 steps/s, computed at Rudin's 1,200-second boundary; the reported run implies a strictly greater end-to-end average, not an exact measured rate of 122,880. The single-robot constant is approximately 22.2 steps/s from Minitaur's whole training process, not its rollout control rate. Neither constant predicts arbitrary tasks or robots. Fleet scaling assumes perfect parallelism. QT-Opt's evaluation protocol allows up to 20 steps per grasp attempt; that cap is not a measured mean and does not establish a campaign step rate from grasp totals and robot-hours. No QT-Opt steps-per-robot-second value is presented here as measured. Robot-hours are not parallel wall time. The one-hour and 720-hour boundaries are editorial thresholds for this toy, not scientific algorithm-eligibility limits. The bands do not rule algorithms in or out.

In the constant-rate toy, 158M environment steps take 21.5 min of model wall clock in massively parallel simulation, 82.5 d on one robot and 11.8 d on a fleet of 7. The single-robot-to-simulation duration ratio is 5,530. Their toy bands are on-policy, offline and off-policy; these are editorial categories, not algorithm eligibility.

Modelled wall-clock cost of this budget under each source
data sourcemodel steps/smodel wall clocktoy band
massively parallel simulation123k steps/s21.5 mintoy on-policy band
a single real robot22 steps/s82.5 dtoy offline band
a fleet of 7 real robots156 steps/s11.8 dtoy off-policy band

Paper-reported durations, with different settings and units: Rudin reports ANYmal flat-terrain training in under four minutes and uneven terrain in twenty minutes on one workstation GPU. The separately described simulation/deployment policy used 4,096 environments, 98,304 samples per update and 1,500 updates in under twenty minutes on an i9-11900k CPU and RTX A6000 GPU Rudin 2021; DayDreamer reports one A1 run learning to roll over, stand and walk in one hour without a simulator, with physical interventions at the training-area boundary that preserved joint configuration and orientation Wu 2022; Minitaur walking required 160,000 control steps over about two hours of whole-process training time Haarnoja 2019; QT-Opt reports a 580,000-grasp off-policy dataset from seven robots over about 800 robot hours, separate from approximately 28,000 additional on-policy fine-tuning grasps Kalashnikov 2018; and section 5.2 of Levine's 2016 preprint reports about 800,000 grasp attempts over two months using 6-14 robots. Its abstract says “over 800,000” and its introduction says “several months”Levine 2016. Robot-hours are not parallel wall time. Bounds and approximate durations are plotted at their stated numeric anchors; two months is drawn as 60 days for placement, not as a measured elapsed-time conversion. These are not matched benchmarks. Keep the modelled budget fixed while switching sources or changing fleet size to inspect the toy assumptions.

The toy isolates collection cost. It does not measure task performance, predict a new robot’s collection rate or establish which learning algorithm will work.

Two ways to spend a transition

The MDP formulation admits two families of method, and the useful way to name the difference is not the taxonomy label but the property the label stands for: whether a transition can be used more than once.

An on-policy method's update is only valid for data the current policy generated, so a batch is collected, consumed, and thrown away. PPO is the canonical instance, alternating between sampling interaction data and optimizing a surrogate objective, where the surrogate is precisely what buys several minibatch epochs from one batch instead of the single gradient step plain policy gradient allows Schulman 2017. An off-policy method can improve one policy from data another produced, which means experience survives the policy that made it and accumulates in a replay buffer. The mechanism underneath is Q-learning: fit the value of a state-action pair, and bootstrap from the best available next action rather than the one that was taken Sutton 2018.

The continuous-control lineage of that idea is short and worth knowing by name. DDPG adapted deterministic policy gradients to deep function approximators and learned pixel-to-torque policies off-policy Lillicrap 2016. TD3 identified overestimation bias in DDPG and reduced its effects with clipped double critics, delayed policy updates and target policy smoothing Fujimoto 2018. Soft actor-critic added a maximum-entropy objective, and its authors were explicit that the target was sample complexity, one of the two challenges they named as keeping model-free deep RL out of complex real-world domains Haarnoja 2018.

Why robotics defaulted to PPO anyway

On-policy learning wastes data by construction, so its dominance in simulation-trained robotics looks like a mistake until you price it. When the sampler is a GPU running thousands of environments, environment steps are close to free and the scarce resource is the researcher's patience with a training run that diverges. The SAC paper says that on-policy training "tends to improve stability but results in poor sample complexity"; it also calls the combination of off-policy learning and neural-network function approximation "a major challenge for stability and convergence" Haarnoja 2018. Rudin and colleagues trained ANYmal with 4,096 parallel robots at 98,304 steps per policy update, 1,500 updates in under twenty minutes on one workstation GPU Rudin 2021. Discarding every one of those 147 million transitions after a single update is not extravagance, it is a rounding error.

The reported collection budgets differ sharply. Rudin’s 98,304 samples per update over 1,500 updates in under 1,200 seconds imply an end-to-end average greater than 122,880 environment steps per second on an i9-11900k CPU and RTX A6000 GPU Rudin 2021. Minitaur’s 160,000 control steps over about two hours imply approximately 22 control steps per second averaged over the whole training process, not its 50 Hz rollout rate Haarnoja 2019. The parallel-simulation module is about the machinery that makes the first regime possible; the rest of this article is about what you do when you are in the second.

What sample efficiency looks like in step counts

The papers that trained on hardware published their budgets, and the numbers are small enough to be surprising.

160k steps
Minitaur walking
about two hours of real-world time, SAC
1 h
A1 walking
DayDreamer: one A1 run; no simulator; physical interventions
580k grasps
QT-Opt grasping
about 800 robot hours across 7 robots
about 800k attempts
hand-eye grasping
2016 preprint §5.2: two months, 6-14 robots

Sample efficiency is the axis these results turn on. Haarnoja and colleagues learned Minitaur locomotion from 160,000 control steps, roughly 400 rollouts, in about two hours of real-world time, and that figure is end to end: it contains the resets and the operator, which is why it sits far below the control rate the rollouts ran at Haarnoja 2019. DayDreamer reports one Unitree A1 training run in which the robot learned to roll over, stand and walk in one hour without a simulator. After that hour, ten minutes of additional online learning under pushes produced resistance to light pushes or recovery after harder pushes. The authors manually intervened at the edge of the training area without changing the robot’s joint configuration or orientation, so “without resets” does not mean intervention-free operation Wu 2022.

Scale changes the shape of the cost rather than removing it. QT-Opt collected over 580,000 grasp attempts across seven robots in about 800 robot hours Kalashnikov 2018; Section 5.2 of the 2016 hand-eye coordination preprint reports about 800,000 grasp attempts over two months using between 6 and 14 robots at a time. Its abstract says “over 800,000,” while its introduction describes “several months”; these are the source’s own differing descriptions, not an exact campaign count or duration Levine 2016. The two papers describe separate collection campaigns, not interchangeable step-rate measurements.

Offline reinforcement learning

If collecting new data is too costly, Offline reinforcement learning learns a policy from a fixed dataset of transitions without additional environment interaction during training. The dataset is not updated during that phase; the trained policy is then deployed Levine 2020. This makes offline learning a way to reuse the corpora catalogued in the datasets module.

Levine, Kumar, Tucker and Fu identify distributional shift as a central challenge in offline RL. It is not just ordinary supervised-learning generalization: improving on the behavior in a fixed dataset requires counterfactual queries, and a learned policy may choose actions outside the behavior distribution. In value-based methods, Bellman targets can then use erroneously high Q-values for those actions; policy improvement favors the overestimates, and later backups can propagate the errors without fresh environment feedback Levine 2020. The tutorial assumes enough coverage of high-reward transitions for learning to be feasible; finite-data and function-approximation errors can remain even when out-of-distribution queries are controlled.

Conservative value estimation pushes the estimate down where the data is thin. CQL learns a lower bound on the policy's value by penalizing Q-values on out-of-distribution actions and maximizing them under the data distribution, which is the term that tightens the bound Kumar 2020.

Implicit and expectile approaches avoid the query entirely. IQL never evaluates an unseen action: it fits an expectile of the value distribution over the actions the dataset does contain, treating the state value function as an implicit maximum, and extracts the policy by advantage-weighted regression Kostrikov 2022.

Behavior-regularized approaches constrain the policy rather than the critic. TD3+BC adds a behavior-cloning term to a standard off-policy actor-critic and normalizes the states, and its authors' point is deliberately deflationary: that minimal change matches the performance of far more elaborate offline methods Fujimoto 2021.

Q-Transformer combines scale with regularization. It discretizes each action dimension and uses a Transformer to represent Q-values conditioned on the observation history and earlier dimensions of the current action, backing them up autoregressively. Its offline objective also uses conservative regularization and augments temporal-difference learning with Monte Carlo and n-step returns. The real-robot experiments combine successful human demonstrations with failed autonomous trials for language-conditioned manipulation, rather than establishing that any mixed-quality dataset will work Chebotar 2023. The paper studies sparse success/failure rewards and leaves online fine-tuning for future work.

Does any of this beat behavior cloning on robot data?

This is where the field genuinely disagrees, and the disagreement is worth stating rather than resolving.

Mandlekar and colleagues ran the head-to-head study on human demonstration data and reported that batch RL methods perform poorly there. BCQ in particular performed strongly on agent-generated data of mixed quality, neither BCQ nor CQL performed particularly well on the human-generated datasets, and a recurrent behavior-cloning baseline was consistently strong Mandlekar 2021. Their proposed explanation is that human data is multimodal and non-Markovian in ways these algorithms were not built for.

Kumar, Hong, Singh and Levine ask when offline RL can outperform BC, including when expert demonstrations are available. Their analysis gives sufficient conditions for particular algorithms, not a rule that sparse rewards or suboptimal data alone make RL superior. The theoretical setting assumes coverage of the optimal policy and bounds each trajectory's return independently of the horizon. For their near-expert critical-state result, the simplified proof additionally assumes coverage of every state-action pair and state marginals matching the optimal policy. They test tabular algorithms on diagnostic gridworlds and compare BC with CQL on simulated manipulation and navigation tasks and Atari. Offline tuning matters: naive CQL can perform no better than BC, and even the tuned results do not establish an across-the-board winner Kumar 2022.

Under the paper's additional noisy-data coverage condition, conservative offline RL has a more favorable horizon-dependent suboptimality bound than BC trained on an equal amount of expert data. The noise helps by improving coverage, not because arbitrary bad demonstrations are useful. Their simulated drawer-manipulation comparison uses equally sized datasets of expert successes for BC and noisy scripted trajectories for CQL; it is not a result about deployed robots Kumar 2022.

On expert data, their similar-performance statement is a worst-case result without additional environment-structure assumptions. They also identify conditions under which offline RL can improve on that result; Section 6 leaves understanding when BC is preferable as further work Kumar 2022.

Editorial recommendation: for a teleoperation dataset, start with a supervised behavior-cloning baseline as the simpler starting point, then test a tuned offline RL alternative under the same evaluation protocol. That is this article's advice, not Kumar and colleagues' endorsement of BC or a guarantee that short-horizon expert data favors cloning.

The pragmatic settlement is to stop choosing. RLPD initializes online off-policy training from a buffer already holding offline data, with no pretraining phase and no explicit conservatism, and gets sample-efficient online improvement out of it Ball 2023. HIL-SERL builds on RLPD and incorporates human demonstrations and online corrections Luo 2024.

Sparse reward, and learning from failure

Offline data does not solve exploration. A robot that has never once completed a task has no successful trajectory in its buffer, and a reward that fires only on completion gives a value function nothing to fit. Reward shaping is one answer and it belongs to the reward design module. The other answer changes the question asked of the data.

Andrychowicz 2017 Hindsight experience replay stores transitions under their original goal and selected alternative goals, recomputing the reward for each alternative. It is not restricted to failed episodes. The paper's simplest strategy uses the goal achieved in the final state; its future strategy instead samples goals achieved later in the same episode.

Andrychowicz and colleagues evaluated DDPG with HER on a seven-DoF Fetch arm simulated in MuJoCo for pushing, sliding and pick-and-place. The future-goal variant learned all three tasks whereas DDPG without HER did not, under their reported evaluation protocol. The main text describes sparse binary goal rewards, but Appendix A adds a squared-contact-penetration reward penalty in pushing. Pick-and-place also started half of its training episodes from a recorded state with the box already grasped. These settings do not support an unqualified claim of learning without any shaping or task-specific assistance. A separate pick-and-place deployment transferred a simulation-trained policy to a physical Fetch without real-robot fine-tuning; it used a separately trained camera estimator and simulation retraining with noisy observations, not on-hardware RL Andrychowicz 2017.

The original method trains policies and value functions conditioned on both state and goal. Goals may specify only some properties of a state, but the method needs an achieved-goal mapping and a reward that can be recomputed for the replacement goal. Training with multiple goals can help even when only one goal matters at deployment Andrychowicz 2017.

The reset problem

The difference between simulation RL and real-world RL that no algorithm addresses is janitorial. A simulated episode ends and the next one begins from a fresh initial state, for free. A physical episode ends with the robot somewhere arbitrary, possibly having knocked the workspace apart, and something has to put it back. That something is usually a person, and a person who has to intervene between episodes is the real limit on how long an experiment can run.

Zhu and colleagues identify three capabilities for a real-world RL system: learning from raw sensory inputs, assigning rewards without hand-designed perception systems or instrumentation, and learning continuously without human episode resets. Their experiments investigate the difficulty of combining those requirements. A D’Claw hand learned valve rotation and bead manipulation from RGB images after people supplied goal examples. Training was unattended, but evaluation was performed afterwards and included manual resets for bead manipulation. The authors leave sample complexity, exploration on harder tasks and safe operation among the problems for future work Zhu 2020.

Sharma and colleagues distinguish deployed-policy evaluation from continuing-policy evaluation for non-episodic learning. The former sums gaps to optimal expected discounted deployment return over training, using evaluation rollouts from the initial-state distribution that never enter training. The latter is the limiting average reward from the agent’s actual actions, with no separate deployment phase. In their extension for irreversible, non-ergodic settings, an intervention budget h falls by c(s,a) for each requested or enforced intervention; h - c(s,a) <= 0 sends the environment to an absorbing state and ends training. Interventions are therefore constrained costs, not the evaluation metric Sharma 2022.

EARL’s experiments instead use scheduled resets during training and stop after a fixed step budget. They estimate deployed-policy performance with finite-horizon, undiscounted returns and continuing performance with average reward accumulated so far. They show learning curves and also report final deployed-policy returns. The paper notes that the two objectives can favor different behavior and that trading some human supervision for faster learning remains a practical question Sharma 2022.

Reset-free learning can replace manual episode resets with learned recovery behaviors. Gupta and colleagues' MTRF learns task-specific policies and uses a designer-provided task graph to sequence them: re-centering, pickup and flip-up can restore the conditions for in-hand reorientation after a dropped object. They evaluated a D’Hand mounted on a Sawyer arm on valve reorientation and pipe insertion, and report learning these tasks without manual episode resets during the training runs Gupta 2021. The setup still used supplied rewards and task graphs; the in-hand experiment tracked the object with motion capture, and pickup used scripted arm motion while learning the hand controls. Pipe insertion used frozen fingers and separate approach and insertion tasks to reduce collisions Gupta 2021. For the in-hand run, the user positioned the objects and started the robot. The method assumes that successful upstream tasks produce valid starting states for downstream ones; it does not guarantee coverage of every downstream starting state. This needs a suitable task family and a supplied task graph Gupta 2021. Absent one, the reset is a person, which is the cost the human-in-the-loop line chose to pay deliberately rather than engineer away Luo 2024.

Where this goes from here

Everything above is the machinery. The rest of this domain is what the field built with it, and each module picks up one thread from this one.

The parallel simulation module is the sampler that makes on-policy learning affordable, in detail: which simulators, what throughput, and where the remaining bottleneck sits. Why RL won locomotion is the argument about which problems that sampler can faithfully represent, which is the reason the same recipe produced walking robots and not manipulating ones. Sim-to-real transfer covers what happens between a trained simulation policy and a working machine. Reward design takes up the specification problem this article deferred.

On the manipulation side, RL fine-tuning covers reinforcement learning on pretrained vision-language-action policies. The January 2026 v3 preprint pi_RL applies online PPO to supervised-fine-tuned pi0 and pi0.5 flow-based policies; this is a policy-gradient update, not the supervised flow-matching regression loss Chen 2026. Other approaches include PLD training off-policy residual specialists against a frozen VLA, collecting hybrid recovery data, then fine-tuning the generalist by SFT Xiao 2025, and HIL-SERL reporting 100% observed success in 100 evaluation trials per task, except IKEA whole assembly at 10/10. HIL-SERL reports one to two and a half hours of real-world training for nearly all tasks; Table 1 lists six hours for timing-belt assembly. Training time includes scripted motion, policy rollouts, intended stops and onboard computation on one RTX 4090 GPU Luo 2024. And the offline-RL question is only interesting because the datasets exist: DROID Khazatsky 2024 and Open X-Embodiment Open X-Embodiment Collaboration 2023 are the corpora on which the argument about offline RL versus cloning is currently being settled.

See also

  • Massively Parallel Sim RL

    Isaac Lab, Newton, MJX, and Brax: GPU-parallel environments and the wall-clock economics of training.

  • RL Fine-Tuning of Policies

    DPPO, ConRFT, Recap, pi_RL, residual RL, and HIL-SERL: closing the reliability gap with on-policy experience.

  • Behavior Cloning Foundations

    Covariate shift and compounding error: why naive imitation breaks in closed loop, with DAgger as the standard fix.

Linked from

References

  1. Richard S. Sutton, Andrew G. Barto, MIT Press, second edition, 2018.

    https://web.archive.org/web/20260818231355/http://www.incompleteideas.net/book/the-book-2nd.html

  2. Nikita Rudin, David Hoeller, Philipp Reist, Marco Hutter, CoRL 2021.

    https://arxiv.org/abs/2109.11978

  3. Tuomas Haarnoja, Sehoon Ha, Aurick Zhou, Jie Tan, George Tucker, Sergey Levine, RSS 2019.

    https://arxiv.org/abs/1812.11103

  4. Dmitry Kalashnikov, Alex Irpan, Peter Pastor, Julian Ibarz, CoRL 2018.

    https://arxiv.org/abs/1806.10293

  5. Sergey Levine, Peter Pastor, Alex Krizhevsky, Deirdre Quillen, arXiv preprint (v4), 2016.

    https://arxiv.org/pdf/1603.02199v4

  6. Philipp Wu, Alejandro Escontrela, Danijar Hafner, Ken Goldberg, Pieter Abbeel, CoRL 2022.

    https://arxiv.org/abs/2206.14176

  7. John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, Oleg Klimov, 2017.

    https://arxiv.org/abs/1707.06347

  8. Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, Sergey Levine, ICML 2018.

    https://arxiv.org/abs/1801.01290

  9. Timothy P. Lillicrap, Jonathan J. Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, Daan Wierstra, ICLR 2016.

    https://arxiv.org/abs/1509.02971

  10. Scott Fujimoto, Herke van Hoof, David Meger, ICML 2018.

    https://arxiv.org/abs/1802.09477

  11. Sergey Levine, Aviral Kumar, George Tucker, Justin Fu, 2020.

    https://arxiv.org/abs/2005.01643

  12. Aviral Kumar, Aurick Zhou, George Tucker, Sergey Levine, NeurIPS 2020.

    https://arxiv.org/abs/2006.04779

  13. Ilya Kostrikov, Ashvin Nair, Sergey Levine, ICLR 2022.

    https://arxiv.org/abs/2110.06169

  14. Scott Fujimoto, Shixiang Shane Gu, NeurIPS 2021.

    https://arxiv.org/abs/2106.06860

  15. Yevgen Chebotar, Quan Vuong, Alex Irpan, Karol Hausman, Fei Xia, Yao Lu, Aviral Kumar, Tianhe Yu, and 17 more, CoRL 2023.

    https://arxiv.org/abs/2309.10150

  16. Aviral Kumar, Joey Hong, Anikait Singh, Sergey Levine, ICLR 2022.

    https://arxiv.org/abs/2204.05618

  17. Ajay Mandlekar, Danfei Xu, Josiah Wong, Soroush Nasiriany, CoRL 2021.

    https://arxiv.org/abs/2108.03298

  18. Philip J. Ball, Laura Smith, Ilya Kostrikov, Sergey Levine, ICML 2023.

    https://arxiv.org/abs/2302.02948

  19. Marcin Andrychowicz, Filip Wolski, Alex Ray, Jonas Schneider, Rachel Fong, Peter Welinder, Bob McGrew, Josh Tobin, and 2 more, NeurIPS 2017.

    https://arxiv.org/abs/1707.01495

  20. Archit Sharma, Kelvin Xu, Nikhil Sardana, Abhishek Gupta, Karol Hausman, Sergey Levine, Chelsea Finn, ICLR 2022.

    https://arxiv.org/abs/2112.09605

  21. Abhishek Gupta, Justin Yu, Tony Z. Zhao, Vikash Kumar, Aaron Rovinsky, Kelvin Xu, Thomas Devlin, Sergey Levine, ICRA 2021.

    https://arxiv.org/abs/2104.11203

  22. Henry Zhu, Justin Yu, Abhishek Gupta, Dhruv Shah, Kristian Hartikainen, Avi Singh, Vikash Kumar, Sergey Levine, ICLR 2020.

    https://arxiv.org/abs/2004.12570

  23. Jianlan Luo, Charles Xu, Jeffrey Wu, Sergey Levine, 2024.

    https://arxiv.org/abs/2410.21845

  24. Kang Chen, Zhihao Liu, Tonghe Zhang, Zhen Guo, Si Xu, Hao Lin, Hongzhi Zang, Xiang Li, and 8 more, 2026.

    https://arxiv.org/abs/2510.25889

  25. Wenli Xiao, Haotian Lin, Andy Peng, Haoru Xue, Tairan He, Yuqi Xie, Fengyuan Hu, Jimmy Wu, and 4 more, 2025.

    https://arxiv.org/abs/2511.00091

  26. Alexander Khazatsky, Karl Pertsch, Suraj Nair, 2024.

    https://arxiv.org/abs/2403.12945

  27. Open X-Embodiment Collaboration, Abby O'Neill, Abdul Rehman, Abhinav Gupta, Abhiram Maddukuri, Abhishek Gupta, Abhishek Padalkar, Abraham Lee, and 286 more, 2023.

    https://arxiv.org/abs/2310.08864

Spot a factual error or missing qualification? Report a content correction.