Abstract
Recent works on two-stage cross-domain detection have widely explored local feature patterns to achieve accurate adaptation. These methods rely on region proposal mechanisms and ROI-based instance-level features. However, for one-stage detectors, obtaining explicit instance-level features is difficult. We propose the Implicit Instance-Invariant Network (I3Net), tailored for adapting one-stage detectors. I3Net implicitly learns instance-invariant features by exploiting deep feature characteristics across layers. It facilitates adaptation via: (1) Dynamic and Class-Balanced Reweighting (DCBR), (2) Category-aware Object Pattern Matching (COPM), and (3) Regularized Joint Category Alignment (RJCA). Experiments show I3Net exceeds state-of-the-art performance on benchmark datasets.
Introduction: The Challenge of One-Stage Domain Adaptation
Deep learning models for object detection often encounter "domain shift"—a performance drop when a model trained on one dataset (source) is applied to another with different characteristics (target), such as transitioning from real-world photos to artistic paintings. Unsupervised Domain Adaptation (UDA) aims to bridge this gap without target-domain labels.
While UDA for two-stage detectors (e.g., Faster R-CNN) is well-established, these methods depend on Region Proposal Networks (RPN) to extract explicit object-level features for alignment. One-stage detectors (e.g., SSD, RetinaNet) lack these explicit proposals, making it difficult to align specific objects. Previous one-stage UDA attempts often aligned global features too aggressively, inadvertently matching background noise and causing "negative transfer."
The I3Net Framework
I3Net addresses these challenges by facilitating "implicit" instance alignment through three synergistic components that exploit the natural progression of features in deep networks.
1. Dynamic and Class-Balanced Reweighting (DCBR)
Not all samples contribute equally to successful adaptation. DCBR utilizes a multi-label classifier to estimate "adaptation difficulty." It assigns higher weights to "easy-to-adapt" samples and categories that are underrepresented (sample-scarce). This ensures the model does not ignore rare classes during the transfer process and focuses on the most transferable information.
2. Category-aware Object Pattern Matching (COPM)
To prevent the alignment of uninformative background noise, COPM uses the detector's classification output to guide a spatial attention mechanism. By fusing deep features with categorical predictions via a randomized multilinear map, the model learns to focus on foreground object patterns while suppressing background features in lower network layers.
3. Regularized Joint Category Alignment (RJCA)
RJCA aligns "prototypes"—the average feature representation of a class—across different network layers. It incorporates a consistency regularization term using KL-divergence to ensure that different layers agree on their predictions for the same object, reinforcing the learning of domain-invariant features.
Experimental Evaluation
The researchers evaluated I3Net on several challenging cross-domain benchmarks using Pascal VOC as the source domain and Clipart1k, Watercolor2k, and Comic2k as target domains. These datasets share categories but differ significantly in style and texture.
Key Results
I3Net consistently outperformed previous state-of-the-art (SOTA) methods:
- Pascal VOC → Clipart1k: Achieved 37.8% mAP, a 2.0% improvement over the previous SOTA (HTCN).
- Pascal VOC → Watercolor2k: Reached 51.5% mAP, outperforming methods specifically designed for two-stage detectors.
- Pascal VOC → Comic2k: Achieved 30.1% mAP, demonstrating robustness against large domain gaps.
Ablation studies confirmed that removing any of the three modules (DCBR, COPM, or RJCA) led to a performance decrease, validating the importance of reweighting, foreground matching, and layer consistency.
Conclusion
I3Net demonstrates that explicit region proposals are not strictly necessary for effective domain adaptation in object detection. By leveraging the existing classification signals of one-stage detectors, I3Net creates "implicit" regions of interest for alignment. Future work may involve making the DCBR multi-label classifier adaptive during training or extending the framework to other one-stage architectures like YOLO.
Summary updated