TL;DR
Training legged robots to walk over rough, perceptive terrain usually requires querying a physics simulator billions of times. Terrain-Grounded Imagination (TGI) speeds this up by 4.9× to 6.1× by training policies inside a learned, differentiable world model instead of a black-box simulator. Because the simulated terrain is already known before training starts, the world model only needs to learn how the robot moves, while a fast, differentiable query of the terrain geometry handles perception, contacts, and rewards.
What Problem Does This Paper Address?
Model-free reinforcement learning (like PPO) has become the standard for teaching legged robots to traverse stairs, gaps, and obstacles, but it is notoriously sample-hungry—often requiring billions of simulator steps. Learned world models can slash this data requirement by letting policies train in "imagination" (short, differentiable rollouts of a neural network).
However, bringing world models to perceptive locomotion on rough terrain hits two major roadblocks:
- The terrain prediction burden: Normally, a world model would have to predict not just the robot's dynamics, but also the surrounding 3D terrain and what the robot's sensors see.
- Contact discontinuities: On sparse terrain like stepping stones, a tiny change in action at a terrain edge can mean the difference between a clean step and a catastrophic fall. Backpropagating first-order gradients through these sharp discontinuities produces high variance and unreliable updates.
Methods
The authors' core insight is simple: in simulation, the terrain is generated before training, so it is already known. Instead of asking a neural network to hallucinate the ground, TGI grounds its world model in exact, differentiable queries of the simulator's geometry.
- Differentiable Terrain Queries: Depending on the task, the query $\mathcal{D}(\mathbf{x})$ takes different forms:
- 2.5D TGI (Humanoid): A bilinear height-map lookup under the robot's base and soles.
- 3D TGI (Quadruped): Each height-map node is treated as a vertical column, returning the signed distance and surface normal to walls and obstacles so the legs and base can climb.
- Overhangs: Adds a second 3D signed-distance voxel layer for geometry that doesn't rest on the ground.
- World Model & Impulse Model: An MLP predicts the robot's next state from its current state, actions, and local terrain features. For contact-rich quadruped climbing, an impulse world model uses the terrain query's contact geometry to predict contact forces on every body link (feet, shanks, thighs, base) and maps them through the contact Jacobian.
- Gradient Cut at Terrain Edges: Using the terrain query, TGI checks the support of every imagined foothold. If a foot lands on a poorly supported edge, the return is cut off from backpropagation and bootstrapped from the critic instead, smoothing out the optimization landscape.
Datasets
Rather than static datasets, policies are trained and evaluated in Isaac Lab using the Newton physics engine (with PhysX used for sim-to-sim transfer testing) on procedurally generated terrains:
- Unitree G1 (Humanoid): Evaluated on a 13-terrain locomotion benchmark (including 5 held-out terrain types and sparse terrains like stepping stones, pallets, and concentric gaps) across ~2,990 episodes.
- ANYmal-D (Quadruped): Evaluated on 10 difficulty levels of climbs (up to 1.0 m), gaps, pits, boxes, stairs, and stepping stones.
Key Insights and Ideas
- Decoupling robot dynamics from environment geometry: By feeding local terrain queries into the world model, the model doesn't depend on the global layout or size of the terrain. Changing the terrain type or sensor modality (e.g., height patches vs. 3D voxels) only changes the query, not what the world model has to learn.
- Removing terrain features breaks the model: In ablations, removing the terrain query features from the world model's inputs caused the G1's success rate to plummet from 86.5% to 15.8%, proving that proprioception alone cannot capture environment interactions.
- Cutting gradients where physics breaks down: Finite-difference checks confirmed that backpropagated gradients agree well with reality on flat ground (0.98 cosine similarity) but degrade sharply before poorly supported touchdowns (<0.7). Cutting the gradient only at those specific edge events—rather than shortening the horizon everywhere—cut the G1's fall rate from 2.6% to 1.0%.
Key Results
- Massive Speedups: For the same number of training iterations on the same GPU, TGI is 6.1× faster than PPO on the G1 (4.9 h vs. 29.9 h) and 4.9× faster on ANYmal-D (5.0 h vs. 24.4 h). It collects 9.6× fewer simulator transitions per iteration, and ANYmal-D reaches PPO's final curriculum level with 10× fewer total transitions (0.23B vs. 2.36B).
- Competitive or Better Performance: On Newton, G1 TGI achieves 91.8% success vs. PPO's 84.9% (though TGI falls slightly more often, especially on sparse terrain: 20.3% vs. 15.1%). On ANYmal-D, 3D TGI reaches 91.0% of goals vs. 81.2% for default PPO.
- 3D Overhangs & Hardware Transfer: A G1 trained with 3D voxel perception navigates under overhangs with a 99.7% goal-reaching rate and 0.15% falls. On real hardware, the G1 policy climbs stairs and crosses two stacked mattresses.
Limitations and Future Work
- Out-of-Distribution Dynamics: When tested outside its training distribution—such as on compliant ground or under heavy payloads (1.4× mass)—the world model's prediction error spikes (up to 6.6× and 5.3×), causing TGI to fall more often than PPO.
- Fixed Dynamics Curricula: Because the world model must learn a consistent transition function, TGI cannot use curricula that alter physics during training (like gradually increasing gravity).
- Underestimated Impacts: The impulse model underestimates large impact forces (>450 N at a median of 0.65× true size) and is less reliable for rare body contacts (81% recall on shank contacts).
- Future Work: Replacing the known simulator terrain with the robot's own onboard elevation map could allow the world model to be fine-tuned directly on real-world data.
Summary updated