Zonotope Domains for Lagrangian Neural Network Verification

Matt Jordan, Jonathan Hayase, Alexandros G. Dimakis, Sewoong Oh

TL;DR

The paper introduces ZonoDual, a novel neural network verification framework that combines the strengths of primal abstract domains (zonotopes) and dual optimization (Lagrangian decomposition). By breaking down deep network verification into manageable 2-layer subproblems and relaxing them via coordinate partitioning, ZonoDual delivers provably tighter output bounds than existing linear programming and Lagrangian methods while remaining highly scalable.

What Problem Does This Paper Address?

Deep neural networks are notoriously vulnerable to adversarial examples, where tiny, imperceptible changes to an input can drastically alter the network's output. Neural network verification aims to combat this by providing mathematical guarantees (lower bounds) on a network's output for a given range of perturbed inputs.

Existing incomplete verification approaches generally fall into two camps:

  1. Primal methods use abstract geometric shapes (like hyperboxes or zonotopes) to track how input perturbations propagate through layers. While zonotopes capture dependencies between neurons well, these methods don't optimize directly for the specific verification objective.
  2. Dual methods frame verification as an optimization problem and use Lagrangian relaxation to decompose it. However, existing dual methods rely on axis-aligned hyperboxes for intermediate layers, treating neurons completely independently and losing critical interaction data.

The authors address this gap by incorporating zonotopes directly into a Lagrangian decomposition framework, preserving neuron dependencies during optimization to achieve much tighter bounds.

Methods

The authors propose ZonoDual, which operates in three main phases:

  1. Initialization: Computes intermediate zonotope bounds using an enhanced version of DeepZ combined with interval bound propagation (IBP) to restrict the feasible space.
  2. Iteration Phase: Evaluating a Lagrangian subproblem over a full zonotope is a "ReLU program," which is NP-hard (equivalent to verifying a 2-layer network). To make this tractable, ZonoDual introduces Zonotope Partitioning—splitting the high-dimensional zonotope into 2D chunks. Solving a 2D ReLU program can be done analytically in $O(m \log m)$ time, making it highly amenable to fast, GPU-accelerated dual ascent using the Adam optimizer.
  3. Evaluation Phase: Once effective dual variables are found, the 2D partitions are merged into higher-dimensional zonotopes (e.g., 20D) and solved using a Mixed-Integer Programming (MIP) solver (Gurobi) to squeeze out the tightest possible final bound.

Datasets

The method was evaluated on standard verification benchmarks:

  • MNIST: Fully connected (FFNet), Deep, and Wide convolutional architectures.
  • CIFAR-10: Convolutional networks (CIFAR Wide) trained using SGD and adversarial PGD.

Key Insights and Ideas

  • The 2D Sweet Spot: While solving a ReLU program over a general zonotope is NP-hard, doing so over a 2-dimensional zonotope can be computed in nearly linear time ($O(m \log m)$) by tracking vertices, axis crossings, and the origin. This allows the optimization loop to run efficiently on GPUs.
  • Interpolating Coarseness: Zonotope partitioning acts as a tunable dial between loose/fast hyperbox relaxations (where every neuron is a separate partition) and tight/slow full-polytope verification.
  • Primal-Dual Synergy: Primal bounds (zonotopes) restrict the dual search space, leading to significantly higher dual objective values (tighter lower bounds) than dual methods using hyperboxes alone.

Key Results

  • Tighter Bounds: In single-stage verification (optimizing only the output neuron), ZonoDual (both ZD-2D and ZD-MIP) consistently outperformed baseline Lagrangian decomposition (BDD+) and standard LP relaxations (PLANET), as illustrated by the cumulative density function plots moving further to the right.
Figure 1: Cumulative density function plots of the bounds obtained by each algorithm for a deep con- volutional network trained on MNIST (left) and a deep convolutional network trained on CIFAR10 (right). Lines further to the right indicate tighter bounds. Our algorithms are bolded in the legend.
  • Speed and Efficiency: As shown in the timing data, ZD-2D is significantly faster than complex LP relaxations like Anderson while providing competitive or superior bounds.
Table 2: Timing data for the single-stage bounds.
  • Ablation Performance: Combining zonotopes with BDD+ hyperbox bounds (Zono ∩ BDD+) yields the best trade-off, significantly reducing final runtime while improving bound tightness across phases.
Table 1: Ablation study. We report the bound obtained and cumulative runtime at four points during an extended run of our algorithm: 1) 1000 iterations of 2D dual ascent; 2) Evaluating the dual with a medium partitioning size; 3) 50 steps of dual ascent using MIPs; 4) Evaluating the dual with a coarser partitioning. We report results when zonotope preactivations are used and when they are combined with the hyperbox preactivations of BDD+.
  • Verified Robustness: On MNIST networks, ZonoDual achieved significantly higher verified robustness percentages (e.g., 52.6% on ConvSmall) compared to BDD+ (16.6%) and CROWN (15.8%).

Limitations and Future Work

  • Reliance on Piecewise Linearity: ZonoDual relies heavily on the geometric properties of ReLUs and MIP formulations, meaning it cannot easily generalize to non-linear activations like Sigmoid or Tanh.
  • MIP Scaling: The final evaluation phase relies on MIP solvers, which do not benefit from GPU acceleration and may struggle to scale to ultra-large, state-of-the-art vision models.
  • Zonotope Order Explosion: In very deep networks, the number of generators in intermediate zonotopes grows rapidly, slowing down the 2D evaluation. The authors suggest integrating "order reduction" techniques to soundly compress zonotopes in future work.

Summary updated

Abstract

Neural network verification aims to provide provable bounds for the output of a neural network for a given input range. Notable prior works in this domain have either generated bounds using abstract domains, which preserve some dependency between intermediate neurons in the network; or framed verification as an optimization problem and solved a relaxation using Lagrangian methods. A key drawback of the latter technique is that each neuron is treated independently, thereby ignoring important neuron interactions. We provide an approach that merges these two threads and uses zonotopes within a Lagrangian decomposition. Crucially, we can decompose the problem of verifying a deep neural network into the verification of many 2-layer neural networks. While each of these problems is provably hard, we provide efficient relaxation methods that are amenable to efficient dual ascent procedures. Our technique yields bounds that improve upon both linear programming and Lagrangian-based verification techniques in both time and bound tightness.
BibTeX
@inproceedings{jordan2022zonotope,
  author = {Matt Jordan and Jonathan Hayase and Alexandros G. Dimakis and Sewoong Oh},
  title = {{Zonotope Domains for Lagrangian Neural Network Verification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=ORM9CA12vh},
}

Loading related content...

Figure