TL;DR
The Unified Multi-Granularity Alignment (MGA) framework significantly improves unsupervised domain adaptation for object detection by simultaneously modeling the dependencies across pixel-, instance-, and category-level features. By combining a dynamic scale-aware feature fusion module with an adaptive teacher-student update strategy, MGA effectively overcomes scale variations and noisy pseudo-labels to achieve state-of-the-art performance across diverse domain shifts.
What Problem Does This Paper Address?
Deep learning-based object detectors perform exceptionally well when trained and tested on the same dataset. However, deploy that same detector in a new environment—such as transitioning from sunny to foggy weather, or from real-world images to artistic cartoons—and its performance typically plummets due to "domain shift."
Unsupervised Domain Adaptation (UDA) attempts to solve this by transferring knowledge from a labeled source domain to an unlabeled target domain. Recent approaches use adversarial learning to align features between these domains at various granularities (pixels, object instances, or semantic categories). However, existing methods treat these granularities in isolation, ignoring how they influence one another. Furthermore, standard models struggle with dramatic object scale variations and suffer from noisy, incorrect "pseudo-labels" generated during the adaptation process, leading to local feature misalignment.
Methods
The authors introduce MGA (Multi-Granularity Alignment), a unified framework applicable to both anchor-free (e.g., FCOS) and anchor-based (e.g., Faster R-CNN) detectors.
The architecture relies on three novel components:
- Omni-Scale Gated Fusion (OSGF): Standard region pooling operations often distort object features when aspect ratios vary. OSGF solves this by generating "coarse detections" first. These predictions act as a guide, using a gating mechanism to dynamically weight and aggregate features from parallel convolutional streams with different kernel sizes ($3\times3, 3\times5, 5\times3$). This allows the network to adaptively choose the best scale representation for both small and large objects.
- Multi-Granularity Discriminators: MGA employs three distinct discriminators to align features at the pixel, instance, and category levels. Crucially, the novel category-level discriminator enforces both instance discriminability (keeping different classes separated) and category consistency (ensuring the same class aligns perfectly across the source and target domains).
- Adaptive Exponential Moving Average (AEMA): UDA frameworks often use a "Teacher-Student" setup where the teacher generates pseudo-labels on the target domain to train the student. Instead of updating the teacher model using a fixed coefficient, AEMA dynamically adjusts the update rate based on model assessment. It simulates domain shifts on a source-domain memory bank to evaluate how robustly both models are generalizing, ensuring the teacher only provides high-quality, reliable pseudo-labels.
Datasets
The framework was rigorously evaluated across four distinct domain-shift scenarios using seven benchmark datasets:
- Weather Adaptation: Cityscapes (normal weather) $\rightarrow$ FoggyCityscapes (synthetic fog).
- Cross-Camera Adaptation: KITTI $\rightarrow$ Cityscapes.
- Synthetic-to-Real Adaptation: Sim10k (synthetic driving gameplay) $\rightarrow$ Cityscapes.
- Real-to-Artistic Adaptation: PASCAL VOC (real images) $\rightarrow$ Clipart / Watercolor (artistic styles).
Key Insights and Ideas
- Granularities are Hierarchical: Pixel-level context informs instance-level boundaries, which in turn define category-level semantics. By unifying them into a single adversarial optimization objective, the model avoids conflicting gradients that occur when aligning granularities independently.
- Dynamic Scale Selection Over Fixed Pooling: Rather than forcing features into fixed-size grids (like standard RoI Pooling), letting the network dynamically route features through scale-appropriate convolutional paths preserves structural integrity.
- Feedback-Driven Teacher Updates: Fixed EMA updates assume steady progress, but target domain noise can cause the teacher to degrade. AEMA creates a safe "sandbox" via domain shift simulation on source data to dynamically tune how much the teacher should learn from the student.
Key Results
MGA achieved top-tier results across all evaluated benchmarks:
- Weather Adaptation: On Cityscapes $\rightarrow$ FoggyCityscapes, MGA achieved a 47.4% mAP using a Faster R-CNN baseline and 47.9% mAP using FCOS, markedly outperforming prior state-of-the-art methods like SIGMA (43.5%) and CFA (36.0%).
- Real-to-Artistic: When adapting from PASCAL VOC to Watercolor, MGA hit 62.1% mAP, notably surpassing the "oracle" baseline (56.8%) which was trained purely on target-style images.
- Ablation Validation: Removing the OSGF module caused a 2.3% drop in mAP, while replacing the proposed AEMA strategy with standard fixed EMA caused a 1.4% performance drop, validating the necessity of each component.
Limitations and Future Work
Despite its robustness, MGA's performance degrades when the distribution shift is extreme (e.g., exceptionally dense fog where visibility approaches zero). Additionally, the model occasionally struggles to differentiate highly similar categories that share visual features but differ in context, such as distinguishing a 'person' walking from a 'rider' sitting on a bicycle.
The authors suggest that future work could explore integrating large-scale vision-language models (VLMs) to leverage zero-shot generalization capabilities, as well as incorporating fine-grained feature learning to better capture subtle contextual cues.
Summary updated