Skip to content
Robotics.world

Research

Predictive Safety Curricula for Robust Legged Locomotion

Learned locomotion policies for legged robots can look excellent on average while still producing rare, expensive failures such as shank collisions, illegal torso contact, or loss of balance.

The paper’s first page · arXiv:2609.37070
arXiv
2609.37070 · Preprint · not peer-reviewed
Published
2026-09-29
Authors
Ivan Ovinnikov, Pascal Sutter, Christian Gehring, Jordis Herrmann

In plain words

Learned locomotion policies for legged robots can look excellent on average while still producing rare, expensive failures such as shank collisions, illegal torso contact, or loss of balance. Standard curricula adapt task difficulty or learning progress, so they can overlook conditions that appear equally successful on average but differ sharply in tail risk.

AI summary

Overview

  • Research area: Legged robotics, reinforcement learning for locomotion control, and curriculum learning / adaptive environment sampling for robot safety.
  • Technical level: Advanced (assumes familiarity with PPO, distributional reinforcement learning, quantile regression, and CVaR-style risk measures).
  • Scope: The paper introduces Predictive Safety Curricula (PSC), a training-time mechanism that reallocates simulated locomotion experience toward conditions predicted to carry high future safety cost, and validates it in a public ANYmal-D rough-terrain benchmark, a production ANYmal-X stair-climbing stack, and physical hardware trials.

What This Paper Is About

Learned locomotion policies for legged robots can look excellent on average while still producing rare, expensive failures such as shank collisions, illegal torso contact, or loss of balance. Standard curricula adapt task difficulty or learning progress, so they can overlook conditions that appear equally successful on average but differ sharply in tail risk. The paper's goal is to build a curriculum that spends training time where the policy is predicted to be unsafe in the future, without changing the task reward or the policy-optimization objective.

Key Contributions

  1. Predictive safety allocation as a curriculum mechanism. PSC trains a shared distributional safety-return critic from policy rollouts and uses its predictions to reallocate both structured terrain–command contexts and previously encountered randomized environment events. The task reward and PPO loss remain unchanged; only the training distribution moves.
  2. A single factorized allocation framework. The training distribution is decomposed into a fixed terrain-type assignment, a context term over terrain level and command bucket, and an event term over randomized variables (friction, joint positions, actuator properties, perturbations), allowing both factors to be adapted by the same learned safety signal.
  3. Controlled characterization of the safety signal. Ablations compare upper-tail (CVaR) versus mean readouts of the same quantile critic, compare learned state-conditioned priorities against direct empirical tail statistics, and add critic diagnostics measuring whether predicted risk identifies states preceding collisions and contacts.
  4. Validation across controlled and production systems, including hardware. Results span the Isaac Lab ANYmal-D benchmark (six seeds), a production ANYmal-X stair-climbing stack (three seeds), and repeated physical trials with manually annotated lower-leg contacts on ANYmal-D and on a production stair-climbing platform.

