Research
RAYA: Learning Where and When to Intervene for Robot Recovery
Robots can often sense that they are about to fail, yet still be unable to recover, because conventional safety layers only correct an action after the nominal planner has already spent the control…

- arXiv
- 2609.21690 · Preprint · not peer-reviewed
- Published
- 2026-09-18
- Authors
- Ishaan Mahajan, Charles Chen, Frederike Dümbgen, Brian Plancher
In plain words
Robots can often sense that they are about to fail, yet still be unable to recover, because conventional safety layers only correct an action after the nominal planner has already spent the control authority that recovery would require.
AI summary
Overview
Research area: Safe robot control — specifically, learning-based recovery and safety for model predictive control (MPC), evaluated on quadrotors and autonomous ground vehicles.
Technical level: Advanced. The paper assumes familiarity with model predictive control, constrained optimization (ADMM/operator splitting), control barrier functions, Hamilton–Jacobi reachability, and neural network training via evolutionary strategies.
Scope: The paper proposes RAYA (Recoverability-Aware Yielding of Authority), a hybrid learned–analytic framework that injects a learned finite-horizon recoverability margin into an MPC solver and pairs it with a bounded learned scheduler that reallocates task priorities, tested across 7,200 simulation episodes per controller and on a 35 g Crazyflie quadrotor.
What This Paper Is About
Robots can often sense that they are about to fail, yet still be unable to recover, because conventional safety layers only correct an action after the nominal planner has already spent the control authority that recovery would require. RAYA's premise is that recoverability must be considered while actions are being chosen inside the controller, not vetoed afterward, and that task objectives must be allowed to yield as recoverability shrinks. The goal is a single planning-and-control framework that decides both where recoverability enters the optimizer and when selected task objectives should be sacrificed.
Key Contributions
-
Hybrid learned–analytic recovery. A learned finite-horizon recoverability margin is linearized and inserted as an additional (optionally softened) affine constraint inside an optimal controller with hard constraints, while a bounded learned scheduler reweights selected task objectives. The underlying optimizer remains the sole action generator, and prediction dynamics, input bounds, and platform constraints are untouched.
-
Out-of-distribution transfer. The learned components are trained on narrow, platform-specific closed-loop rollouts and then evaluated zero-shot on unseen trajectories, disturbance distributions, plant shifts, and friction layouts, with the same controller design transferring across an aerial and a ground embodiment.
-
Recovery without a compute bottleneck. An embedded realization runs fully onboard the STM32F405 microcontroller of a 35 g Crazyflie 2.1 Brushless quadrotor at 20 Hz with five ADMM iterations inside a 50 ms control deadline, while retaining the framework's performance.
-
A bounded-intervention guarantee. The authors prove structurally that scheduling only modifies objective terms (
H_t,g_t), leaving the pre-existing feasible set unchanged, that a hard learned constraint can only restrict the feasible set, and that the softened constraint can never render an otherwise feasible MPC problem infeasible.
Main Findings
-
In-solver beats post hoc on the quadrotor. Nominal MPC achieves 34.24% survival, and a post hoc projection using the same learned margin achieves 34.45%, statistically indistinguishable from nominal. Placing the margin inside MPC raises survival to 37.48%, a 3.02 percentage-point improvement over post hoc use (95% CI [+2.14, +3.90]). Adding reallocation scheduling reaches 40.83%. In-solver CBF reaches 36.74%, below the in-solver learned margin.
-
The in-solver advantage is not specific to learned signals. Using the same reduced-order Hamilton–Jacobi value as a post hoc filter gives 34.24% survival, while incorporating it directly into MPC gives 36.43%.
-
The AV shows a different balance. Nominal MPC achieves 35.93%, a post hoc learned projection 39.43%, and in-solver use 40.57%. Adding reallocation scheduling raises survival to 48.73%, so objective reweighting accounts for the larger gain on the ground vehicle.
-
Envelope expansion on the quadrotor. RAYA shifts the interpolated 50%-survival threshold from 7.335 to 7.950 m s⁻² of 95th-percentile injected downward acceleration, an 8.4% increase, and raises the normalized survival-curve area from 37.17% to 45.92%. At disturbance multiplier 8, survival increases from 47% to 62%.
-
Zero-shot held-out transfer. RAYA shows an 18.9% relative gain across all held-out quadrotor families, and under turbulent wind survival rises by up to 81.8% in the regime where nominal control begins to exhaust actuation authority. On the AV, without retraining, RAYA achieves 51.2%, 47.1%, and 44.6% survival on the periodic, random multi-patch, and single-patch families, the highest point estimate in each family.
-
A wider recoverable operating envelope on friction. Under the 50%-survival criterion, nominal MPC is recoverable in 5/15 conditions, post hoc and in-solver learned-margin controllers in 6/15 each, and RAYA in 8/15. The strongest baseline (in-solver learned margin) sustains 50% survival to an interpolated exposure of 1.515 s, while RAYA extends this to 2.096 s, a 38.4% increase.
-
Constraint depth does not help. Imposing the recoverability constraint at K = 1 prediction stage performs slightly better than K = 3 on the quadrotor for both margin-only (37.48% vs 36.33%) and RAYA (40.83% vs 39.98%), and K = 1 and K = 5 are nearly identical on the AV (48.73% vs 48.70%).
-
Conditional scheduling beats always-on. On the quadrotor, RAYA and always-on scheduling achieve nearly identical survival (40.83% vs 40.88%), but RAYA uses 30.2% less mean reallocation and reduces XY tracking error by 27.5% on episodes completed by both. On the AV, RAYA reaches 48.73% versus 44.77% for always-on, uses mean reallocation 0.271 versus 1.0, and reduces tracking error by 22.2%.
-
The two mechanisms are synergistic, not merely additive. Scheduling without the learned margin reaches 34.83% survival, only 0.59 percentage points above nominal MPC; the margin alone reaches 37.48%; combining both reaches 40.83%, a 2.76-percentage-point gain beyond the sum of individual improvements.
-
RAYA outperforms a friction-preview controller on the AV. A privileged controller with a 300 ms preview of true friction reaches 47.50% survival with mean reallocation 0.503, while RAYA with no preview reaches 48.73% while using 46.1% less mean reallocation (0.271 vs 0.503).
-
Hardware deployment. Across 40 combined flights under wind with either aerodynamic mismatch (3 g attachment) or an unmodeled 40% front-left motor-command loss, RAYA completes all five flights in both conditions (10/10 missions, 30/30 commanded cycles per condition), while nominal MPC, in-solver CBF, and the post hoc learned controller complete no six-cycle mission. In one motor-loss flight RAYA contacts the floor after 3.286 cycles, recovers, and lands under control, giving 4/5 flights without contact.
-
Post hoc corrections are usually infeasible. The post hoc projection is infeasible for 93.2% of attempted corrections under aerodynamic mismatch and 97.9% under motor loss, which the authors identify as the mechanism behind its hardware failures.
-
Embedded numerics preserve behavior. Across more than one million replayed states, single-precision inference produces no changes in recoverability activation; cache quantization changes feedback gains by at most 1.18%; and a paired 4,200-episode audit changes only 27 paired outcomes, yielding 40.86% versus 40.83% survival. The network and cache occupy 161 KiB of the MCU's 1 MiB flash. Worst observed control-step latency under aerodynamic mismatch is 44.32 ms for RAYA versus 30.40 ms for nominal MPC, 31.55 ms for in-solver CBF, and 42.95 ms for the post hoc learned controller.
Methodology in Plain English
The researchers start by defining a signed instantaneous safety margin for each platform — a number that says how far the robot is from failure. During offline closed-loop simulation rollouts, they label every timestep with the worst margin that will occur over a short future recovery horizon, then train a small neural network to predict that worst-future value from signals the deployed controller actually has (for the quadrotor: altitude, vertical velocity, tilt, attitude margin, angular rate, and actuation authority; for the AV: tracking error, vehicle response, slip and model residuals, saturation, curvature, and short histories). Neither predictor sees the realized disturbance or a preview of it.
At runtime, the network's prediction is linearized around the current predicted state and imposed as an extra constraint inside the MPC problem, softened with a slack variable and a quadratic penalty so the original problem never becomes infeasible. In parallel, a small logistic policy with 11 inputs — including the predicted margin relative to an intervention threshold, state and actuator-risk features, and its own previous output, smoothed with a factor of 0.70 — outputs a bounded number between 0 and 1. That number scales down the weights on "yieldable" task channels (lateral position and velocity for the quadrotor; position and speed tracking for the AV) and scales up "recovery-critical" channels (attitude and angular rate; heading and steering), with the reweighted quadratic and linear objective terms recomputed before the single optimization solve.
The scheduler is trained in closed loop using episodic cross-entropy search, with candidate schedules ranked by survival, then tracking error, then mean reallocation. The offset used to calibrate the predictor is set on held-out rollouts by guarding against false-safe predictions. The complete stack is then ported to a microcontroller using single-precision inference and a static 64-entry Riccati cache, and flown on a Crazyflie under two-fan airflow.
Why This Matters
Research impact. The paper reframes runtime safety from a post hoc filter to an in-solver signal, and provides a clean decomposition — a learned signal that says when recoverability is deteriorating, and a bounded scheduler that says how much the task should yield. The bounded-intervention guarantee gives a formal argument that learning can change what the optimizer prefers without changing what the platform is permitted to do, which is a useful template for hybrid learned–analytic safety architectures. The finding that the same signal is worth more inside the plan than after it — demonstrated with both a learned margin and a Hamilton–Jacobi value — is transferable beyond this specific method.
Real-world applications.
- Multirotor flight in gusty or uncertain aerodynamic conditions, shifted payloads, or partial actuator degradation, where the vehicle must sacrifice trajectory tracking to stay airborne.
- Ground vehicles on unmapped or low-friction surfaces, such as snow, ice, gravel, or spilled fluids, where steering and heading must be preserved while speed tracking yields.
- Embedded safety supervision on compute-constrained platforms such as microcontroller-class drones, where a 50 ms deadline and under 1 MiB of flash are hard limits.
- Any autonomy stack where a safety layer currently sits downstream of a planner and risks issuing infeasible corrections after control authority has already been spent.
Industry relevance. The embedded demonstration matters commercially: it shows a learned safety component fitting within the memory and timing budget of a commodity flight-controller MCU (161 KiB of flash, roughly 89% of a 50 ms deadline), rather than requiring an onboard GPU. The zero-shot transfer results reduce the retraining burden across trajectories, disturbance profiles, plant variations, and surface conditions.
Future Directions
-
Learning the features and channels, not just the weights. The recoverability features and the recovery-critical versus yieldable objective channels are currently chosen by the designer; the authors propose learning which features predict deteriorating recoverability and which objectives should yield.
-
Extension to high-dimensional, history-dependent failure modes. The paper explicitly points toward learned nominal policies, contact-rich manipulation, and legged locomotion, where failure precursors are hard to enumerate in advance.
-
Broadening the empirical envelope. The evaluation covers two embodiments and a defined set of disturbance, plant-shift, and friction families; whether the same design scales to other actuator failure modes and more complex tasks is left open.
-
Reducing engineering effort per platform. Although the optimizer interface transfers across embodiments, some per-platform engineering remains, which the authors identify as a limitation to address.
Target Audience
Researchers and practitioners in robot safety, learning-based control, and model predictive control who already understand constrained optimization and safety filters. It is most useful to those working on embedded or resource-constrained robotic platforms, and to engineers designing safety architectures who need to decide whether a safety signal belongs inside or downstream of the planner. Readers without a background in MPC, control barrier functions, and reachability methods will find the formal sections demanding, though the central argument — that recoverability must shape the plan rather than veto it — is stated plainly in the introduction.
Authors’ abstract
A robot can predict failure and still be unable to prevent it. By the time a safety mechanism reacts, the nominal plan may already have spent the control authority that recovery requires, and fixed task priorities may block whatever response remains. Our key insight is that both aspects are decided inside the controller. Recoverability must inform actions while they are chosen rather than veto them afterward, and task objectives must be adapted as recoverability shrinks.…
The full abstract on arXivRelated papers
- GLASS: Architecture-Tuned, Composable, Device-Side Linear Algebra for Edge Robotics and Beyond 2026-09-23 · cs.RO · Also by Brian Plancher
- MR. POP: Multi-Robot Parallel Optimizing Planner for Almost-Surely Asymptotically Optimal Planning 2026-09-25 · cs.RO · Also by Brian Plancher
- AccelMPC: High-Rate, Low-Power FPGA-Accelerated Model Predictive Control for Tiny Drones 2026-09-08 · cs.RO · Also by Brian Plancher
- Efficient Learning of Differentiable MPC Policies on the GPU via Smoothed ADMM and First-Order Reinforcement Learning 2026-10-13 · cs.RO · Also by Brian Plancher
- RoKON: Efficient and Adaptive Data-Enabled Predictive Control for Robotic Manipulation 2026-10-26 · cs.RO · Also by Frederike Dümbgen