Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Surgical Fine-Tuning Improves Adaptation to Distribution Shifts

About

A common approach to transfer learning under distribution shift is to fine-tune the last few layers of a pre-trained model, preserving learned features while also adapting to the new task. This paper shows that in such settings, selectively fine-tuning a subset of layers (which we term surgical fine-tuning) matches or outperforms commonly used fine-tuning approaches. Moreover, the type of distribution shift influences which subset is more effective to tune: for example, for image corruptions, fine-tuning only the first few layers works best. We validate our findings systematically across seven real-world data tasks spanning three types of distribution shifts. Theoretically, we prove that for two-layer neural networks in an idealized setting, first-layer tuning can outperform fine-tuning all layers. Intuitively, fine-tuning more parameters on a small target dataset can cause information learned during pre-training to be forgotten, and the relevant information depends on the type of shift.

Yoonho Lee, Annie S. Chen, Fahim Tajwar, Ananya Kumar, Huaxiu Yao, Percy Liang, Chelsea Finn• 2022

Related benchmarks

TaskDatasetResultRank
Language ModelingWikiText-2 (test)--
2333
Hallucination DetectionTriviaQA
AUROC0.8176
621
Image ClassificationDTD
Accuracy65.7
487
Image ClassificationSVHN
Accuracy96.08
395
Image ClassificationFGVCAircraft
Accuracy57.94
289
Image ClassificationPACS--
270
Hallucination DetectionHotpotQA
AUROC0.7723
249
Hallucination DetectionHaluEval
AUROC0.7563
131
Hallucination DetectionCoQA
AUROC74.75
108
Hallucination DetectionCoQA
Mean AUROC0.6859
107
Showing 10 of 33 rows

Other info

Follow for update