Decoupled Adaptation for Cross-Domain Object Detection

Junguang Jiang, Baixu Chen, Jianmin Wang, Mingsheng Long

TL;DR

D-adapt (Decoupled Adaptation) is a novel framework that improves cross-domain object detection by separating the domain adaptation process from the detector's primary training. By using independent adaptors for classification and localization, it avoids the common pitfall where adversarial alignment degrades a model's ability to distinguish objects from backgrounds.

What Problem Does This Paper Address?

Object detection is significantly harder than image classification because it requires solving two tasks at once: identifying what an object is (category) and where it is (localization). When moving from a "source" domain (e.g., real-world photos) to a "target" domain (e.g., cartoons or foggy weather), models often fail due to "domain shift."

Existing methods typically use adversarial training—essentially a game where a feature extractor tries to "fool" a discriminator so that features from both domains look identical. However, in object detection, this often backfires. Aligning features directly on the detector can confuse foreground objects with the background, hurting the model's discriminability. Furthermore, most researchers focus on category adaptation while completely ignoring the adaptation of bounding box regression, which is vital for precise localization.

Methods

The authors propose D-adapt, which breaks the problem into a cascading, self-feedback loop. Instead of forcing the detector itself to learn domain-invariant features, they introduce parameter-independent adaptors.

Comparison of previous adaptation methods with the proposed Decoupled Adaptation (d), which separates the adaptors from the main detector.
  1. Decoupled Architecture: The adaptors are separate modules that do not share parameters with the main detector. This prevents the adversarial "noise" from corrupting the detector's internal representations.
  2. Category Adaptor: To handle the "data challenge" (not knowing which pixels are foreground), they use a confidence-based weighting mechanism. Proposals with high confidence are weighted more heavily, helping the model satisfy the "low-density separation" assumption—essentially making sure the decision boundaries fall in empty spaces between clusters of data.
  3. Bounding Box Adaptor: They introduce a specialized adaptor for localization using an "IoU disparity discrepancy" method. This encourages the model to produce consistent bounding boxes even when the visual style changes drastically.
  4. Self-Feedback Loop: The detector generates proposals for the adaptors; the adaptors provide high-quality pseudo-labels for the target domain; and the detector is then retrained using these labels.

Datasets

The researchers evaluated D-adapt across several challenging benchmarks representing different types of domain shifts:

  • Artistic Styles: Pascal VOC (source) $\rightarrow$ Clipart1k, Comic2k, and WaterColor.
  • Synthetic to Real: Sim10k $\rightarrow$ Cityscapes (detecting cars).
  • Weather/Condition Shifts: Cityscapes $\rightarrow$ Foggy Cityscapes.

Key Insights and Ideas

  • The Discriminability-Transferability Trade-off: Standard adversarial adaptation makes features more "transferable" (domain-invariant) but often less "discriminative" (harder to tell classes apart). By decoupling, D-adapt allows the adaptors to focus on transferability while the detector focuses on discriminability.
  • Detector Features are Messy: t-SNE visualizations in the paper reveal that detector features don't have obvious clusters because they mix category and location info. Trying to align these "messy" features globally is why previous methods struggled.
  • Localization Needs Adaptation Too: Most DA methods assume that if you get the category right, the box will follow. D-adapt proves that explicitly adapting the regression task yields massive performance gains.
  • Cascading is Better than Multi-tasking: Instead of balancing multiple loss functions simultaneously, D-adapt uses a cascade where the category adaptor identifies foreground objects to "filter" the data for the bounding box adaptor.

Key Results

D-adapt achieved state-of-the-art results across all tested tasks, with particularly dramatic improvements on artistic datasets:

  • VOC $\rightarrow$ Clipart1k: Achieved 49.0 mAP, a massive jump from the 27.8 mAP of a standard non-adapted detector and significantly higher than previous SOTA methods (~42 mAP).
  • VOC $\rightarrow$ Comic2k: Achieved 40.5 mAP, representing a 21% relative improvement over prior methods.
  • Sim10k $\rightarrow$ Cityscapes: Reached 50.3 mAP on car detection, outperforming specialized methods like CADA and MeGA-CDA.

Qualitative results show that while baseline models often miss small objects or get confused by "busy" artistic backgrounds, D-adapt maintains high precision and tight bounding boxes.

Limitations and Future Work

While powerful, D-adapt is an iterative framework (the authors suggest $T=3$ iterations), which increases the total training time compared to single-stage adversarial methods. Additionally, like many pseudo-labeling approaches, it is still susceptible to "confirmation bias" if the initial adaptors are extremely poor, though the decoupling strategy helps mitigate this.

The authors suggest that this "decoupled" philosophy could be extended to other complex vision tasks, such as instance segmentation or keypoint detection, by adding more specialized adaptors to the cascade.

Summary updated

BibTeX
@inproceedings{jiang2022decoupled,
  author = {Junguang Jiang and Baixu Chen and Jianmin Wang and Mingsheng Long},
  title = {{Decoupled Adaptation for Cross-Domain Object Detection}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=VNqaB1g9393},
}
Figure