[Paper Review] Rethinking the Hyperparameters for Fine-tuning
The paper re-evaluates hyperparameters for fine-tuning pre-trained ImageNet models, showing momentum, effective learning rate, and regularization interact with domain similarity and should not be fixed defaults. It provides guidance to reduce hyperparameter search by linking optimal ELR to source-target domain similarity and highlighting when reference-based regularization helps or hurts.
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. 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.
Motivation & Objective
- Question the validity of fixed hyperparameters in fine-tuning pre-trained Vision models.
- Investigate how momentum affects fine-tuning performance across datasets with varying similarity to the source domain.
- Examine the role of effective learning rate and its dependence on domain similarity.
- Assess whether reference-based regularization improves fine-tuning across similar and dissimilar domains.
Proposed method
- Systematic hyperparameter search for fine-tuning with ResNet-101-V2 on seven transfer-learning datasets.
- Vary learning rate, momentum, and weight decay; measure Top-1 validation errors.
- Analyze the interaction between momentum and effective learning rate in fine-tuning.
- Compare standard L2 regularization with L2-SP (reference-based) regularization across datasets.
- Investigate domain similarity and its relation to optimal ELR and regularization effectiveness.
Experimental results
Research questions
- RQ1How does momentum influence fine-tuning performance across datasets with different similarity to the source domain?
- RQ2How does the optimal effective learning rate vary with source-target domain similarity in fine-tuning?
- RQ3Do reference-based regularizations consistently help fine-tuning across similar and dissimilar domains?
- RQ4Can domain similarity be used to predict or constrain the ELR for efficient hyperparameter search?
Key findings
- Momentum can be optimal at 0 for similar domains and at 0.9 for dissimilar domains, challenging the default of fixed momentum.
- The optimal effective learning rate depends on the similarity between the source and target domains, and fixes on ELR explain performance differences more than raw learning rate alone.
- Regularization that keeps weights close to the initial model (L2-SP) does not universally improve fine-tuning, especially on dissimilar datasets; simple weight decay can perform comparably in many cases.
- Hyperparameters are coupled; changing momentum alters the ELR and the search range for learning rate, making ELR a central factor in fine-tuning success.
- Domain similarity scores correlate with the scale of the optimal ELR, enabling a practical strategy to limit hyperparameter search by referencing similar/dissimilar source domains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.