Remedying Target-Domain Astigmatism for Cross-Domain Few-Shot Object Detection
Organizations: School of Computer Science and Technology, Huazhong University of Science and Technology
Abstract
Cross-domain few-shot object detection (CD-FSOD) aims to adapt pretrained detectors from a source domain to target domains with limited annotations, suffering from severe domain shifts and data scarcity problems. In this work, we find a previously overlooked phenomenon: models exhibit dispersed and unfocused attention in target domains, leading to imprecise localization and redundant predictions, just like a human cannot focus on visual objects. Therefore, we call it the target-domain Astigmatism problem. Analysis on attention distances across transformer layers reveals that regular fine-tuning inherently shows a trend to remedy this problem, but results are still far from satisfactory, which we aim to enhance in this paper. Biologically inspired by the human fovea-style visual system, we enhance the fine-tuning's inherent trend through a center-periphery attention refinement framework, which contains (1) a Positive Pattern Refinement module to reshape attention toward semantic objects using class-specific prototypes, simulating the visual center region; (2) a Negative Context Modulation module to enhance boundary discrimination by modeling background context, simulating the visual periphery region; and (3) a Textual Semantic Alignment module to strengthen center-periphery distinction through cross-modal cues. Our bio-inspired approach transforms astigmatic attention into focused patterns, substantially improving adaptation to target domains. Experiments on six challenging CD-FSOD benchmarks consistently demonstrate improved detection accuracy and establish new state-of-the-art results.
Figures & tables
| Method | Backbone | Venue | ArTaxOr | Clipart1k | DIOR | DeepFish | NEU-DET | UODD | Avg. |
|---|---|---|---|---|---|---|---|---|---|
| Distill † [ 32 ] | ResNet50 | ICASSP’23 | 5.10 | 7.60 | 10.50 | – | – | 5.90 | / |
| ViTDet † [ 16 ] | ViT-B/14 | ECCV’22 | 5.90 | 6.10 | 12.90 | 0.90 | 2.40 | 4.00 | 5.37 |
| ViTDet* [ 16 ] | Swin-T | ECCV’22 | 8.85 | 10.22 | 18.50 | 1.06 | 4.54 | 4.90 | 8.01 |
| Detic † [ 46 ] | ViT-L/14 | ECCV’22 | 3.20 | 15.10 | 4.10 | 9.00 | 3.80 | 4.20 | 6.57 |
| Detic* [ 46 ] | Swin-T | ECCV’22 | 4.45 | 19.22 | 5.70 | 10.49 | 7.15 | 5.12 | 8.69 |
| DE-ViT † [ 36 ] | ViT-L/14 | arXiv’23 | 10.50 | 13.00 | 14.70 | 19.30 | 0.60 | 2.40 | 10.08 |
| Method | Backbone | Venue | ArTaxOr | Clipart1k | DIOR | DeepFish | NEU-DET | UODD | Avg. |
|---|---|---|---|---|---|---|---|---|---|
| Distill † [ 32 ] | ResNet50 | ICASSP’23 | 12.50 | 23.30 | 19.10 | 15.50 | 16.00 | 12.20 | 16.43 |
| ViTDet † [ 16 ] | ViT-B/14 | ECCV’22 | 20.90 | 23.30 | 23.30 | 9.00 | 13.50 | 11.10 | 16.85 |
| ViTDet* [ 16 ] | Swin-T | ECCV’22 | 21.05 | 23.45 | 23.45 | 11.03 | 19.96 | 15.07 | 19.00 |
| Detic † [ 46 ] | ViT-L/14 | ECCV’22 | 8.70 | 20.20 | 12.10 | 14.30 | 14.10 | 10.40 | 13.30 |
| Detic* [ 46 ] | Swin-T | ECCV’22 | 10.63 | 20.31 | 14.78 | 17.46 | 20.80 | 14.07 | 16.34 |
| DE-ViT † [ 36 ] | ViT-L/14 | arXiv’23 | 38.00 | 38.10 | 23.40 | 21.20 | 7.80 | 5.00 | 22.25 |
| Method | Backbone | Venue | ArTaxOr | Clipart1k | DIOR | DeepFish | NEU-DET | UODD | Avg. |
|---|---|---|---|---|---|---|---|---|---|
| Distill † [ 32 ] | ResNet50 | ICASSP’23 | 18.10 | 27.30 | 26.50 | 15.50 | 21.10 | 14.50 | 20.50 |
| ViTDet † [ 16 ] | ViT-B/14 | ECCV’22 | 23.40 | 25.60 | 29.40 | 6.50 | 15.80 | 15.60 | 19.38 |
| ViTDet* [ 16 ] | Swin-T | ECCV’22 | 24.20 | 25.93 | 30.10 | 8.04 | 22.52 | 19.55 | 21.72 |
| Detic † [ 46 ] | ViT-L/14 | ECCV’22 | 12.00 | 22.30 | 15.40 | 17.90 | 16.80 | 14.40 | 16.47 |
| Detic* [ 46 ] | Swin-T | ECCV’22 | 13.80 | 22.59 | 17.20 | 22.04 | 23.97 | 16.58 | 19.36 |
| DE-ViT † [ 36 ] | ViT-L/14 | arXiv’23 | 49.20 | 40.80 | 25.60 | 21.30 | 8.80 | 5.40 | 25.18 |
| Dataset | Classes | Images | Boxes | Domain | Challenge |
|---|---|---|---|---|---|
| ArTaxOr | 7 | 1383 | 1628 | photorealistic | small objects |
| Clipart1k | 20 | 500 | 1526 | cartoon | style abstraction |
| DIOR | 20 | 5000 | 28810 | aerial | medium-scale |
| DeepFish | 1 | 909 | 3029 | aquatic | poor visibility |
| NEU-DET | 6 | 360 | 834 | industrial | subtle features |
| UODD | 3 | 506 | 3218 | underwater | complex clutter |
| Components | Datasets | |||||||
|---|---|---|---|---|---|---|---|---|
| NCM | PPR | TSA | ArTaxOr | Clipart1k | DIOR | DeepFish | NEU-DET | UODD |
| 48.11 | 39.28 | 27.39 | 28.40 | 19.55 | 11.40 | |||
| ✓ | 49.95 | 40.52 | 27.75 | 29.58 | 20.48 | 12.21 | ||
| ✓ | ✓ | 52.68 | 42.95 | 28.62 | 31.96 | 22.38 | 14.26 | |
| ✓ | ✓ | ✓ | 54.98 | 44.83 | 29.41 | 33.87 | 23.64 | 15.66 |
| Text Count | Performance | GPU Mem. (MB) | Eff. Ratio | |
|---|---|---|---|---|
| AP (%) | Gain | |||
| 50 | 39.34 | - | 8762 | - |
| 100 | 40.31 | +0.97% | 8850 | 1.10% |
| 150 | 41.48 | +1.17% | 8943 | 1.26% |
| 200 | 42.87 | +1.39% | 9027 | 1.65% |
| 250 | 43.47 | +0.60% | 9108 | 0.74% |
Few-Shot Object Detection
Few-shot object detection adapts detectors to recognize and localize new object classes from only a handful of labeled examples.
See all 27 papers