Abstract
Object detection models often suffer from performance degradation when deployed in new environments due to domain shift. While Domain Adaptive Object Detection (DAOD) addresses this by using both source and target data, privacy and storage constraints often make source data unavailable. This paper introduces FRANCK, a novel framework designed for Source-Free Object Detection (SFOD) specifically tailored for Detection Transformers (DETRs). By leveraging query-centric feature enhancement and dynamic self-training, FRANCK achieves state-of-the-art performance across various benchmarks without requiring access to original source data.
Introduction: The Challenge of Source-Free Adaptation
Standard object detection models are sensitive to environmental changes, such as shifts from clear to foggy weather or synthetic to real-world imagery. Traditional Domain Adaptive Object Detection (DAOD) mitigates this by training on both labeled source data and unlabeled target data simultaneously. However, in many practical applications, the source data is inaccessible due to privacy regulations, proprietary restrictions, or the sheer volume of data.
Source-Free Object Detection (SFOD) addresses this by adapting a pre-trained model using only unlabeled target data. While previous SFOD methods focused on CNN-based architectures like Faster R-CNN, modern Detection Transformers (DETRs) present unique challenges and opportunities due to their query-based mechanisms.
The FRANCK Framework
To bridge the gap in SFOD for transformers, we propose FRANCK (Feature Reweighting ANd Contrastive Learning NetworK). FRANCK is a unified query-centric framework that optimizes the adaptation process through four primary components:
1. Objectness Score-based Sample Reweighting (OSSR)
Unlike region-proposal networks, DETRs rely on object queries. OSSR calculates "objectness" scores by fusing multi-scale encoder features with decoder queries. This allows the model to focus loss calculations on difficult foreground regions, effectively ignoring easy background noise that often leads to false positives under domain shift.
2. Contrastive Learning with Matching-based Memory Bank (CMMB)
To combat inter-class confusion, CMMB maintains a memory bank of class-wise features. It utilizes DETR's internal bipartite matching mechanism to assign pseudo-labels. This approach is significantly more robust than standard confidence thresholding, as it ensures more reliable contrastive pairs for feature alignment.
3. Uncertainty-weighted Query-fused Feature Distillation (UQFD)
Knowledge transfer from a "teacher" model to a "student" model is stabilized via UQFD. By estimating prediction entropy (uncertainty), the framework weights the importance of different spatial regions. This ensures the student model prioritizes learning from the teacher's most confident and reliable predictions.
4. Dynamic Teacher Updating Interval (DTUI)
The quality of pseudo-labels improves as adaptation progresses. DTUI dynamically adjusts the update frequency of the teacher model, optimizing the balance between stability and the integration of new target-domain knowledge.
Experimental Evaluation
FRANCK was evaluated across several challenging domain adaptation scenarios, including cross-weather (Cityscapes to Foggy Cityscapes), synthetic-to-real (Sim10k to Cityscapes), and cross-scene (BDD100K, KITTI, ACDC) benchmarks.
Key Results
The framework consistently outperformed existing state-of-the-art SFOD methods:
- Foggy Cityscapes: Achieved 44.9% mAP, surpassing the standard Mean Teacher baseline of 37.8%.
- Synthetic-to-Real: Reached 63.1% mAP on Sim10k to Cityscapes, a substantial improvement over the 50.8% source-only baseline.
- Versatility: Demonstrated strong performance across various backbones (ResNet, Swin, ViT) and DETR variants (DINO, RT-DETR).
Insights and Future Directions
The success of FRANCK highlights the importance of query-centric design in transformer adaptation. By directly enhancing object queries and their interaction with encoder features, the model achieves superior alignment. Furthermore, using bipartite matching for pseudo-labeling proves to be a critical innovation for maintaining label purity in source-free settings.
Future work may involve implementing adaptive confidence thresholds to better mine objects in early training stages and leveraging semantic cues from Vision Foundation Models like CLIP to further refine the memory bank.
Summary updated