Skip to main content
QUICK REVIEW

[Paper Review] Lipschitz constant estimation of Neural Networks via sparse polynomial optimization

Fabian Latorre, Paul Rolland|arXiv (Cornell University)|Apr 18, 2020
Adversarial Robustness in Machine LearningComputer Science42 references53 citations
TL;DR

LiPopt computes tighter upper bounds on neural network Lipschitz constants by relaxing to polynomial optimization and solving a sequence of LPs that exploit network sparsity, outperforming baselines (including some SDP approaches) for the l_infty norm on MNIST and random networks.

ABSTRACT

We introduce LiPopt, a polynomial optimization framework for computing increasingly tighter upper bounds on the Lipschitz constant of neural networks. The underlying optimization problems boil down to either linear (LP) or semidefinite (SDP) programming. We show how to use the sparse connectivity of a network, to significantly reduce the complexity of computation. This is specially useful for convolutional as well as pruned neural networks. We conduct experiments on networks with random weights as well as networks trained on MNIST, showing that in the particular case of the $\\ell_\\infty$-Lipschitz constant, our approach yields superior estimates, compared to baselines available in the literature.

Motivation & Objective

  • Motivate the need for tight upper bounds on Lipschitz constants for robustness and generalization analysis in neural networks.
  • Introduce LiPopt as a polynomial optimization framework to upper-bound Lipschitz constants via relaxations to LPs/SDPs.
  • Exploit network sparsity to reduce complexity and scale to convolutional/pruned architectures.
  • Evaluate the method on random and MNIST-trained networks, focusing on the l_infty norm.
  • Provide a scalable, tunable trade-off between computation and bound tightness.

Proposed method

  • Formulate L(f_d) as the supremum of the norm of the gradient, leading to a polynomial optimization problem (POP) over derivative variables s_i = sigma'(f_i(x)).
  • Specialize to l_infty norm by bounding dual variables t with -1 <= t_i <= 1, turning the objective into a polynomial (norm-gradient polynomial p).
  • Apply Krivine’s Positivstellensatz to obtain a hierarchy of linear programs (LPs) that provide upper bounds on L(f_d) via certificates of positivity, with a degree k progression (theta_k).
  • Introduce sparsity via a valid sparsity pattern and sparse Krivine certificates, reducing the LP size by leveraging network connectivity and a computational graph G_d.
  • Provide an alternative QCQP/SDP relaxation (Shor’s relaxation) as a related bound, noting it is looser in some cases and less scalable.
  • Algorithm 1 LiPopt for ELU activations and sparsity patterns describes computing the norm-gradient polynomial, constructing a sparse positivity certificate, and solving the LP to obtain the bound.

Experimental results

Research questions

  • RQ1Can we bound the Lipschitz constant of neural networks from above using polynomial optimization relaxations?
  • RQ2Does exploiting network sparsity lead to scalable and tighter upper bounds compared to dense formulations or SDP-based methods?
  • RQ3How do LP-based bounds (LipOpt-k) compare to SDP bounds and simple layer-wise bounds on standard benchmarks like MNIST and random networks?
  • RQ4What is the impact of using local (instance-specific) input regions on the tightness of Lipschitz constant bounds?

Key findings

  • LiPopt yields a hierarchy of LP-based bounds that can be tighter than existing SDP-based bounds for the l_infty Lipschitz constant, especially as the hierarchy degree increases.
  • Exploiting sparsity via a sparse Krivine certificate significantly reduces LP size and computation time, enabling tighter bounds for deeper or convolutional/pruned networks.
  • On MNIST-trained networks and random networks, LipOpt-k with k > depth often outperforms the corresponding SDP relaxation in bound tightness and scales better with sparsity.
  • Local Lipschitz constant estimation (within an input ball) can produce looser global bounds but enables tighter certificates localized around a data point, suggesting robustness certification benefits.
  • Compared to UBP (layer-wise bounds), LipOpt-k provides substantially tighter upper bounds in reported experiments.
  • The approach accommodates generic activations with bounded derivatives (e.g., ELU, softplus) and focuses on the l_infty norm due to its robustness relevance.

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.