Princeton Intro to Robotics (Fall 2026) | Lecture 16: Imitation Learning
Overview
Imitation learning trains a robot policy from expert observation-action demonstrations, most commonly through behavior cloning, which maps sensor inputs directly to actions. The lecture compares this approach with inverse reinforcement learning, traces demonstrations from CMU's 1989 autonomous-driving work to modern manipulation systems such as ALOHA and Physical Intelligence's π0.7, and explains why discrete action classification can handle competing behaviors better than squared-error regression.
Key takeaways
- Behavior cloning treats imitation as supervised learning: collect observation-action pairs from an expert and optimize a policy to reproduce the recorded actions.
- An observation history can improve a robot's effective state estimate: a sequence of camera images contains motion information, such as drone velocity, that may be absent from one image.
- Inverse reinforcement learning infers a reward from expert behavior before optimizing a policy, whereas behavior cloning directly predicts the expert's action; preference labels make reward learning in RLHF a related but different setup.
- Squared-error regression can turn two valid expert choices into an invalid average, such as steering a drone into an obstacle when demonstrations show both left and right routes.
- Discretizing a small action space and training with softmax cross-entropy preserves alternative modes as separate choices, making it a practical, stable approach for the course's drone project.
- Large-scale manipulation imitation depends on scalable demonstration collection: ALOHA uses teleoperation, UMI records human hand motion with cameras and SLAM, and π0.7 is described as trained on tens of thousands of teleoperation hours.
Chapters
- Imitation learning uses expert demonstrations, while reinforcement learning adapts behavior through trial and error.
- Imitation-learning methods include behavior cloning and inverse reinforcement learning; RL includes model-based and model-free approaches.
- The course module plans roughly four lectures on imitation learning followed by about three on reinforcement learning.
- Human drivers provide demonstrations by recording vehicle sensor observations alongside steering and accelerator inputs.
- A learned policy, such as a neural network, maps observations at a given time to the expert's corresponding action.
- The expert can be a human, and the recorded inputs and actions form supervised training examples.
- A 1989-era Carnegie Mellon University project trained a computer to steer from camera images rather than hand-coded driving rules.
- The reported NAVLAB drive reached 70 mph and covered more than 90 miles without the human touching the wheel.
- The system learned road cues such as road edges and lane markings; the contemporary news report also described laser-based obstacle detection at lower speeds.
- Wayve's London demonstration showed an imitation-learned vehicle following lanes, avoiding obstacles, and responding to a traffic light.
- The lecture cites roughly 30 hours of training data, a small dataset by current standards.
- The demo learned to stop at a red light from examples rather than an explicit red-versus-green rule, and was presented as a demonstration rather than a production system.
- In teleoperation, a human controls robot arms while the system records observations and the demonstrated actions.
- Google and Stanford's ALOHA setup uses a pair of human-controlled arms to demonstrate tasks to a pair of robot arms.
- Generalist AI's Universal Manipulation Interface, or UMI, records human hand movements using grippers, cameras, and visual-inertial SLAM, then trains a policy from observations to actions.
- Physical Intelligence's π0.7 is described as using tens of thousands of teleoperation hours across homes, objects, and instructions.
- Drone-racing policies can imitate a motion planner: simulated depth images, with added noise, serve as inputs and planner actions serve as labels.
- The added sensor imperfections aim to reduce the simulation-to-reality gap, while learned policies can fly quickly in indoor and outdoor environments.
- For the course project, teaching assistants will provide about 30 to 40 drone trajectories; students will also collect a handful using keyboard control.
- The project policy will map onboard-camera observations to actions and run autonomously on the drone.
- The lecture frames machine-learning design around three choices: training data, model architecture, and training algorithm with its loss function.
- Each demonstration is represented as an observation-action pair, with observations potentially including RGB images, depth, or IMU readings.
- An observation can include a history from time t back to t minus h; successive images can reveal drone velocity that a single image cannot.
- The dataset may come from human experts or from a planner operating in simulation.
- Behavior cloning learns a policy πθ that maps observations directly to the actions recorded in the expert dataset.
- Inverse reinforcement learning first infers a reward function that would explain the expert's behavior, then finds a policy that maximizes that reward.
- IRL often assumes the expert acts optimally, even though human demonstrations may not be optimal; learning a reward from observations and actions alone is challenging.
- RLHF has a related reward-learning structure but uses human preference labels, such as choosing between two answers, to train the reward model.
- For a binary drone action such as left versus right, a neural network outputs a scalar logit z, and a sigmoid converts it to a value between 0 and 1.
- The sigmoid output can be read as confidence in action 1; values near 0 favor action 0, while values near 0.5 indicate uncertainty.
- Binary cross-entropy compares the predicted probability with the expert's 0-or-1 label and penalizes predictions that disagree.
- The resulting behavior-cloning objective averages the per-example loss over the demonstration dataset and can be optimized with stochastic gradient descent.
- A drone action can be discretized into K choices, such as seven levels spanning strong left, slight left, straight, and varying right turns.
- Each expert action is represented as a one-hot vector, and the network produces K logits that softmax converts into probabilities summing to one.
- Cross-entropy penalizes low probability assigned to the expert's selected action.
- Training minimizes average cross-entropy across demonstrations, again using an optimizer such as stochastic gradient descent.
- For actions in a continuous D-dimensional space, a direct regression policy can be trained with squared error between predicted and expert actions.
- Squared error fails when similar observations have multiple valid actions: averaging a left-turn and right-turn demonstration can send a drone directly into an obstacle.
- The same issue arises in manipulation when demonstrations show several valid grasps; the average of those grasps may be invalid.
- A discrete softmax policy can preserve distinct modes by assigning probability to separate actions rather than averaging them, and the lecture recommends this stable approach for the course drone project.
- The next lecture will introduce diffusion policies and flow matching as ways to model complex, multimodal actions, especially for manipulation.
- The following lecture will cover vision-language-action models, or VLAs.
- The discussion describes VLA systems as combining discrete action choices with flow matching that refines coarse choices into fine-grained actions for precise manipulation.
Transcript excerpt
0:10 All right, I think we'll get started. So, we're actually in the the last uh very the very last module of this course which is on robot learning. And um I'll give you just a quick taxonomy of some of the the topics that we're going to cover in this last module on on robot learning. Uh so broadly speaking there's two approaches uh to to using machine learning in robotics. Uh the first one is imitation learning which is uh learning from expert demonstrations. And then the second one the second kind of break big class of uh learning methods or problems uh is reinforcement learning RL uh which is basically trial and error learning. So you try something, you see whether it works, maybe you succeed, maybe you fail and then you adapt your strategy to maximize success. Uh within
1:00 these there are some subcategories. So within imitation learning uh we have what's known as behavior cloning or inverse reinforcement learning. These are two uh different approaches uh both to doing imitation learning. I'll actually yeah we'll spend some time a few minutes kind of just formulating exactly what these two problems look like uh today and then for reinforcement learning you have similarly two categories you can kind of further subdivide these things of course uh but one broad category within RL is model free RL or model based RL so model based RL you make some you learn some model of the world uh some kind of like dynamics model of the world a world model and then you use that for reinforcement learning or for planning uh model free RL you basically uh just kind of update your policy your strategy
1:50 directly uh by looking at outcomes in the in the world. Um so today we're
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Introduction to Robotics @ Princeton.