Deep networks on toroids: removing symmetries reveals the structure of flat regions in the landscape geometry
Abstract
We systematize the approach to the investigation of deep neural network landscapes by basing it on the geometry of the space of implemented functions rather than the space of parameters. Grouping classifiers into equivalence classes, we develop a standardized parameterization in which all symmetries are removed, resulting in a toroidal topology. On this space, we explore the error landscape rather than the loss. This lets us derive a meaningful notion of the flatness of minimizers and of the geodesic paths connecting them. Using different optimization algorithms that sample minimizers with different flatness we study the mode connectivity and relative distances. Testing a variety of state-of-the-art architectures and benchmark datasets, we confirm the correlation between flatness and generalization performance; we further show that in function space flatter minima are closer to each other and that the barriers along the geodesics connecting them are small. We also find that minimizers found by variants of gradient descent can be connected by zero-error paths composed of two straight lines in parameter space, i.e. polygonal chains with a single bend. We observe similar qualitative results in neural networks with binary weights and activations, providing one of the first results concerning the connectivity in this setting. Our results hinge on symmetry removal, and are in remarkable agreement with the rich phenomenology described by some recent analytical studies performed on simple shallow models. *This article is an updated version of: Pittorino F, Ferraro A, Perugini G, Feinauer C, Baldassi C and Zecchina R 2022 Deep networks on toroids: removing symmetries reveals the structure of flat regions in the landscape geometry Proc. 39th Int. Conf. Machine Learning vol 162 ed K Chaudhuri, S Jegelka, L Song, C Szepesvari, G Niu and S Sabato pp 17759-81.
- Publication:
-
Journal of Statistical Mechanics: Theory and Experiment
- Pub Date:
- November 2022
- DOI:
- 10.1088/1742-5468/ac9832
- arXiv:
- arXiv:2202.03038
- Bibcode:
- 2022JSMTE2022k4007P
- Keywords:
-
- deep learning;
- machine learning;
- Computer Science - Machine Learning;
- Condensed Matter - Disordered Systems and Neural Networks
- E-Print:
- doi:10.1088/1742-5468/ac9832