Head2Toe: Utilizing Intermediate Representations for Better Transfer Learning

Utku Evci, Vincent Dumoulin, Hugo Larochelle, Michael C. Mozer
1/10/2022
113 citations
cs.LGcs.CV

Official code: google-research/head2toe (82 stars, Python, Apache-2.0, last commit 2024-07-30).

Abstract

Transfer-learning methods aim to improve performance in a data-scarce target domain using a model pretrained on a data-rich source domain. A cost-efficient strategy, linear probing, involves freezing the source model and training a new classification head for the target domain.

Show full abstract

This strategy is outperformed by a more costly but state-of-the-art method -- fine-tuning all parameters of the source model to the target domain -- possibly because fine-tuning allows the model to leverage useful information from intermediate layers which is otherwise discarded by the later pretrained layers. We explore the hypothesis that these intermediate layers might be directly exploited. We propose a method, Head-to-Toe probing (Head2Toe), that selects features from all layers of the source model to train a classification head for the target-domain. In evaluations on the VTAB-1k, Head2Toe matches performance obtained with fine-tuning on average while reducing training and storage cost hundred folds or more, but critically, for out-of-distribution transfer, Head2Toe outperforms fine-tuning.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
8212Python, ShellDec 6, 20212 years agoApache-2.0

Similar Papers

Cite this paper

@article{evci2022headtoe,
  title  = {Head2Toe: Utilizing Intermediate Representations for Better Transfer Learning},
  author = {Utku Evci and Vincent Dumoulin and Hugo Larochelle and Michael C. Mozer},
  year   = {2022},
  eprint = {2201.03529},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.03529}
}

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

Discussion