A robot learning in the real world is slow, wears out and can break things. A simulation, a computer copy of the robot and its surroundings, can run many practice sessions at once, faster than real time, with nothing to break. So why does anyone still collect real data? Because of the gap.
Swipe the diagram to see all of it.
Why simulation is attractive
- Speed. Thousands of virtual robots can practice at the same time.
- Safety. A virtual robot can fall a million times.
- Cost. No hardware, no repairs, no one supervising.
This suits reinforcement learning, the trial-and-error method from the last lesson, because it needs so many tries.
Where the gap comes from
The sim-to-real gap is the difference between how something behaves in the simulator and in real life. A simulator is a set of simplified rules, and the real world breaks them in small ways:
- Friction. A fingertip on a smooth cube slips differently than the simulator predicts.
- Motors. Real motors respond with a small delay and with limits.
- Cameras. Real images have noise, glare and changing light.
- Soft things. Cloth, cables and food are hard to simulate well.
A skill learned in a perfect virtual world can fail when any of these differs.
It does not always fail
"Works in simulation, fails in real life" is common but not a rule. Two well-known cases show how much depends on the skill:
- Walking. In 2019, researchers trained a controller for the quadruped ANYmal entirely in simulation. On the real robot it followed speed commands precisely, ran faster than earlier controllers and recovered from falls. The gap was small enough for walking.
- A hand turning a cube. OpenAI trained a robot hand in simulation to solve a Rubik's cube. The company reports that it worked about 60 percent of the time on an easier scramble and 20 percent on the hardest one. Fingers touching a small object demand much more from the simulator.
So the same method can work well for one skill and only partly for another.
Four ways to narrow the gap
- Shake the simulator. With domain randomization, the simulator changes things on every run, such as friction, weight and lighting, so the robot learns something that works across many versions of the world. OpenAI's cube work went further, making the randomization grow automatically as the robot improved, and reports that this doubled the transfer on a block-flipping test compared with setting it by hand.
- Measure the real robot. In system identification, you measure how the real machine behaves and adjust the simulator to match.
- Mix in real data. GR00T N1 was trained on a mix of real robot recordings, human videos and synthetic data. V-JEPA 2 needed 62 hours of real robot data on top of video.
- Check on the real thing. Whatever the method, a robot is only trusted after tests on real hardware.
What to remember
- Simulation is a fast, cheap and safe place to practice.
- The gap is real, but its size depends on the skill.
- Walking transfers well. Delicate hands and soft objects are harder.
- Be careful with claims: ask whether a result was measured on a real robot, and how many tries it took.