Imitation learning vs reinforcement learning for robots
Imitation learning copies demonstrations; reinforcement learning optimizes a reward by trial and error. Where each one wins, and how robots combine them.
- Imitation learning trains a robot policy to copy demonstrations, while reinforcement learning trains a policy by trial and error to maximize a reward.
- Behavior cloning is the simplest form of imitation learning: ordinary supervised learning that predicts the demonstrator's action from the robot's observation.
- Behavior cloning suffers from compounding errors, because each small mistake moves the robot into states the demonstrations never covered; DAgger, published in 2011, addresses this by collecting expert labels on the states the learner itself visits.
- Most robot reinforcement learning is done in simulation because it needs far more experience than imitation learning and early trial-and-error behavior would damage real hardware.
- As of December 2026, several leading manipulation systems pretrain with imitation learning and then fine-tune with reinforcement learning on the robot's own attempts and human corrections.
Imitation learning trains a robot policy to copy demonstrations of a task. Reinforcement learning trains a policy by trial and error to maximize a reward. The core difference in imitation learning vs reinforcement learning is where the learning signal comes from: a person showing the robot what to do, or a score telling it how well it did. As of December 2026, most manipulation policies start as imitation learning, most legged locomotion is reinforcement learning in simulation, and the strongest systems combine the two.
This article defines both methods, compares them side by side and explains how they are mixed in practice. It sits in the Foundations chapter next to the guide to what physical AI is and how it works. In both methods the thing being trained is a policy: the function that maps what the robot observes to what it does next.
Imitation learning vs reinforcement learning at a glance
| Question | Imitation learning | Reinforcement learning |
|---|---|---|
| Where does the learning signal come from? | Demonstrated actions to copy | A reward for outcomes |
| What data is needed? | Demonstrations, usually teleoperated: minutes to hours for one task, thousands of hours for a generalist model | Trial-and-error experience: often years of simulated time, or hundreds of thousands of real attempts |
| Where does training happen? | Offline, on recorded real-robot data | Mostly in simulation; sometimes on the real robot |
| Typical strengths | No reward to write; works on tasks that are hard to simulate; useful from modest data | Can exceed the skill of any demonstrator; learns its own recoveries; needs no demonstrations |
| Typical failure modes | Compounding errors off the demonstrated path; capped by demonstration quality | Exploiting a flawed reward; policies that fail to transfer from simulation |
| Representative systems | ACT, Diffusion Policy, OpenVLA, π0 | ANYmal locomotion, OpenAI’s Dactyl hand, the Swift racing drone |
What is imitation learning?
Imitation learning is any method that learns a policy from examples of the task being done, instead of from a reward. The examples are usually recordings of a person controlling the robot: camera images and joint positions on one side, the operator’s commands on the other.
Behavior cloning: supervised learning from demonstrations
Behavior cloning is the simplest form of imitation learning. It treats the demonstrations as a labeled dataset, with observations as inputs and the demonstrator’s actions as labels, and trains a network with ordinary supervised learning to predict the action from the observation. Nothing in the process measures whether the task succeeded.
The idea is old. ALVINN, presented in 1988, was a three-layer neural network trained with supervised learning to turn camera and laser range finder input into a steering direction for a road vehicle. That first version was trained on simulated road images. By 1990 it learned to steer in under five minutes by watching a human driver.
Compounding errors and DAgger
Behavior cloning has a structural weakness. Supervised learning assumes that the inputs seen in use resemble the training inputs, but a robot’s own actions determine what it sees next. A small mistake moves the robot into a state the demonstrator never visited, where the policy is less accurate, so the next mistake tends to be larger. This is the compounding error problem, a form of distribution shift.
Stéphane Ross and Drew Bagnell made the problem precise in 2010, showing that the error bound for plain supervised imitation grows quadratically with the length of the task. A year later, Ross, Geoffrey Gordon and Bagnell published DAgger (Dataset Aggregation) at AISTATS 2011. In simplified form, it works in rounds:
- Train a policy on the expert’s demonstrations.
- Run that policy and record the states it actually reaches.
- Ask the expert for the correct action in those states.
- Add the newly labeled states to the dataset and retrain.
Because the policy is trained on the consequences of its own mistakes, the bound improves to roughly linear in task length, provided the expert can recover from a mistake at small cost. On a physical robot, labeling states after the fact is awkward, so teams often approximate it: an operator takes over when the policy drifts, and the corrections join the training set. HIL-SERL and π*0.6, both described below, use human corrections this way.
The other common remedy is to make fewer decisions. Action chunking and diffusion policies predict a short sequence of actions at once, which leaves fewer points where an error can enter.
How are demonstrations collected?
Most demonstrations come from robot teleoperation: a person drives the robot through the task with leader arms, a headset, gloves or an exoskeleton while the system records. The data is expensive because it ties up an operator and a robot in real time. That cost is why shared collections such as the Open X-Embodiment datasets matter.
Why VLAs and diffusion policies are imitation learning at scale
The best-known modern robot policies are behavior cloning with better architectures and far more data. ACT reached 80–90% success on six fine manipulation tasks from about 10 minutes of demonstrations. Diffusion Policy outputs a sampled sequence of actions instead of one averaged action, which copes with demonstrators who solve the same task in different ways.
Vision-language-action models scale the same recipe. OpenVLA was trained on 970,000 robot demonstrations, and π0 on more than 10,000 hours of robot data. Neither uses a reward. They inherit the limits of the method: Physical Intelligence’s own π*0.6 paper notes that imitation-trained policies suffer from compounding errors and can at best match the demonstration data.
What is reinforcement learning?
Reinforcement learning (RL) trains a policy through interaction. The robot acts, the environment returns a reward, and the algorithm adjusts the policy to collect more reward over time. Nobody shows the robot the answer. The designer specifies what counts as good, and the policy discovers how to achieve it.
Why most robot reinforcement learning happens in simulation
There are two reasons: sample cost and safety.
RL needs far more experience than imitation learning. OpenAI’s Dactyl hand policy used about 100 years of simulated experience, gathered in 50 hours on 6,144 CPU cores and 8 GPUs. On real hardware, Google’s 2018 QT-Opt project collected more than 580,000 real grasp attempts and, after further on-robot fine-tuning, reported 96% grasp success on unseen objects. A policy early in training also acts almost at random, which on a physical robot means falls, collisions and worn parts.
Simulation removes both problems. In 2021, researchers at ETH Zurich and NVIDIA trained the ANYmal quadruped to walk on flat terrain in under four minutes by running thousands of simulated robots in parallel on one workstation GPU. The robot simulator comparison covers the tools that make this possible.
Where does reinforcement learning dominate?
- Legged locomotion. A 2020 Science Robotics paper trained a quadruped controller by RL in simulation that crossed mud, snow, rubble and flowing water with no further training. A 2023 Berkeley paper did the same for humanoid walking.
- In-hand manipulation. Dactyl learned to reorient a block in 2018 without any human demonstrations. In 2019 the same hand solved a Rubik’s Cube, succeeding about 60% of the time on scrambles needing 15 face rotations and about 20% on the hardest ones. The robot hands article explains why this control problem is so hard.
- Agile skills. Swift, a racing drone whose policy was trained with RL in simulation, won several races against each of three human champions in a 2023 Nature paper.
Editorial judgment: these tasks share three properties. They are hard for a person to demonstrate, the physics is mostly rigid-body dynamics that simulators handle well, and success is easy to score.
The costs: reward design and sim-to-real
Reward design. A policy optimizes exactly what the reward says, including any loophole in it. Writing rewards that produce the intended behavior is skilled work: in the 2023 Eureka study, reward code written by a language model beat expert-written rewards on 83% of 29 simulated tasks.
Sim-to-real. A policy that masters a simulator has to survive real friction, latency and sensor noise. The sim-to-real gap is closed with better modeling and with domain randomization, both of which add engineering effort. Soft objects and camera-based contact tasks are harder to simulate than walking, which is one reason manipulation leaned toward imitation learning.
How are imitation learning and reinforcement learning combined?
As of December 2026, the most active work uses both: imitation learning to get a policy that roughly works, then RL to make it faster and more reliable. All results below are reported by the authors themselves.
RL fine-tuning of imitation-pretrained policies
- HIL-SERL (UC Berkeley, October 2024) starts from a small set of demonstrations, then runs RL on the real robot while a person supplies corrections. The authors report near-perfect success within 1 to 2.5 hours of training.
- π*0.6 (Physical Intelligence, November 2025) introduced RECAP. A value function estimates how much each action helped, and the VLA is trained to produce the better ones, using demonstrations, autonomous attempts and teleoperated corrections. On some of the hardest tasks, throughput more than doubled and failure rates roughly halved; the system made espresso drinks for 13 hours straight.
- RL Token (Physical Intelligence, April 2026) has the VLA expose a compact summary of its internal state and trains a small actor-critic on it with online RL. On four precise tasks, including screw installation and Ethernet insertion, the hardest phase ran up to 3x faster after minutes to a few hours of practice.
- EXPO-FT (May 2026) fine-tunes a pretrained VLA with online RL. Its authors report 30 of 30 successes on each of eight real-world manipulation tasks after an average of 19.1 minutes of online robot data per task.
- Simulation post-training. In November 2026, NVIDIA said Isaac Lab 3.0 adds a reinforcement post-training library for foundation models such as GR00T.
Residual RL
Residual RL keeps a base controller fixed and learns only a small correction added to its output. A 2018 paper that introduced the name paired a conventional feedback controller with an RL residual for a real block-assembly task. A 2025 version treats a behavior cloning policy as a black-box base and reports real-world RL on a humanoid with dexterous hands.
Offline RL
Offline RL learns from a fixed dataset with no new interaction, like behavior cloning, but uses rewards to prefer the actions that led to good outcomes. That lets it learn from failures and mixed-quality data. π*0.6 is pretrained this way before any on-robot practice.
Teacher–student distillation
This reverses the usual order. RL trains a teacher in simulation with access to privileged information, and a student policy then imitates the teacher using only real sensors. The domain randomization article covers the method.
Inverse RL
Inverse reinforcement learning infers a reward function from demonstrations and then optimizes it. Andrew Ng and Stuart Russell posed the problem in 2000, and Pieter Abbeel and Ng applied it in 2004 to tasks such as driving, where the right reward is hard to write down. Editorial judgment: it appears less often in current manipulation systems than direct behavior cloning.
Which to use when
The following is the handbook’s editorial judgment, not a rule.
- Start with imitation learning when a person can demonstrate the task by teleoperation, the objects vary and the scene is hard to simulate. That describes most manipulation work, and it is the route for fine-tuning a pretrained VLA.
- Use reinforcement learning in simulation when the skill is about dynamics and balance, the simulator models the physics well and success is easy to score: locomotion, in-hand reorientation, agile flight.
- Add RL on top of imitation when the imitation policy works but is too slow or fails too often for production. Budget for what real-world RL needs. The π*0.6 authors note that their system depends on people for success labels, interventions and resets.
- Ask vendors which signal trained the policy. How many hours of demonstrations, from which robots? Does deployment data feed back into training? What success and intervention rates were measured, and how? The article on how robot models are evaluated explains how to read the answers.
Neither method produces a policy with guaranteed behavior. Safety around people still has to come from independent safeguards chosen through a risk assessment.
Frequently asked questions
Is behavior cloning the same as imitation learning?
Behavior cloning is one kind of imitation learning, and the most common. It treats demonstrations as a labeled dataset and uses supervised learning to predict the demonstrator's action from the observation. Imitation learning is the wider family, which also includes interactive methods such as DAgger and reward-inferring methods such as inverse reinforcement learning.
Is imitation learning better than reinforcement learning for robots?
Neither is better in general; the task decides. Imitation learning fits manipulation tasks that a person can demonstrate by teleoperation and that are hard to simulate. Reinforcement learning fits skills that are hard to demonstrate but easy to simulate and score, such as legged locomotion. Many current systems use imitation learning first and reinforcement learning second.
What is DAgger in imitation learning?
DAgger, short for Dataset Aggregation, is an imitation learning algorithm published by Ross, Gordon and Bagnell in 2011. It runs the learned policy, asks the expert for the correct action in the states the policy actually reached, adds those examples to the dataset and retrains. Training on its own mistakes reduces the compounding errors of plain behavior cloning.
Are VLA models trained with imitation learning or reinforcement learning?
Mostly imitation learning. Vision-language-action models such as OpenVLA and π0 are trained to reproduce actions from large sets of robot demonstrations, with no reward signal. Since late 2025, some have added reinforcement learning afterward: Physical Intelligence's π*0.6 improves from the robot's own attempts and from human corrections.
Why is reinforcement learning usually done in simulation?
Reinforcement learning needs very large amounts of experience, and a policy early in training acts almost at random. OpenAI's Dactyl hand policy used about 100 years of simulated experience, which no physical robot could gather. Simulation makes that experience cheap and failures harmless, at the price of a sim-to-real gap when the policy moves to hardware.
Sources
- A Reduction of Imitation Learning and Structured Prediction to No-Regret Online Learning (DAgger) — Ross, Gordon and Bagnell, AISTATS 2011, arXiv:1011.0686
- Efficient Reductions for Imitation Learning — Ross and Bagnell, AISTATS 2010, PMLR volume 9
- ALVINN: An Autonomous Land Vehicle in a Neural Network — Pomerleau, Advances in Neural Information Processing Systems 1 (NIPS 1988)
- Rapidly Adapting Artificial Neural Networks for Autonomous Navigation — Pomerleau, Advances in Neural Information Processing Systems 3 (NIPS 1990)
- Learning Fine-Grained Bimanual Manipulation with Low-Cost Hardware (ACT and ALOHA) — Zhao, Kumar, Levine and Finn, arXiv, April 2023
- Diffusion Policy: Visuomotor Policy Learning via Action Diffusion — Chi et al., arXiv, March 2023
- OpenVLA: An Open-Source Vision-Language-Action Model — Kim et al., arXiv, June 2024
- π0: A Vision-Language-Action Flow Model for General Robot Control — Black et al., Physical Intelligence, arXiv, October 2024
- Reinforcement Learning: An Introduction, second edition — Sutton and Barto, MIT Press, 2018
- Learning Dexterous In-Hand Manipulation — OpenAI et al., arXiv:1808.00177
- Learning dexterity — OpenAI (July 30, 2018)
- Solving Rubik's Cube with a robot hand — OpenAI (October 15, 2019)
- QT-Opt: Scalable Deep Reinforcement Learning for Vision-Based Robotic Manipulation — Kalashnikov et al., arXiv, June 2018
- Learning to Walk in Minutes Using Massively Parallel Deep Reinforcement Learning — Rudin, Hoeller, Reist and Hutter, arXiv:2109.11978
- Learning Quadrupedal Locomotion over Challenging Terrain — Lee, Hwangbo, Wellhausen, Koltun and Hutter, Science Robotics, 2020
- Real-World Humanoid Locomotion with Reinforcement Learning — Radosavovic et al., arXiv:2303.03381
- Champion-level drone racing using deep reinforcement learning — Kaufmann et al., Nature, volume 620, August 2023
- Eureka: Human-Level Reward Design via Coding Large Language Models — Ma et al., arXiv, October 2023 (ICLR 2024)
- Precise and Dexterous Robotic Manipulation via Human-in-the-Loop Reinforcement Learning (HIL-SERL) — Luo, Xu, Wu and Levine, UC Berkeley, arXiv, October 2024
- π*0.6: a VLA That Learns From Experience — Physical Intelligence, arXiv, November 2025
- RL Token: Bootstrapping Online RL with Vision-Language-Action Models — Xu et al., Physical Intelligence, arXiv, April 2026
- EXPO-FT: Sample-Efficient Reinforcement Learning Finetuning for Vision-Language-Action Models — Dong, Hung, Gao, Sadigh and Finn, arXiv, May 2026
- Practice Makes Precise: At CoRL, NVIDIA and Partners Reveal How Robots Rehearse Delicate Work in Simulation — NVIDIA Blog, November 9, 2026
- Residual Reinforcement Learning for Robot Control — Johannink et al., arXiv, December 2018
- Residual Off-Policy RL for Finetuning Behavior Cloning Policies — Ankile et al., arXiv, September 2025
- Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problems — Levine, Kumar, Tucker and Fu, arXiv, May 2020
- Algorithms for Inverse Reinforcement Learning — Ng and Russell, ICML 2000
- Apprenticeship Learning via Inverse Reinforcement Learning — Abbeel and Ng, ICML 2004