paper-with-me

홈 › Papers

Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distribution

2022-02-21 · Ananya Kumar, aditi raghunathan, Robbie Jones, Tengyu Ma, Percy Liang

When transferring a pretrained model to a downstream task, two popular methods are full fine-tuning (updating all the model parameters) and linear probing (updating only the last linear layer -- the "head"). It is well known that fine-tuning leads to better accuracy in-distribution (ID). However, in this paper, we find that fine-tuning can achieve worse accuracy than linear probing out-of-distribution (OOD) when the pretrained features are good and the distribution shift is large. On 10 distribution shift datasets (Breeds-Living17, Breeds-Entity30, DomainNet, CIFAR $\to$ STL, CIFAR10.1, FMoW, ImageNetV2, ImageNet-R, ImageNet-A, ImageNet-Sketch), fine-tuning obtains on average 2% higher accuracy ID but 7% lower accuracy OOD than linear probing. We show theoretically that this tradeoff between ID and OOD accuracy arises even in a simple setting: fine-tuning overparameterized two-layer linear networks. We prove that the OOD error of fine-tuning is high when we initialize with a fixed or random head -- this is because while fine-tuning learns the head, the lower layers of the neural network change simultaneously and distort the pretrained features. Our analysis suggests that the easy two-step strategy of linear probing then full fine-tuning (LP-FT), sometimes used as a fine-tuning heuristic, combines the benefits of both fine-tuning and linear probing. Empirically, LP-FT outperforms both fine-tuning and linear probing on the above datasets (1% better ID, 10% better OOD than full fine-tuning).

📄 PDF Abstract BibTeX arXiv:2202.10054

Code (3)

Aaditya-Singh/Low-Shot-Robustness pytorch
hsh1108/daft pytorch
skhnha/daft pytorch

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.

Similar Papers 제목 키워드 기반

Fine-Tuning Distorts Pretrained Features and Underperforms Out-of-Distribution

2021-09-29 · ICLR 2022 4 · Ananya Kumar, aditi raghunathan, Robbie Matthew Jones, Tengyu Ma 외

When transferring a pretrained model to a downstream task, two popular methods are fine-tuning (updating all the model parameters) and linear probing (updating only the last linear layer). It is well known that fine-tuni…

No Free Lunch from Audio Pretraining in Bioacoustics: A Benchmark Study of Embeddings

2025-08-13 · Chenggang Chen, Zhiyu Yang arxiv

Bioacoustics, the study of animal sounds, offers a non-invasive method to monitor ecosystems. Extracting embeddings from audio-pretrained deep learning (DL) models without fine-tuning has become popular for obtaining bio…

Parameter-Efficient Finetuning of Transformers for Source Code

2022-12-12 · Shamil Ayupov, Nadezhda Chirkova

Pretrained Transformers achieve state-of-the-art performance in various code-processing tasks but may be too large to be deployed. As software development tools often incorporate modules for various purposes which may po…

parameter-efficient fine-tuning

MultiFiT: Efficient Multi-lingual Language Model Fine-tuning

2019-09-10 · IJCNLP 2019 11 · Julian Martin Eisenschlos, Sebastian Ruder, Piotr Czapla, Marcin Kardas 외

Pretrained language models are promising particularly for low-resource languages as they only require unlabelled data. However, training existing models requires huge amounts of compute, while pretrained cross-lingual mo…

Cross-Lingual Document ClassificationDocument ClassificationLanguage ModelingLanguage Modelling+2

Concept-wise Fine-tuning Matters in Preventing Negative Transfer

2023-11-12 · ICCV 2023 1 · Yunqiao Yang, Long-Kai Huang, Ying WEI

A multitude of prevalent pre-trained models mark a major milestone in the development of artificial intelligence, while fine-tuning has been a common practice that enables pretrained models to figure prominently in a wid…