A disciplined approach to neural network hyper-parameters: Part 1 -- learning rate, batch size, momentum, and weight decay

Leslie N. Smith
3/26/2018
1,335 citations
cs.LGcs.CVcs.NE

Official code: lnsmith54/hyperParam1 (88 stars, Shell, last commit 2018-04-18).

Abstract

Although deep learning has produced dazzling successes for applications of image, speech, and video processing in the past few years, most trainings are with suboptimal hyper-parameters, requiring unnecessarily long training times. Setting the hyper-parameters remains a black art that requires years of experience to acquire.

Show full abstract

This report proposes several efficient ways to set the hyper-parameters that significantly reduce training time and improves performance. Specifically, this report shows how to examine the training validation/test loss function for subtle clues of underfitting and overfitting and suggests guidelines for moving toward the optimal balance point. Then it discusses how to increase/decrease the learning rate/momentum to speed up training. Our experiments show that it is crucial to balance every manner of regularization for each dataset and architecture. Weight decay is used as a sample regularizer to show how its optimal value is tightly coupled with the learning rates and momentums. Files to help replicate the results reported here are available.

View on arXivView PDF

Code Implementations(1)

8811ShellApr 18, 20188 years ago

Similar Papers

Cite this paper

@article{smith2018disciplined,
  title  = {A disciplined approach to neural network hyper-parameters: Part 1 -- learning rate, batch size, momentum, and weight decay},
  author = {Leslie N. Smith},
  year   = {2018},
  eprint = {1803.09820},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1803.09820}
}

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

Discussion