Cloud Object Detector Adaptation by Integrating Different Source Knowledge

Shuaifeng Li, Mao Ye, Lihua Zhou, Nianxin Li, Siying Xiao, Song Tang, Xiatian Zhu

TL;DR

The COIN (Cloud Object detector adaptation by Integrating different source kNowledge) framework tackles the challenge of building a high-performing object detector for a specific target domain using only black-box detections from a cloud API and a public vision-language model (CLIP). By categorizing detections and using a novel gradient direction alignment strategy to resolve conflicts, COIN achieves state-of-the-art performance without requiring source data or model weights.

What Problem Does This Paper Address?

Large-scale "cloud" object detectors (like those behind commercial APIs) are powerful but often stumble when applied to specific, niche target domains due to domain shift. This paper introduces a new problem setting: Cloud Object Detector Adaptation (CODA).

In CODA, you have:

  1. A Cloud Model: Accessible only via API (black-box), providing bounding boxes and class scores.
  2. Target Data: Completely unlabeled.
  3. The Goal: Train a local detector that performs better than the cloud model on this specific target data.

Existing approaches like Source-Free Object Detection (SFOD) assume you have the source model's weights, which isn't true for cloud APIs. Black-box Domain Adaptation (DA) methods usually focus on classification and struggle with the "open scenario" and "open category" nature of modern object detection.

Comparison of CODA with other settings like SFOD and Black-box DAOD.

Methods

The authors propose COIN, which operates in three main stages:

  1. Knowledge Dissemination: They initialize a target detector (Faster R-CNN) and a "CLIP detector." Since CLIP is originally for classification, they adapt it into a detector by using cloud-provided boxes and refining labels via prompt learning.
  2. Knowledge Separation: They compare detections from the Cloud API and the adapted CLIP detector. Detections are sorted into three buckets:
  3. Consistent: Both models agree on the location and class.
  4. Inconsistent: Both find an object, but disagree on the class.
  5. Private: Only one model detects the object.
  6. Knowledge Distillation: Consistent and private detections are used as pseudo-labels to train the target student model. For the tricky inconsistent detections, they introduce a Consistent Knowledge Generation (CKG) network.
The COIN framework overview, showing dissemination, separation, and distillation stages.

The "secret sauce" is Self-Promotion Gradient Direction Alignment. The authors argue that gradients derived from consistent detections point toward the "optimal" target model. They train the CKG network to fuse inconsistent detections such that their gradient direction aligns with the gradients of the consistent ones.

Key Insights and Ideas

  • CLIP as a "Second Opinion": Even though cloud models are massive, they aren't perfect. Using a vision-language model like CLIP provides a different "knowledge source" to cross-reference and correct cloud errors.
  • Gradients as a Compass: In the absence of ground truth, the direction of model updates (gradients) from high-confidence, consistent detections serves as a reliable proxy for the "correct" optimization path.
  • Divide-and-Conquer: Instead of treating all pseudo-labels equally, separating them based on model consensus allows for more nuanced training—directly trusting consensus while using a learned fusion for conflicts.

Key Results

COIN consistently outperformed both the standalone cloud models and existing domain adaptation baselines across six diverse object detection benchmarks (including Foggy-Cityscapes, BDD100K, and KITTI):

  • KITTI: Achieved 80.8% mAP, significantly higher than the Cloud detector's 45.2% and the original CLIP's 62.1%.
  • Foggy-Cityscapes: Reached 39.0% mAP, outperforming the Cloud detector (34.4%) and various SFOD methods.
  • Clipart: Reached 68.5% mAP, a substantial jump over the Cloud detector's 66.8%.

Qualitative results show that COIN effectively reduces false negatives and corrects misclassifications compared to using the Cloud or CLIP models in isolation.

Limitations and Future Work

  • Computational Overhead: Pre-training the CLIP detector and running the multi-stage distillation process adds significant training time compared to simpler pseudo-labeling.
  • CLIP Dependency: The method's success relies on CLIP having some inherent knowledge of the target categories. If CLIP is also blind to a specific domain, the "second opinion" becomes less useful.
  • Future Directions: The authors suggest that the COIN philosophy (integrating different source knowledge via gradient alignment) could be extended beyond object detection to tasks like semantic segmentation or image classification.

Summary updated

BibTeX
@inproceedings{li2024cloud,
  author = {Shuaifeng Li and Mao Ye and Lihua Zhou and Nianxin Li and Siying Xiao and Song Tang and Xiatian Zhu},
  title = {{Cloud Object Detector Adaptation by Integrating Different Source Knowledge}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=S8SEjerTTg},
}
Figure