Reinforcement Learning for Bipedal Walking on Uneven Terrain

How curriculum, randomization, and sensing choices decide sim-to-real transfer.

Cover illustration for “Reinforcement Learning for Bipedal Walking on Uneven Terrain”

Reinforcement learning for bipedal walking on uneven terrain replaces brittle hand-engineered gaits with policies trained through simulated experience. Its success depends on more than the learning algorithm. Curriculum, terrain randomization, sensing, and reward design must work together so that behavior learned in simulation transfers to hardware without treating terrain competence as proof of safety.

Why classical gait controllers fail on uneven terrain

Classical model-based controllers formulate motion planning as sequential numerical optimization under task objectives and physical constraints. Their effectiveness depends on accurate models of terrain geometry and dynamics, yet uneven ground violates those assumptions through changes in slope, compliance, and surface irregularity. A swing foot can hit a rise that the controller did not expect. For a biped, low inherent stability and sensitivity to model errors make that mismatch especially dangerous, unlike a quadruped with its broader support polygon.

A controller that walks reliably on a flat rigid floor may lose stability when its assumptions about contact no longer hold. Hand-engineering another gait for another surface still requires knowing the ground ahead of time. A controller needs to generalize across surfaces it has never explicitly been modeled for.

What RL offers that model-based control does not

RL changes the source of the controller’s behavior. Instead of specifying a terrain model and solving for motion within it, the agent discovers useful actions through trial-and-error across simulated conditions. Massively parallel GPU simulation makes it possible to run the huge number of interactions needed to train across a wide range of terrain.

Li et al. (2025) describe a single end-to-end deep RL framework for periodic walking, aperiodic jumping, and standing in place of separate hand-crafted controllers for each skill. The same work identifies task randomization as another source of generalization and compliance under disturbances. Behavioral freedom is also important. Allowing variable stepping frequency, including changes to the policy’s observed clock signal, lets gait timing vary beyond a fixed cycle with terrain and command velocity. However, exposure produces useful generalization only when the training distribution is designed well.

How curriculum learning builds terrain competence progressively

Diagram: From Flat Ground to Uneven Terrain: The Curriculum Progression. Visualizes: Show a phased curriculum sequence for training a bipedal walking policy, illustrating how difficulty builds from simple to complex.

A phased curriculum starts with basic walking on flat ground and then adds harder terrain. Preset motion functions can establish the initial walking behavior, while later stages expose the agent to perturbations it has acquired enough stability to handle. Randomizing everything immediately can destabilize learning. Progression therefore determines not only training efficiency but also whether the policy develops conservative or adaptive responses.

Singh et al. (April 2025) used this approach to train an end-to-end locomotion policy for the HRP-5P humanoid. Randomized terrain exposure in simulation produced robust walking on flat rigid floor, soft cushion, uneven inclined blocks, paved street, and grass using only proprioceptive feedback.

Terrain generation offers another way to extend that progression. Adding fractal noise to the terrain height field makes the surface more complex and helps the robot perform high-step and parkour-like movements. However, the difficulty of the terrain and the uncertainty of its physical properties are distinct training choices. The latter determines how well the learned behavior tolerates discrepancies between simulation and hardware.

Domain randomization: how much uncertainty the policy needs to absorb

Domain randomization exposes policies to variation in surface friction, terrain compliance, robot mass and inertia, and actuator dynamics. Each dimension targets a known source of sim-to-real discrepancy. The goal is not unlimited uncertainty. Too little variation leaves the policy unprepared for hardware, while too much can produce overly conservative behavior and poor performance.

This calibration has direct consequences for transfer. When a policy meets a friction coefficient it has not seen before, the robot may walk less efficiently or even fall. Appropriate distributions are therefore a system-specific engineering choice and research problem. Training breadth must cover relevant discrepancies without making useful behavior unnecessarily difficult to learn.

Better simulator fidelity and system identification tackle the same problem from the other side. By reducing the discrepancy itself, they reduce how much uncertainty randomization must absorb. Sim-to-real transfer consequently depends on both the accuracy of the simulated system and the range of departures the policy has learned to tolerate.

Blind versus perceptive policies: what the robot needs to sense

Blind policies use joint positions, velocities, and inertial measurements without camera or lidar input. This avoids the complexity of a perception pipeline and the separate sim-to-real gap that comes with visual data. A robot that cannot see a step edge must discover it through contact, which may already be too late to prevent a fall.

