Visualizing the Loss Landscape of Neural Nets

Hao Li, Zheng Xu, Gavin Taylor, Christoph Studer, Tom Goldstein
12/28/2017
cs.LGcs.CVstat.ML

Official code: tomgoldstein/loss-landscape (3,208 stars, MIT, last commit 2022-04-05).

Abstract

Neural network training relies on our ability to find "good" minimizers of highly non-convex loss functions. It is well-known that certain network architecture designs (e.g., skip connections) produce loss functions that train easier, and well-chosen training parameters (batch size, learning rate, optimizer) produce minimizers that generalize better. However, the reasons for these differences, and their effects on the underlying loss landscape, are not well understood. In this paper, we explore the structure of neural loss functions, and the effect of loss landscapes on generalization, using a range of visualization methods. First, we introduce a simple "filter normalization" method that helps us visualize loss function curvature and make meaningful side-by-side comparisons between loss functions. Then, using a variety of visualizations, we explore how network architecture affects the loss landscape, and how training parameters affect the shape of minimizers.

View on arXivView PDF

Code Implementations(1)

MIT

Code for visualizing the loss landscape of neural nets

3,208441Shell, PythonMar 16, 20184 years agoMIT

Cite this paper

@article{li2017visualizing,
  title  = {Visualizing the Loss Landscape of Neural Nets},
  author = {Hao Li and Zheng Xu and Gavin Taylor and Christoph Studer and Tom Goldstein},
  year   = {2017},
  eprint = {1712.09913},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1712.09913}
}

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

Discussion