Terrain-Grounded Imagination: A Recipe for Training Perceptive Legged Locomotion through a World Model
TL;DR Train perceptive walking policies inside a learned world model that predicts only the robot, while terrain, perception and rewards come from differentiable queries of the known simulator geometry. Training takes 6.1x less time than PPO for a G1 humanoid and 4.9x less for ANYmal-D, and the G1 policy climbs real stairs.
What they do
Training perceptive locomotion with PPO can take billions of simulator queries. A learned world model needs fewer, but it would normally also have to predict the terrain and what the robot sees of it. Terrain-grounded imagination (TGI) avoids this because the terrain is already known in simulation. The world model learns only how the robot responds to it, and the policy is trained entirely on imagined rollouts.
How it works
- Terrain query. A differentiable lookup returns the clearance and surface normal at points on the robot: a height map for a Unitree G1, columns with walls for ANYmal-D, and an extra voxel layer for overhangs. Features, rewards, terminations and perception are computed from it.
- World model. An MLP predicts the next robot state. For ANYmal-D, an impulse version also predicts contact forces on the feet, shanks, thighs and base, so hard impacts can be penalized in imagination.
- Gradient cut. The policy gradient is backpropagated over 32 imagined steps, but cut where a foot lands on poorly supported ground. A critic estimates the return from there.
Results
- Same GPU, same iterations: the G1 trains in 4.9 h against 29.9 h for PPO, and ANYmal-D in 5.0 h against 24.4 h.
- G1 locomotion test: 91.8% success against 84.9% in Newton and 86.5% against 85.1% in PhysX. TGI falls more often, especially on sparse terrain (20.3% against 15.1% in Newton).
- ANYmal-D reaches 91.0% of goals against 81.2% for PPO at default settings (81.6% against 76.4% in PhysX).
- Ablations: without terrain features, G1 success drops to 15.8%. Without the gradient cut, falls rise from 1.0% to 2.6%.
- The real G1 climbs stairs and crosses two stacked mattresses.
Limitations
The fall gap to PPO grows on compliant ground and under heavy payloads. TGI cannot use curricula that change the dynamics. Predicted forces underestimate impacts and are less reliable for rare contacts. There is no comparison with off-policy model-free methods or gradients from a differentiable simulator.
Videos
Figures




Abstract
Model-free reinforcement learning for perceptive legged locomotion queries the simulator up to billions of times to calculate state transitions at every time step. A world model is a learned, differentiable transition function that requires fewer simulator steps to learn, and model-based reinforcement learning uses it to reduce collection time. Typically, such a model would also have to predict the environment that the robot walks on and the resulting perceptive inputs for the policy. However, the terrain is generated before training and is therefore already known in simulation. We present terrain-grounded imagination (TGI), in which the world model only learns how the robot responds to a pre-generated terrain, and rewards, terminations, and robot perception are computed from differentiable queries of the terrain geometry. New terrain or perception changes the query rather than what the world model learns. Policies are trained on 3D terrains that require contact-rich locomotion for climbing, and we demonstrate using 3D perception to pass under overhangs. A world model that predicts the contact force on every body of the robot also makes rewards on contact forces available in imagination, and cutting the gradient at terrain edges reduces falls. Compared to training in simulation with proximal policy optimization (PPO), TGI policies match or exceed its success rate, with more falls for the humanoid. Training for the same number of iterations takes 6.1x less time for humanoid locomotion on 2.5D terrain and 4.9x less time for contact-rich quadruped locomotion, for which PPO uses default settings.
Summaries are written automatically from each paper's text. Figures and videos come from the paper and its project page; all credit goes to the authors.
