All models

Sandwich-Lipschitz-Layer

A CIFAR-10 image classifier built from sandwich layers, which keep the network within a set Lipschitz bound.

Image classification · 180 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (24 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
3M
Operations
180
Framework
PyTorch
Recurrent
No
Published
ICML 2023
Cited by
11 (as of 28 October 2026)
Authors
Ruigang Wang, Ian R. Manchester
License
BSD-3-Clause
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m20249
Graph hash
18f86ecd648dccd4a75e978b2480c8560f41f1503443369f9ea6ad8495d7297d
Skeleton hash
04f50bdaa17210e5a5e5c5b658c0263073830fa47f68bffcb0803a772165c5a2
Architecture hash
79624f47aa18f2d8a9116fcdee8a5de1e39bf4dbfebd388ca14b92bfce7d2e1d
Diagram SHA-256
cbdf5efdd42f09f7bbd518729fe090abffc333e6541c5eef065b3a3284a12bc1
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

The sandwich layer comes from a paper on building fully-connected and convolutional networks whose sensitivity to input perturbations is limited by a guaranteed Lipschitz bound. Its guarantees are equivalent to the tightest-known bounds from certifying a network with a semidefinite program (SDP), an approach that does not scale to large models. Because the weights come from a direct mapping of free parameters, training uses standard gradient methods, with no projections or barrier terms for the SDP constraint.

The paper notes two equivalent readings of the parameterization: a composition of new 1-Lipschitz layers called Sandwich layers, or a standard feedforward network with coupling parameters between neighboring layers. The construction uses the Cayley transform to parameterize orthogonal matrices. For convolutional layers, the parameterization is carried out in the Fourier domain. The convolutional forward pass therefore applies an FFT to the input tensor and an inverse FFT to the output tensor.

For image classification, the authors trained a small fully-connected model on MNIST and the KWLarge network on CIFAR-10. The paper reports that in its image classification experiments sandwich layers outperform previous approaches on both empirical and certified robust accuracy.

Key idea. The paper introduces a direct parameterization of fully-connected and convolutional networks with guaranteed Lipschitz bounds, which can be used as a new layer type, the sandwich layer.

  • sandwich layer
  • sandwich lipschitz layer
  • lbdn
  • lipschitz-bounded deep networks
  • direct parameterization
  • 1-lipschitz layer
  • certified robustness
  • cayley transform
  • robust image classification

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{wang2023directparameterizationlipschitzboundeddeep,
      title={Direct Parameterization of Lipschitz-Bounded Deep Networks}, 
      author={Ruigang Wang and Ian R. Manchester},
      year={2023},
      eprint={2301.11526},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2301.11526}, 
}