Conformal Safety Shielding for Imperfect-Perception Agents

William Scarbro, Calum Imrie, Sinem Getir Yaman, Kavan Fatehi, Corina S. Pasareanu, Radu Calinescu, Ravi Mangal

TL;DR

This paper introduces Conformal Safety Shielding, a novel framework that provides rigorous safety guarantees for autonomous agents that rely on "imperfect" neural network perception. By combining formal shielding techniques with conformal prediction, the authors ensure that an agent only takes actions that are safe across a statistically guaranteed set of possible states, effectively bridging the gap between black-box AI and formal safety methods.

What Problem Does This Paper Address?

Modern autonomous systems (like self-driving cars or taxiing aircraft) often use Deep Neural Networks (DNNs) to "perceive" their environment—for example, estimating their position on a runway from a camera feed. However, DNNs are notoriously prone to errors, a phenomenon the authors call imperfect perception.

Traditional safety methods use a "shield"—a runtime monitor that blocks unsafe actions. The problem is that most existing shields assume the agent knows its exact state. If the perception is wrong, the shield might allow a catastrophic action based on a false premise. While some methods attempt to model sensor noise mathematically, doing so for high-dimensional inputs like images is often impossible. This paper seeks a way to provide safety guarantees without needing a perfect mathematical model of the camera or the neural network’s internal logic.

Methods

The authors propose a two-stage pipeline:

  1. Conformalization: Instead of asking a DNN for a single state estimate (e.g., "I am exactly 1 meter off-center"), they use Conformal Prediction. This technique produces a set of possible states. Based on a small calibration dataset, this set is mathematically guaranteed to contain the true state with a user-defined probability (e.g., 99%).
  2. Shielding across Sets: The authors first synthesize a "perfect-perception shield" using standard Markov Decision Process (MDP) model checking. Then, they "conformalize" it: the agent is only allowed to take an action if that action is deemed safe for every single state in the predicted conformal set.

Additionally, the paper provides a new theoretical contribution: a proof for the global safety of shielded agents over a finite time horizon, bounding the total probability of failure for the entire mission.

Datasets

The researchers evaluated their approach using a simulated Autonomous Airplane Taxiing case study:

  • Environment: A Turtlebot4 robot simulated in Gazebo, tasked with following a centerline on a taxiway using an RGB camera.
  • Data: A dataset of 5,500 images capturing various positions (cross-track error) and angles (heading error).
  • Split: 60% for training the perception DNN, 10% for validation, 15% for the conformal calibration (crucial for the safety guarantees), and 15% for testing.

Key Insights and Ideas

  • Model-Agnostic Safety: The beauty of using conformal prediction is that you don't need to model why the DNN fails or the physics of the camera. You only need a representative calibration dataset to establish the statistical bounds.
  • The "Stuck" Trade-off: A major insight is the tension between safety and progress. As you demand higher confidence (a higher safety probability), the conformal set grows larger. Eventually, the set might become so large that the shield finds no action that is safe for every possibility, causing the agent to become "stuck."
  • Local vs. Global: While the shield provides "local" safety (the next step is safe), the authors emphasize that global safety (the whole path is safe) is the ultimate goal. They show that even with perfect perception, shields can lead agents into "stuck" states depending on the environment's topology.

Key Results

  • Failure Reduction: The conformal shield significantly outperformed baseline models that assumed perfect perception, drastically reducing the probability of the agent reaching a "fail" state (crashing or leaving the taxiway).
  • Parameter Sensitivity: Increasing the confidence level ($\alpha'$) from 0.95 to 0.995 successfully lowered failure rates but predictably increased the probability of the agent getting stuck.
  • Efficiency: The framework is computationally viable for real-time use. Model checking for a 30-step horizon took between 0.2 and 1.5 seconds, depending on the complexity of the state sets.

Limitations and Future Work

  • Handling "Stuck" States: Currently, when the shield finds no safe action, the agent simply stops. Future work is needed to integrate "failsafe" behaviors, such as handing control back to a human or taking a new sensor reading.
  • Distribution Shift: Conformal guarantees rely on the assumption that the deployment environment matches the calibration data. If the lighting or weather changes drastically, the safety guarantees may no longer hold.
  • Global Proof for Imperfect Perception: While the authors proved global safety for perfect-perception shields, extending this formal proof to the imperfect (conformal) case remains a goal for future research.

Summary updated

Abstract

We consider the problem of safe control in discrete autonomous agents that use learned components for imperfect perception (or more generally, state estimation) from high-dimensional observations. We propose a shield construction that provides run-time safety guarantees under perception errors by restricting the actions available to an agent, modeled as a Markov decision process, as a function of the state estimates. Our construction uses conformal prediction for the perception component, which guarantees that for each observation, the predicted set of estimates includes the actual state with a user-specified probability. The shield allows an action only if it is allowed for all the estimates in the predicted set, resulting in local safety. We also articulate and prove a global safety property of existing shield constructions for perfect-perception agents bounding the probability of reaching unsafe states if the agent always chooses actions prescribed by the shield. We illustrate our approach with a case-study of an experimental autonomous system that guides airplanes on taxiways using high-dimensional perception DNNs.
BibTeX
@inproceedings{scarbro2025conformal,
  author = {William Scarbro and Calum Imrie and Sinem Getir Yaman and Kavan Fatehi and Corina S. Pasareanu and Radu Calinescu and Ravi Mangal},
  title = {{Conformal Safety Shielding for Imperfect-Perception Agents}},
  booktitle = {RV},
  year = {2025},
  url = {https://openreview.net/forum?id=fQG7JaKviw},
}

Loading related content...

Figure