Improved techniques for deterministic l2 robustness

Sahil Singla, Soheil Feizi
11/15/2022
cs.LG

Official code: singlasahil14/improved_l2_robustness (4 stars, Python, last commit 2022-10-22).

Abstract

Training convolutional neural networks (CNNs) with a strict 1-Lipschitz constraint under the $l_{2}$ norm is useful for adversarial robustness, interpretable gradients and stable training. 1-Lipschitz CNNs are usually designed by enforcing each layer to have an orthogonal Jacobian matrix (for all inputs) to prevent the gradients from vanishing during backpropagation.

Show full abstract

However, their performance often significantly lags behind that of heuristic methods to enforce Lipschitz constraints where the resulting CNN is not \textit{provably} 1-Lipschitz. In this work, we reduce this gap by introducing (a) a procedure to certify robustness of 1-Lipschitz CNNs by replacing the last linear layer with a 1-hidden layer MLP that significantly improves their performance for both standard and provably robust accuracy, (b) a method to significantly reduce the training time per epoch for Skew Orthogonal Convolution (SOC) layers (>30\% reduction for deeper networks) and (c) a class of pooling layers using the mathematical property that the $l_{2}$ distance of an input to a manifold is 1-Lipschitz. Using these methods, we significantly advance the state-of-the-art for standard and provable robust accuracies on CIFAR-10 (gains of +1.79\% and +3.82\%) and similarly on CIFAR-100 (+3.78\% and +4.75\%) across all networks. Code is available at \url{https://github.com/singlasahil14/improved_l2_robustness}.

View on arXivView PDF

Code Implementations(1)

40Python, C++Oct 22, 20224 years ago

Similar Papers

Cite this paper

@article{singla2022improved,
  title  = {Improved techniques for deterministic l2 robustness},
  author = {Sahil Singla and Soheil Feizi},
  year   = {2022},
  eprint = {2211.08453},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.08453}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.08453.svg)](https://codeofpaper.com/paper/2211.08453)

Discussion