Universal Domain Adaptation from Foundation Models

Bin Deng, Kui JiaarXiv 2023 · DOI

Introduction

Universal Domain Adaptation (UniDA) represents a realistic yet challenging machine learning scenario where a model is trained on labeled "source" data and applied to unlabeled "target" data, without the guarantee that their label sets match. This encompasses open-set (target has new classes), partial-set (source has extra classes), and open-partial scenarios. While foundation models like CLIP and DINOv2 have set new standards in computer vision, their application to the complex class relationships of UniDA remains largely unvetted. This study investigates the effectiveness of these models and identifies a "fine-tuning paradox" where standard adaptation techniques can actually degrade performance.

The Fine-tuning Paradox and Methodology

A primary finding of this research is that fine-tuning the backbone of foundation models for UniDA often leads to "catastrophic forgetting" or destabilization. Instead, the authors demonstrate that freezing the feature extractor and updating only the classifier head yields superior results.

To leverage the strengths of these models, the authors propose CLIP distillation. This parameter-free method distills knowledge from a frozen CLIP model into a task-specific classifier. A critical component of this approach is a self-calibration technique for automatic temperature scaling. By utilizing source data to determine an optimal scaling factor ($\tau$) for the model's output logits, the system significantly improves its ability to distinguish between "known" classes and "unknown" out-of-distribution samples.

Overview of the proposed CLIP distillation framework with self-calibration.

Calibration and Robust Evaluation

The study highlights that the main hurdle in UniDA is not just feature alignment, but the model's confidence calibration. Without proper logit scaling, models often classify samples with low confidence, making it impossible to effectively separate known from unknown classes. As shown in the calibration analysis, the self-calibration method drastically reduces the Expected Calibration Error (ECE) and aligns confidence with accuracy.

Comparison of CLIP zero-shot confidence before and after self-calibration, showing a significant reduction in ECE.

Furthermore, the authors introduce the Universal Classification Rate (UCR). Unlike the traditional H-score, UCR is threshold-free and insensitive to the ratio of known to unknown classes, providing a more robust measure of a model's true performance in diverse UniDA settings.

Experimental Results

The method was evaluated on four standard benchmarks: Office-31, OfficeHome, VisDA-2017, and DomainNet. Key insights include:

  • CLIP Distillation Dominance: The proposed method outperformed previous state-of-the-art (SOTA) approaches, showing improvements of over 10% in several tasks.
  • Baseline Collapse: Sophisticated UniDA algorithms often fail to significantly beat a simple "Source Only" baseline when using a powerful foundation model backbone, suggesting the backbone's quality is the primary driver of performance.
  • Backbone Comparison: CLIP backbones generally outperform DINOv2 in UniDA tasks, likely due to the rich semantic information from vision-language pre-training.

Conclusion and Future Work

This study establishes a strong baseline for UniDA using foundation models. While freezing encoders is currently the most effective strategy, future research may explore parameter-efficient fine-tuning (PEFT) or "surgical" fine-tuning to further bridge the gap. Additionally, better integration of source data during the training phase and addressing the computational demands of these massive models remain open challenges for the community.

Summary updated

BibTeX
@misc{deng2023universal,
  author = {Bin Deng and Kui Jia},
  title = {{Universal Domain Adaptation from Foundation Models}},
  year = {2023},
  eprint = {2305.11092},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.11092},
}
Figure