Harmonizing Transferability and Discriminability for Adapting Object Detectors

Chaoqi Chen, Zebiao Zheng, Xinghao Ding, Yue Huang, Qi Dou

Abstract

Deep learning object detectors often suffer from significant performance degradation when deployed in environments different from their training data. This paper introduces the Hierarchical Transferability Calibration Network (HTCN), a framework designed to bridge this domain gap. HTCN addresses the inherent conflict between making features domain-invariant (transferability) and maintaining their object-specific details (discriminability). By calibrating feature alignment at the pixel, image, and instance levels, HTCN achieves state-of-the-art results on major cross-domain benchmarks, including a near-oracle performance on the Foggy-Cityscapes dataset.

Introduction

Standard Unsupervised Domain Adaptation (UDA) techniques typically rely on adversarial learning to force a model to extract features that are indistinguishable between a labeled source domain and an unlabeled target domain. However, this often leads to a "tug-of-war": aggressive alignment for transferability can "blur" the discriminative features necessary for precise object localization and classification. HTCN proposes a hierarchical approach to harmonize these competing objectives, ensuring that the model remains both domain-blind and object-aware.

Methodology: Hierarchical Transferability Calibration

The HTCN architecture, illustrated in Figure 1, integrates three key components to achieve balanced alignment.

The HTCN architecture featuring Local Feature Masks, IWAT-I, and CILA components for hierarchical domain alignment.

1. Importance Weighted Adversarial Training (IWAT-I)

To bridge the distributional gap, HTCN utilizes input interpolation to generate synthetic intermediate samples. It then applies an entropy-based weighting mechanism to the adversarial training. By prioritizing samples that the domain discriminator is uncertain about, the model focuses on the most transferable global features without compromising the discriminative power of the detector.

2. Context-aware Instance-Level Alignment (CILA)

Recognizing that objects are intrinsically linked to their surroundings, CILA aligns Region of Interest (RoI) features by fusing them with global context. This is achieved through a tensor product, which is efficiently estimated using randomized bilinear feature mapping to avoid computational explosion. This ensures that instance-level alignment is robust to local variations in appearance.

3. Local Feature Masks

Not all image regions contribute equally to domain adaptation. HTCN employs pixel-wise discriminators to generate "attention-like" masks based on uncertainty. These masks guide the network to focus alignment efforts on semantically meaningful regions, such as object edges, rather than uninformative areas like the sky.

Experimental Results

HTCN was evaluated on three challenging benchmarks: Cityscapes to Foggy-Cityscapes, PASCAL VOC to Clipart, and Sim10K to Cityscapes.

Performance on Foggy-Cityscapes

On the Cityscapes $\rightarrow$ Foggy-Cityscapes task, HTCN achieved a state-of-the-art 39.8% mAP. This represents a significant improvement over previous methods and approaches the "Oracle" performance (40.3%) of a model trained directly on foggy data. Qualitative results in Figure 2 demonstrate HTCN's ability to detect small and obscured objects that baseline models miss.

Qualitative comparison of object detection results on Foggy-Cityscapes and other datasets, showing HTCN's superior performance in challenging conditions.

Semantic and Style Shift

In the PASCAL $\rightarrow$ Clipart benchmark, which involves a drastic shift from real photos to artistic styles, HTCN reached 40.3% mAP, outperforming established methods like SWDA. Furthermore, the model demonstrated significantly better performance across a wide range of IoU (Intersection over Union) thresholds, indicating more accurate bounding box localization.

Conclusion

The Hierarchical Transferability Calibration Network effectively resolves the transferability-discriminability trade-off in unsupervised domain adaptation for object detection. By leveraging uncertainty-driven calibration and contextual synergy across multiple levels of the feature hierarchy, HTCN provides a robust solution for deploying detectors in diverse real-world environments.

Summary updated

BibTeX
@inproceedings{chen2020harmonizing,
  author = {Chaoqi Chen and Zebiao Zheng and Xinghao Ding and Yue Huang and Qi Dou},
  title = {{Harmonizing Transferability and Discriminability for Adapting Object Detectors}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00889},
}
Figure