Taxonomizing local versus global structure in neural network loss landscapes

Yaoqing Yang, Liam Hodgkinson, Ryan Theisen, Joe Zou, Joseph E. Gonzalez +2 more
7/23/2021
cs.LG

Official code: nsfzyzz/loss_landscape_taxonomy (20 stars, Python, MIT, last commit 2022-01-07).

Abstract

Viewing neural network models in terms of their loss landscapes has a long history in the statistical mechanics approach to learning, and in recent years it has received attention within machine learning proper. Among other things, local metrics (such as the smoothness of the loss landscape) have been shown to correlate with global properties of the model (such as good generalization performance).

Show full abstract

Here, we perform a detailed empirical analysis of the loss landscape structure of thousands of neural network models, systematically varying learning tasks, model architectures, and/or quantity/quality of data. By considering a range of metrics that attempt to capture different aspects of the loss landscape, we demonstrate that the best test accuracy is obtained when: the loss landscape is globally well-connected; ensembles of trained models are more similar to each other; and models converge to locally smooth regions. We also show that globally poorly-connected landscapes can arise when models are small or when they are trained to lower quality data; and that, if the loss landscape is globally poorly-connected, then training to zero loss can actually lead to worse test accuracy. Our detailed empirical results shed light on phases of learning (and consequent double descent behavior), fundamental versus incidental determinants of good generalization, the role of load-like and temperature-like parameters in the learning process, different influences on the loss landscape from model and data, and the relationships between local and global metrics, all topics of recent interest.

View on arXivView PDF

Code Implementations(1)

MIT

[NeurIPS 2021] code for "Taxonomizing local versus global structure in neural network loss landscapes" https://arxiv.org/abs/2107.11228

209Python, Jupyter NotebookJan 1, 20224 years agoMIT

Similar Papers

Cite this paper

@article{yang2021taxonomizing,
  title  = {Taxonomizing local versus global structure in neural network loss landscapes},
  author = {Yaoqing Yang and Liam Hodgkinson and Ryan Theisen and Joe Zou and Joseph E. Gonzalez and Kannan Ramchandran and Michael W. Mahoney},
  year   = {2021},
  eprint = {2107.11228},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.11228}
}

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

Discussion