Conformal Safety Shielding for Imperfect-Perception Agents

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

Abstract

Autonomous agents increasingly rely on learned components, such as Deep Neural Networks (DNNs), for perception in high-dimensional environments. However, these "imperfect perception" components are prone to errors that can lead to catastrophic failures when integrated with traditional safety mechanisms. This paper introduces a conformal safety shielding framework that provides rigorous run-time safety guarantees. By utilizing conformal prediction, we generate a set of possible states that contains the true state with a user-specified probability. Our shield restricts agent actions to those that are safe for every state within this predicted set. We demonstrate the effectiveness of this approach through a case study involving an autonomous airplane taxiing system, showing a significant reduction in failure rates while maintaining computational efficiency.

Introduction

Modern autonomous systems, ranging from self-driving cars to robotic assistants, often operate in environments where the exact state of the system is not directly observable. Instead, these agents must infer their state from high-dimensional inputs, such as camera images, using complex neural networks. While DNNs excel at pattern recognition, they lack the formal guarantees required for safety-critical applications. This phenomenon, termed imperfect perception, poses a significant challenge for traditional safety "shields"—runtime monitors that block unsafe actions based on the agent's current state.

Existing shielding techniques typically assume perfect state knowledge. If the perception component provides an incorrect estimate, the shield may inadvertently allow an action that leads to a crash or a violation of safety constraints. This paper addresses this gap by bridging the divide between black-box AI perception and formal safety methods.

Methodology

The Conformal Shielding Pipeline

Our proposed framework consists of a two-stage pipeline designed to handle the uncertainty inherent in neural network outputs:

  1. Conformalization: Rather than relying on a single point estimate from a DNN (e.g., "the aircraft is exactly 1 meter from the centerline"), we apply Conformal Prediction. Using a small calibration dataset, this technique generates a prediction set of possible states. This set is mathematically guaranteed to contain the ground truth with a user-defined confidence level (e.g., $1 - \alpha = 0.99$).
  2. Shielding across Sets: We first synthesize a "perfect-perception shield" using standard Markov Decision Process (MDP) model checking. This shield identifies safe actions for every discrete state in the environment. At runtime, the conformal shield evaluates the prediction set and only permits actions that are deemed safe for every state within that set. If an action is unsafe for even one potential state in the set, it is blocked.

Theoretical Contributions

Beyond the practical framework, we provide a theoretical proof for the global safety of shielded agents over a finite time horizon. This proof bounds the total probability of failure for an entire mission, moving beyond simple step-by-step (local) safety to provide a more comprehensive guarantee for autonomous operations.

Experimental Evaluation

Case Study: Autonomous Airplane Taxiing

We evaluated the framework using a simulated autonomous airplane taxiing task. The agent, a Turtlebot4 robot simulated in the Gazebo environment, was tasked with following a taxiway centerline using an RGB camera feed. The state space was defined by cross-track error (distance from the line) and heading error (angle relative to the line).

Dataset Details: * Total Images: 5,500 high-dimensional RGB captures. * Data Split: 60% for DNN training, 10% for validation, 15% for conformal calibration, and 15% for testing.

Key Results

  • Safety Performance: The conformal shield significantly outperformed baseline models that assumed perfect perception. By accounting for the uncertainty in the DNN's estimates, the system drastically reduced the probability of the agent leaving the taxiway or entering a "fail" state.
  • The Progress Trade-off: We observed a clear tension between safety and progress. As the confidence requirement ($1 - \alpha$) increased, the conformal sets grew larger to maintain the statistical guarantee. While this improved safety, it also increased the likelihood of the agent becoming "stuck"—a state where the shield finds no single action that is safe for all possible states in the set.
  • Computational Efficiency: The framework proved viable for real-time deployment. Model checking for a 30-step horizon was completed in 0.2 to 1.5 seconds, depending on the complexity of the state sets, fitting within the operational requirements of autonomous taxiing.

Discussion and Limitations

While conformal safety shielding provides a robust path forward for AI safety, several challenges remain. Currently, when an agent becomes "stuck" due to an overly large uncertainty set, it simply stops. Future iterations should incorporate "failsafe" behaviors, such as requesting human intervention or executing a recovery maneuver.

Furthermore, the guarantees provided by conformal prediction rely on the assumption that the deployment environment matches the calibration data. Significant distribution shifts—such as drastic changes in lighting or weather—could invalidate the statistical bounds. Finally, while we have proved global safety for perfect-perception shields, extending this formal proof to the imperfect-perception (conformal) case is a primary objective for future research.

Conclusion

Conformal Safety Shielding offers a model-agnostic approach to securing autonomous agents. By treating perception errors as statistical sets rather than point failures, we can provide rigorous safety bounds without needing to model the internal logic of complex neural networks. This work represents a significant step toward the safe deployment of high-dimensional AI in real-world, safety-critical environments.

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},
}
Figure