Abstract
Formal verification of neural networks is essential for safety-critical applications but often suffers from computational intractability due to over-approximation and branching explosions. This paper explores a novel approach using the latent space of zonotope representations to refine input sets based on output constraints. By mapping unsafe output regions back to a shared high-dimensional hypercube, the proposed method, CORA, significantly prunes the search space and leverages GPU acceleration for efficient verification.
Introduction
Neural networks are notoriously sensitive to small input perturbations, making them vulnerable to adversarial attacks. To deploy these models in safety-critical domains like aviation or medicine, formal verification is required to mathematically prove that a network will never produce an unsafe output for a given range of inputs.
The standard approach, reachability analysis, involves propagating input sets through the network. However, non-linearities often lead to conservative over-approximations that overlap with unsafe zones even when the actual outputs are safe. Traditional solvers address this by splitting the input space into smaller pieces (Branch-and-Bound), but this often results in an exponential explosion of subproblems.
Specification-Driven Input Refinement
The core innovation of this work is a technique called Specification-Driven Input Refinement, which utilizes the geometric properties of Zonotopes.
The Latent Space Intuition
A zonotope can be mathematically viewed as a projection (a "shadow") of a higher-dimensional hypercube, referred to here as the latent space. As a zonotope propagates through a neural network, its shape and orientation in the output space change, but the underlying latent hypercube remains invariant.
Constraint Transfer and GPU Acceleration
Because both the input set and the output enclosure are projections of the same latent space, unsafe constraints from the output can be mapped directly back to the input space. This allows the verifier to "carve away" safe regions of the input set, focusing only on areas that could potentially lead to a violation. Unlike many state-of-the-art verifiers that rely on CPU-bound Linear Programming (LP) solvers, this method is implemented entirely using matrix operations, enabling massive parallelization and speedup via GPU acceleration.
Experimental Results
The authors evaluated their tool, CORA, against top-ranking verifiers from the VNN-COMP’24 competition across various benchmarks, including ACASXU (aviation), Safenlp (NLP safety), and image classification tasks.
Pruning Efficiency
Instead of blind splitting, the refinement method uses output specifications to prune safe regions. In complex benchmarks like acasxu and safenlp, this reduced the number of subproblems by approximately 60-65%. For instance, in the acasxu benchmark, the average number of subproblems dropped from 1,611 to 651.
Speed and Falsification
GPU acceleration allowed CORA to verify instances up to 90% faster than CPU-only versions. Additionally, the latent space approach proved highly effective for falsification. By identifying counterexamples within the latent space, the tool found 60% more violations in early iterations compared to standard adversarial attack methods like FGSM.
Conclusion and Future Work
While the latent space approach offers significant advantages in high-dimensional spaces, the authors noted diminishing returns in very low-dimensional inputs (e.g., 2D or 5D) where simple splitting is already efficient. Future research will focus on combining this latent space approach with other abstract domains to further tighten output enclosures in very deep network architectures and exploring AI-driven splitting heuristics to replace current manual strategies.
Summary updated