Research
Recovery-Guided Model-Based Diffusion for Safety-Critical Legged Locomotion
Legged robots moving at speed must plan motions that are safe, but planners only look a short distance into the future because long look-ahead is computationally expensive.
- arXiv
- 2611.19775 · Preprint · not peer-reviewed
- Published
- 2026-11-15
- Authors
- Lei Zheng, Shivam Sood, Mithun Vanniasinghe, Guillaume Sartoretti, Armin Lederer
In plain words
Legged robots moving at speed must plan motions that are safe, but planners only look a short distance into the future because long look-ahead is computationally expensive. A short horizon can produce trajectories that satisfy every constraint inside the horizon yet end in a state from which no safe recovery is possible, leading to an unavoidable collision.
AI summary
Overview
Research area: Robotics — safety-critical control and motion planning for legged robots, combining model-based diffusion (MBD) trajectory optimization with learned safety/recoverability critics.
Technical level: Advanced. The paper assumes familiarity with diffusion-style sampling for trajectory optimization, control barrier functions, and value-based safety learning.
Scope: The paper proposes a recovery-guided model-based diffusion framework that keeps short-horizon planners computationally cheap while extending their effective safety foresight through a learned terminal recovery critic, validated on a simulated Unitree Go2 in a high-speed obstacle-avoidance task.
What This Paper Is About
Legged robots moving at speed must plan motions that are safe, but planners only look a short distance into the future because long look-ahead is computationally expensive. A short horizon can produce trajectories that satisfy every constraint inside the horizon yet end in a state from which no safe recovery is possible, leading to an unavoidable collision. The paper's goal is to let a cheap 10-step planner inherit long-horizon safety information, learned offline, so that every candidate trajectory it commits to ends somewhere the robot can still recover.
Key Contributions
-
A learned terminal recovery critic. A neural network is trained offline, from closed-loop rollouts of a fixed recovery policy (DIAL with horizon 50), to approximate the worst-case future clearance margin along trajectories induced by that policy. It is used as a terminal acceptance criterion inside short-horizon MBD, extending effective safety foresight without long-horizon online rollouts.
-
Feasibility-guided refinement for MBD. Each diffusion-style refinement stage jointly evaluates within-horizon clearance, whole-body physical feasibility, and terminal recoverability, then weights particles feasible-first (with a least-violation fallback when no feasible particle exists) and retains a set of feasible "elites" across stages to counter feasible-support loss under a finite sampling budget.
-
A safety-envelope construction against optimistic critic errors. The critic is wrapped as the minimum of the instantaneous clearance margin and the network prediction, and trained with an asymmetric loss that penalizes overestimation more heavily, so approximation error cannot mark an already-unsafe state as recoverable.
-
Empirical validation on the Unitree Go2. Across 50 paired randomized obstacle-avoidance trials, the 10-step planner achieves zero collisions and 98% strict-clearance success, versus a 58% collision rate and 22% strict-clearance success for 50-step DIAL, at substantially lower planning cost.
Main Findings
-
Short-horizon DIAL fails badly. With H = 10, DIAL collides in 98.0% of the 50 paired trials and satisfies the strict 2 cm margin in 0.0% of them, with mean minimum clearance of −2.77 ± 2.50 cm. Extending to H = 20 gives 68.0% collisions and 20.0% strict safety; H = 50 gives 58.0% collisions and 22.0% strict safety. All three baselines have negative average minimum clearance.
-
Recovery-guided MBD at H = 10 dominates. It reaches 0.0% collisions, 98.0% strict 2 cm safety, mean minimum clearance of 3.57 ± 2.75 cm, and a mean feasible-particle fraction of 54.6%, using the same 10-step DIAL configuration and sampling budget.
-
Better safety at lower compute than long horizons. Mean planning latency is 100.1 ± 0.1 ms (p95 100.3 ms) for the proposed method, versus 113.9 ms for DIAL at H = 20 and 273.3 ms at H = 50. DIAL at H = 10 is faster (31.0 ms) but unsafe.
-
A one-step safety filter does not help. Shield-DIAL, a discrete CBF-style post-filter on the first control input, only nudges the H = 10 collision rate from 98.0% to 96.0% (strict safety still 0.0%), and at H = 50 yields 60.0% collisions with lower mean clearance than plain DIAL.
-
Hard feasibility gating matters more than soft penalties. The Dual-shield ablation (same hard gate, different ranking) achieves the best mean minimum clearance at 4.55 ± 3.58 cm, 2.0% collisions, 94.0% strict safety, and the highest feasible-particle fraction at 56.9%, at the same ~100 ms latency. Soft-guided, which penalizes rather than gates infeasible samples, degrades to 20.0% collisions and 80.0% strict safety.
-
Terminal-only recoverability beats added stepwise constraints. In a separate 50-run paired ablation with fixed obstacle geometry, the method alone gives 100% collision-free episodes, 94% task success, a 71.72% feasible-candidate fraction, 4 empty-support steps, 2.49 cm mean minimum clearance, and mean reward −0.0586. Adding intermediate DCBF-style constraints drops this to 94% collision-free, 66% task success, 31.22% feasible candidates, and 493 empty-support steps, despite raising mean minimum clearance to 21.10 cm and lowering mean reward to −1.0248. Of those 493 steps, 154 had contained terminally recoverable candidates before stepwise filtering, showing the constraints themselves caused support collapse.
-
Sampling budget can be traded for speed. At N_s = 1024 and M = 1, the planner runs at 33.13 Hz with zero empty-support steps and the largest minimum clearance in that sweep; at N_s = 512 it reaches 53.32 Hz (18.75 ms mean latency) with five empty-support steps and reduced task performance. All configurations tested in that maneuver remained collision-free. Reducing M from two to one at N_s = 2048 nearly doubles planning frequency.
Methodology in Plain English
The robot's planner samples many candidate control sequences, simulates each one forward through a physics model, and then reweights the candidates by how good they look — the "model-based diffusion" recipe. This works because the quality of a candidate can be measured directly by simulation, without needing to train a generative model on offline trajectory data.
The problem is that each candidate is only simulated 10 steps ahead (0.2 s, roughly 0.3 m of look-ahead at the 1.5 m/s commanded speed). A candidate can be collision-free for those 10 steps and still end in a doomed state.
The fix happens offline. The authors first designate a fixed "recovery policy" — a DIAL controller with a 50-step horizon — and define the safety value of a state as the worst clearance margin the robot would experience if it ran that policy from there indefinitely. They then run many closed-loop rollouts of this policy, starting from the terminal states of 10-step planning candidates, with randomized perturbations to initial state, and train a small multilayer perceptron to predict that worst-case future margin. Training mixes one-step bootstrapped targets with full-rollout minimum-clearance targets, uses an asymmetric loss that punishes overestimation five times more than underestimation, and adds two regularizers: one capping predictions at the current clearance, and one softly encouraging a control-barrier-function-like decay along safe transitions. A separate random set of rollouts checks the critic's honesty in states it has never seen.
Online, every sampled candidate gets a single violation score: the worst of (a) any within-horizon clearance violation, (b) any physical infeasibility such as falls or actuator limits, and (c) failure of the terminal state to pass the learned recovery test. Candidates that pass all three keep the ordinary task-cost weighting; if none pass, the planner falls back to the least-violating candidates using a separate temperature. A small pool of the best feasible candidates is carried forward into the next, lower-noise refinement stage so that feasible options are not simply lost to resampling. At the end, the first action of the best feasible trajectory is executed and the rest is shifted forward as a warm start for the next control cycle.
The experiments simulate a Unitree Go2 with 12 actuated joints in GPU-parallel MuJoCo MJX on an NVIDIA RTX 5090, driving at a 1.5 m/s reference velocity toward a 0.35 × 0.70 × 0.70 m box, with strict safety defined as maintaining at least 2 cm minimum signed clearance over base, hips, thighs, and calves.
Why This Matters
Impact on research. The paper reframes horizon limits in sampling-based MPC as a terminal-value problem rather than a horizon-length problem: instead of paying for a longer rollout, you pay once, offline, for a learned estimate of whether the endpoint is survivable, and then use it inside the sampler rather than only as a post-hoc filter. The support-collapse ablation is a concrete warning that stacking extra per-step constraints onto a stochastic optimizer can destroy the very feasible samples it needs.
Real-world applications:
- High-speed quadruped locomotion through cluttered indoor or warehouse environments where reaction time is limited by onboard compute.
- Inspection and delivery robots operating near people, where a fixed clearance margin must be guaranteed rather than usually maintained.
- Emergency-stop and fall-recovery logic in legged platforms, since the critic explicitly encodes "can I still recover from here."
- Any receding-horizon controller with a hard compute budget — drone flight, manipulation — where the same terminal-critic idea could replace horizon extension.
Industry relevance. The reported latency is 100.1 ms at the default setting and 18.75 ms in the low-budget configuration, and the paper explicitly measures against a 20 ms (50 Hz) real-time deadline. That makes the trade-off between safety rate and planning rate legible to a team deciding what fits an onboard computer. The result that a cheap 10-step planner with a learned terminal critic outperforms a 50-step planner at roughly a third of the latency is the kind of claim hardware teams care about directly.
Future Directions
- Uneven terrain and model uncertainty. The authors name this explicitly as future work: extending the feasibility-guided support mechanism beyond the flat-ground obstacle task used here.
- How general is the trained critic? The critic is trained on rollouts from terminal states of 10-step candidates in one task geometry, and the ablation uses fixed obstacle geometry — how well the recovery value transfers across obstacles, speeds, and gaits is not reported.
- Which recovery policy? All safety guarantees are relative to a designated DIAL policy with H_rec = 50. Whether the framework remains sound under a weaker or differently tuned recovery policy, and how sensitive the results are to that choice, is not established in the reported content.
- Closing the latency gap further. The low-budget configuration (N_s = 512) meets the 20 ms budget on average but shows five empty-support steps and reduced task performance; the paper leaves open how to recover that performance without giving up the real-time margin.
Target Audience
Robotics researchers and graduate students working on MPC, diffusion-based planning, or safety-critical control for legged and other high-dimensional robots; engineers building onboard planners under tight latency budgets; and readers interested in combining offline value learning with online sampling-based optimization. The paper is not beginner-friendly — it assumes comfort with diffusion sampling, Bellman recursions, and control barrier functions.
Authors’ abstract
Safety-critical high-speed legged locomotion requires motion planners to balance safety foresight with online computational efficiency. Although short prediction horizons reduce rollout costs, they provide limited safety foresight, and strict safety constraints severely restrict the feasible trajectory space. We propose a recovery-guided model-based diffusion (MBD) framework for safety-critical legged locomotion. It incorporates a learned terminal recovery critic into…
The full abstract on arXivRelated papers
- MiniWAM: Learning Compact Future Targets for Efficient World-Action Modeling 2026-10-08 · cs.RO · Also by Guillaume Sartoretti
- ScaffoldM3C: A Multimodal Sequential Monte Carlo Framework for Generative Stable Construction Planning 2026-09-30 · cs.RO · Also by Guillaume Sartoretti
- RoboFoundry: System-as-Policy Evolution for Self-Learning Embodied Agents 2026-09-26 · cs.RO · Also by Guillaume Sartoretti
- PGMT: Perceptive General Motion Tracking for Humanoid Robots 2026-09-08 · cs.RO · Also by Guillaume Sartoretti
- CGFM-Nav: Cognitive Graph-Field Memory for Semantic-Guided Lifelong Multimodal Embodied Navigation 2026-08-29 · cs.RO · Also by Guillaume Sartoretti