The Learn to Teach framework, accepted in IEEE Robotics and Automation Letters in July 2025, complicates the assumption that robust terrain traversal always requires depth estimation. Its L2T-RL implementation on Digit demonstrated zero-shot sim-to-real transfer over more than twelve diverse terrains, including wet grass, gravel, sandy terrain, and slippery surfaces, without depth estimation modules.

Duan et al. use a local-frame heightmap and a separate predictor supplied with histories of depth images and robot states for perceptive control. They report that it transfers without explicit pose estimation or real-world fine-tuning. This provides terrain information before contact, but rendered depth differs from real sensor data, requiring visual as well as physical randomization.

Teacher-student distillation: bridging privileged simulation knowledge and deployable policies

Diagram: Two Paths to Deployable Terrain Knowledge. Visualizes: Contrast two architectural strategies for getting privileged simulation knowledge onto a real robot.

Teacher-student distillation separates training information from deployment inputs. A teacher learns with privileged simulation knowledge, including ground-truth terrain geometry, friction, and compliance. A student then learns to reproduce that behavior using only sensors available on the real robot. The information advantage is confined to training.

Conventional distillation trains the teacher first and transfers its behavior through supervised learning. That sequence limits how strongly the student’s sensing constraints can influence the teacher. Concurrent Teacher-Student architectures instead train both networks simultaneously under RL so that they can co-adapt. L2T similarly unifies teacher and student policy learning in one stage.

The Liang et al. ICIRA 2025 framework, published in Springer LNAI 2026, takes a similar path without an explicit teacher-student split. Its hybrid internal model and contrastive learning implicitly infer environmental context and proprioceptive state. Past observations help the robot respond better to sudden terrain changes, so measurements help beyond the moment they describe.

Hybrid RL-MPC frameworks: combining learned adaptability with model-based constraint satisfaction

Pure RL policies can demonstrate robust walking without formally guaranteeing physical constraint satisfaction. Model predictive control offers a structure for enforcing constraints, but inaccurate terrain-interaction models weaken its performance on rough or slippery ground. Hybrid frameworks share these jobs between learned and model-based parts. They exchange one set of limitations for another.

Kamohara et al. at Georgia Tech presented a September 2025 framework in which an RL residual handles dynamic terrain effects that MPC cannot model. Their HECTOR experiments in NVIDIA IsaacLab covered stairs, stepping stones, and slippery surfaces. Configurations without swing foot trajectory adaptation failed catastrophically, showing that learned compensation cannot replace this necessary behavior.

A model-informed safe RL framework goes further by anchoring learning to the ALIP step-to-step map. It uses Discrete Exponential Control Barrier Functions both as a training-time shaping reward and as an execution-time projection filter to enforce safety at the impact horizon. Such integration brings safety into learning and execution, but hybridity adds system complexity, MPC tuning, and dependence on the validity of the internal model.

Reward design: why the wrong reward function can prevent any learning at all

Because a biped has unstable dynamics and little room for error, one poorly designed part of its reward can cause training to fail completely. Better algorithms alone do not remove this sensitivity. The reward expresses engineering judgments about which behaviors are useful, physically acceptable, and worth their energy cost.

The Liang framework uses a human-inspired stepping strategy reward to encourage the robot to lift its legs high as ground height changes and to use passive ankle compliance on rugged terrain. Within its curriculum, this supports walking over slopes, uneven terrain, and continuous stairs with reduced energy consumption. The reward supplies physical guidance that sparse objectives alone would not provide.

Automated reward generation aims to cut the work experts do to specify rewards, but black-box generation struggles to include precise physical constraints. NaviGait (ICRA 2026) addresses the difficulty of specifying rewards with precise physical constraints through offline gait libraries generated by trajectory optimization. Both approaches still require choices between goals that compete with each other. Loosening energy constraints can improve average reward and make the policy more stable while lowering energy efficiency, so this trade-off needs to be weighed during reward design before the robot is deployed.

What the HT-2 transformer approach reveals about pretraining and terrain generalization

Radosavovic et al.’s Learning Humanoid Locomotion over Challenging Terrain uses a transformer to predict actions from histories of proprioceptive observations and actions. HT-2 first learns through sequence modeling on flat-ground trajectories, then undergoes RL fine-tuning on uneven terrain. Pretraining supplies a stable starting point for adaptation. The robot does not have to discover basic locomotion and difficult-terrain responses simultaneously.

