Enhancing Domain Adaptation through Prompt Gradient Alignment

Hoang Phan, Lam Tran, Quyen Tran, Trung Le
6/13/2024
cs.LGcs.CV

Official code: VietHoang1512/PGA (16 stars, last commit 2024-06-16).

Abstract

Prior Unsupervised Domain Adaptation (UDA) methods often aim to train a domain-invariant feature extractor, which may hinder the model from learning sufficiently discriminative features. To tackle this, a line of works based on prompt learning leverages the power of large-scale pre-trained vision-language models to learn both domain-invariant and specific features through a set of domain-agnostic and domain-specific learnable prompts. Those studies typically enforce invariant constraints on representation, output, or prompt space to learn such prompts. In contrast, we cast UDA as a multiple-objective optimization problem in which each objective is represented by a domain loss. Under this new framework, we propose to align per-objective gradients to foster consensus between them. Additionally, to prevent potential overfitting when fine-tuning this deep learning architecture, we penalize the norm of these gradients. To achieve these goals, we devise a practical gradient update procedure that can work under both single-source and multi-source UDA. Empirically, our method consistently outperforms other vision-language model adaptation methods. The implementation is available at https://github.com/VietHoang1512/PGA.

View on arXivView PDF

Code Implementations(1)

VietHoang1512/PGAOfficial100%

Enhancing Domain Adaptation through Prompt Gradient Alignment (NeurIPS 2024)

163Shell, PythonMay 22, 20242 years ago

Similar Papers

Cite this paper

@article{phan2024enhancing,
  title  = {Enhancing Domain Adaptation through Prompt Gradient Alignment},
  author = {Hoang Phan and Lam Tran and Quyen Tran and Trung Le},
  year   = {2024},
  eprint = {2406.09353},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.09353},
  url    = {http://arxiv.org/abs/2406.09353v3},
  journal = {NEURIPS 2024 2024}
}

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

Discussion