Skip to main content
QUICK REVIEW

[Paper Review] CLIP the Gap: A Single Domain Generalization Approach for Object Detection

Vidit Vidit, Martin Engilberge|arXiv (Cornell University)|Jan 13, 2023
Domain Adaptation and Few-Shot LearningComputer Science3 citations
TL;DR

This paper proposes a novel single domain generalization (SDG) approach for object detection by leveraging CLIP's vision-language pre-training to inject semantic domain concepts via textual prompts. It performs semantic augmentation in feature space and uses a text-based classification loss, achieving state-of-the-art performance, outperforming prior methods by 10% on a diverse weather-driving benchmark.

ABSTRACT

Single Domain Generalization (SDG) tackles the problem of training a model on a single source domain so that it generalizes to any unseen target domain. While this has been well studied for image classification, the literature on SDG object detection remains almost non-existent. To address the challenges of simultaneously learning robust object localization and representation, we propose to leverage a pre-trained vision-language model to introduce semantic domain concepts via textual prompts. We achieve this via a semantic augmentation strategy acting on the features extracted by the detector backbone, as well as a text-based classification loss. Our experiments evidence the benefits of our approach, outperforming by 10% the only existing SDG object detection method, Single-DGOD [49], on their own diverse weather-driving benchmark.

Motivation & Objective

  • Address the lack of research on single domain generalization (SDG) in object detection, where models must generalize from one source domain to any unseen target domain.
  • Overcome the limitations of existing SDG methods that rely on data augmentation or self-distillation without leveraging semantic knowledge.
  • Improve robustness to domain shifts such as weather and lighting variations in autonomous driving scenarios.
  • Leverage pre-trained vision-language models to inject domain-invariant semantic concepts during training without requiring target domain data.

Proposed method

  • Utilize CLIP’s joint image-text embedding space to transfer textual domain concepts (e.g., 'rainy', 'foggy', 'nighttime') into visual feature space via semantic augmentation.
  • Apply feature-level transformations using text prompts to simulate unseen domain distributions, without modifying raw images.
  • Introduce a text-based classification loss ($\mathcal{L}_{clip\mhyphen t}$) to align visual features with corresponding textual embeddings.
  • Replace average pooling in the backbone with CLIP’s learned attention pooling to better capture semantic representations.
  • Fine-tune a Faster R-CNN detector using CLIP-initialized weights, combined with semantic augmentation and the text loss.
  • Perform ablation studies to isolate the contributions of CLIP initialization, attention pooling, and semantic augmentation.

Experimental results

Research questions

  • RQ1Can vision-language pre-training via CLIP improve generalization in object detection under single domain generalization (SDG) settings?
  • RQ2Does semantic augmentation using domain-relevant textual prompts enhance feature robustness to unseen domain shifts?
  • RQ3How does a text-based classification loss complement visual feature learning in zero-shot domain generalization?
  • RQ4To what extent does CLIP initialization and attention pooling improve generalization compared to standard ImageNet pre-training?

Key findings

  • The proposed method outperforms the prior state-of-the-art method, Single-DGOD, by 10% on the diverse weather-driving SDG benchmark.
  • CLIP initialization alone improves mAP by 1.5–2.5 points across all test domains, demonstrating its strong inductive bias for generalization.
  • Semantic augmentation with domain-specific prompts (e.g., 'rainy', 'foggy') consistently improves mAP across all target domains, especially in challenging conditions like night and fog.
  • The combination of CLIP initialization, attention pooling, and semantic augmentation yields the best performance, with mAP of 51.3 on clear day, 36.9 on night clear, 32.3 on dusk rainy, 18.7 on night rainy, and 38.5 on day foggy.
  • Random or non-relevant prompts (e.g., 'desert', 'ocean') provide no consistent benefit, confirming that semantic relevance is critical for effective augmentation.
  • The ablation study confirms that semantic augmentation is the most impactful component, improving mAP by up to 1.5 points over baseline.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.