AI GLOSSARY · AI CONCEPTS
Imitation learning
Definition
Imitation learning is a way of training an agent, often a robot, from demonstrations of the behaviour you want. A teacher shows the task and the model learns to reproduce it, instead of following hand-written rules.
Also called: learning from demonstration, learning from demonstrations, LfD, imitation learning in robotics.
In plain language
Teaching a child to tie shoes by doing it in front of them is the idea. Imitation learning trains software, often a robot arm, from recordings of a person doing the task, instead of asking an engineer to write every rule. The survey cited below notes it is often easier for a teacher to demonstrate a behaviour than to program it. The main limit is that a copied behaviour can drift: a small mistake leads the robot into situations that the demonstrations never showed. Robot demonstrations take real hardware and a person's time, so that illustrated workflow requires both; overall costs depend on the implementation.
Technical definition
An introductory survey (arXiv 1811.06711) describes imitation learning as learning from demonstrations, and the study of algorithms for it, and discusses how sequential decision settings differ from ordinary independent-sample supervised learning and reinforcement learning. Behavioral cloning is one imitation-learning method that can use supervised learning on demonstrated state-action pairs. The DAgger paper (arXiv 1011.0686) explains why: in sequential prediction problems such as imitation learning, future observations depend on earlier predictions (actions), which violates the independent and identically distributed assumption of standard statistical learning. Its iterative algorithm trains a stationary deterministic policy and is analysed as a no-regret online learning method. The Hugging Face LeRobot tutorial describes a workflow: teleoperate a robot to record motion trajectories, train a neural network to imitate them, then deploy it.
Worked examples in this catalogue
Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.
Skill by Skill Almanac · Illustrative, not executed
regex-from-labeled-examples 37/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- The skill proposes a Python regular expression from labeled match and non-match strings, then proves it against every supplied example in a row-by-row table.
- Why it exercises the concept
- A contrast case that shares only the idea of learning from examples. It builds a rule from labelled strings in one pass and does not learn a policy from demonstrated actions. The catalogue has no robotics or training skills.
Skill by Skill Almanac · Illustrative, not executed
voice-profile-extractor 36/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- The skill builds a reusable voice profile from the user's own writing samples by measuring features such as sentence length and paragraph length.
- Why it exercises the concept
- Another adjacent case: it summarises style from samples you supply, so a later draft can follow it. It measures samples and does not train a model or imitate actions, so it is a loose analogy, not imitation learning.
Guide · Illustrative, not executed
What Is an AI Agent? The Model, Tools and Memory Loop
- What you see
- A guide to what an AI agent is and how it differs from a plain chatbot.
- Why it exercises the concept
- Imitation learning is one way an acting system can be trained. The guide covers the agent side that sits around such a model. It does not describe demonstration-based training.
How it shows up when you use agents
Robotics is one imitation-learning application, illustrated by the LeRobot tutorial; demonstration-based learning can also train simulated or software agents. If you work with coding agents, you meet the word when someone builds a physical or simulated agent and trains its controller from recorded demonstrations. The Hugging Face LeRobot tutorial shows the pattern: a person teleoperates the robot, the system records the motion trajectories, a neural network is trained to imitate them, and the trained model is deployed so the robot can do the task on its own. See embodied AI and physical AI for that setting.
What goes wrong when the term is misunderstood: showing a coding agent one example edit and saying "do it like this" is not imitation learning. That is a prompt, and no weights change. Imitation learning trains a model on demonstrations.
Imitation learning is a learning setting and can use supervised learning, as in behavioral cloning. The sequential setting adds a challenge: the agent's actions shift what it sees next, as the DAgger paper explains.
Next action: if a project says it uses imitation learning, ask what the demonstrations were, how many people recorded them, and how the policy was tested on situations the demonstrations did not cover. Compare with reinforcement learning, where an agent learns from reward signals.
Common confusions
- Imitation learning versus reinforcement learning. The survey describes distinctions between them. Imitation learning starts from demonstrations from a teacher. Reinforcement learning is described in its own entry.
- Imitation learning versus supervised learning. Behavioral cloning can fit demonstrated actions with supervised learning. The sequential deployment setting adds action-dependent observations and distribution shift, rather than making these disjoint algorithm classes.
- Imitation learning versus prompting with an example. A prompt gives an already-trained model one or more examples at run time. Imitation learning trains a model on demonstrations.
- Behavior cloning versus imitation learning. Behavioral cloning is a method within imitation learning, not an exact synonym for the entire setting.
- Myth. A demonstration is enough on its own. In sequential prediction, violating the i.i.d. assumption can hurt performance; DAgger's iterative method addresses this, per its abstract.
Related terms
Terms that mention Imitation learning
2 terms mention this one
More in AI concepts
Sources
- An Algorithmic Perspective on Imitation Learning, arXiv (accessed 2026-11-24)
- A Reduction of Imitation Learning and Structured Prediction to No-Regret Online Learning, arXiv (accessed 2026-11-24)
- Imitation Learning on Real-World Robots, Hugging Face (LeRobot documentation) (accessed 2026-11-24)
Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-25. Wikipedia is never the only source.
Review record
Last verified
Drafted by Claude (original draft) and OpenAI Codex (targeted revisions); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-25. Last verified .
Change log (5)
- : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
- : Bounded batch-13 source and illustration repairs; independent affected recheck pending, publication disabled.
- : First version.
- : Verifier pass: applied verifier corrections to wording and claims.
- : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.