English

Visualizing the Loss Landscape of Neural Nets

Machine Learning 2018-11-08 v3 Computer Vision and Pattern Recognition Machine Learning

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.

Keywords

Cite

@article{arxiv.1712.09913,
  title  = {Visualizing the Loss Landscape of Neural Nets},
  author = {Hao Li and Zheng Xu and Gavin Taylor and Christoph Studer and Tom Goldstein},
  journal= {arXiv preprint arXiv:1712.09913},
  year   = {2018}
}

Comments

NIPS 2018 (extended version, 10.5 pages), code is available at https://github.com/tomgoldstein/loss-landscape

R2 v1 2026-06-22T23:31:13.225Z