Universal Domain Adaptation from Foundation Models: A Baseline Study

Bin Deng, Kui Jia
5/18/2023
cs.LGcs.CV

No official code found. Best implementation: szubing/uniood (24 stars, MIT, last commit 2025-12-02).

Abstract

Foundation models (e.g., CLIP or DINOv2) have shown their impressive learning and transfer capabilities in a wide range of visual tasks, by training on a large corpus of data and adapting to specific downstream tasks. It is, however, interesting that foundation models have not been fully explored for universal domain adaptation (UniDA), which is to learn models using labeled data in a source domain and unlabeled data in a target one, such that the learned models can successfully adapt to the target data. In this paper, we make comprehensive empirical studies of state-of-the-art UniDA methods using foundation models. We first observe that, unlike fine-tuning from ImageNet pre-trained models, as previous methods do, fine-tuning from foundation models yields significantly poorer results, sometimes even worse than training from scratch. While freezing the backbones, we demonstrate that although the foundation models greatly improve the performance of the baseline method that trains the models on the source data alone, existing UniDA methods generally fail to improve over the baseline. This suggests that new research efforts are very necessary for UniDA using foundation models. Based on these findings, we introduce \textit{CLIP distillation}, a parameter-free method specifically designed to distill target knowledge from CLIP models. The core of our \textit{CLIP distillation} lies in a self-calibration technique for automatic temperature scaling, a feature that significantly enhances the baseline's out-class detection capability. Although simple, our method outperforms previous approaches in most benchmark tasks, excelling in evaluation metrics including H-score/H$^3$-score and the newly proposed universal classification rate (UCR) metric. We hope that our investigation and the proposed simple framework can serve as a strong baseline to facilitate future studies in this field.

View on arXivView PDF

Code Implementations(1)

szubing/unioodCommunity100%
MIT

A code framework for implementing UniDA

241Shell, PythonMay 18, 202310 months agoMIT

Cite this paper

@article{deng2023universal,
  title  = {Universal Domain Adaptation from Foundation Models: A Baseline Study},
  author = {Bin Deng and Kui Jia},
  year   = {2023},
  eprint = {2305.11092},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.11092v2}
}

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

Discussion