The flat-ground dataset combines trajectories from a prior neural network policy, a model-based controller, and human sequences. This diversity broadens the base model’s experience before terrain fine-tuning. The resulting controller traversed over four miles of hiking trails in Berkeley and climbed some of the steepest streets in San Francisco, encountering rough, deformable, sloped, rocky, wet, muddy, and sandy surfaces.

The model also develops implicit in-context terrain representations that generalize to surfaces absent from fine-tuning. Proprioceptive history encodes terrain characteristics without explicit labels or direct terrain sensing. Like teacher-student learning, this approach turns richer training information into deployable behavior through temporal sequence modeling.

Where the field's remaining disagreements concentrate

The unresolved safety debate concerns where constraint enforcement belongs. Pure RL has shown that it can generalize across terrain, while hybrid control adds model-based structure but is more complex and relies on models that are imperfect. Neither has established dominance across all deployment scenarios. Formal safety certification remains behind locomotion performance, and barrier-function tools are not yet standard in deployed systems.

Blind policies have demonstrated substantial outdoor competence, but those results do not settle how a robot should handle hazards that contact feedback reveals too late. Perceptive control offers foresight while adding another source of transfer error. The VMTS approach (2025) explores the middle ground by combining proprioceptive history and depth images through contrastive learning and a mixture-of-experts teacher-student framework.

Reward specification presents a separate scaling problem. Hand-crafted rewards encode physical knowledge but demand expert work for new robots and terrain types, whereas automated methods struggle with constraint precision. These disagreements persist because success on one axis does not establish reliability on the others.

What the humanoid industry's commercial pressure is doing to the research timeline

The expansion of humanoid development in 2023 and 2024 has compressed the path from laboratory demonstration to field deployment. Unitree, founded in 2016, Agility Robotics, founded in 2015, and Figure AI, founded in 2022, are among the companies shaping that commercial context. Research no longer advances on laboratory timelines alone. Techniques developed for quadrupeds, including curriculum learning, domain randomization, and teacher-student distillation, are reaching bipedal systems through shorter development cycles.

Work in warehouses, disaster response, and home assistance brings uneven-terrain locomotion into places where people live and work. In those settings, a fall can lead to liability and change how the public sees robots, as well as mark a failed experiment. STATE-NAV (2025) couples learning-based traversability estimation with navigation for bipedal locomotion on diverse rough terrain, illustrating the move from isolated walking controllers toward integrated systems.

Training coverage, sensing, constraint enforcement, and reward specification now meet within product development, where a weakness in one component cannot be dismissed by a strong demonstration from another. The cost of getting those choices wrong is real and immediate.

Sources

  1. Learning Humanoid Locomotion over Challenging Terrain

    Described the HT-2 transformer approach, with flat-ground pretraining, RL fine-tuning, and the hiking trail results.

  2. Learning Vision-Based Bipedal Locomotion for Challenging Terrain

    Described the vision-based approach using a local-frame heightmap and a depth-history predictor.

  3. Deep Reinforcement Learning for Bipedal Locomotion: A Brief Survey

    Survey background on why classical model-based control struggles and on RL training at scale with parallel simulation.

  4. Reinforcement learning for versatile, dynamic, and robust bipedal locomotion control

    Supplied the end-to-end framework covering walking, jumping, and standing, plus the points on task randomization and variable stepping frequency.

  5. Terrain-Adaptive Bipedal Locomotion via Reinforcement Learning with Human-Inspired Stepping Strategy

    Source for the human-inspired stepping reward, the hybrid internal model with contrastive learning, and the curriculum results on slopes and stairs.

  6. [2504.13619] Robust Humanoid Walking on Compliant and Uneven Terrain with Deep Reinforcement Learning

    Provided the HRP-5P results on walking over compliant and uneven surfaces using proprioception only.

  7. STATE-NAV: Stability-Aware Traversability Estimation for Bipedal Navigation on Rough Terrain

    Provided the example of coupling traversability estimation with navigation for bipedal rough-terrain locomotion.

  8. Learning-based legged locomotion; state of the art and future perspectives

    Background on learning-based legged locomotion, including the transfer of quadruped techniques and the sim-to-real challenges.

Yuki Tanigawa