techlist.io
OpenAI2017-05-152 min read

Curated summary

Robots that learn

Read original(opens in new tab)

Training Robots in Simulation to Learn Tasks from a Single Demonstration

OpenAI describes a robotics system trained entirely in simulation that can learn a new task after watching one human demonstration, then reproduce that task on a physical robot from a different starting configuration. The approach combines domain randomization for vision with a one-shot imitation learning network, so the robot never needs real-world training images or real demonstrations for its core learning.

Domain Randomization for Vision

  • The vision network takes a camera image and outputs a state representation of object positions.
  • It is trained on hundreds of thousands of simulated images with randomized lighting, textures, backgrounds, and object appearance.
  • It never sees a real image during training, yet transfers to the physical robot.

One-Shot Imitation Learning

  • A human demonstrates the task in VR, and the imitation network infers the task's intent from that single demonstration.
  • The network then performs the same task from a new starting configuration, so it must generalize rather than replay the exact motions.
  • Training uses dozens of tasks with thousands of demonstrations each. Each example is a pair of demonstrations of the same task: the network sees the full first demonstration plus one observation from the second, and uses supervised learning to predict the action taken at that observation.
  • To predict actions well, the network must learn which parts of the first demonstration matter for the task.

Block Stacking Experiment

  • The task of stacking color-coded blocks into towers was simple enough to solve with a scripted policy in simulation, which generated the imitation network's training data.
  • Training pairs started from different initial states but produced towers in the same order, so the network learned to match the demonstrator's block ordering and tower sizes without depending on the towers' relative locations.
  • Despite never seeing messy human data during training, the network parsed real human demonstrations at test time.
  • Soft attention over the demonstration trajectory lets the system handle demonstrations of variable length.
  • Attention over individual block locations lets it imitate longer sequences than it saw in training and build towers with more blocks than any training demonstration.
  • Injecting modest noise into the scripted policy's outputs was necessary. It forced the demonstrations to include recovery from mistakes, and without it the imitation network usually failed to complete the stacking task.

Continue with another curated summary.