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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Image Classification | CIFAR-10 (test) | Accuracy94.08 | 3381 | |
| Machine Translation | WMT En-De 2014 (test) | BLEU27.19 | 379 | |
| Question Answering | SQuAD v1.1 (test) | F1 Score87.8 | 260 | |
| Image Classification | ImageNet (test) | -- | 235 | |
| Machine Translation | IWSLT De-En 2014 (test) | BLEU34.77 | 146 | |
| Machine Translation | WMT En-De '14 | BLEU27.19 | 89 | |
| Machine Translation | IWSLT14 DE-EN | BLEU Score34.77 | 22 | |
| Machine Translation | IWSLT DE-EN '14 (train) | Training Perplexity3.68 | 12 | |
| Machine Translation | IWSLT'14 DE-EN (val) | Validation PPL4.97 | 12 | |
| Machine Translation | WMT En-De 2014 (test) | BLEU Score26.8 | 10 |