CGSA: Class-Guided Slot-Aware Adaptation for Source-Free Object Detection
Organizations: School of Computing and Data Science, The University of Hong Kong · Department of Electrical & Computer Engineering, National University of Singapore · School of Information and Electronics, Beijing Institute of Technology
Abstract
Source-Free Domain Adaptive Object Detection (SF-DAOD) aims to adapt a detector trained on a labeled source domain to an unlabeled target domain without retaining any source data. Despite recent progress, most popular approaches focus on tuning pseudo-label thresholds or refining the teacher-student framework, while overlooking object-level structural cues within cross-domain data. In this work, we present CGSA, the first framework that brings Object-Centric Learning (OCL) into SF-DAOD by integrating slot-aware adaptation into the DETR-based detector. Specifically, our approach integrates a Hierarchical Slot Awareness (HSA) module into the detector to progressively disentangle images into slot representations that act as visual priors. These slots are then guided toward class semantics via a Class-Guided Slot Contrast (CGSC) module, maintaining semantic consistency and prompting domain-invariant adaptation. Extensive experiments on multiple cross-domain datasets demonstrate that our approach outperforms previous SF-DAOD methods, with theoretical derivations and experimental analysis further demonstrating the effectiveness of the proposed components and the framework, thereby indicating the promise of object-centric design in privacy-sensitive adaptation scenarios. Code is released at https://github.com/Michael-McQueen/CGSA.
Figures & tables
| Method | SF | Base | Person | Rider | Car | Truck | Bus | Mcycle | Bicycle | mAP |
|---|---|---|---|---|---|---|---|---|---|---|
| Oracle | - | DETR | 68.2 | 53.2 | 84.0 | 67.7 | 67.9 | 54.1 | 54.7 | 64.3 |
| DA-Faster ( Chen et al., 2018 ) | ✗ | FRCNN | 28.9 | 27.4 | 44.2 | 19.1 | 18.0 | 14.2 | 22.4 | 24.9 |
| SFA ( Wang et al., 2021 ) | ✗ | DETR | 40.2 | 27.6 | 57.5 | 19.1 | 23.4 | 15.4 | 19.2 | 28.9 |
| AQT ( Huang et al., 2022 ) | ✗ | DETR | 38.2 | 33.0 | 58.4 | 17.3 | 18.4 | 16.9 | 23.5 | 29.4 |
| MRT ( Zhao et al., 2023 ) | ✗ | DETR | 48.4 | 30.9 | 63.7 | 24.7 | 25.5 | 20.2 | 22.6 | 33.7 |
| DATR ( Chen et al., 2025 ) | ✗ | DETR | 58.5 | 42.8 | 73.4 | 26.9 | 39.9 | 24.2 | 37.3 | 43.3 |
| Method | SF | Base | Person | Rider | Car | Truck | Bus | Train | Mcycle | Bicycle | mAP |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Oracle | - | DETR | 55.6 | 55.8 | 75.2 | 44.8 | 63.5 | 56.1 | 45.6 | 52.2 | 56.1 |
| DA-Faster ( Chen et al., 2018 ) | ✗ | FRCNN | 29.2 | 40.4 | 43.4 | 19.7 | 38.3 | 28.5 | 23.7 | 32.7 | 32.0 |
| SFA ( Wang et al., 2021 ) | ✗ | DETR | 46.5 | 48.6 | 62.6 | 25.1 | 46.2 | 29.4 | 28.3 | 44.0 | 41.3 |
| AQT ( Huang et al., 2022 ) | ✗ | DETR | 49.3 | 52.3 | 64.4 | 27.7 | 53.7 | 46.5 | 36.0 | 46.4 | 47.1 |
| AT ( Li et al., 2022b ) | ✗ | FRCNN | 43.7 | 54.1 | 62.3 | 31.9 | 54.4 | 49.3 | 35.2 | 47.9 | 47.4 |
| MRT ( Zhao et al., 2023 ) | ✗ | DETR | 52.8 | 51.7 | 68.7 | 35.9 | 58.1 | 54.5 | 41.0 | 47.1 | 51.2 |
| Method | SF | Base | S2C | K2C |
|---|---|---|---|---|
| Oracle | - | DETR | 79.9 | 79.9 |
| DA-Faster ( Chen et al., 2018 ) | ✗ | FRCNN | 41.9 | 41.8 |
| SFA ( Wang et al., 2021 ) | ✗ | DETR | 52.6 | 41.3 |
| DATR ( Chen et al., 2025 ) | ✗ | DETR | 64.3 | 53.3 |
| SFOD ( Li et al., 2021 ) | ✓ | FRCNN | 42.3 | 43.6 |
| SFOD-M ( Li et al., 2021 ) | ✓ | FRCNN | 42.9 | 44.6 |
| Depth | Number | Total Slot Numbers | mAP |
| 2 | 2 | 4 | 50.9 |
| 2 | 4 | 16 | 52.9 |
| 2 | 5 | 25 | 53.2 |
| 2 | 6 | 36 | 52.6 |
| 2 | 8 | 64 | 52.5 |
| 2 | 10 | 100 | 51.2 |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Range | Method | mAP |
|---|---|---|
| Cosine | 53.2 | |
| Cosine | 45.7 | |
| Cosine | 51.2 | |
| Cosine | 47.0 | |
| Fixed | 50.9 | |
| Fixed | 48.9 |
| Method | mAP |
|---|---|
| SA (num_slots = 5) | 50.6 |
| SA (num_slots = 25) | 50.2 |
| HSA ( slots) | 53.2 |
| Setting | COCO pretraining for HSA | mAP |
|---|---|---|
| Source only | – | 46.2 |
| w/ HSA | 51.2 | |
| w/ HSA & CGSC (CGSA) | 52.7 | |
| w/ HSA | 51.8 | |
| w/ HSA & CGSC (CGSA) | 53.2 |
| Base Detector | Component | Parameters | Time | mAP |
|---|---|---|---|---|
| RT-DETR ( Zhao et al., 2024 ) | – | 43M | 269ms | 46.2 |
| + HSA | 63M | 343ms | 51.8 | |
| % | 46.5% | 27.5% | 12.1% | |
| FocalNet-DINO-DETR ( Yang et al., 2022 ) | – | 228M | 780ms | 43.8 |
| + HSA | 251M | 809ms | 55.0 | |
| % | 10.1% | 3.7% | 25.6% |
Object Detection
Object detection locates and classifies objects in images or video, balancing localization accuracy, robustness, and inference speed.
See all 619 papers