A Unified Algebraic Perspective on Lipschitz Neural Networks

Alexandre Araujo, Aaron Havens, Blaise Delattre, Alexandre Allauzen, Bin Hu
3/6/2023
cs.LG

Official code: araujoalexandre/Lipschitz-SLL-Networks (10 stars, Apache-2.0, last commit 2023-10-27).

Abstract

Important research efforts have focused on the design and training of neural networks with a controlled Lipschitz constant. The goal is to increase and sometimes guarantee the robustness against adversarial attacks. Recent promising techniques draw inspirations from different backgrounds to design 1-Lipschitz neural networks, just to name a few: convex potential layers derive from the discretization of continuous dynamical systems, Almost-Orthogonal-Layer proposes a tailored method for matrix rescaling. However, it is today important to consider the recent and promising contributions in the field under a common theoretical lens to better design new and improved layers. This paper introduces a novel algebraic perspective unifying various types of 1-Lipschitz neural networks, including the ones previously mentioned, along with methods based on orthogonality and spectral methods. Interestingly, we show that many existing techniques can be derived and generalized via finding analytical solutions of a common semidefinite programming (SDP) condition. We also prove that AOL biases the scaled weight to the ones which are close to the set of orthogonal matrices in a certain mathematical manner. Moreover, our algebraic condition, combined with the Gershgorin circle theorem, readily leads to new and diverse parameterizations for 1-Lipschitz network layers. Our approach, called SDP-based Lipschitz Layers (SLL), allows us to design non-trivial yet efficient generalization of convex potential layers. Finally, the comprehensive set of experiments on image classification shows that SLLs outperform previous approaches on certified robust accuracy. Code is available at https://github.com/araujoalexandre/Lipschitz-SLL-Networks.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
102PythonJan 29, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{araujo2023unified,
  title  = {A Unified Algebraic Perspective on Lipschitz Neural Networks},
  author = {Alexandre Araujo and Aaron Havens and Blaise Delattre and Alexandre Allauzen and Bin Hu},
  year   = {2023},
  eprint = {2303.03169},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.03169v2},
  journal = {ICLR 2023 2023}
}

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/2303.03169.svg)](https://codeofpaper.com/paper/2303.03169)

Discussion