Runtime Safety through Adaptive Shielding: From Hidden Parameter Inference to Provable Guarantees

Minjae Kwon, Tyler Ingebrand, Ufuk Topcu, Lu Feng
5/20/2025
cs.LGcs.AI

Official code: safe-autonomy-lab/AdaptiveShieldingFE (0 stars, MIT, last commit 2026-02-02). 1 more implementation below.

Abstract

Variations in hidden parameters, such as a robot's mass distribution or friction, pose safety risks during execution. We develop a runtime shielding mechanism for reinforcement learning, building on the formalism of constrained hidden-parameter Markov decision processes. Function encoders enable real-time inference of hidden parameters from observations, allowing the shield and the underlying policy to adapt online. The shield constrains the action space by forecasting future safety risks (such as obstacle proximity) and accounts for uncertainty via conformal prediction. We prove that the proposed mechanism satisfies probabilistic safety guarantees and yields optimal policies among the set of safety-compliant policies. Experiments across diverse environments with varying hidden parameters show that our method significantly reduces safety violations and achieves strong out-of-distribution generalization, while incurring minimal runtime overhead.

View on arXivView PDF

Code Implementations(2)

MIT

Safe RL algorithm for distribution shift. One shot script for train + eval provided.

00HTML, ShellMay 16, 20258 months agoMIT

Project page for 'Runtime Safety through Adaptive Shielding: From Hidden Parameter Inference to Provable Guarantees'

00CSS, HTMLMay 16, 20251 years ago

Similar Papers

Cite this paper

@article{kwon2025runtime,
  title  = {Runtime Safety through Adaptive Shielding: From Hidden Parameter Inference to Provable Guarantees},
  author = {Minjae Kwon and Tyler Ingebrand and Ufuk Topcu and Lu Feng},
  year   = {2025},
  eprint = {2506.11033},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.11033v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.11033.svg)](https://codeofpaper.com/paper/2506.11033)

Discussion