Back
  1. Home
  2. Learn
  3. How do robots practice in virtual worlds?

Explainer · AI Models · 3 min read

How do robots practice in virtual worlds?

Robots rehearse thousands of times in virtual worlds before they try a task for real.

Small duck-shaped walking robots on a stage
Image: NVIDIA

Practice without breaking anything

Teaching a real robot to walk by trial and error would be slow and expensive: it would fall over and over, and every fall could damage it. In a simulation, a virtual copy of the robot can fall thousands of times and simply restart.

Computers can also run many copies at once and faster than real time, so a robot can pile up a huge amount of practice in a short time.

How the learning works

A common method is reinforcement learning. The virtual robot tries something, gets a score (for example, more points for moving forward without falling), and its control software is adjusted to do more of what scored well. After enough rounds, the behavior becomes smooth and reliable.

Simulations are also used to test robots before a software update goes out, and to create training examples that would be hard to collect in real life.

Crossing the "sim-to-real gap"

No simulation is perfect. Real floors are slippery in places, motors aren't identical and lighting changes. A skill that works in the virtual world can fail on the real robot.

To close the gap, engineers randomize the simulation, changing friction, weights, lighting and delays on purpose, so the robot learns to handle variety. Then they test carefully on real hardware and often fine-tune with real-world data.

Where this is heading

Newer 'world models' are AI systems that can generate realistic, interactive virtual worlds, which could give robots far more varied places to practice. Combined with real-world data, simulation is becoming one of the main ways robots learn new skills.

In the news

More explainers