Guaranteed Reach-Avoid for Black-Box Systems through Narrow Gaps via Neural Network Reachability

Long Kiu Chung, Wonsuhk Jung, Srivatsank Pullabhotla, Parth Shinde, Yadu Sunil, Saihari Kota, Luis Felipe Wolf Batista, Cédric Pradalier, Shreyas KousikarXiv 2024

TL;DR

NeuralPARC provides formal safety and goal-reaching guarantees for "black-box" robotic systems navigating narrow gaps without requiring analytical physics models. By combining ReLU neural networks with Reachable Polyhedral Marching, it extracts provably safe trajectories for highly complex, non-linear behaviors like aggressive vehicle drifting and deep reinforcement learning policies under heavy disturbance.

What Problem Does This Paper Address?

Autonomous robots are frequently tasked with "reach-avoid" problems—navigating to a destination while steering clear of obstacles. This task becomes exceptionally difficult when obstacles form narrow gaps, leaving very little margin for error.

Traditional safety verification methods rely on precise analytical models of a robot's dynamics. However, many real-world systems (such as a car drifting at its physical limits or an autonomous boat fighting unpredictable water currents) are "black boxes." Their exact physics are too complex to write down as equations, even though collecting data from simulations or real-world trials is cheap and easy.

Prior safety verification methods either required hand-crafted trajectory models or were too conservative, failing to find any viable paths through tight spaces. This paper addresses the challenge of providing mathematically rigorous safety guarantees for these unmodeled, data-driven systems.

Methods

The authors introduce NeuralPARC (Neural Piecewise Affine Reach-avoid Computation), a framework that splits the problem into offline learning and online verification:

  1. Offline Learning: The system collects trajectory data from the black-box robot. It trains a Rectified Linear Unit (ReLU) neural network to approximate these trajectories based on control parameters. Crucially, because ReLU activations are piecewise linear, the entire trained neural network can be represented as a Piecewise Affine (PWA) system—a collection of distinct linear regions. The authors also calculate a worst-case modeling error bound by comparing the network's predictions against actual system rollouts.
  2. Online Verification: NeuralPARC uses an algorithm called Reachable Polyhedral Marching (RPM) to systematically explore the PWA regions of the trained network. It computes the Backward Reach-Avoid Set (BRAS)—the exact set of initial states and parameters guaranteed to safely guide the robot through the gap to the goal while accounting for the calculated modeling error.

Unlike its predecessor (PARC), NeuralPARC does not require a human expert to hand-craft the trajectory models or provide a baseline "nominal" plan; it explores the network's entire dynamic capabilities automatically.

NeuralPARC Flowchart and Overview

Datasets

The method was evaluated using two challenging black-box control scenarios:

  • Extreme Drift Parking: A dataset of 10,000 trajectories generated by uniformly sampling initial velocities and braking angles for a vehicle executing aggressive parallel parking drifts. This was tested in simulation and deployed on a physical F1/10 robotic car.
  • Deep RL Autonomous Surface Vehicle (ASV): A dataset of 5,000 trajectories collected from a deep reinforcement learning agent trained in Isaac Gym. The ASV had to navigate a narrow gap while subjected to large random disturbances in mass, force, torque, and velocity.

Key Insights and Ideas

  • Leveraging ReLU Structure for Formal Verification: The core "aha moment" is exploiting the mathematical structure of ReLU neural networks. Because they are implicitly Piecewise Affine, researchers can use exact geometric tools (like H-polytopes and linear programming) to formally verify a deep learning model's safety.
  • The Network Size Paradox: Intuitively, larger neural networks should be harder to verify because they create more PWA regions to analyze. However, the authors discovered that larger networks reduce modeling error so significantly that the volume of the safe set (BRAS) expands. This actually makes finding a safe trajectory faster with a larger network.
  • Policy Agnostic: NeuralPARC does not care how trajectories are generated—whether via traditional control, human demonstration, or an uninterpretable Deep RL policy. It wraps around the black box and provides safety certificates regardless.

Key Results

  • Outperforming the Baseline: In comparative tests, the original PARC method failed completely to find safe trajectories because its hand-crafted modeling error bounds were too conservative to fit through narrow gaps. NeuralPARC successfully identified safe initial states and parameters across all test cases.
  • Hardware Validation: On physical F1/10 hardware, the robotic car successfully executed extreme drift parking maneuvers repeatedly without a single collision.
  • Robustness to Disturbance: For the Deep RL ASV agent under heavy disturbances, NeuralPARC successfully verified safe trajectories where the error bounds just barely skirted the obstacles, ensuring both safety (avoiding obstacles) and liveness (reaching the goal).
Fig. 2: 100 samples of (left) the drift parking vehicle and (right) the ASV from NeuralPARC using a network of depth 5 and width 8 for each hidden layer. The yellow tubes are the modeling error bounds buffered onto NeuralPARC’s predicted trajectories (dashed lines). All actual trajectories (solid lines) reach the green goal and avoid the red obstacles buffered with the agent’s circular volume.

Limitations and Future Work

  • Seed Dependency: Because RPM explores PWA regions neighbor-by-neighbor, if the initial randomized search seed is far from a safe region, the computation time can be long. The authors suggest using fast, non-guaranteed planning methods to provide a "warm start" seed for real-time applications.
  • Data Dependency for Error Bounds: The validity of the safety guarantees relies heavily on having enough offline samples to accurately bound the worst-case modeling error. If the real-world error exceeds the estimated bound, safety guarantees could break. Future work will explore online error-bound updating and fine-tuning.

Summary updated

BibTeX
@misc{chung2024guaranteed,
  author = {Long Kiu Chung and Wonsuhk Jung and Srivatsank Pullabhotla and Parth Shinde and Yadu Sunil and Saihari Kota and Luis Felipe Wolf Batista and Cédric Pradalier and Shreyas Kousik},
  title = {{Guaranteed Reach-Avoid for Black-Box Systems through Narrow Gaps via Neural Network Reachability}},
  year = {2024},
  eprint = {2409.13195},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.13195},
}
Figure