Main Findings

  • Best mean success across all six ANYmal-D evaluation conditions. PSC reaches 94.56 ± 1.08, 95.19 ± 1.77, and 93.31 ± 1.36 percent under clean terrain occupancy v=1, v=2, v=3, versus LP at 94.40 ± 0.95, 93.81 ± 1.00, 92.81 ± 0.99, PLR at 93.31 ± 3.13, 92.29 ± 4.65, 90.76 ± 4.51, and the baseline at 91.94 ± 1.56, 91.20 ± 1.50, 89.07 ± 2.06.
  • Gains grow with observation noise. Under doubled nominal observation noise, PSC achieves 92.82 ± 1.01, 92.53 ± 1.74, and 89.92 ± 1.71 percent at v=1, v=2, v=3, improving on LP by 0.55, 1.33, and 0.84 percentage points respectively.
  • Failure-rate reduction on difficult terrain. On clean v=2, failure drops from 6.19 percent (LP) to 4.81 percent (PSC), a 22.3 percent relative reduction; at v=3 it drops from 7.19 to 6.69 percent. Relative to PLR, failure falls from 7.71 to 4.81 percent at v=2 and from 9.24 to 6.69 percent at v=3.
  • A structured redistribution, not a simple difficulty push. Late-training context allocation under PSC differs from LP with a seed-mean total variation distance of 0.033 (per-seed 0.043, 0.044, 0.045), and Figure 1(b) shows a terrain-dependent pattern rather than uniform preference for higher levels.
  • Upper-tail readout outperforms mean and empirical alternatives in this cohort. QC-CVaR reaches 93.05 ± 1.14 percent averaged over the six evaluation conditions, versus 90.40 ± 2.54 for QC-mean and 91.38 ± 3.17 for empirical CVaR, with paired differences of 2.66 ± 2.96 and 1.68 ± 3.80 percentage points. The authors caution that seed-level variability precludes a strong causal attribution to the readout alone, and note QC-CVaR is higher than QC-mean on five of six seeds.
  • The critic is predictive of future safety events. Mean prediction correlates with realized discounted safety return at Spearman ρ = 0.773 ± 0.018. States in the highest-scoring decile show 6.88× the overall collision rate and 2.81× the overall thigh-or-shank contact rate; AUPRC gain over prevalence is 0.079 ± 0.015 for collisions and 0.461 ± 0.009 for contacts.
  • Default tail mass is the best of those tested. With α = 0.05, mean success is 93.05 ± 1.14 percent; α = 0.01, 0.10, and 0.20 give 92.25 ± 2.88, 91.80 ± 2.06, and 91.28 ± 1.31 percent.
  • Production stair-climbing teachers improve. On ANYmal-X, PSC teachers average 88.45 ± 1.54 percent across six settings versus 86.71 ± 1.69 (baseline), 86.92 ± 1.24 (PLR), and 87.04 ± 0.60 (LP), gains of 1.74, 1.53, and 1.41 percentage points. At the hardest setting v3, PSC reaches 62.46 percent versus 59.88 (LP) and 57.75 (baseline).
  • The advantage survives teacher–student distillation. PSC students average 87.76 ± 1.70 percent versus 86.72 ± 0.71 for baseline and 87.06 ± 1.06 for PLR; a student distilled from a PSC teacher without PSC prioritization during distillation reaches 87.52 ± 1.39 percent.
  • Large hardware reduction in shank contacts. In ANYmal-D open-step trials (25 cm high, 40 cm deep step, three seeds, 100 one-way crossings per seed, 300 per method), PSC produces 10.7 ± 4.9 shank-positive crossings per 100 versus 29.0 ± 5.3 for LP and 25.7 ± 9.1 for the baseline — a 63.2 percent reduction relative to LP, with fewer shank-positive crossings than both alternatives in all three seeds.
  • Contact specificity, not blanket suppression. Foot scuffs rise for PSC relative to LP (29.0 ± 9.6 versus 14.3 ± 1.5 per 100 crossings) while staying comparable to the baseline (31.0 ± 24.6), which the authors attribute to foot contacts being excluded from the penalized body set.
  • Zero observed shank collisions on the production stair platform. Over 50 ascent–descent pairs, the baseline produces shank collisions in 33/50 trials and 41 individual events, while no shank collision is observed with PSC; foot scuffs fall from 14 to 7, completion rises from 49/50 to 50/50, stuck events fall from 1 to 0, and observed mean traversal speeds are effectively identical.

Methodology in Plain English

The robot is trained in simulation with PPO on its normal task reward. Alongside the policy, the authors train a separate "safety critic" that looks at the robot's state and predicts a distribution of future safety cost — a weighted sum of three hand-defined signals: excessive torso tilt, legs folding too close to the base (with a nominal distance of 0.35 m), and undesired thigh or shank contacts above 1 N. The critic outputs 32 quantiles of the discounted cost return (γ_c = 0.99), and the curriculum reads off the worst tail — averaging the top 2 quantiles, corresponding to 6.25 percent of the discrete representation at α = 0.05 — though a mean readout is also tested.

