Out of the Shadows: Exploring a Latent Space for Neural Network Verification

Lukas Koller, Tobias Ladner, Matthias Althoff

TL;DR

This paper introduces a novel method for neural network verification that prunes the search space by mapping output constraints back to the input space through a "latent space." By treating zonotopes (a common mathematical set representation) as "shadows" of higher-dimensional hypercubes, the authors can efficiently refine input sets to only include regions that could potentially lead to unsafe outputs. This significantly reduces the computational burden of branch-and-bound verification and allows for massive GPU acceleration.

The Challenge of Neural Network Verification

Formally verifying that a neural network is "safe"—for example, ensuring an autonomous car won't decide to steer into a wall due to minor sensor noise—is notoriously difficult. Mathematically, it is an NP-complete problem.

Most current verification tools rely on reachability analysis. They take a set of possible inputs (like a small bounding box around a sensor reading) and "push" it through the network to see if the resulting output set overlaps with a defined "unsafe" region. However, because neural networks are highly non-linear, these output sets are often "over-approximated." The calculated enclosure becomes much larger and more conservative than the actual possible outputs. When this overly conservative enclosure hits an unsafe zone, the verifier cannot tell if the network is truly unsafe or if the math was simply too cautious.

To resolve this, researchers typically use Branch-and-Bound (BaB), splitting the input space into thousands of tiny sub-problems to get tighter approximations. The challenge is that the number of sub-problems can explode exponentially, making verification prohibitively slow or impossible for large networks.

A Geometric Bridge: The Latent Space

The authors propose a technique called Specification-Driven Input Refinement. Their key innovation lies in how they handle the geometry of the sets used in verification.

1. Zonotopes as Shadows

The paper uses zonotopes to represent sets of values. A zonotope is essentially a projection (a "shadow") of a higher-dimensional unit hypercube.

Zonotopes as shadows of higher-dimensional hypercubes.

2. The Latent Space Trick

When you propagate a zonotope through a neural network, the "shadow" changes shape, but the underlying higher-dimensional hypercube (the "latent space") remains mathematically consistent. The authors realized they could use this latent space as a bridge. Because the factors defining the zonotope are invariant during propagation, there is a direct mathematical link between the input and output without needing to "invert" the neural network.

Mapping unsafe output constraints back to the input space via the latent hypercube.

3. Iterative Refinement

By applying "unsafe" constraints from the output space back to the latent space, the authors can "shrink" the input zonotope. Traditional branch-and-bound is "blind"—it splits the space regardless of where the danger actually lies. This new method is "specification-driven," meaning it uses the definition of "unsafe" to guide how the input space is pruned. It cuts away the parts of the input set that are guaranteed to lead to safe outputs, leaving a much smaller "refined" set to check.

4. GPU Acceleration

Unlike many verifiers that rely on complex optimization solvers (like LP solvers), this method uses only matrix operations. This allows the entire process to be hardware-accelerated on GPUs, processing large batches of sub-problems simultaneously.

Key Results and Performance

The authors evaluated their tool (implemented in the CORA toolbox) against top-tier verifiers from the VNN-COMP’24 (International Neural Network Verification Competition), testing on benchmarks like ACAS Xu (collision avoidance), Safenlp, and Collins-rul-cnn.

  • Competitive Performance: The tool achieved results comparable to state-of-the-art verifiers like $\alpha$-$\beta$-CROWN and NeuralSAT, matching the top performance in 4 out of 8 benchmarks.
  • Massive Pruning: On the safenlp benchmark, the input refinement procedure reduced the number of required sub-problems by 65.3%.
  • Speedups: Thanks to GPU acceleration, the tool was up to 90% faster than a CPU-based version. For the acasxu benchmark, the maximum verification time dropped from 32.5s to 15.1s when refinement was enabled.
  • Better Falsification: The same latent space mapping can be used to quickly find counterexamples. Their set-based adversarial attack found 60.3% more counterexamples than the standard Fast Gradient Sign Method (FGSM) within the same iteration limit.

Limitations and Future Work

While highly effective for complex problems, the method has some overhead. For very simple, low-dimensional input spaces, the mathematical cost of calculating the refinement can actually be slower than just performing a naive split. Additionally, while zonotopes are efficient, they remain an approximation. The authors suggest that combining this latent space technique with more complex set representations (like polynomial zonotopes) could further reduce conservatism in the future.

Summary updated

BibTeX
@inproceedings{koller2026out,
  author = {Lukas Koller and Tobias Ladner and Matthias Althoff},
  title = {{Out of the Shadows: Exploring a Latent Space for Neural Network Verification}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=cYSt0KOQDD},
}
Figure