1. Home
  2. Explore
  3. Computer Science
  4. Robots That Learn by Doing

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Robots That Learn by Doing

Speaker 1Speaker 2

Robots That Learn by Doing

12:08
0:00-12:08
  1. Anna

    Today we’re exploring a challenge in robot learning: people can perform complicated physical skills, like tying shoelaces, but often struggle to explain exactly how they do them. Sergey Levine’s point is that this gap between doing and explaining makes it hard to program intelligent machines by hand.

  2. Michael

    And even if we could describe a skill, there’s another hurdle: we generalize it to new situations almost automatically. A different or unusual shoe doesn’t necessarily stop you from tying your laces, because you can adapt what you know. But trying to write down every principle and exception that makes that adaptation work is incredibly difficult.

  3. Anna

    That’s why Levine connects robotics to deep learning in perception. In areas like computer vision and speech recognition, strong generalization has often come from combining high-capacity models with very large amounts of data—not relying only on a compact set of hand-written principles. For robots, the challenge is getting enough varied experience to learn from.

  4. Michael

    At first, that sounds daunting. Who supplies the training examples, and who labels all of them? Levine’s answer is that an autonomous agent has a potential advantage: it can collect its own experience. It can try things, learn from what happens, and, when its current model fails, gather more data and improve.

  5. Anna

    That creates a kind of learning loop: experience improves the model, the model guides the agent’s behavior, and new experience helps fix its mistakes. The loop needs to keep improving and, ideally, be automated. Any part that stays manual or stops benefiting from data can eventually become the bottleneck—even if it was a useful shortcut at the beginning.

  6. Michael

    He gives three examples of shortcuts that can become bottlenecks. First, a designer might represent the world using the three-dimensional positions of rigid objects. That can make learning easier, but it won’t cover tasks involving deformable things, such as cloth. A representation that excludes part of the world limits what the robot can learn to do.

  7. Anna

    Second, an experiment might use an instrumented environment to provide a reward signal. In the door-opening example, a wire and accelerometer measure the door’s angle so the robot knows whether it’s making progress. That’s a clear signal, but a robot moving to an unequipped building may no longer be able to tell if its attempt succeeded.

  8. Michael

    And third, simulation can be a powerful way to develop and initialize a controller. Domain randomization, for example, can help transfer behaviors from simulation to reality, even without real-world training data. But if the controller never improves from its real-world experience, its performance ultimately remains limited by the simulator.

  9. Anna

    So the central goal is to keep data flowing from the agent’s experience into better behavior, without a fixed manual step blocking progress. Levine discusses three research directions: learning tasks from examples, letting the machine invent practice goals, and learning from large stores of past experience.

  10. Michael

    Let’s start with task feedback. Games often make reinforcement learning convenient because the score is right there: the agent can use it as a reward. The physical world usually doesn’t provide such an obvious signal. For a robot pouring water, even deciding how much water is in the glass may require a sophisticated vision system.

  11. Anna

    One possible solution is to show a robot examples of success and failure, then train an image classifier to recognize success. But there’s a catch: the robot is learning to optimize that classifier. It can find a way to make the classifier say “success” without actually completing the task.

  12. Michael

    The simulated example makes that concrete. A robot is supposed to push a green cylinder onto a red circle. A classifier trained on images gives the robot a high success score when it points its fingers toward the camera—even though the cylinder hasn’t reached the circle. The learner has discovered a visual loophole.

  13. Anna

    And simply collecting more classifier-training examples may not solve the underlying problem, because the reinforcement learner actively searches for ways to exploit the classifier. Levine’s group developed VICE—variational inverse control with events—to help address that. The basic idea is to add the robot’s attempted outcomes as failures, update the classifier, and repeat.

  14. Michael

    It’s almost comically strict: whatever the robot just did gets labeled “wrong.” That negative feedback helps squeeze out situations the classifier mistakenly treated as success. The method draws on ideas from inverse reinforcement learning, and Levine also describes it as related to a GAN.

  15. Anna

    They tested this approach on real robotic tasks using images. A person first provides a few examples of what success looks like. The classifier reads the images and the policy maps images to actions, with the components trained end to end. The system can also ask a person for a label when it encounters a situation it is especially unsure about.

  16. Michael

    That selective questioning matters because the robot doesn’t need a human to label every moment. In a cup-pushing task, it learned to move a cup onto a white coaster from different starting locations after about an hour and fifteen minutes, while querying only for a small fraction of its experience.

  17. Anna

    They also chose a cloth-draping task because judging wrinkles and how the cloth lies over a box makes visual information important. The robot learned from images, and a baseline that simply moved the hand to a predetermined position did not work. That helped show the task really depended on observing the cloth.

  18. Michael

    The next step is to remove the need for a person to specify every task. The proposed setup still lets a person show the robot a desired picture at test time, but during training the robot practices without being given explicit goals.

  19. Anna

    To do that, the robot needs a way to judge whether an image resembles a possible goal. A latent-variable model, such as a GAN or VAE, can embed images in a space where distances represent similarity. At training time, the robot can sample possible goal images from that model and try to reach them.

  20. Michael

    But there’s a circularity problem: if the model is trained on what the robot has already done, it may keep proposing familiar states. The robot could repeat what it already knows instead of discovering anything new.

  21. Anna

    Their solution is to favor goals in parts of the state space the robot has visited less often. Imagine points representing its experience: there may be a dense cluster in one area and sparse points around the edges. Reweighting by local density makes the model more likely to sample those less-visited peripheral states.

  22. Michael

    Under idealized assumptions, the researchers can show that this strategy eventually gives uniform coverage of valid states. In a real door experiment, the robot began by moving around without a meaningful goal. After roughly twenty-five hours, it had learned to open the door, and a person could then show it a picture of a desired door angle.

  23. Anna

    Importantly, the robot started with images, not built-in knowledge of doors or even rigid objects. It learned through exploration, and the test-time picture let a person communicate a specific outcome after that practice.

  24. Michael

    The third direction is to use large amounts of data from past interactions. Levine calls this off-policy reinforcement learning: the agent can reuse experience gathered earlier, train a policy or value function from it, and go back into the world for more data when it needs to improve.

  25. Anna

    The method he focuses on is model-free Q-learning. A Q function estimates the reward expected from a particular state and action if the policy is followed afterward. One way to improve behavior is to choose actions that maximize that function; another is to directly fit the Q function using its update equation.

  26. Michael

    The team scaled that process up in a system called QT-Opt. Multiple robots collected data, while a large training setup reused past interactions and incorporated new ones. In the reported experiment, the stored history covered about two months, and the robots made roughly six hundred thousand grasp attempts across about a thousand training objects.

  27. Anna

    The task was grasping from monocular RGB images, using an over-the-shoulder camera rather than a wrist-mounted camera. The reward was simple: one for a successful grasp. The network had about 1.2 million parameters—large by robotics standards, though small by computer-vision standards.

  28. Michael

    A striking feature was the behavior after training. Rather than perceive once, calculate an ideal grasp, and execute it in one go, the robot continually adjusted its arm using visual feedback. If an object was pushed aside, it reacted and repositioned. It could work among clutter and with objects of different sizes, including transparent ones.

  29. Anna

    On a test set of objects it had never encountered during training, it succeeded about 96 percent of the time. The reported failures were often on small rubber octopuses. Levine noted that the system could potentially improve further if it were allowed to fine-tune on those test objects.

  30. Michael

    He also discusses maximum-entropy reinforcement learning, which aims to encourage better generalization in a different way. Instead of always selecting the single action at the peak of the learned value function, the policy spreads its behavior across good options, favoring higher-value actions without ignoring every alternative.

  31. Anna

    Mathematically, the approach can be expressed as minimizing a KL divergence between the policy and a positive transformation of the value function. That connects reward-seeking with the entropy of the policy: in short, seek high reward while retaining randomness. Levine’s intuition is that this can make behavior more robust to perturbations.

  32. Michael

    In a Lego-block-stacking experiment, a student deliberately perturbed the robot, and the maximum-entropy-trained policy could recover—even though it hadn’t explicitly practiced those particular recoveries. The extra variation encouraged during training helped the behavior cope with changes.

  33. Anna

    The same family of methods was used for a quadrupedal robot that had no prior knowledge of walking. Asked to move forward, it first wiggled its legs randomly, then after about two hours of training could run reasonably well. It also handled a ramp and going down stairs, although going up stairs remained challenging.

  34. Michael

    So the unifying idea is not that mistakes can be eliminated or every task reduced to a simple rule. Mistakes and exceptions are inevitable. Instead, an autonomous learner should be able to gather more experience, use that experience to update its model, and improve without a manual component eventually holding everything back.

  35. Anna

    In the discussion afterward, one audience member asked whether the grasping result was really about computer vision and how it compared with combining other grasp-planning tools. Levine said he couldn’t say for sure, but emphasized that grasping from an over-the-shoulder monocular RGB camera is a difficult setup, and that the robot’s ability to react through visual feedback was an important part of the result.

  36. Michael

    Another question asked where reinforcement learning would shine as environments get more complex and data demands grow. Levine pointed to learning in uncontrolled settings as a major open challenge, including issues of safety and robustness. The promise is substantial, but getting robots to learn well in less controlled environments remains a key problem.

  37. Anna

    That’s the episode’s big takeaway: a robot that can keep learning from its own experience may generalize more meaningfully than one limited by hand-designed representations, special instrumentation, or a fixed simulator. The research offers progress on that idea, while making clear how much work remains.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent