Introduction
The integration of neural networks (NNs) into safety-critical control systems—such as autonomous vehicles, drones, and medical devices—presents a significant verification challenge. To ensure these systems operate safely, we must provide mathematical guarantees that they will never enter prohibited "unsafe" states. This process, known as reachability analysis, involves determining the set of all possible future states a system can reach starting from a given set of initial conditions.
The Challenge of Reachability
Calculating the exact reachable set for a system controlled by a non-linear neural network is computationally intractable. Consequently, researchers rely on "over-approximations"—geometric containers like boxes or polytopes that are guaranteed to encompass the true reachable set. However, traditional over-approximation methods frequently encounter two major hurdles:
- The Wrapping Effect: Small approximation errors accumulate over successive time steps, causing the estimated safety boundary to expand uncontrollably until it becomes meaningless.
- Shape Mismatch: Using rigid geometric shapes (e.g., axis-aligned boxes) to describe sets that naturally stretch and rotate leads to excessive "empty space" within the approximation, resulting in overly conservative safety bounds.
Methodology
This research introduces a novel framework designed to mitigate these issues through two primary innovations: the construction of an equivalent neural network and the use of adaptive template polytopes.
Equivalent Neural Network Representation
A key insight of this work is the mathematical "unrolling" of the entire feedback loop—comprising both the system dynamics (plant) and the NN controller—into a single, sequential neural network. By treating the closed-loop system as a unified NN, the authors can leverage high-performance formal verification tools like DeepPoly. This approach avoids the geometric complexity typically associated with combining disparate sets at each time step.
Adaptive Template Polytopes
The core innovation lies in the dynamic adaptation of the polytope geometry. Instead of using fixed face directions, the algorithm adjusts the polytope's shape at every time step to better fit the evolving state space:
- SVD-based Adaptation: Singular Value Decomposition (SVD) is applied to the network's weight matrices to identify the directions of maximum expansion and contraction.
- ReLU Awareness: The method accounts for the geometric "cuts" introduced by ReLU activation functions.
- Branch-and-Bound (BnB): To maintain precision, a BnB approach recursively partitions the input space, solving smaller optimization problems to achieve tighter overall bounds.
Experimental Results
The proposed method was evaluated on standard control benchmarks, including a 2D Double Integrator and a 6D Quadrotor model.
The results demonstrate a significant improvement in approximation tightness:
- Superior Precision: In the Double Integrator tests, the adaptive method produced much smaller over-approximations than baseline methods like ReachLP, particularly over long time horizons where other methods' bounds tended to "explode."
- Scalability to Higher Dimensions: On the 6D quadrotor, the adaptive approach successfully maintained tight bounds over 12 time steps. In contrast, competing methods like the uniform partitioner for ReachLP failed to produce a solution within a 27-hour window.
- Computational Efficiency: Despite solving more complex optimization problems to determine adaptive directions, the integration with DeepPoly ensures competitive runtimes.
Conclusion and Future Work
By allowing the geometry of the safety "bubble" to flow and adapt with the system's dynamics, this framework provides a more precise and automated path for verifying NN-controlled systems. While the current approach faces challenges with the "curse of dimensionality" in very high-dimensional spaces, future work aims to explore activation-space branching and extensions to fully non-linear plant dynamics to further enhance scalability and applicability.
Summary updated