Symmetries, flat minima, and the conserved quantities of gradient flow

Bo Zhao, Iordan Ganev, Robin Walters, Rose Yu, Nima Dehmamy
10/31/2022
cs.LGmath.RT

Official code: Rose-STL-Lab/Gradient-Flow-Symmetry (5 stars, Jupyter Notebook, last commit 2023-09-04).

Abstract

Empirical studies of the loss landscape of deep networks have revealed that many local minima are connected through low-loss valleys. Yet, little is known about the theoretical origin of such valleys.

Show full abstract

We present a general framework for finding continuous symmetries in the parameter space, which carve out low-loss valleys. Our framework uses equivariances of the activation functions and can be applied to different layer architectures. To generalize this framework to nonlinear neural networks, we introduce a novel set of nonlinear, data-dependent symmetries. These symmetries can transform a trained model such that it performs similarly on new samples, which allows ensemble building that improves robustness under certain adversarial attacks. We then show that conserved quantities associated with linear symmetries can be used to define coordinates along low-loss valleys. The conserved quantities help reveal that using common initialization methods, gradient flow only explores a small part of the global minimum. By relating conserved quantities to convergence rate and sharpness of the minimum, we provide insights on how initialization impacts convergence and generalizability.

View on arXivView PDF

Code Implementations(1)

[ICLR 2023] Symmetries, flat minima, and the conserved quantities of gradient flow

51Jupyter Notebook, PythonFeb 23, 20233 years ago

Similar Papers

Cite this paper

@article{zhao2022symmetries,
  title  = {Symmetries, flat minima, and the conserved quantities of gradient flow},
  author = {Bo Zhao and Iordan Ganev and Robin Walters and Rose Yu and Nima Dehmamy},
  year   = {2022},
  eprint = {2210.17216},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.17216}
}

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

Discussion