NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Reachability Analysis for Feed-Forward Neural Networks using Face Lattices

Xiaodong Yang, Hoang-Dung Tran, Weiming Xiang, Taylor T. JohnsonarXiv 2020

TL;DR

This paper introduces a novel, parallelizable method for precisely calculating the "reachable sets" of feed-forward neural networks with ReLU activations. By leveraging a "face lattice" structure to represent polytopes, their approach significantly improves efficiency and provides a complete understanding of network behavior, enabling better safety verification.

What Problem Does This Paper Address?

As deep neural networks (DNNs) become increasingly integrated into safety-critical systems like autonomous vehicles and medical robots, ensuring their reliable and safe behavior is paramount. A major hurdle is the lack of formal methods to guarantee the safety of DNNs. While existing techniques can over-approximate a network's output range, they often lack completeness, meaning they might miss potential safety violations. Computing the exact reachable sets of a neural network for a given input set is crucial for robust safety verification, but this is computationally challenging, especially when dealing with the piecewise-linear nature of ReLU activation functions. Specifically, efficiently handling the intersections of intermediate geometric shapes (polytopes) with the hyperplanes defined by neurons is a key bottleneck.

Methods

The authors propose a new approach for exact reachability analysis of feed-forward neural networks with ReLU activations. Their core innovation lies in using a face lattice to represent and manipulate polytopes.

  • Face Lattice: This is a combinatorial structure that completely encodes the geometric information of a polytope, including the relationships between its faces (vertices, edges, facets, etc.). This structured representation helps in efficiently managing the complex geometric operations involved.
  • Polytope Operations: The method handles three fundamental operations: affine transformations (due to weights and biases), intersections with hyperplanes (from ReLU activations), and projections. The face lattice is key to efficiently performing these operations.
  • Intersection Handling: Instead of relying on computationally expensive vertex enumeration or facet enumeration, their method leverages the face lattice to determine intersections. They analyze the distribution of polytope vertices relative to a hyperplane.
  • Parallelization: The approach is designed to be parallelizable, allowing computations for different neurons or layers to be performed concurrently, further boosting efficiency.
  • Mapping Back to Input: A significant advantage is the ability to trace safety violations back to the original input space, providing a complete understanding of which inputs lead to unsafe outputs.

Datasets

The paper evaluates its method on:

  • ACAS Xu networks: A set of 45 fully-connected DNNs used for aircraft collision avoidance advisories. These networks have 5 inputs, 5 outputs, and 6 hidden layers, with 50 neurons per layer.
  • Microbenchmarks: A set of networks from two sources: some trained on analytical functions (N2-N4) and others from unwound closed-loop controllers and plant models (N11-N14).

Key Insights and Ideas

  • Face Lattice as a Game Changer: Representing polytopes with face lattices provides a structured and efficient way to manage the complex geometric transformations and intersections inherent in neural network reachability analysis. This is a departure from traditional H-representation or V-representation methods.
  • Efficiency Through Structure: By avoiding costly vertex/facet enumeration and leveraging the combinatorial structure of the face lattice, the proposed method achieves significantly higher efficiency compared to existing state-of-the-art tools.
  • Completeness and Traceability: The method computes exact reachable sets, not just over-approximations. This completeness, combined with the ability to map unsafe outputs back to specific input regions (polytopes), offers a much deeper understanding of network behavior and potential failure modes.
  • Reusability of Reachable Sets: The computed exact reachable sets for a layer can be reused for analyzing different safety properties, saving computation time.

Key Results

  • Efficiency Gains: The proposed "Face Lattice" method demonstrates significantly higher efficiency compared to established tools like Reluplex, Marabou, and NNV on the ACAS Xu benchmarks and microbenchmarks. For instance, on ACAS Xu Property 1, their method completed in 31312 seconds, while Reluplex took over 462208 seconds.
  • Consistent Performance: Unlike some other methods that show inconsistent performance across different properties or networks, the Face Lattice approach exhibits more stable and consistent efficiency.
  • Correctness: The method's correctness is validated by its ability to verify safety properties on the ACAS Xu networks and other benchmarks.
  • Visualization: The approach allows for visualization of exact reachable sets, aiding in intuitive inspection of network behavior.
  • Input Traceability: The method can identify specific input polytopes that lead to property violations, as demonstrated with network N1_2 violating Property 2, which was found to be a union of 104 polytopes.

Limitations and Future Work

  • Complexity for High Dimensions: The paper notes that face lattices can become complicated for high-dimensional polytopes, suggesting a need for more concise representations in the future.
  • Extending to CNNs: The current method focuses on feed-forward neural networks. The authors plan to extend their approach to convolutional neural networks (CNNs).
  • Detecting Redundant Polytopes: Future work could involve detecting and ignoring redundant polytopes in the input set to further reduce computation burden.
  • Library of Reachable Sets: The authors suggest partitioning wide-range inputs into smaller subsets and building a library of their reachable sets for faster analysis.

Summary updated

BibTeX
@misc{yang2020reachability,
  author = {Xiaodong Yang and Hoang-Dung Tran and Weiming Xiang and Taylor T. Johnson},
  title = {{Reachability Analysis for Feed-Forward Neural Networks using Face Lattices}},
  year = {2020},
  eprint = {2003.01226},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.01226},
}
Figure