LEARNING

Domain Randomization for Humanoid Robots: Training for the Unknown

Short answer: Domain randomization is a training method in which a simulator is deliberately varied, with different friction, masses, delays, sensor noise and appearances, so a robot policy learns to work across a whole range of worlds. The real world then looks like one more variation. It narrows the sim-to-real gap but does not remove it.

What is domain randomization?

A simulator never matches reality exactly. Floors are slipperier or grippier than modeled, motors respond a little slower, and cameras see different light. A policy trained in one fixed simulation may learn to exploit its exact settings and then fail on a real robot. Domain randomization changes the settings at random during training. Each practice run uses a different version of the world, so the policy cannot rely on any single one. This is a main tool against the problem described in the sim-to-real gap.

What gets randomized?

The sensor and actuator items matter because the robot reads itself through noisy signals, as covered in how humanoid robots sense their own bodies.

Where did the idea come from?

Visual domain randomization was described by Josh Tobin and colleagues in a 2017 paper on transferring networks trained in simulation to real robot vision. In 2018, Xue Bin Peng and colleagues applied the idea to dynamics, randomizing physical parameters for a robot arm. OpenAI later used automatic domain randomization, which widens the ranges as the policy improves, to train a robot hand to solve a Rubik's Cube in 2019. These results helped make randomization a standard step in reinforcement learning for humanoid robots.

How wide should the ranges be?

Too narrow, and the real world falls outside what the robot practiced. Too wide, and the policy becomes cautious and slow, because it must work even in extreme worlds. Teams usually start with ranges based on measured values, such as weighing the real robot and testing its motors, then widen them step by step. Automatic methods raise a range only when the policy succeeds at the current one. The right setting is found by testing on hardware, not by theory alone.

What can domain randomization not fix?

ProblemDoes randomization help?
Unknown friction or massYes, if the true value lies inside the range
Missing physics, such as flexing partsOnly if added to the simulator
Contact with soft objectsWeakly, because contact models are hard to simulate
Wear and damage over timePartly, through wider ranges
Tasks the policy never sawNo

Randomization also does not replace testing. A policy that is robust in simulation still needs checks on the real robot, using methods in humanoid robot benchmarking. Some teams add a second step, where the robot adapts online or is fine-tuned with a small amount of real data. The behavior seen in the field, including mistakes, is the final test.

Why does it matter for humanoid robots in particular?

A humanoid has many joints, a narrow base and a high center of mass, so small errors in the model can end in a fall. Real robots also differ from one unit to the next, and parts wear. A policy trained across a range of settings is more likely to work on every unit of a fleet without separate tuning, which makes it cheaper to deploy.

How does it relate to system identification?

System identification is the opposite approach. Instead of randomizing, it measures the real robot and tunes the simulator to match. Many projects combine the two: they measure first, then randomize around the measured values. That keeps the simulator close to the truth and still leaves room for error.

Frequently asked questions

Is domain randomization only for vision?

No. It began with image randomization, but for walking humanoids the most useful randomization is usually physical, such as friction, mass and motor delay.

Does it make training slower?

Usually yes, because the policy has to learn a harder problem, but it often saves far more time than failed real-world trials would.

Can a robot trained this way walk on any floor?

Only on floors within the practiced range. A very different surface, such as deep sand, still needs training that includes it.

Explore benchmark → All articles →

Keep reading

The Sim-to-Real Gap for Humanoid Robots · Reinforcement Learning for Humanoid Robots · MuJoCo Robotics Simulation Guide · Humanoid Robot Benchmarking