Learning Vision-Based Neural Network Controllers with Semi-Probabilistic Safety Guarantees

Xinhang Ma, Junlin Wu, Hussein Sibai, Yiannis Kantaros, Yevgeniy VorobeychikarXiv 2025 · DOI

Introduction

Ensuring the safety of autonomous systems, such as self-driving cars or drones, is a critical challenge when these systems rely on vision-based control. Traditional formal verification methods like reachability analysis struggle with the high dimensionality of image inputs and the lack of a clear "physics of pixels" to map states to images. This paper introduces SPVT (Semi-Probabilistic Verification and Training), a framework that provides formal safety guarantees for vision-based neural network controllers by bridging the gap between low-dimensional system states and high-dimensional image inputs using generative models.

Methodology

The SPVT framework consists of three core components designed to enable scalable reachability analysis and safety-prioritized training.

Generative Proxy Models

To handle high-dimensional image data, the authors employ a Conditional Generative Adversarial Network (cGAN) as a proxy for the camera. The cGAN maps low-dimensional states (e.g., lane position) and a small latent vector (representing environmental noise) into synthetic images. This transformation allows verification to occur within a manageable, lower-dimensional latent space rather than raw pixel space.

Comparison of original and cGAN-generated images in the physical minicity environment.

Semi-Probabilistic Verification (SPV)

The framework provides "semi-probabilistic" guarantees: it offers probabilistic bounds over the distribution of initial starting states while maintaining deterministic guarantees over environmental variations. This ensures the controller remains safe for the worst-case visual environment representable by the generative model.

Safety-Aware Training

Verification is integrated into the training process through a differentiable safety loss (using $\alpha, \beta$-CROWN), adaptive data sampling to prioritize "hard" states, and curriculum learning that gradually increases the safety horizon.

Experimental Evaluation

SPVT was evaluated across four diverse environments: X-Plane 11 (aircraft taxiing), CARLA (lane following), F1Tenth (physical 1:10 scale racing), and Airsim (drone obstacle avoidance). For the physical F1Tenth car, a generator was fine-tuned using only 400 real-world images, demonstrating the framework's robustness to sim-to-real gaps.

Key Results

The experimental results highlight SPVT's superior performance in maintaining safety guarantees compared to existing methods.

Lower-bound safety probability across different horizons (K) for various environments. SPVT (Ours) consistently maintains higher safety bounds than baselines.
  • Superior Safety Bounds: In CARLA lane-following, SPVT maintained high safety probability over long horizons ($K=20$), whereas baselines like VSRL or SAC-RCBF collapsed much earlier.
  • Scalability: SPVT successfully scaled to the high-dimensional drone navigation task in Airsim, where other formal methods failed.
  • Performance Maintenance: The framework avoids the "frozen robot" problem, maintaining empirical performance comparable to standard unsafe controllers while providing formal guarantees.

Discussion and Limitations

While SPVT represents a significant step forward, several challenges remain. The current system is limited to low-resolution grayscale images and small latent dimensions. Furthermore, the safety guarantees are dependent on the fidelity of the generative proxy model; if the GAN fails to represent certain real-world conditions, the formal guarantees may not hold. Future work will explore scaling to high-definition color video and multi-modal sensing.

Summary updated

BibTeX
@misc{ma2025learning,
  author = {Xinhang Ma and Junlin Wu and Hussein Sibai and Yiannis Kantaros and Yevgeniy Vorobeychik},
  title = {{Learning Vision-Based Neural Network Controllers with Semi-Probabilistic Safety Guarantees}},
  year = {2025},
  eprint = {2503.00191},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.00191},
}
Figure