Skip to main content
QUICK REVIEW

[Paper Review] ShieldNN: A Provably Safe NN Filter for Unsafe NN Controllers

James Ferlez, Mahmoud Elnaggar|arXiv (Cornell University)|Jun 16, 2020
Adversarial Robustness in Machine LearningComputer Science28 references16 citations
TL;DR

ShieldNN is a provably safe, ReLU-based neural network filter that corrects unsafe control inputs from any memoryless controller for autonomous vehicles modeled by the Kinematic Bicycle Model (KBM). By leveraging a novel barrier function and real-time filtering, ShieldNN reduces obstacle collisions by 99.4–100% in CARLA simulations and improves sample efficiency during deep reinforcement learning training by 28% when integrated during training.

ABSTRACT

In this paper, we develop a novel closed-form Control Barrier Function (CBF) and associated controller shield for the Kinematic Bicycle Model (KBM) with respect to obstacle avoidance. The proposed CBF and shield -- designed by an algorithm we call ShieldNN -- provide two crucial advantages over existing methodologies. First, ShieldNN considers steering and velocity constraints directly with the non-affine KBM dynamics; this is in contrast to more general methods, which typically consider only affine dynamics and do not guarantee invariance properties under control constraints. Second, ShieldNN provides a closed-form set of safe controls for each state unlike more general methods, which typically rely on optimization algorithms to generate a single instantaneous for each state. Together, these advantages make ShieldNN uniquely suited as an efficient Multi-Obstacle Safe Actions (i.e. multiple-barrier-function shielding) during training time of a Reinforcement Learning (RL) enabled Neural Network controller. We show via experiments that ShieldNN dramatically increases the completion rate of RL training episodes in the presence of multiple obstacles, thus establishing the value of ShieldNN in training RL-based controllers.

Motivation & Objective

  • To develop a controller-agnostic safety filter that ensures provable safety for any memoryless neural network controller in autonomous vehicles.
  • To address the lack of provable safety guarantees in data-trained controllers, especially in deep reinforcement learning (DRL) settings.
  • To improve sample efficiency during DRL training by integrating a safety filter that prevents unsafe state visits.
  • To validate the safety and robustness of the filter in simulated environments with dynamic obstacles.
  • To design a novel class of barrier functions tailored for the Kinematic Bicycle Model (KBM) dynamics.

Proposed method

  • ShieldNN employs a novel class of barrier functions with three real-valued parameters (including safety radius) to define a safe control set for the KBM.
  • The method consists of two components: a verifier that soundly validates a chosen barrier function, and a synthesizer that designs the safety-filter neural network.
  • The safety filter is a ReLU-based neural network that takes the controller’s raw control input and system state as input, and outputs a safe control action.
  • Unsafe control actions are filtered out and replaced with safe alternatives, while safe actions are passed through unchanged.
  • The filter is trained to ensure that the closed-loop system remains within the safe set defined by the barrier function.
  • The framework is integrated into a CARLA simulation environment with a PPO agent using camera and LIDAR-derived state inputs.

Experimental results

Research questions

  • RQ1Can a neural network filter be designed to provably ensure safety for any arbitrary controller in a kinematic bicycle model?
  • RQ2How effective is ShieldNN in reducing collisions with obstacles in autonomous vehicle control scenarios?
  • RQ3Does integrating ShieldNN during DRL training improve sample efficiency compared to training without safety filtering?
  • RQ4How robust is ShieldNN when deployed in novel environments with distribution shift?
  • RQ5Can a novel barrier function be constructed for the KBM that enables provable safety guarantees in a learning-based control context?

Key findings

  • ShieldNN reduced the number of obstacle collisions by 99.4% to 100% in CARLA simulations with DRL-trained controllers.
  • When ShieldNN was not used during training, the agent achieved 28% less cumulative reward over the same number of episodes, indicating improved sample efficiency with the filter.
  • In a transfer learning scenario on a novel city road environment, the agent with ShieldNN enabled successfully avoided obstacles across 200 test episodes, demonstrating robust generalization.
  • The agent using ShieldNN exhibited more conservative behavior in obstacle avoidance, suggesting enhanced safety margins.
  • The verifier correctly validated the barrier function for the KBM, enabling sound safety guarantees for the filter design.
  • The integration of ShieldNN as a safety filter did not compromise the controller’s performance on safe trajectories, preserving intended behavior.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.