Skip to main content
QUICK REVIEW

[Paper Review] Learning Domain-Aware Detection Head with Prompt Tuning

Haochen Li, Rui Zhang|arXiv (Cornell University)|Jun 9, 2023
Domain Adaptation and Few-Shot LearningComputer Science5 citations
TL;DR

This paper proposes DA-Pro, a novel domain-adaptive object detection framework that uses a vision-language model backbone and a learnable domain-adaptive prompt to generate dynamic detection heads for source and target domains. By jointly optimizing domain-invariant and domain-specific tokens with dual constraints and a prompt ensemble strategy, DA-Pro achieves state-of-the-art mAP gains of 1.9%–3.3% over strong baselines like RegionCLIP on cross-domain benchmarks.

ABSTRACT

Domain adaptive object detection (DAOD) aims to generalize detectors trained on an annotated source domain to an unlabelled target domain. However, existing methods focus on reducing the domain bias of the detection backbone by inferring a discriminative visual encoder, while ignoring the domain bias in the detection head. Inspired by the high generalization of vision-language models (VLMs), applying a VLM as the robust detection backbone following a domain-aware detection head is a reasonable way to learn the discriminative detector for each domain, rather than reducing the domain bias in traditional methods. To achieve the above issue, we thus propose a novel DAOD framework named Domain-Aware detection head with Prompt tuning (DA-Pro), which applies the learnable domain-adaptive prompt to generate the dynamic detection head for each domain. Formally, the domain-adaptive prompt consists of the domain-invariant tokens, domain-specific tokens, and the domain-related textual description along with the class label. Furthermore, two constraints between the source and target domains are applied to ensure that the domain-adaptive prompt can capture the domains-shared and domain-specific knowledge. A prompt ensemble strategy is also proposed to reduce the effect of prompt disturbance. Comprehensive experiments over multiple cross-domain adaptation tasks demonstrate that using the domain-adaptive prompt can produce an effectively domain-related detection head for boosting domain-adaptive object detection. Our code is available at https://github.com/Therock90421/DA-Pro.

Motivation & Objective

  • To address the overlooked domain bias in detection heads, which existing methods focus only on reducing bias in detection backbones.
  • To leverage the high generalization of vision-language models (VLMs) as robust visual encoders for domain adaptation.
  • To design a learnable prompt mechanism that dynamically generates domain-specific detection heads using both domain-invariant and domain-specific tokens.
  • To ensure the model captures shared and distinct knowledge across domains through dual constraints on detection head confidence and alignment.
  • To reduce prompt disturbance during training via a historical prompt ensemble strategy using EMA-based buffer updates.

Proposed method

  • The framework uses a pre-trained VLM as the backbone to extract domain-generalized visual features.
  • A domain-adaptive prompt is composed of learnable domain-invariant tokens, domain-specific tokens, and textual descriptions of domain and class.
  • Two constraints are applied: (1) joint optimization of source and target detection heads to preserve shared knowledge, and (2) domain-specific confidence maximization to enhance discrimination.
  • A prompt ensemble strategy maintains a running average of past prompts via EMA, improving robustness against batch-level data mutation.
  • The detection head is dynamically generated by attending to the prompt tokens and visual features through cross-attention in the VLM.
  • The full training objective combines classification loss, domain confidence loss, and entropy regularization to stabilize optimization.

Experimental results

Research questions

  • RQ1Can prompt tuning be effectively applied to learn domain-aware detection heads in domain-adaptive object detection?
  • RQ2How can domain-invariant and domain-specific knowledge be jointly modeled in a prompt-based detection head?
  • RQ3What constraints are necessary to ensure the detection head generalizes well across source and target domains?
  • RQ4Does prompt ensemble improve robustness and performance under data distribution shifts?
  • RQ5How does prompt length affect the trade-off between discrimination and overfitting in DAOD?

Key findings

  • DA-Pro achieves state-of-the-art performance on three cross-domain benchmarks: Cross-Weather, Cross-Fov, and Sim-to-Real.
  • On the Cross-Weather benchmark, DA-Pro achieves 55.9% mAP, setting a new SOTA, with a 1.9%–3.3% improvement over RegionCLIP.
  • The ablation study shows that adding domain-specific tokens and dual constraints improves mAP by 0.4% compared to using only domain-invariant tokens.
  • The prompt ensemble strategy improves mAP by 0.7%, 0.4%, and 1.5% on AP, AP50, and AP75, respectively, reducing prompt disturbance.
  • A prompt length of (8,8) for domain-invariant and domain-specific tokens yields optimal performance, avoiding overfitting seen at longer lengths.
  • Visualization confirms that the domain-adaptive prompt correctly detects overlapping and occluded objects, while hand-crafted and domain-invariant prompts miss or misclassify them.

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.