Designing Stable Neural Networks using Convex Analysis and ODEs
Ferdia Sherry, Elena Celledoni, Matthias J. Ehrhardt, Davide Murari, Brynjulf Owren, Carola-Bibiane Schönlieb
TL;DR
This work addresses the stability and robustness of deep networks by enforcing $1$-Lipschitz and averaged-operator properties through spectral-norm constraints, yielding ResNet-like blocks that mirror discretised gradient flows in convex potentials. It builds a theory-grounded architecture using explicit Runge–Kutta steps with circle contractivity to guarantee non-expansiveness, complemented by an adaptive training scheme for norm enforcement. Empirically, the approach delivers competitive performance on adversarial robustness (CIFAR-10), image denoising (BSDS500), and convergent Plug-and-Play denoising for inverse problems, while providing convergence guarantees for the learned denoisers. The work highlights practical feasibility for stable neural nets and suggests directions for applying these ideas to Wasserstein GANs and non-Euclidean norms, balancing stability with expressiveness in real-world tasks.
Abstract
Motivated by classical work on the numerical integration of ordinary differential equations we present a ResNet-styled neural network architecture that encodes non-expansive (1-Lipschitz) operators, as long as the spectral norms of the weights are appropriately constrained. This is to be contrasted with the ordinary ResNet architecture which, even if the spectral norms of the weights are constrained, has a Lipschitz constant that, in the worst case, grows exponentially with the depth of the network. Further analysis of the proposed architecture shows that the spectral norms of the weights can be further constrained to ensure that the network is an averaged operator, making it a natural candidate for a learned denoiser in Plug-and-Play algorithms. Using a novel adaptive way of enforcing the spectral norm constraints, we show that, even with these constraints, it is possible to train performant networks. The proposed architecture is applied to the problem of adversarially robust image classification, to image denoising, and finally to the inverse problem of deblurring.
