ROBOTIC.INDUSTRIES

AI and Robot Learning

Imitation Learning vs Reinforcement Learning for Robots

Imitation needs demonstrations and gets working behaviour in days. Reinforcement needs a reward and a simulator and can exceed human performance. Which to use, and why most projects use imitation.

Robot arm gripping an object on a table surrounded by camera rigs
Robot arm gripping an object on a table surrounded by camera rigs

Use imitation learning when a human can demonstrate the task, which is almost always in manipulation. Use reinforcement learning when demonstrations are impossible or when you need behaviour beyond human ability, which in practice means locomotion and dynamic control. Imitation needs hundreds to thousands of demonstrations; reinforcement needs millions to billions of simulated steps and a reward function that is far harder to write than it looks.

100s to 1,000sdemonstrations for an imitation policy
10^6 to 10^9environment steps for reinforcement learning
daysto a first working imitation policy
1badly written reward that ruins a run

The practical difference

Imitation against reinforcement
AspectImitation learningReinforcement learning
NeedsDemonstrationsReward function and an environment
Data scale100s to 1,000s of episodesmillions to billions of steps
Where data comes fromTeleoperation on real hardwareSimulation, almost always
Time to first resultdaysweeks
Performance ceilingThe demonstratorCan exceed the demonstrator
Failure modeDrifts out of the demonstrated distributionExploits the reward, ignores intent
Typical useManipulationLocomotion, dynamic balance
Sim-to-real burdenLow, trained on real dataHigh, trained in simulation

The bottom two rows explain the field's division of labour. Manipulation is contact-rich and hard to simulate accurately, but easy for a human to demonstrate, so imitation dominates. Locomotion is expensive and dangerous to demonstrate but simulates comparatively well and benefits from millions of falls, so reinforcement dominates.

Where imitation breaks

The core weakness is distribution shift. A policy trained on states a competent demonstrator visited has never seen the state that follows its own small mistake, and because a small error moves it slightly off-distribution, the next action is slightly worse, and the error compounds. This is why a policy can look excellent for three seconds and then diverge.

Three remedies are standard, and all three are about data rather than architecture.

  • Demonstrate failures and recoveries deliberately. Take the robot off-course and demonstrate getting back. Policies cannot learn recovery they never saw.
  • Collect corrections during deployment. An operator intervening produces exactly the data the policy most needs, and a pipeline that captures interventions improves faster than one that collects new campaigns.
  • Chunk actions. Predicting a short sequence rather than a single step reduces compounding, because the policy commits to a coherent motion instead of reacting to its own noise.
Reward writing is an engineering discipline. A robot rewarded for the distance its hand moves toward a target will wave its hand at the target. A robot rewarded for forward velocity will learn to fall forward repeatedly. Every practitioner has a collection of these, and the lesson is consistent: specify the outcome, penalise the shortcuts, and inspect the behaviour rather than the reward curve.

What each approach costs to run

Resource profile for a single manipulation task
ItemImitationReinforcement in simulation
Human effort to produce data8 to 25 operator hours0, after the reward is written
Engineering effort before training1 to 3 days rig setup1 to 4 weeks environment and reward
Episodes or steps needed300 to 3,000 episodes10 million to 1 billion steps
Wall clock to first working policy2 to 10 days2 to 8 weeks
Compute for training1 to 4 GPU days5 to 200 GPU days
Parallel environments used11,000 to 8,000
Hardware risk during traininglow, teleoperatednone in simulation, high on hardware
Cost to add a second task60 to 100 % again40 to 90 % again

The last row is the one that shapes programme plans. Neither method amortises well across tasks on its own, which is exactly the gap that cross-embodiment datasets and pretrained action models are trying to close: a shared backbone makes the second task cheaper than the first.

The combination that actually wins

  1. Pretrain on demonstrations to get a policy that is roughly correct, which removes the exploration problem entirely.
  2. Fine-tune with reinforcement against a reward that measures task success, in simulation or carefully on hardware.
  3. Use demonstrations as a constraint so the policy does not drift into a reward-exploiting behaviour that a human would never perform.

This ordering matters because random exploration in a high-dimensional action space almost never stumbles on a successful manipulation, so pure reinforcement from scratch on a real manipulator is impractical. Starting from demonstrations converts an intractable search into a local improvement problem.

Frequently asked questions

Which should I use for a manipulation task?

Imitation learning. Manipulation is easy to demonstrate and hard to simulate accurately, so a few hundred to a few thousand teleoperated demonstrations reach a working policy far faster than reinforcement from scratch.

Why is reinforcement learning used for walking?

Because demonstrating a fall is impractical and a simulator can produce millions of them safely. Locomotion also simulates more faithfully than contact-rich manipulation, so the transfer to hardware is more reliable.

What is distribution shift?

The compounding failure of an imitation policy that has only seen states a competent demonstrator visited. A small error moves the robot slightly off that distribution, the next action is slightly worse, and the deviation grows.

How much data does each approach need?

Imitation typically needs hundreds to thousands of episodes per task. Reinforcement needs millions to billions of environment steps, which is why it lives in simulation with thousands of parallel environments.

Can the two be combined?

Yes, and that is the strongest recipe. Pretrain on demonstrations to get roughly correct behaviour, then fine-tune with reinforcement against a success reward while constraining the policy to stay near demonstrated behaviour.

Sources

  1. arXiv machine learning preprints, imitation and reinforcement learningPrimary literature on distribution shift, action chunking and reward design
  2. Open X-Embodiment: robotic learning datasetsScale of demonstration data used for imitation across robot types
  3. MuJoCo documentationSimulation performance characteristics relevant to reinforcement learning throughput