NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Attention-Based Class-Conditioned Alignment for Multi-Source Domain Adaptation of Object Detectors

Atif Belal, Akhil Meethal, Francisco Perdigon Romero, Marco Pedersoli, Eric Granger

TL;DR

This paper introduces ACIA, a novel method for multi-source domain adaptation (MSDA) in object detection. ACIA uses an attention-based mechanism to align object instances across different domains in a class-specific manner, outperforming existing methods, especially in challenging scenarios with imbalanced data.

What Problem Does This Paper Address?

Object detection (OD) models excel in controlled environments but struggle when deployed in real-world scenarios with varying data distributions (domain shifts). Multi-source domain adaptation (MSDA) aims to leverage multiple labeled source datasets and unlabeled target data to improve OD performance under these shifts. However, existing MSDA methods for OD often perform feature alignment in a class-agnostic way, which is insufficient because object appearances vary significantly across domains. While some methods attempt class-wise alignment using prototypes, they suffer from error accumulation due to noisy pseudo-labels, particularly for underrepresented classes. This paper addresses the need for a robust and effective class-conditioned instance alignment method for MSDA in object detection.

Methods

The proposed method, ACIA (Attention-based Class-Conditioned Alignment), builds upon a mean-teacher framework. It integrates two key components:

  • Image-Level Alignment: A multi-class discriminator is used to learn domain-invariant features at the image level. This helps align the overall feature distributions across all source domains and the target domain.
  • Class-Conditioned Instance-Level Alignment: This is the core novelty. Instead of relying on prototypes, ACIA uses an attention mechanism to align object instances. For each detected object (ROI-pooled feature), its features are combined with a learned class embedding. An attention module then dynamically weighs the importance of different feature parts based on the class information, allowing for class-specific alignment. This attention output is then fed to an instance-level domain classifier, trained using a Gradient Reversal Layer (GRL) to enforce domain invariance and class-wise alignment. This approach is designed to be robust to noisy pseudo-labels and class imbalance.

Datasets

The paper uses the following datasets for training and evaluation:

  • BDD100K: A large-scale driving dataset with variations in time of day (Daytime, Night, Dusk/Dawn). Used for cross-time adaptation.
  • Cityscapes: An urban street scene dataset.
  • KITTI: A dataset for autonomous driving.
  • MS COCO: A large-scale dataset with diverse object categories and appearance variations.
  • Synscapes: A synthetic dataset for autonomous driving.

These datasets are used to create various MSDA settings, including cross-time, cross-camera, and mixed domain adaptation scenarios.

Key Insights and Ideas

  • Class-specific alignment is crucial: The paper strongly emphasizes that aligning object instances based on their class is essential for effective MSDA, especially when dealing with underrepresented classes or significant domain shifts.
  • Attention over prototypes for alignment: ACIA demonstrates that an attention-based mechanism can achieve robust class-wise alignment without the pitfalls of prototype-based methods (like error accumulation from noisy pseudo-labels).
  • Robustness to class imbalance: The attention mechanism, by focusing on learned class embeddings, proves to be more resilient to class imbalance than prototype-based approaches.
  • No domain-specific parameters: ACIA's architecture avoids learning domain-specific parameters, leading to a more efficient and scalable solution as the number of source domains increases.

Key Results

  • ACIA consistently outperforms state-of-the-art MSDA methods (like PMT, DMSN, TRKP) across various settings, including cross-time, cross-camera, and mixed domain adaptation.
  • On the BDD100K cross-time adaptation, ACIA achieved a 2.6 mAP improvement over PMT.
  • In mixed domain adaptation with three source domains, ACIA improved performance by 2.6 mAP compared to PMT.
  • The method shows significant robustness to class imbalance, achieving higher mAP scores than PMT as the imbalance level increases.
  • Ablation studies confirm the importance of both image-level and instance-level alignment, with the class-conditioned instance-level alignment providing the most substantial performance boost.

Limitations and Future Work

  • Pseudo-label noise: While ACIA is designed to be robust to noisy pseudo-labels, the paper notes that using target domain data in instance-level alignment can still lead to performance degradation. The authors choose to align only source domains in their instance-level alignment.
  • Future work: The paper suggests that further exploration of class-conditioning in UDA methods and MSDA for OD is warranted. The effectiveness of their class-conditional alignment is demonstrated for both UDA and MSDA, hinting at broader applicability. The authors also highlight the potential for further improvements by exploring different loss functions for class imbalance, as shown with the Equalization Loss v2.

Summary updated

BibTeX
@inproceedings{belal2025attention,
  author = {Atif Belal and Akhil Meethal and Francisco Perdigon Romero and Marco Pedersoli and Eric Granger},
  title = {{Attention-Based Class-Conditioned Alignment for Multi-Source Domain Adaptation of Object Detectors}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2025},
  doi = {10.1109/wacv61041.2025.00830},
}
Figure