Rethinking the Hyperparameters for Fine-tuning

Hao Li, Pratik Chaudhari, Hao Yang, Michael Lam, Avinash Ravichandran +2 more
2/19/2020
cs.CVcs.LGstat.ML

Official code: richardaecn/cvpr18-inaturalist-transfer (196 stars, Jupyter Notebook, MIT, TensorFlow, last commit 2018-11-03).

Abstract

Fine-tuning from pre-trained ImageNet models has become the de-facto standard for various computer vision tasks. Current practices for fine-tuning typically involve selecting an ad-hoc choice of hyperparameters and keeping them fixed to values normally used for training from scratch.

Show full abstract

This paper re-examines several common practices of setting hyperparameters for fine-tuning. Our findings are based on extensive empirical evaluation for fine-tuning on various transfer learning benchmarks. (1) While prior works have thoroughly investigated learning rate and batch size, momentum for fine-tuning is a relatively unexplored parameter. We find that the value of momentum also affects fine-tuning performance and connect it with previous theoretical findings. (2) Optimal hyperparameters for fine-tuning, in particular, the effective learning rate, are not only dataset dependent but also sensitive to the similarity between the source domain and target domain. This is in contrast to hyperparameters for training from scratch. (3) Reference-based regularization that keeps models close to the initial model does not necessarily apply for "dissimilar" datasets. Our findings challenge common practices of fine-tuning and encourages deep learning practitioners to rethink the hyperparameters for fine-tuning.

View on arXivView PDF

Code Implementations(1)

TensorFlowMIT

Large Scale Fine-Grained Categorization and Domain-Specific Transfer Learning. CVPR 2018

19636Jupyter Notebook, PythonJun 18, 20188 years agoMIT
computer-visioncvpr2018deep-learningfine-grainedfine-grained-classification+4 more

Similar Papers

Cite this paper

@article{li2020rethinking,
  title  = {Rethinking the Hyperparameters for Fine-tuning},
  author = {Hao Li and Pratik Chaudhari and Hao Yang and Michael Lam and Avinash Ravichandran and Rahul Bhotika and Stefano Soatto},
  year   = {2020},
  eprint = {2002.11770},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.11770}
}

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

Discussion