Geometric Path Enumeration for Equivalence Verification of Neural Networks

Samuel Teuber, Marko Kleine Büning, Philipp Kern, Carsten Sinz

Introduction

As neural networks (NNs) are increasingly deployed in safety-critical domains such as autonomous driving and collision avoidance, empirical validation is no longer sufficient. Formal guarantees are required to ensure system reliability. A critical challenge in this space is equivalence verification: proving that two different NNs—for instance, an original high-capacity model and its compressed counterpart—produce nearly identical outputs for the same inputs. This is essential for ensuring that model compression or optimization does not introduce dangerous edge-case behaviors.

Methodology: Geometric Path Enumeration

The authors propose a novel approach based on Geometric Path Enumeration (GPE). Unlike point-wise testing, GPE propagates sets of inputs, represented as geometric shapes like zonotopes or star sets, through the network layers.

The core technical contributions include:

  1. Sequential Propagation: Instead of merging two networks into a single complex structure, the tool propagates input sets through the first network, captures the resulting constraints, and then feeds these constrained sets into the second network. This approach preserves point-wise correspondence between models.
  2. Formal Complexity: The paper proves that determining $\epsilon$-equivalence (where outputs differ by less than $\epsilon$) is a coNP-complete problem.
  3. Optimizations and Heuristics: To manage the search space, the authors utilize zonotope over-approximations and LP approximations. A key innovation is the NNEQUIV-L heuristic, which predicts required search depths based on previous paths, effectively mitigating the "ghost split" problem—logic branches that are artifacts of approximation rather than real network behavior.

Experimental Evaluation

The tool, NNEQUIV, was evaluated on two primary benchmarks:

  • ACAS Xu: A standard for airborne collision avoidance, using retrained and student-teacher network pairs.
  • Modified MNIST: Digit classification on 8x8 images, testing various compression levels and structural differences.

Key Results

NNEQUIV-L demonstrates significant performance gains over existing state-of-the-art tools. It is particularly robust when handling very tight equivalence bounds ($\epsilon \leq 0.05$), where it often outperforms competitors by an order of magnitude.

Solving time vs. proven ε for ACAS Xu networks, showing NNEquiv's efficiency at tight bounds.

In head-to-head comparisons on the ACAS Xu benchmark, NNEQUIV-L was significantly faster than MILPEQUIV, which timed out on three out of the four tested scenarios.

Benchmark results comparing NNEQUIV-L and MILPEQUIV on ACAS Xu and MNIST datasets.

Beyond proving equivalence, the tool excels at identifying discrepancies. In a test suite of 900 non-equivalent instances, NNEQUIV-L successfully identified 890 counterexamples, whereas MILPEQUIV found only 315.

Insights and Limitations

A major advantage of this approach is its structural independence. Unlike tools such as RELUDIFF, NNEQUIV does not require networks to have similar architectures, treating them as black boxes sharing an input space.

However, challenges remain:

  • Scalability: While highly effective for low-dimensional inputs (e.g., ACAS Xu with 5 inputs), performance degrades on higher-dimensional data like MNIST (64 inputs) due to linear programming bottlenecks.
  • Numerical Stability: Reliance on floating-point arithmetic in solvers can occasionally impact precision.
  • Parallelization: The current single-threaded implementation offers a clear path for future acceleration via GPU or multi-core processing.

Summary updated

BibTeX
@inproceedings{teuber2021geometric,
  author = {Samuel Teuber and Marko Kleine Büning and Philipp Kern and Carsten Sinz},
  title = {{Geometric Path Enumeration for Equivalence Verification of Neural Networks}},
  booktitle = {ICTAI},
  year = {2021},
  doi = {10.1109/ictai52525.2021.00035},
}
Figure