Sim-to-Real Gap
Sim-to-Real refers to the sharp drop in performance when a model trained in simulation is moved to the real world. This gap is a core difficulty in robotics, autonomous driving, industrial inspection, and similar fields.
Where the Gap Comes From
Simulation can never perfectly reproduce reality, and the differences show up along several dimensions:
Visual differences: simulated lighting, materials, and textures are cleaner than the real world, lacking dust, reflections, lens distortion, and motion blur. Physical differences: friction coefficients, mass distribution, and joint damping are ideal values in simulation, while reality has wear and uncertainty. Sensor differences: simulated sensors have no noise or latency, real ones do. Distribution differences: the scene combinations encountered in simulation are limited, while long-tail cases in reality are endless.
Models easily "cheat", learning spurious features specific to the simulation (background color, for instance) rather than the true regularities of the task. Academics call this shortcut learning.
Four Ways to Narrow the Gap
Domain randomization is one of the most effective. Instead of pursuing photorealistic simulation, training randomizes lighting, color, texture, and physical parameters so the model sees enough variation to be robust to real-world differences. OpenAI used this idea to train a robotic hand to solve a Rubik's cube.
Domain adaptation: with a small amount of real data, adversarial training makes the features the model learns indistinguishable between the simulation and real domains.
System identification: calibrate the simulator's physical parameters so it matches the real system as closely as possible.
Fine-tuning on real data: pretrain in simulation, then fine-tune on a small amount of real data. This is the simplest and most practical option.
Reality Check
When evaluating sim-to-real results, simulation test-set metrics are not enough. Closed-loop testing in the real scene is mandatory, especially for control tasks (robot walking, autonomous driving); good open-loop metrics do not imply stable closed-loop behavior, because errors accumulate and amplify through feedback.
Applications
Robot grasping and walking, perception and decision-making for autonomous driving, drone flight control, industrial robotic arm assembly, and training of surgical robots.