Each finished episode gets scored by averaging that readout along the trajectory. Those scores do two jobs. First, they are aggregated per terrain–command context and combined with staleness and coverage terms (weights 0.7, 0.2, 0.1) plus a 0.3 probability of uniform sampling, producing a new sampling distribution over contexts within whatever levels the existing terrain curriculum already permits. Second, each randomized event realization (friction, joint offsets, actuator properties, perturbations) remembers the score of the episode it appeared in and is kept in a small replay buffer of 64 per event, resampled with probability 0.4. In effect, the safety critic decides what to practice next, while the reward and loss that shape the policy are untouched.

Comparisons are run against a standard terrain-progression baseline, Prioritized Level Replay (ρ = 0.1, advantage-based), and a learning-progress curriculum, all sharing the same admissible support and replay pathway. The ANYmal-D experiments use 8192 parallel environments, 24-step rollouts, 3000 PPO updates (589,824,000 transitions), and six seeds; evaluation runs 3000 control steps in 1000 parallel environments at 50 Hz with a 40 s timeout and a fixed evaluation seed of 42.

Why This Matters

Rare failures dominate deployment cost in legged robotics, and this paper shows that the allocation of training experience — not just the reward function — is a usable lever for tail safety. It demonstrates that an auxiliary predictive model can be added to an existing RL pipeline without touching the reward or the policy objective, which makes it easy to graft onto production stacks.

Real-world applications:

  • Industrial inspection quadrupeds operating on stairs, steps, and debris, where lower-leg strikes damage hardware and interrupt missions.
  • Explosion-safe / hazardous-environment robots such as ANYmal-X, where the authors note lower-leg impacts matter particularly for hardware integrity.
  • Construction, mining, and plant-maintenance routes with repeated step transitions and degraded perception (dust, lighting), matching the observation-noise conditions where PSC's margins were largest.
  • Fleet-level training pipelines that already use teacher–student distillation, since the PSC benefit was shown to transfer through distillation to deployable students.

Industry relevance: the results come from ANYbotics production training stacks rather than a purely academic benchmark, and the headline evidence is physical contact counts on real robots. That combination — matched seeds, manually annotated hardware contacts, and preserved traversal speed — is the kind of evidence needed to justify a training-pipeline change for a commercial platform.

Future Directions

  • Disentangling the readout from the signal. The authors state that seed-level variability prevents a strong causal attribution to the upper-tail readout alone; a larger seed cohort or a variance-reduction design would be needed to separate the contribution of the CVaR readout from that of predictive state-conditioned scoring.
  • Whether the upper-tail statistic or simply prediction quality matters. Because empirical CVaR underperformed learned priorities, an open question is whether the gain comes from temporal bootstrapping through the critic, from the quantile representation, or from the tail mass itself — particularly given that the α = 0.01 variant stayed close to the default.
  • Safety-cost design. The definition of safety cost (tilt, base proximity, undesired contacts, all at unit weight) was hand-specified, and removing the undesired-contact term changed QC-mean performance, suggesting that how the cost is composed is itself a design axis worth studying.
  • Scaling and generalization of the context factorization. The method was tested on two embodiments and two training stacks; whether the same allocation principle holds for other robot morphologies, other randomization variables, or tasks beyond locomotion is not established by the reported experiments.

Target Audience

Reinforcement learning researchers working on safe or robust control; robotics engineers responsible for locomotion training pipelines and sim-to-real transfer; and practitioners at robotics companies who already run PPO-based terrain curricula and want a low-intrusion way to target rare failure modes. Readers without a background in distributional RL and risk measures will find the quantitative sections dense, though the core idea is accessible.

Authors’ abstract

Rare but consequential failures can persist in learned locomotion policies for legged robots even when average task performance is high, in part because standard curricula primarily adapt task difficulty rather than the distribution of safety-critical experience. We introduce Predictive Safety Curricula (PSC), a framework for allocating locomotion training experience using learned predictions of future safety cost. PSC trains a distributional safety critic from policy…

The full abstract on arXiv
Read the original paper

Related papers