Abstract
Object detection models often struggle with domain shift when deployed in environments different from their training data. While Multi-Source Domain Adaptation (MSDA) leverages multiple labeled datasets to improve robustness, existing methods suffer from poor scalability due to the use of domain-specific sub-networks. This paper introduces Prototype-based Mean Teacher (PMT), a novel framework that replaces memory-intensive sub-nets with lightweight class prototypes. By utilizing contrastive learning to align these prototypes across domains, PMT achieves state-of-the-art performance with a nearly constant memory footprint, regardless of the number of source domains.
Introduction
In real-world applications, object detectors must handle variations in weather, lighting, and camera hardware. While Unsupervised Domain Adaptation (UDA) addresses this using a single source, MSDA is more practical as it utilizes multiple available datasets. However, traditional MSDA architectures typically assign a dedicated branch to each source domain, leading to a linear explosion in model parameters as more sources are added. This parameter bloat causes memory constraints and increases the risk of overfitting.
PMT addresses these challenges by building upon the Mean Teacher framework and introducing a scalable prototype-based alignment strategy. This allows the model to distill knowledge from diverse sources into a single, compact representation.
The PMT Framework
The PMT architecture consists of a Student model and a Teacher model. The Student learns through standard backpropagation on labeled source data and unsupervised losses on target data. The Teacher, which is an exponential moving average (EMA) of the Student, provides stable pseudo-labels for the unlabeled target domain.
To handle multiple sources efficiently, PMT incorporates two primary modules:
- Multi-domain Discriminator: Utilizing a Gradient Reversal Layer (GRL), this component encourages the backbone to extract domain-invariant features by making it difficult for the discriminator to identify the source domain of a given feature map.
- Prototype Network: Instead of separate detection heads for each domain, a small MLP maps Region of Interest (RoI) features into a shared prototype space. Each class within each domain is represented by a "local prototype."
Prototype-based Alignment
The core innovation of PMT is its use of contrastive loss to perform granular alignment at the object level. The model is trained to minimize the distance between local prototypes of the same class across different domains (e.g., ensuring a "car" feature in a rainy domain is close to a "car" feature in a sunny domain).
As shown in the figure above, local prototypes are pulled toward a "global prototype"—the average representation of a class across all domains. Simultaneously, the loss ensures that global prototypes of different classes remain distinct, reducing category confusion. This approach captures domain-specific nuances in a single vector per class, avoiding the need for heavy sub-networks.
Experimental Results
PMT was evaluated across several challenging benchmarks, including cross-time (BDD100K) and cross-camera (Cityscapes/Kitti to BDD100K) adaptation.
- Accuracy: On the BDD100K cross-time task, PMT achieved 45.3 mAP, a 5.5% improvement over the previous state-of-the-art (TRKP).
- Scalability: While competing methods like DMSN grow from 46M to 163M parameters when scaling from one to five source domains, PMT maintains a nearly constant size of approximately 46.5M parameters.
- Robustness: In mixed-domain scenarios involving MS-COCO, Cityscapes, and Synscapes, PMT outperformed the "Oracle" baseline (trained only on target data), demonstrating its ability to effectively aggregate knowledge from highly diverse sources.
Conclusion
Prototype-based Mean Teacher (PMT) offers a scalable and effective solution for multi-source domain adaptation in object detection. By shifting the focus from domain-specific sub-networks to class-level prototype alignment, PMT provides a memory-efficient path toward deploying robust computer vision models in complex, multi-domain environments. Future work will focus on improving the quality of pseudo-labels to further mitigate the impact of noise during the adaptation process.
Summary updated