Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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

About

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. 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.

Leslie N. Smith• 2018

Related benchmarks

TaskDatasetResultRank
Image ClassificationCIFAR-10 (test)
Accuracy94.08
3381
Machine TranslationWMT En-De 2014 (test)
BLEU27.19
379
Question AnsweringSQuAD v1.1 (test)
F1 Score87.8
260
Image ClassificationImageNet (test)--
235
Machine TranslationIWSLT De-En 2014 (test)
BLEU34.77
146
Machine TranslationWMT En-De '14
BLEU27.19
89
Machine TranslationIWSLT14 DE-EN
BLEU Score34.77
22
Machine TranslationIWSLT DE-EN '14 (train)
Training Perplexity3.68
12
Machine TranslationIWSLT'14 DE-EN (val)
Validation PPL4.97
12
Machine TranslationWMT En-De 2014 (test)
BLEU Score26.8
10
Showing 10 of 13 rows

Other info

Follow for update