Enhancing Domain Adaptation Through Prompt Gradient Alignment

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. Differently, 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 aligning 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 surpasses other vision language model adaptation methods by a large margin on a wide range of benchmarks. The implementation is available at https://github.com/VietHoang1512/PGA.

Cite

Text

Phan et al. "Enhancing Domain Adaptation Through Prompt Gradient Alignment." Neural Information Processing Systems, 2024. doi:10.52202/079017-1447

Markdown

[Phan et al. "Enhancing Domain Adaptation Through Prompt Gradient Alignment." Neural Information Processing Systems, 2024.](https://mlanthology.org/neurips/2024/phan2024neurips-enhancing/) doi:10.52202/079017-1447

BibTeX

@inproceedings{phan2024neurips-enhancing,
  title     = {{Enhancing Domain Adaptation Through Prompt Gradient Alignment}},
  author    = {Phan, Hoang and Tran, Lam and Tran, Quyen and Le, Trung},
  booktitle = {Neural Information Processing Systems},
  year      = {2024},
  doi       = {10.52202/079017-1447},
  url       = {https://mlanthology.org/neurips/2024/phan2024neurips-enhancing/}
}