Why Robots Are Learning Inside Virtual Worlds

In a laboratory, teaching a four-legged robot to walk means watching it take a step, stumble and sometimes fall. Then someone may have to reset the machine or check whether a joint is damaged. Put a few thousand copies of the same robot on a graphics processor and the economics change. A bad step becomes a piece of training data. The next attempt can begin almost immediately.

In one well-known experiment, researchers trained controllers for the physical ANYmal quadruped using thousands of simulated robots running in parallel. The interesting part is what happened after they turned off the simulation. A policy trained on simplified virtual terrain could drive a machine with real motors and real weight. Understanding why that worked helps explain both the promise of virtual training and why capable home robots are taking longer than a convincing lab demonstration might suggest.

What a virtual world gives the robot

A simulator specifies a robot’s joints, geometry and mass, then estimates what will happen when it pushes against its environment. It can represent how a leg swings, when a foot touches a step or how a camera’s view changes as an arm moves. A controller can receive simulated observations and try actions as if it were connected to a physical robot. Researchers can reset a scene, change where an object sits, or send thousands of robots through different trials at once. NVIDIA’s robot learning overview describes how teams can combine simulation with real robot data.

There are two common ways to learn in that world. In reinforcement learning, the robot tries actions and receives a score. A walking system might earn a reward for keeping pace with a target velocity, with penalties for falling or moving its joints erratically. The goal is to learn a policy, a rule for choosing an action from observations, rather than a fixed sequence of leg movements. That distinction matters when a foot lands a little earlier than expected.

In imitation learning, demonstrations tell the system what a good attempt looks like. An operator might guide an arm through opening a drawer. The software learns from those motions and their relationship to the robot’s view or state. Demonstrations and rewards can work together. The demonstration can get the robot to a plausible first attempt, while reinforcement learning can work on recovering after a disturbance. Synthetic training data might mean altered camera views, new object placements or entire trajectories generated by replaying parts of real demonstrations in new virtual scenes.

What transferred to real hardware

Walking on rough terrain. In Learning to Walk in Minutes, Rudin and colleagues trained policies for ANYmal on a single workstation GPU with many virtual robots in parallel. The authors report under four minutes for a flat-terrain policy and roughly twenty minutes for uneven terrain in their setup, then demonstrate transfer to hardware. Those times describe policy training under predefined conditions. They exclude designing the robot, building the simulator, choosing the reward and validating the system. They are nevertheless a striking result for the step that used to require long experiments or slow serial simulation.

Manipulating a Rubik’s Cube. In a 2019 OpenAI experiment, a physical five-fingered robot hand executed cube moves with controllers trained in simulation. The researchers broadened the range of simulated conditions as training progressed, a method they called automatic domain randomization. A separate solver supplied the sequence of moves, while the learned controller dealt with the mechanical problem of manipulating the cube. The experiment showed successful physical solves under its setup, with failures still possible. It did not teach the hand to recognize every household object or invent a solution to the puzzle from scratch.

Learning new tasks from fewer demonstrations. The 2023 MimicGen paper reports generating more than 50,000 demonstrations across 18 tasks from roughly 200 human demonstrations. It reuses parts of a demonstration relative to the object being manipulated, then adapts them to a new arrangement. Generating more examples is valuable when human teleoperation time is scarce. Those figures describe the researchers’ data generation setup, and they should not be read as a count of physical robot trials or evidence that the same procedure works on every task.

The trouble starts where objects touch

Imagine a simulated robot squeezing a mug just firmly enough to lift it. The real gripper pads are worn. The mug is slightly wet. The camera sees a reflection where the handle should be. Each discrepancy is small, but together they can tip the attempt from success to a broken mug. That difference between simulated and physical performance is the sim-to-real gap. Contact, friction, deformation, sensor noise, latency and the physical robot’s response to a motor command all contribute.

A common defense is to vary conditions during training. Rather than teaching a robot on exactly one virtual floor, vary the friction, slopes and footholds. For a camera-guided arm, vary lighting, backgrounds and starting poses. This is domain randomization. It can make a controller less dependent on one virtual environment, but the training still needs to include variations relevant to the actual job. Randomizing wall colors does little for a gripper that cannot sense a slipping object. Very wide ranges can also make learning harder or encourage overly cautious motion.

A complementary strategy is to make the virtual environment more like a real one. In the RialTo project, researchers used a scan of the physical scene to build a simulation for manipulation training, then moved learned behavior back onto a real robot. It changes the workflow: you start with measurements of the space the robot will work in, train on variations of that space, then check transfer. A scene built this way can be more useful than a pristine virtual kitchen, but a result in one environment still leaves open what happens when the robot encounters an unfamiliar layout or object.

What to look for in the next impressive robot demo

Ask what ran on hardware, how many attempts were counted, what could change between them and how failures were handled. A few minutes of policy training tells you about computation. Repeated physical runs on unfamiliar terrain tell you something different. For a home robot, a meaningful milestone would be a completed task after the tools were moved, a person interrupted it or it dropped something, along with an account of the failures. Our guides on how humanoid robots work and how close they are to working in homes explain why recovery and safety are so consequential.

Virtual training can compress trial and error and let engineers compare new ideas quickly. Real runs then show which assumptions were wrong. The fastest route from a virtual lab to a useful machine is likely to involve both: better simulations informed by hardware, and hardware evaluations that count the moments the simulation failed to predict.