Skip to main content
QUICK REVIEW

[Paper Review] Enabling certification of verification-agnostic networks via memory-efficient semidefinite programming

Sumanth Dathathri, Krishnamurthy Dvijotham|arXiv (Cornell University)|Oct 22, 2020
Adversarial Robustness in Machine LearningComputer Science17 citations
TL;DR

This paper introduces a memory-efficient first-order dual semidefinite programming (SDP) algorithm that enables tight robustness certification for verification-agnostic neural networks—models not trained with verification in mind. By expressing solver operations as iterative forward and backward passes through the network, the method reduces memory from O(n⁴) to O(n) and enables GPU/TPU acceleration, achieving 88% ℓ∞ verified robust accuracy on MNIST and 40% on CIFAR-10, significantly improving over prior methods.

ABSTRACT

Convex relaxations have emerged as a promising approach for verifying desirable properties of neural networks like robustness to adversarial perturbations. Widely used Linear Programming (LP) relaxations only work well when networks are trained to facilitate verification. This precludes applications that involve verification-agnostic networks, i.e., networks not specially trained for verification. On the other hand, semidefinite programming (SDP) relaxations have successfully be applied to verification-agnostic networks, but do not currently scale beyond small networks due to poor time and space asymptotics. In this work, we propose a first-order dual SDP algorithm that (1) requires memory only linear in the total number of network activations, (2) only requires a fixed number of forward/backward passes through the network per iteration. By exploiting iterative eigenvector methods, we express all solver operations in terms of forward and backward passes through the network, enabling efficient use of hardware like GPUs/TPUs. For two verification-agnostic networks on MNIST and CIFAR-10, we significantly improve L-inf verified robust accuracy from 1% to 88% and 6% to 40% respectively. We also demonstrate tight verification of a quadratic stability specification for the decoder of a variational autoencoder.

Motivation & Objective

  • To enable robustness certification for verification-agnostic neural networks—models not trained to be verifiable—using scalable and efficient verification methods.
  • To overcome the scalability limitations of traditional semidefinite programming (SDP) solvers, which require O(n⁴) memory and O(n⁶) time, making them inapplicable to larger networks.
  • To develop a first-order dual SDP algorithm that operates efficiently in practice by reducing memory usage to O(n) and requiring only a fixed number of forward/backward passes per iteration.
  • To demonstrate that the proposed method achieves significantly tighter verification bounds than prior approaches like interval bound propagation (IBP) and LP relaxations, especially on non-verified models.
  • To enable tight verification of complex specifications, such as quadratic stability in variational autoencoder decoders, which are not amenable to linear relaxation techniques.

Proposed method

  • The method formulates the dual of the SDP relaxation for neural network verification as a maximum eigenvalue problem subject to non-negativity constraints, avoiding expensive projection onto the positive semidefinite cone.
  • It leverages iterative eigenvector methods (e.g., power method) to compute the maximum eigenvalue of an affine matrix function, which corresponds to the dual objective, using only forward and backward passes through the network.
  • Each iteration of the algorithm involves a constant number of forward and backward passes, enabling efficient hardware utilization on GPUs and TPUs.
  • The algorithm maintains a feasible dual solution at each step, providing a valid upper bound on the verification objective, allowing early stopping when a sufficiently tight bound is achieved.
  • The approach generalizes to any quadratically constrained quadratic program (QCQP), including adversarial robustness and stability specifications, and applies to various network architectures.
  • The method is implemented in JAX and open-sourced via the Jax-Verify library, enabling integration with modern deep learning pipelines.

Experimental results

Research questions

  • RQ1Can first-order dual SDP methods be adapted to achieve scalable and memory-efficient verification of verification-agnostic neural networks?
  • RQ2Can the dual SDP formulation be expressed in terms of forward and backward passes through the network to enable GPU/TPU acceleration?
  • RQ3To what extent can this method improve verified robust accuracy compared to existing LP and IBP-based approaches on verification-agnostic models?
  • RQ4Can the method verify non-linear specifications such as quadratic reconstruction error in variational autoencoders?
  • RQ5Does the method maintain tightness of bounds across increasing perturbation radii, especially where LP and IBP methods fail?

Key findings

  • The proposed SDP-FO method achieves 88% ℓ∞ verified robust accuracy on a verification-agnostic MNIST classifier, a significant improvement from the baseline of 1%.
  • On CIFAR-10, the method improves verified robust accuracy from 6% to 40%, demonstrating strong performance on more complex datasets.
  • For the VAE decoder verification task, SDP-FO successfully verifies robustness up to perturbation radii of 0.5σz, while IBP fails at ε ≈ 0.01, showing a 50x improvement in effective perturbation radius.
  • The method provides tight verification bounds that closely match the upper bounds from PGD attacks up to perturbation radius 0.1σz, indicating high accuracy of the certification.
  • The algorithm scales to networks with ~10,000 activations (e.g., convolutional VAE decoders), demonstrating applicability beyond small fully connected networks.
  • By requiring only O(n) memory and a fixed number of forward/backward passes per iteration, the method enables practical deployment on modern hardware, overcoming prior scalability bottlenecks of interior-point SDP solvers.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.