Domain-Aware Fine-Tuning: Enhancing Neural Network Adaptability

Seokhyeon Ha, Sunbeom Jung, Jungwoo Lee
8/15/2023
11 citations
cs.LGcs.CV

Official code: skhnha/DAFT (0 stars, Jupyter Notebook, MIT, last commit 2024-02-26).

Abstract

Fine-tuning pre-trained neural network models has become a widely adopted approach across various domains. However, it can lead to the distortion of pre-trained feature extractors that already possess strong generalization capabilities.

Show full abstract

Mitigating feature distortion during adaptation to new target domains is crucial. Recent studies have shown promising results in handling feature distortion by aligning the head layer on in-distribution datasets before performing fine-tuning. Nonetheless, a significant limitation arises from the treatment of batch normalization layers during fine-tuning, leading to suboptimal performance. In this paper, we propose Domain-Aware Fine-Tuning (DAFT), a novel approach that incorporates batch normalization conversion and the integration of linear probing and fine-tuning. Our batch normalization conversion method effectively mitigates feature distortion by reducing modifications to the neural network during fine-tuning. Additionally, we introduce the integration of linear probing and fine-tuning to optimize the head layer with gradual adaptation of the feature extractor. By leveraging batch normalization layers and integrating linear probing and fine-tuning, our DAFT significantly mitigates feature distortion and achieves improved model performance on both in-distribution and out-of-distribution datasets. Extensive experiments demonstrate that our method outperforms other baseline methods, demonstrating its effectiveness in not only improving performance but also mitigating feature distortion.

View on arXivView PDF

Code Implementations(1)

skhnha/DAFTOfficial100%
MIT

Domain-Aware Fine-Tuning

00Jupyter Notebook, PythonFeb 26, 20242 years agoMIT

Similar Papers

Cite this paper

@article{ha2023domainaware,
  title  = {Domain-Aware Fine-Tuning: Enhancing Neural Network Adaptability},
  author = {Seokhyeon Ha and Sunbeom Jung and Jungwoo Lee},
  year   = {2023},
  eprint = {2308.07728},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.07728v5}
}

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

Discussion