LanDA: Language-Guided Multi-Source Domain Adaptation

Zhenbin Wang, Lei Zhang, Lituan Wang, Minjuan ZhuarXiv 2024

Abstract

Multi-Source Domain Adaptation (MSDA) aims to mitigate changes in data distribution when transferring knowledge from multiple labeled source domains to an unlabeled target domain. However, existing MSDA techniques assume target domain images are available, yet overlook image-rich semantic information. Consequently, an open question is whether MSDA can be guided solely by textual cues in the absence of target domain images. By employing a multimodal model with a joint image and language embedding space, we propose a novel language-guided MSDA approach, termed LanDA, based on optimal transfer theory, which facilitates the transfer of multiple source domains to a new target domain, requiring only a textual description of the target domain without needing even a single target domain image, while retaining task-relevant information. We present extensive experiments across different transfer scenarios using a suite of relevant benchmarks, demonstrating that LanDA outperforms standard fine-tuning and ensemble approaches in both target and source domains.

Introduction

Traditional Multi-Source Domain Adaptation (MSDA) relies on the availability of unlabeled images from a target domain to bridge the gap between training and deployment environments. However, in many real-world scenarios—such as specialized medical imaging, rare artistic styles, or specific sensor configurations—collecting even unlabeled target data can be prohibitively expensive or impossible.

Humans, by contrast, can easily conceptualize domain shifts through language; we understand what a "sketch" or a "nighttime photo" looks like without needing a large dataset. LanDA (Language-Guided Multi-Source Domain Adaptation) addresses this by leveraging the pre-trained semantic knowledge within Vision-Language Foundational Models (VLFMs) like CLIP. The core challenge LanDA solves is translating a simple text description into a precise mathematical shift in a vision model's feature space, enabling adaptation without a single target image.

Methodology

LanDA operates by utilizing the shared image-text embedding space of VLFMs to guide the adaptation process through two primary stages.

Overview of the LanDA framework, illustrating the integration of domain-specific augmenters and text-guided alignment losses.

1. Domain-Specific Augmenters

Rather than fine-tuning the entire foundational model, which is computationally expensive and risks losing general knowledge, LanDA introduces lightweight Domain-Specific Augmenters. These simple two-layer MLPs learn to "shift" source image embeddings into an "extended domain" that aligns with the target's textual description. This process is governed by two key loss functions:

  • Domain-Class Alignment ($L_{DA}$ & $L_{CA}$): These losses steer source image features toward the target domain's text embedding while ensuring the features remain discriminative for their original object classes.
  • Distribution Consistency ($L_{DC}$): This utilizes Optimal Transport (OT) to align distributions across different source domains. LanDA introduces a novel text-aware cost function for OT, ensuring that the transport of features respects the semantic manifold—for instance, making it "cheaper" to transport a "dog" feature to a "wolf" feature than to a "bird" feature.

2. Linear Probing and Inference

Following the training of the augmenters, a linear classifier is trained on the combined set of original and extended features. During inference, LanDA employs Aggregated Target Prediction, weighting the contributions of different source domains based on their textual similarity to the target domain description.

Experiments and Results

The framework was evaluated on standard MSDA benchmarks, including Mini-DomainNet (40 classes across 5 domains) and Office-Home (66 categories across 4 domains).

t-SNE visualizations demonstrating (a) class separability and (b-d) the progression of domain alignment achieved by LanDA.

Performance and Efficiency

LanDA achieved state-of-the-art results, reaching a target accuracy of 95.28% on the Mini-DomainNet (R,P,S to C) scenario. This performance surpasses generative baselines like Diffusion+CLIP (94.71%) and VQGAN+CLIP (94.65%). Notably, LanDA is highly parameter-efficient; while competing methods often require tuning tens of millions of parameters, LanDA achieves superior results by updating only a few hundred thousand to a few million parameters.

Qualitative Analysis

As shown in the t-SNE visualizations, LanDA successfully creates tight, separable class clusters in the target domain. The alignment losses ensure that different domains (e.g., art, clipart, and real images) overlap significantly in the feature space, indicating that the model has learned a domain-invariant representation guided by language.

Conclusion

LanDA demonstrates that language can serve as a universal bridge for domain adaptation. By using text as a regularizer, the model not only adapts to new target domains with zero images but also improves performance on the original source domains, avoiding the common pitfall of catastrophic forgetting. While the method's success is currently tied to the descriptive power of the text and the underlying VLFM's pre-training, it opens a new frontier for zero-shot domain adaptation in resource-constrained environments.

Summary updated

BibTeX
@misc{wang2024landa,
  author = {Zhenbin Wang and Lei Zhang and Lituan Wang and Minjuan Zhu},
  title = {{LanDA: Language-Guided Multi-Source Domain Adaptation}},
  year = {2024},
  eprint = {2401.14148},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.14148},
}
Figure