Affine-Image Propagation for Tight and Scalable Neural Network Verification

Hong-Ming Chiu, Haoyu Li, Huan Zhang, Richard Y. Zhang

TL;DR

Verifying that a neural network is robust to Euclidean ($\ell_2$) perturbations is notoriously difficult because standard math tools prefer "boxy" approximations that don't fit "round" data well. This paper introduces affine-image SDP-CROWN, a method that uses "tilted" geometric shapes to track how uncertainty propagates through a network, combined with a clever mathematical shortcut (scaled diagonal-dominance) that makes this high-precision verification fast enough to run on a GPU.

What Problem Does This Paper Address?

Imagine you have a self-driving car's vision system. You want a mathematical guarantee that if you slightly nudge the pixels of an image (within some distance $\epsilon$), the car won't suddenly mistake a "Stop" sign for a "Go" sign. This is neural network verification.

When that "nudge" is measured by Euclidean distance ($\ell_2$ norm), things get messy. Most efficient verification methods (like $\alpha$-CROWN) approximate the set of possible neuron activations using simple boxes. But as a "ball" of uncertainty passes through the network's linear layers, it gets stretched and rotated into an ellipsoid. Fitting a box around a tilted ellipsoid is like putting a round peg in a square hole—you end up with a lot of "empty space" (geometric loss), which makes your safety guarantees much weaker.

Previous attempts to fix this used Semidefinite Programming (SDP), which is great for "round" geometry but painfully slow. Consequently, tight $\ell_2$ verification was mostly limited to specially trained, "smooth" (Lipschitz-regularized) networks. This paper aims to bring high-precision $\ell_2$ verification to any standard network without the massive computational overhead.

Methods

The authors introduce two main innovations to bridge the gap between tightness and scalability:

  1. Affine-Image Constraints: Instead of just using boxes or axis-aligned ellipsoids, they track the affine image of the uncertainty set from the previous layer. This means they keep track of the stretching and rotation, preserving the correlations between different neurons.
  2. Scaled Diagonal-Dominance (SDD): The "gold standard" for these geometric constraints is a Semidefinite constraint, but checking it is computationally expensive. The authors replace it with a "sufficient condition" called scaled diagonal-dominance. This is a mathematical shortcut that is much easier to compute and, crucially, can be parallelized on a GPU.

They integrate these ideas into the CROWN framework, which propagates linear bounds backward through the network. By jointly optimizing the slopes of these bounds to fit their new, tighter "tilted" domains, they significantly reduce both geometric and functional loss.

Figure 1: Geometric and functional loss in bound propagation. (a) α-CROWN incurs geometric loss by enclosing the affine image in a box. (b) Prior SDP-CROWN reduces this loss by intersecting the box with an axis-aligned ellipsoid. Our method retains the affine image, avoiding this source of geometric loss. (c) In this example, the linear upper bound with inherited slope g(α) = z/(z −z) cannot be tightened even though SDP-CROWN has a smaller feasible region. (d) We allow the slope g to be optimized, allowing it to exploit the smaller feasible region.

Datasets

The method was evaluated on standard image classification benchmarks:

  • MNIST: Hand-written digit recognition.
  • CIFAR-10: Small color images of 10 different classes.

The researchers specifically tested on non-Lipschitz-regularized networks—the "wild" networks that are usually the hardest to verify because they aren't forced to be mathematically well-behaved during training.

Key Insights and Ideas

  • Round Pegs, Round Holes: By using affine images, the method captures the very first layer's uncertainty domain exactly. In later layers, it inherits some error, but it's far less than the "box" approach.
  • Exploiting Sparsity: For convolutional layers, the interaction between neurons is sparse (neurons only "talk" to their neighbors). The authors' GPU implementation exploits this sparsity to calculate the SDD conditions without ever forming the massive, dense matrices that usually kill performance.
  • Optimization is Key: It’s not enough to have a tighter shape; you have to re-tune your linear approximations to take advantage of it. The paper shows that jointly optimizing the bound parameters ($g$ and $\lambda$) is what really moves the needle.

Key Results

The improvements are substantial, especially on the "hard" networks where previous methods struggled:

  • Verified Accuracy: On five non-regularized networks, the method improved verified accuracy by 17% to 57.5% over the previous state-of-the-art.
  • With Branch-and-Bound: When combined with search techniques (BaB), these gains jumped to 27% to 63.5%.
  • Efficiency: Despite the more complex math, the GPU-accelerated implementation remains scalable, often outperforming slower "strong" verifiers while providing much tighter bounds.

Limitations and Future Work

  • ReLU Only: The current implementation is tailored for ReLU activation functions. Extending this to other activations (like Sigmoid or Tanh) is left for future work.
  • Layer-wise Error: While much better than boxes, the affine-image representation still inherits approximation errors from previous layers. The authors suggest that looking at multiple layers simultaneously could further tighten the bounds.
  • Weight Matrix Dependency: The implementation uses the layer's weight matrix $W$ directly; if $W$ is extremely large and dense, the computational benefits of the sparse GPU implementation might diminish.

Summary updated

Abstract

While bound propagation methods are highly effective for certifying neural networks against $\ell_{\infty}$ adversaries, tight and scalable verification for $\ell_{2}$ adversaries remains a significant open challenge. Existing methods incur geometric loss by enclosing preactivation sets in elementwise intervals or axis-aligned ellipsoids, and functional loss by restricting the linear bounds constructed over those domains. Consequently, tight $\ell_{2}$ verification is currently restricted to Lipschitz-regularized networks where these approximations are accurate. In this paper, we introduce affine-image SDP-CROWN, a novel bound propagation method that better approximates preactivation domains using affine-image constraints and jointly optimizes the linear bound to adapt to the resulting domain. To bypass the prohibitive computational cost of dense semidefinite constraints required by the affine-image representation, we replace them with scaled diagonal-dominance conditions, allowing a GPU-accelerated implementation. Our method preserves the bound propagation recursion and can be integrated with branch-and-bound. On five MNIST and CIFAR-10 non-Lipschitz-regularized networks, our method improves verified accuracy over state-of-the-art methods by 17% to 57.5%. With branch-and-bound, these improvements increase to between 27% and 63.5%.
BibTeX
@inproceedings{chiu2026affine,
  author = {Hong-Ming Chiu and Haoyu Li and Huan Zhang and Richard Y. Zhang},
  title = {{Affine-Image Propagation for Tight and Scalable Neural Network Verification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=jJKsS0Cmjn},
}
Figure