Skip to main content
QUICK REVIEW

[Paper Review] Training Certifiably Robust Neural Networks with Efficient Local Lipschitz Bounds

Yujia Huang, Huan Zhang|arXiv (Cornell University)|Nov 2, 2021
Adversarial Robustness in Machine LearningComputer Science12 citations
TL;DR

This paper proposes a trainable, efficient local Lipschitz bound for certifiably robust neural networks by dynamically eliminating inactive rows and columns in weight matrices based on ReLU and MaxMin activation behavior under input perturbations. By introducing learnable activation thresholds and a sparsity loss, the method tightens the local Lipschitz bound during training, achieving state-of-the-art certified accuracy of 60.7% on CIFAR-10 with ℓ₂ robustness.

ABSTRACT

Certified robustness is a desirable property for deep neural networks in safety-critical applications, and popular training algorithms can certify robustness of a neural network by computing a global bound on its Lipschitz constant. However, such a bound is often loose: it tends to over-regularize the neural network and degrade its natural accuracy. A tighter Lipschitz bound may provide a better tradeoff between natural and certified accuracy, but is generally hard to compute exactly due to non-convexity of the network. In this work, we propose an efficient and trainable \\emph{local} Lipschitz upper bound by considering the interactions between activation functions (e.g. ReLU) and weight matrices. Specifically, when computing the induced norm of a weight matrix, we eliminate the corresponding rows and columns where the activation function is guaranteed to be a constant in the neighborhood of each given data point, which provides a provably tighter bound than the global Lipschitz constant of the neural network. Our method can be used as a plug-in module to tighten the Lipschitz bound in many certifiable training algorithms. Furthermore, we propose to clip activation functions (e.g., ReLU and MaxMin) with a learnable upper threshold and a sparsity loss to assist the network to achieve an even tighter local Lipschitz bound. Experimentally, we show that our method consistently outperforms state-of-the-art methods in both clean and certified accuracy on MNIST, CIFAR-10 and TinyImageNet datasets with various network architectures.

Motivation & Objective

  • To address the limitation of global Lipschitz bounds in certified robustness training, which are overly conservative and degrade natural accuracy.
  • To develop a computationally efficient and differentiable method for computing tighter local Lipschitz bounds that adapt to individual input neighborhoods.
  • To enable neural networks to learn to minimize the local Lipschitz constant during training by encouraging activation neurons to become constant under perturbation.
  • To improve the trade-off between natural accuracy and certified robustness in ℓ₂ norm robustness settings.

Proposed method

  • For each input data point, the method identifies ReLU or MaxMin activation neurons that are constant under local perturbations and removes the corresponding rows in the previous weight matrix and columns in the next weight matrix.
  • The local Lipschitz bound is computed as the spectral norm of the reduced weight matrix, which yields a provably tighter bound than the global Lipschitz constant.
  • A learnable upper threshold is introduced to clip activation functions (e.g., ReLU), enabling neurons to become constant when inputs exceed the threshold, thus facilitating row/column removal.
  • A sparsity-inducing hinge loss is applied to encourage more neurons to enter the constant state, further tightening the local bound.
  • The method is integrated as a plug-in module into existing certifiable training frameworks, such as those based on IBP or CROWN, without requiring architectural changes.
  • During inference, local Lipschitz bounds are computed only for inputs not certified by the global bound, reducing computational overhead.

Experimental results

Research questions

  • RQ1Can a local Lipschitz bound that adapts to individual input neighborhoods be efficiently computed and trained in a differentiable manner?
  • RQ2How much tighter can a local Lipschitz bound be compared to the global bound when leveraging activation behavior under perturbation?
  • RQ3Can learnable activation thresholds and sparsity regularization be used to train networks that actively minimize the local Lipschitz constant?
  • RQ4Does the proposed method improve the trade-off between natural accuracy and certified robustness in ℓ₂ norm robustness settings?

Key findings

  • On CIFAR-10 with ε = 36/255, the method achieves 60.7% certified accuracy using MaxMin activation, outperforming the SOTA baseline of 59.2%.
  • With ReLU activation, the method achieves 54.3% certified accuracy on CIFAR-10, surpassing the SOTA of 51.3%.
  • On Tiny-ImageNet, the method achieves 23.4% certified accuracy, exceeding the SOTA of 22.4%.
  • The method reduces the number of active rows and columns in weight matrices by over 45% on average, indicating significant pruning of redundant components.
  • The average number of power iteration steps required for convergence in the local Lipschitz computation is 137, but only 13.8% of inputs require evaluation due to global bound certification.
  • The method maintains high clean accuracy—77.4% on CIFAR-10 with 6C2F architecture—demonstrating a strong trade-off between robustness and accuracy.

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.