1-Lipschitz Neural Networks are more expressive with N-Activations

Bernd Prach, Christoph H. Lampert

Abstract

A crucial property for achieving secure, trustworthy and interpretable deep learning systems is their robustness: small changes to a system's inputs should not result in large changes to its outputs. Mathematically, this means one strives for networks with a small Lipschitz constant. Several recent works have focused on how to construct such Lipschitz networks, typically by imposing constraints on the weight matrices. In this work, we study an orthogonal aspect, namely the role of the activation function. We show that commonly used activation functions, such as MaxMin, as well as all piece-wise linear ones with two segments unnecessarily restrict the class of representable functions, even in the simplest one-dimensional setting. We furthermore introduce the new N-activation function that is provably more expressive than currently popular activation functions. We provide code at https://github.com/berndprach/NActivation.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
CIFAR-100NActivationCertified Robust Accuracy30.6%+0.2 vs baselinesplit: test · layer=AOL
Source quote
L643: NActivation │ 43.2% │ 30.6% │ 20.9% │ 14.1% │ 2.1%
TinyImageNet · Tiny ImageNetNActivationCertified Robust Accuracy20.9%+0.1 vs baselinesplit: test · layer=AOL
Source quote
L652: NActivation │ 30.8% │ 20.9% │ 13.5% │ 9.1% │ 1.1%
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
CIFAR-10MaxMin baselineCertified Robust Accuracy62.2%split: test · layer=CPL
Source quote
L636: \multirow{2}{*}{CIFAR-10} │ \multirow{2}{*}{CPL} │ MaxMin │ 74.9% │ 62.2% │ 47.9% │ 35.2% │ 4.0%
CIFAR-100MaxMin baselineCertified Robust Accuracy30.4%split: test · layer=AOL
Source quote
L642: \multirow{2}{*}{CIFAR-100} │ \multirow{2}{*}{AOL} │ MaxMin │ 43.1% │ 30.4% │ 20.7% │ 14.0% │ 2.1%
TinyImageNet · Tiny ImageNetMaxMin baselineCertified Robust Accuracy20.8%split: test · layer=AOL
Source quote
L651: \multirow{2}{*}{Tiny ImageNet} │ \multirow{2}{*}{AOL} │ MaxMin │ 30.4% │ 20.8% │ 13.6% │ 9.0% │ 1.0%
BibTeX
@misc{prach2023lipschitz,
  author = {Bernd Prach and Christoph H. Lampert},
  title = {{1-Lipschitz Neural Networks are more expressive with N-Activations}},
  year = {2023},
  eprint = {2311.06103},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.06103},
}

Loading related content...

Figure