All selected work

Predictive Safety Curricula for Robust Legged Locomotion

Predictive Safety Curricula (PSC) is an adaptive curriculum-learning method for reinforcement learning that reallocates training experience using predictions of future safety cost.

Paper PDF Public ANYmal footage Technical overview
Status
Preprint

Problem

Consider two stair configurations with similar completion rates. On one, the robot walks cleanly; on the other, it occasionally strikes its lower leg against a step. The configurations have similar task performance but different contact outcomes. Additional practice with the second configuration exposes the policy to the geometry associated with these collisions.

Once completion rates saturate, a learning-progress curriculum has little signal for allocating a fixed interaction budget to these rare failures.

Claim

Predicting future safety cost from policy rollouts lets PSC concentrate experience on conditions with elevated risk. The comparisons hold the task reward, policy architecture, and interaction budget fixed while changing where the policy trains.

Method

PSC learns a shared distributional safety critic from policy rollouts. The critic predicts the distribution of discounted future safety cost. In the rough-terrain experiments, this cost captures excessive torso tilt, configurations where the legs fold close to the base, and undesired thigh or shank contacts.

A single critic is shared across terrain contexts and randomized configurations. Safety observations from these settings jointly train a state-conditioned predictor, while temporal bootstrapping propagates observed costs to states preceding an unsafe interaction.

PSC computes an upper-tail risk statistic from the predicted distribution of discounted future safety cost. This statistic summarizes the high-cost portion of the distribution. Statewise risk predictions are averaged over each completed episode to produce a score that drives two allocation mechanisms:

  1. Context sampling: Episode scores are aggregated by terrain-level and command context. PSC reallocates experience within the conditions admitted by the underlying capability curriculum.
  2. Event replay: Previously encountered randomizations, such as friction or external perturbations, are stored with their episode scores and preferentially resampled in matching contexts. Replaying these settings generates fresh policy rollouts.

The sampling distribution combines risk-based priorities with uniform exploration, coverage, and time since a context was last visited. Policy learning uses the original task reward and PPO objective. The safety critic operates during training and is discarded for deployment. The method section gives the critic objective and allocation rules.

Evidence

Controlled simulation experiments matched policy architecture, reward, and interaction and optimization budgets across curricula.

In the ANYmal-D benchmark, PSC achieved the highest mean success in each of six terrain and observation-noise conditions, evaluated over six training seeds. Under the clean-observation condition with terrain occupancy weighted toward harder levels (v2), failure decreased from 6.19% to 4.81% relative to learning-progress sampling, a 22.3% relative reduction.

Controlled hardware evaluation

On ANYmal-D, crossings with shank collisions decreased from 29.0 to 10.7 per 100 crossings, a 63% reduction relative to the learning-progress curriculum. Values are means across three matched training seeds, with 100 crossings per seed and method. Incidence was lower with PSC in all three seed pairs.

Production stair-climbing hardware evaluation

Policies were evaluated over 50 ascent–descent pairs per method. Shank collisions occurred in 33 baseline trials and zero PSC trials, at comparable observed mean traversal speeds.

PSC also improved mean success in the production stair-climbing training stack. The experiments section reports the evaluation protocols, per-condition results, and ablations.

In the ablations, predictive upper-tail priorities yielded higher mean success than predictive mean or empirical tail priorities, with variation across training seeds.

Relation to learning-progress curricula

Learning-progress curricula use changes in task performance to allocate experience. PSC uses predicted future safety cost. These signals capture different aspects of policy behavior: competence acquisition and anticipated safety outcomes.

PSC operates within the support defined by a capability curriculum. Terrain progression determines the available conditions, and predictive safety scores determine their relative sampling frequency. This separates the expansion of task difficulty from the allocation of experience within the current support.

Limitations & Failure Modes

  • Safety-critic calibration. The policy changes the distribution of states and future costs as it learns. When the critic lags, upper-tail priorities can keep directing rollouts toward risks the policy has already learned to handle.
  • Replay staleness and overhead. Replaying stored environment settings produces fresh trajectories. The scores attached to stored events can age as the policy changes. Maintaining the event store and updating the critic add work per training iteration.
  • Risk allocation and capability. Persistent emphasis on a few hazards can reduce practice on nominal terrain and slow capability acquisition. PSC keeps difficulty progression under the base curriculum and mixes risk priorities with coverage and uniform exploration. The production stair study observed comparable mean traversal speeds under its tested allocation.
  • Safety-cost coverage. On ANYmal-D hardware, lower shank-collision incidence was accompanied by more foot scuffs than under learning-progress sampling. Foot scuffs were absent from the safety cost, illustrating how the cost definition shapes contact behavior.

Systems & Scale

Framework & simulation
Isaac Lab for GPU-parallel locomotion simulation.
RL algorithm & training budget
PPO with a fixed interaction budget across curricula. The controlled ANYmal-D benchmark used 8,192 parallel environments and six training seeds. The hardware comparison used three matched training seeds.
Deployment & hardware
Controlled evaluation on ANYmal-D and separate production stair trials. The deployed policy runs without the training-time safety critic.
Code & artifacts
Preprint · Publication and citation

Read the research note on training-distribution optimization

Reinforcement LearningCurriculum LearningEvaluationRoboticsSim-to-RealLocomotion