Robust Adaptive Multi-Step Predictive Shielding (Student Abstract)

Tanmay Ambadkar, Darshan Chudiwal, Greg Anderson, Abhinav Verma

TL;DR

RAMPS (Robust Adaptive Multi-Step Predictive Shielding) is a new framework that brings formal safety guarantees to high-dimensional Deep Reinforcement Learning. By combining a learned global linear dynamics model with a multi-step Robust Control Barrier Function, it reduces safety violations by up to 92% in complex environments like SafeAnt without sacrificing the agent's ability to learn and perform tasks.

What Problem Does This Paper Address?

Deep Reinforcement Learning (RL) is powerful but notoriously "unsafe" during the learning process. In safety-critical fields like robotics or autonomous driving, we can't afford the "trial and error" approach where the error involves a physical crash.

Current solutions fall into two camps, both with flaws:

  1. Neural Shields: These learn safety from data but often fail during the early stages of training when the agent is most erratic.
  2. Symbolic Shields: These provide formal guarantees but usually rely on partitioning the state space into many tiny local models. This leads to the "curse of dimensionality," making them too computationally expensive for the high-dimensional systems where Deep RL actually excels.

RAMPS aims to bridge this gap by providing a scalable, formal safety layer that works in real-time for complex, high-dimensional nonlinear systems.

Methods

The RAMPS framework consists of two main components that work in tandem:

  • Learned Affine Dynamics Model: Instead of partitioning the space, RAMPS learns a single, global affine model ($\hat{z}_{k+1} = Az_k + Bu_k + c$) to approximate how the system evolves. This can be a simple linear regression or a more sophisticated Deep Koopman Operator that operates in a learned feature space. Crucially, the authors calculate a worst-case error bound ($\epsilon$) from a hold-out dataset to account for model inaccuracies.
  • Multi-Step Robust Shielding: Standard safety interventions (Control Barrier Functions or CBFs) usually only look one step ahead. This fails in systems where an action's dangerous consequences are delayed (high relative degree). RAMPS enforces safety over a variable prediction horizon ($H$).
  • Robust Tightening: To ensure the shield remains "sound" even with model errors, the framework uses a tightening term that grows as the prediction horizon increases. This mathematically accounts for the accumulation of uncertainty over time.

At every timestep, the system solves a Quadratic Program (QP). It tries to find a safe control sequence that stays as close as possible to the RL agent's original proposed action while strictly satisfying the safety constraints.

Datasets

The authors evaluated RAMPS on three challenging high-dimensional control benchmarks modified for safety:

  • SafeHopper
  • SafeCheetah
  • SafeAnt

These environments are standard in the RL community but are significantly more complex than the low-dimensional "toy" problems often used to showcase formal safety methods.

Key Insights and Ideas

  • Global vs. Local: The "aha moment" here is that a single, globally learned linear representation (especially in a Koopman feature space) is far more scalable than the traditional symbolic approach of "patchworking" local models.
  • The Horizon is Essential: By looking multiple steps ahead ($H$), the shield can intervene much earlier, preventing the agent from entering "regions of no return" where a crash is inevitable regardless of future actions.
  • Co-evolution: The dynamics model and the RL policy improve together. As the agent explores safely under the shield, it collects better data, which is used to retrain the dynamics model and recalibrate error bounds. This reduces the shield's "conservatism" over time, allowing the agent more freedom as the model becomes more certain.

Key Results

RAMPS significantly outperformed state-of-the-art Constrained MDP (CMDP) baselines like SauteRL, CUP, and P3O:

  • Violation Reduction: In the high-dimensional SafeAnt environment, RAMPS reduced total safety violations by 92% compared to the best-performing baseline.
  • Learning to be Safe: Unlike baselines that continued to accumulate violations throughout training, the violation curves for RAMPS flattened out early. This indicates the agent actually learned to operate safely within the shield's boundaries.
  • Performance: RAMPS achieved these safety gains while maintaining or even exceeding the task rewards of the baselines, proving the shield is "minimally invasive."
  • Ablation Study: By replacing the model in a competing method (SPICE) with a Koopman model, the authors showed that the superior performance of RAMPS comes from its specific shielding logic, not just the choice of dynamics model.

Limitations and Future Work

While the results are impressive, the paper notes some areas for further exploration:

  • Linear Constraints: The current formulation relies on polyhedral safe sets (defined by linear inequalities). Extending this to more complex, non-linear safety boundaries would increase its versatility.
  • Model Dependency: The safety guarantee is only as good as the error bound ($\epsilon$). If the environment changes drastically (distribution shift) in a way the model hasn't seen, the "robustness" could be challenged.
  • Computational Overhead: While more scalable than symbolic methods, solving a QP with a multi-step horizon at every timestep still adds computational cost, which might be a factor for ultra-high-frequency control loops.

Summary updated

BibTeX
@inproceedings{ambadkar2026robust,
  author = {Tanmay Ambadkar and Darshan Chudiwal and Greg Anderson and Abhinav Verma},
  title = {{Robust Adaptive Multi-Step Predictive Shielding (Student Abstract)}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i48.42184},
}

Loading related content...

Figure