Robot learning methods compared: programming, imitation and reinforcement
No single method suits every task. Programming is predictable for fixed work, imitation learning handles variation people can demonstrate, reinforcement learning uses rewards and many simulated attempts, and pretrained models cut the task data needed: OpenVLA, released in 2024, learned from 970,000 robot demonstrations before any fine-tuning. Real projects usually combine approaches.
Four ways to give a robot a skill
Each method answers the question of where the skill comes from.
| Method | Where the skill comes from |
|---|---|
| Classic programming | A person writes the motions and rules |
| Imitation learning | Recorded demonstrations of the task |
| Reinforcement learning | Trial and error scored by a reward |
| Large pretrained models | Training on very large datasets, then adaptation to the task |
The rest of this page describes each in turn, then compares them. The detail behind each method is in the guides on imitation learning, simulation and reinforcement learning.
Classic programming and teach pendants
In classic robot programming, a technician defines targets for the robot to visit and the order of operations. For industrial arms the common tool is a teach pendant, a hand-held controller used to jog the arm to a position and record it as a waypoint. The program strings waypoints and tool actions together, with conditions such as waiting for a sensor signal. Some programs are written as text in the robot maker’s language, and some are built in graphical tools.
Strengths are predictability and verification. The same inputs give the same motion, every line can be read and reviewed, and safety checks can be written in explicitly. That is why the approach dominates factories where the product, the fixtures and the cycle time are fixed. Weaknesses show up when the world varies: if a part arrives in a slightly different position, the program has no way to cope unless the programmer wrote that case, usually with a vision system and rules for it.
Programming effort rises with variety. A new product means a new program. For high-volume work that effort is worth paying once. For low-volume work with frequent changes, it can dominate the cost, which is the opening that learning methods aim at.
What is imitation learning good for?
Imitation learning trains a policy from demonstrations, typically recorded by teleoperation. It suits tasks that are easy for a person to show and hard to describe in rules, such as folding a towel, scooping or wiping. The policy maps camera images and robot state to actions, so it responds to variation seen in the data.
Its needs are demonstrations and an operator with time to collect them. It does not need a reward or a simulator. Its typical weaknesses are compounding errors when the robot drifts into unfamiliar situations, dependence on the scenes and robot used in the data, and a skill ceiling set by the demonstrators. Methods such as DAgger, described in a paper on arXiv, and newer policy designs such as Diffusion Policy address parts of these problems.
When does reinforcement learning fit?
Reinforcement learning trains a policy by trial and error against a reward. It suits problems where a good outcome can be measured but the movements are hard to demonstrate or specify, such as walking over uneven ground or controlling a complicated hand. Because it needs many attempts, it is usually run in simulation with thousands of parallel copies, then tested on hardware.
Its needs are a well-designed reward, a simulator or a safe way to practise, and substantial computing. It does not need demonstrations. Its typical weaknesses are reward design errors that produce odd behaviour, the reality gap when moving from simulation to hardware, and the risk of exploration on real machines.
Large pretrained robot models
The fourth approach borrows from large language and image models. A vision-language-action model takes camera input and a text instruction and outputs actions. Such models usually begin from a network already trained on enormous quantities of images and text, then are trained further on pooled robot data, mostly demonstrations. Google DeepMind’s RT-2, published in 2023, gave the category its name, and its authors report that learning from web data as well as robot data improved how it handled objects absent from its robot training data. An open example, OpenVLA from 2024, has 7 billion parameters and was trained on 970,000 real robot demonstrations; its authors report that it can be fine-tuned for new settings on consumer graphics cards.
These models depend on pooled data. Open X-Embodiment, a 2023 project whose paper is on arXiv, is an example of pooling data from many labs and robot types, and it reported that a model trained on the combined data improved results on several of those robots.
What these models offer is generality of instruction, so that a user can say what they want in words, and a better starting point for new tasks. A team may fine-tune a pretrained model on a small set of its own demonstrations instead of starting from nothing. What they cost is scale: training the base model needs data and computing beyond most teams, so most users adapt a model someone else trained.
The caveats are reliability and transparency. A model that follows an instruction correctly in a research evaluation may fail in a new room, and its failures are hard to predict. Claims about these models should name the paper, the tasks, the robots and the date, because the field changes quickly.
Comparison table: data, safety, generality and effort
The ratings below are broad tendencies, not measurements. Individual projects can differ.
| Factor | Classic programming | Imitation learning | Reinforcement learning | Large pretrained models |
|---|---|---|---|---|
| Main input | Programmer time | Demonstrations | Reward plus many attempts | Large pooled datasets, then task data |
| Handles variation | Only what was coded | Within the demonstrated range | Within the trained range | Wider range, with limits |
| Predictability | High | Moderate | Moderate | Lower |
| Easy to inspect | Yes, line by line | Hard | Hard | Hard |
| Safety during setup | Controlled | Operator in the loop | Risky on hardware | Depends on use |
| Typical first stage | On the robot | On the robot | In simulation | Download, then adapt |
| Skill ceiling | Programmer’s design | Demonstrator’s skill | Set by the reward | Set by training data |
| Best fit | Fixed, repeated tasks | Varied tasks that can be shown | Locomotion, dexterous control | Instruction-following research and fine-tuning |
Two rows deserve emphasis. Predictability is why classic programming remains the default for safety-critical, repetitive tasks. And the typical first stage row explains why simulation and reinforcement learning are so often paired, while demonstrations and real hardware are paired for imitation.
Which suits factories, homes and research
Factories value repeatability, cycle time and the ability to certify behaviour. Classic programming fits most fixed cells. Learned methods are used where variation defeats rules, for example picking from a bin of mixed parts, and usually inside a conventional safety system that limits speed and force.
Homes are varied and unstructured. A towel, a cup and a chair differ in every house, which is the strength of learned methods, and demonstrations and pretrained models are the main research routes. Reliability, safety around people and cost are open problems, and published demonstrations in homes are mostly research settings with a few objects.
Research uses all four. Labs adopt whichever method fits the question: reinforcement learning for locomotion studies, imitation learning for manipulation studies, pretrained models for generalisation studies. Open-source toolkits such as the LeRobot documentation make imitation experiments possible with modest hardware.
How methods are combined in practice
Real systems rarely use one method alone. Common blends include:
- A conventional safety layer that limits speed, force and workspace around any learned policy.
- A learned policy for the variable part of a job, such as grasping, inside a classic program that handles the fixed sequence.
- Imitation to start, then reinforcement learning to improve, so that the demonstrations provide a good first behaviour and the reward refines it.
- Simulation pretraining followed by fine-tuning on real demonstrations.
- A pretrained model adapted to a task with a small amount of collected data.
When a news story says a robot “learned” something, the useful question is which of these blends was used and how much human work sat behind it. The checklist for reading robot demo videos provides questions for that.
Match the method to the task
A welding robot repeats an identical path thousands of times. Which method fits best?
Show the answer
Answer: Classic programming. The task never changes, so a programmed path is predictable and easy to verify.
Folding towels of different sizes, shown by people. Which method fits best?
Show the answer
Answer: Imitation learning. Folding varies and is easy to demonstrate but hard to write as rules.
A four-legged robot learns to walk on rough ground in simulation. Which method fits best?
Show the answer
Answer: Reinforcement learning, usually in simulation first. Walking can be scored with a reward and needs many attempts, which parallel simulation supplies.
Following a spoken instruction to pick up a named object it has not seen before. Which approach fits best?
Show the answer
Answer: A vision-language-action model, with limits on reliability. These models take images and text and output actions, though their reliability in new settings needs checking.
A team wants a new skill from fewer demonstrations. What helps most?
Show the answer
Answer: Starting from a model pretrained on large shared datasets and fine-tuning it. Pretraining gives the policy general experience, so fine-tuning needs less task-specific data.
What to ask a robotics team or supplier
If you are weighing a robot project or reading a company’s claims, a short set of questions gets to the substance.
- Which method produced the skill, and was it a blend?
- How much data or practice was used, and how long did collecting it take?
- What does the success rate cover: how many trials, which objects, which settings?
- Was it tested in a scene that differs from the training scene?
- How often does a person step in, and what happens when the robot fails?
- What safety measures sit around the learned part?
- Is there a paper, report or open-source code that describes the method?
Good answers are specific and tied to tasks and dates. Vague answers are a signal to ask again. These questions are general guidance and do not replace specialist advice for a real project.
A short glossary
Policy. The learned function that turns what the robot senses into an action.
Demonstration. A recorded example of a task performed by a person, usually through teleoperation.
Behaviour cloning. Training a policy to reproduce demonstrated actions as a supervised learning task.
Reward. A number that scores how well the robot did, used in reinforcement learning.
Simulation. Software that models the physics of a robot and its world so policies can practise virtually.
Reality gap. The difference between simulation and the real world that can make a simulated policy fail on hardware.
Domain randomisation. Varying simulator settings during training so the policy copes with real-world differences.
Vision-language-action model. A model that takes camera images and a text instruction and outputs robot actions.
Fine-tuning. Further training of a pretrained model on a smaller, task-specific dataset.
Teleoperation. Controlling a robot remotely, used for collecting demonstrations and for taking over.
Common mistakes when choosing a method
A few errors recur when people compare these approaches for the first time.
- Treating learned methods as a replacement for programming. In most real systems the learned part sits inside a programmed structure, because a programmed sequence and safety limits are easy to check.
- Counting demonstrations without counting variation. Two hundred demonstrations of one mug on one table cover far less than two hundred spread across many mugs, positions and lighting.
- Reading a simulated result as a hardware result. A reward curve in a simulator describes the simulator. The real robot still needs testing, as the simulation guide explains.
- Assuming a pretrained model needs no task data. Adapting a large model usually still means collecting some demonstrations for the specific robot and task.
- Ignoring who does the supervising. Every method has people behind it, whether programming, demonstrating, writing rewards or correcting a policy. Asking where that effort sits is as informative as asking about the algorithm.
Questions this page left open can be sent through the contact page.
Frequently asked questions
- Which robot learning method is best?
None is best for every task. Programming is predictable for fixed work, imitation suits varied tasks people can demonstrate, reinforcement learning suits tasks that can be scored by a reward, and pretrained models help when instructions or limited data matter.
- Do factory robots use machine learning?
Most factory robots still run programmed motions, because repeatable, checkable behaviour matters. Learned methods appear where variation defeats rules, such as picking mixed parts, and they usually sit inside a conventional safety system.
- Can these methods be combined?
Yes, and most real projects do. Examples are imitation followed by reinforcement learning, simulation pretraining followed by fine-tuning on real demonstrations, and a learned grasp inside a programmed sequence with a conventional safety layer around it.
- Which method needs the most data?
Reinforcement learning usually needs the most experience, which is why it relies on parallel simulation. Imitation needs demonstrations, which are costly to record. Large pretrained models need the most data overall to build, though users may adapt them with little.
- Which method is safest to use on real robots?
Classic programming is the most predictable. Learned policies should run with speed and force limits and conventional safety systems. Reinforcement learning has extra risk from random exploration on hardware, so it is usually done in simulation.
- What is a robot foundation model?
It is a large model trained on broad data, often pooled from many robots, that can be adapted to many tasks. Vision-language-action models are one type. They take images and text and output actions, and their reliability in new settings needs checking.