Imitation learning or reinforcement learning: which method fits what

Short answer
In imitation learning, a robot learns from demonstrations: a person performs the task and the model learns which action belongs to which observation. In reinforcement learning, the robot tries out actions itself and receives a reward for good outcomes, usually in simulation. In the studies this article discusses, walking is trained with reinforcement learning and manipulation with demonstrations. The methods can also be combined: demonstrations provide a starting point and reinforcement learning refines it. Which method fits depends on what you can demonstrate and what you can simulate.
In brief
- Imitation learning (behavior cloning) learns from demonstrations by a person; reinforcement learning learns from rewards for its own attempts, usually in simulation.
- For walking with a humanoid or quadruped, the studies read use reinforcement learning (PPO) in simulation, with randomization to bridge the step to the real robot.
- For manipulation with the hands (grasping, placing, folding), the studies read use demonstrations and methods such as ACT and Diffusion Policy.
- The combination exists: start a policy with behavior cloning and then refine it with reinforcement learning. The research on this ran in simulation.
- A reference motion from retargeting is a third form: reinforcement learning learns to follow a human motion.
Two ways to teach a robot a task
The methods differ in where the knowledge comes from. In imitation learning, it comes from demonstrations by a person. The simplest form is called behavior cloning: supervised learning from observation to action. In reinforcement learning (learning by reward), there is no example. You define what a good outcome is, the robot tries out actions and adjusts its behavior to what yields more reward.
A widely used reinforcement learning algorithm is PPO (Proximal Policy Optimization). According to the authors, PPO alternates between collecting data and optimizing an objective function, and the same data can be used several times. They call it much simpler to implement than its predecessor TRPO (Schulman et al., 2017).
Imitation learning: behavior cloning and what goes wrong
Small errors in behavior cloning accumulate. The robot ends up in a state that was not in the demonstrations, makes a new error there, and so on. The authors of ACT (Action Chunking with Transformers) tackle this by predicting not one action but the next k actions at once. That shortens the effective task duration by a factor of k. In their ablation, average success rose from about 1 percent without that approach to 44 percent with k equal to 100 (Zhao et al., 2023).
The demonstrations came from teleoperation with a leader-follower setup: an operator moves a small arm and a larger arm copies it. That was about 50 demonstrations of 8 to 14 seconds per task. One task (Thread Velcro) had 100. How to record demonstrations and which requirements the data must meet is covered in teleoperation and data collection. How many you need depends on the task and is covered in how many demonstrations a robot needs.
A second problem is that people perform the same task in different ways. A model that directly predicts a single action cannot capture multiple valid ways well. Diffusion Policy, also a behavior cloning method, therefore learns a distribution over actions and picks one of the ways for each execution. It also predicts a sequence of actions, so that consecutive steps stay consistent. For real tasks, the authors used between 90 and 284 demonstrations (Chi et al., 2023).
Isaac Lab, NVIDIA's robot learning framework, includes an imitation learning workflow that is among the experimental features. The guide expands 10 teleoperation demonstrations with Isaac Lab Mimic into new, successful trajectories, and trains a behavior cloning policy on them. The guide cites 1000 generated demonstrations as a good training result for that example, with an expected success rate of about 40 to 60 percent (Isaac Lab documentation).
Reinforcement learning: many attempts in simulation
Reinforcement learning requires many attempts, and in simulation these can run in parallel. Rudin and colleagues therefore trained thousands of robots at the same time in simulation: 4096 virtual robots, with PPO entirely on a single workstation GPU. A policy for flat terrain was ready in less than four minutes, for uneven terrain it took about twenty minutes. The policy then walked on the real ANYmal quadruped (Rudin et al., 2021).
The reward is design work here. In that study it is a weighted sum of nine terms, for example tracking the requested velocity and penalties for joint torques and collisions. There is no term for a particular gait; the policy settled on a trot.
Isaac Lab supports six libraries for reinforcement learning, including RSL-RL, skrl and RL-Games. For new robotics projects, the documentation advises starting with RSL-RL, which suits GPU-parallel tasks for walking and manipulation (Isaac Lab documentation). You can read more about simulation itself in training a robot in simulation.
From simulation to the real robot
A policy that works in simulation does not automatically work on hardware. Tobin and colleagues showed that an object detector trained only on simulated images with random textures could locate objects in the real world to within 1.5 cm. The idea behind this domain randomization is that the real world is then just one more variant for the model (Tobin et al., 2017).
For humanoids, Radosavovic and colleagues arrived at a controller for the Digit robot. A transformer that looks at earlier observations and actions was trained with PPO in simulation, with randomized dynamics, control parameters, environment physics, noise and delay. The controller was run on the real robot without additional training and walked over outdoor terrain that was not in the training. Before the first test on hardware, the researchers checked policies in a more accurate simulator to filter out unsafe variants (Radosavovic et al., 2023).
When which method fits
In the studies read, the pattern is consistent, but it is a pattern and not a law.
- Walking and balance: reinforcement learning in simulation, with randomization. You need a simulator that imitates the robot well enough and a reward that you design yourself.
- Manipulation with the hands: demonstrations. You need a setup to record them, and the quality of that data determines much of the result. AgiBot World, a dataset with over a million trajectories across 217 tasks on more than a hundred robots, consists of demonstrations recorded by teleoperators. In the study, a smaller, human-verified set gave a better result on one task than a larger, unverified set (AgiBot World, 2025).
- Both in one task: first demonstrations, then reinforcement learning.
Ask a provider where the training data or the simulation comes from.
The combination: reinforcement learning after demonstrations
Behavior cloning alone is not always enough. Rajeswaran and colleagues began with 25 demonstrations per task for a robot hand with 24 degrees of freedom. They initialized the policy with behavior cloning and then refined it with a policy gradient method that keeps the demonstrations as an extra term in the loss function. Behavior cloning alone mostly failed, because the states reached deviated from the demonstrated ones. Reinforcement learning from scratch required carefully designed rewards and many attempts in their experiments, and produced unnatural movements. Everything happened in simulation; the authors themselves state that success on real hardware remains to be demonstrated (Rajeswaran et al., 2017).
Reference motion and retargeting
For humanoids there is a third source of examples: a recorded human motion. Because a robot has different proportions and joints than a human, that motion is first converted to the robot's body. This is called retargeting and the result is a reference motion, not yet behavior. Reinforcement learning then learns a controller that follows that motion.
DeepMimic combines such an imitation objective with a task objective. Simulated characters, including an Atlas robot, learned with it to imitate motion from example clips while performing a task, such as throwing a ball at a target (Peng et al., 2018). The quality of the reference matters: retargeting can make feet slide, body parts pass through each other and produce impossible movements. According to Araújo and colleagues, such errors noticeably lowered the robustness of the trained controller, especially for dynamic or long motions (Araújo et al., 2025).
What this means for you
For a first application in your business, the question is not which method is better, but what you can demonstrate and what you can simulate. If you can demonstrate the task with teleoperation, demonstrations are the starting point. If it concerns movement and balance of the body, reinforcement learning in simulation comes into view. How these methods fit into the broader training of a humanoid is covered in how a humanoid learns a task.
Sources: ACT, Diffusion Policy, PPO, Rudin et al., Radosavovic et al., Tobin et al., Rajeswaran et al., DeepMimic, Retargeting Matters, AgiBot World, Isaac Lab: reinforcement learning, Isaac Lab: imitation learning
Sources
- arXiv: Learning Fine-Grained Bimanual Manipulation with Low-Cost Hardware (ACT, Zhao et al., 2023) (checked on 2026-11-21)
- arXiv: Diffusion Policy: Visuomotor Policy Learning via Action Diffusion (Chi et al., 2023, revised 2024) (checked on 2026-11-21)
- arXiv: Proximal Policy Optimization Algorithms (Schulman et al., 2017) (checked on 2026-11-21)
- arXiv: Learning to Walk in Minutes Using Massively Parallel Deep Reinforcement Learning (Rudin et al., 2021) (checked on 2026-11-21)
- arXiv: Real-World Humanoid Locomotion with Reinforcement Learning (Radosavovic et al., 2023) (checked on 2026-11-21)
- arXiv: Domain Randomization for Transferring Deep Neural Networks from Simulation to the Real World (Tobin et al., 2017) (checked on 2026-11-21)
- arXiv: Learning Complex Dexterous Manipulation with Deep Reinforcement Learning and Demonstrations (Rajeswaran et al., 2017) (checked on 2026-11-21)
- arXiv: DeepMimic: Example-Guided Deep Reinforcement Learning of Physics-Based Character Skills (Peng et al., 2018) (checked on 2026-11-21)
- arXiv: Retargeting Matters: General Motion Retargeting for Humanoid Motion Tracking (Araújo et al., 2025) (checked on 2026-11-21)
- arXiv: AgiBot World Colosseo: A Large-scale Manipulation Platform for Scalable and Intelligent Embodied Systems (2025, revised October 2026) (checked on 2026-11-21)
- Isaac Lab documentation: Reinforcement learning (checked on 2026-11-21)
- Isaac Lab documentation: Teleoperated demonstrations, Isaac Lab Mimic and behavior cloning (checked on 2026-11-21)
Frequently asked questions
What is the difference between imitation learning and reinforcement learning?
In imitation learning, the knowledge comes from demonstrations by a person. In reinforcement learning, it comes from the robot's own attempts, with a reward function determining what is good. The first learns what a person does, the second what yields the most reward.
Which method is better?
Neither is better in general. In the studies read, walking is trained with reinforcement learning in simulation and manipulation with demonstrations. For your own task, what matters most is whether you can demonstrate the task and whether you can simulate the robot and the environment well enough.
What is behavior cloning?
The simplest form of imitation learning: supervised learning from observation to action based on demonstrated examples. A known risk is that small errors accumulate, so the robot ends up in situations that did not occur in the demonstrations.
What is PPO?
Proximal Policy Optimization, a widely used reinforcement learning algorithm from 2017. It alternates between collecting data by interacting with the environment and optimizing an objective function, using the same data several times. The authors call it much simpler to implement than the earlier TRPO method.
Why is reinforcement learning usually done in simulation?
It requires many attempts, and in simulation thousands of robots can practice at the same time. Rudin and colleagues trained a quadruped this way in minutes on a single workstation GPU. The limitation is the step to the real robot, which is tackled with, among other things, randomization of the simulation.
Can a robot combine demonstrations and reinforcement learning?
Yes. In a study with a robot hand in simulation, the policy started with behavior cloning on demonstrations and was then refined with reinforcement learning. That study showed in simulation that this greatly reduces the attempts needed. It was not demonstrated on real hardware.
How many demonstrations does imitation learning need?
That depends on the task and the method. For individual tasks, the sources mention a few dozen to a few hundred demonstrations. More on this can be found in the article on how many demonstrations a robot needs.
What is a reference motion?
A recorded human motion, converted to a robot's body structure (retargeting). A reinforcement learning controller learns to follow that motion. So it is not a task demonstration, but an example of how the body should move.