Better Training using Weight-Constrained Stochastic Dynamics

Benedict Leimkuhler, Tiffany Vlaar, Timothée Pouchon, Amos Storkey
6/20/2021
cs.LGstat.ML

Official code: TiffanyVlaar/ConstrainedNNtraining (5 stars, Python, last commit 2021-12-18).

Abstract

We employ constraints to control the parameter space of deep neural networks throughout training. The use of customized, appropriately designed constraints can reduce the vanishing/exploding gradients problem, improve smoothness of classification boundaries, control weight magnitudes and stabilize deep neural networks, and thus enhance the robustness of training algorithms and the generalization capabilities of neural networks.

Show full abstract

We provide a general approach to efficiently incorporate constraints into a stochastic gradient Langevin framework, allowing enhanced exploration of the loss landscape. We also present specific examples of constrained training methods motivated by orthogonality preservation for weight matrices and explicit weight normalizations. Discretization schemes are provided both for the overdamped formulation of Langevin dynamics and the underdamped form, in which momenta further improve sampling efficiency. These optimization schemes can be used directly, without needing to adapt neural network architecture design choices or to modify the objective with regularization terms, and see performance improvements in classification tasks.

View on arXivView PDF

Code Implementations(1)

Supplement code to our ICML 2021 paper

50PythonJun 7, 20214 years ago

Similar Papers

Cite this paper

@article{leimkuhler2021better,
  title  = {Better Training using Weight-Constrained Stochastic Dynamics},
  author = {Benedict Leimkuhler and Tiffany Vlaar and Timothée Pouchon and Amos Storkey},
  year   = {2021},
  eprint = {2106.10704},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.10704}
}

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

Discussion