Spectral Norm of Convolutional Layers with Circular and Zero Paddings

Blaise Delattre, Quentin Barthélemy, Alexandre Allauzen
1/31/2024
cs.LGcs.CV

Official code: blaisedelattre/lip4conv (16 stars, MIT, PyTorch, last commit 2024-02-02).

Abstract

This paper leverages the use of \emph{Gram iteration} an efficient, deterministic, and differentiable method for computing spectral norm with an upper bound guarantee. Designed for circular convolutional layers, we generalize the use of the Gram iteration to zero padding convolutional layers and prove its quadratic convergence. We also provide theorems for bridging the gap between circular and zero padding convolution's spectral norm. We design a \emph{spectral rescaling} that can be used as a competitive $1$-Lipschitz layer that enhances network robustness. Demonstrated through experiments, our method outperforms state-of-the-art techniques in precision, computational cost, and scalability. The code of experiments is available at https://github.com/blaisedelattre/lip4conv.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Code for Spectral Norm of Convolutional Layers with Circular and Zero Paddings and Efficient Bound of Lipschitz Constant for Convolutional Layers by Gram Iteration

163Python, Jupyter NotebookMay 26, 20232 years agoMIT
convolutional-layerslipschitz-constantlipschitz-networklipschitz-regularizationnorm+2 more

Similar Papers

Cite this paper

@article{delattre2024spectral,
  title  = {Spectral Norm of Convolutional Layers with Circular and Zero Paddings},
  author = {Blaise Delattre and Quentin Barthélemy and Alexandre Allauzen},
  year   = {2024},
  eprint = {2402.00240},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.00240v1}
}

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

Discussion