Every Pixel Matters: Center-Aware Feature Alignment for Domain Adaptive Object Detector

Cheng-Chun Hsu, Yi-Hsuan Tsai, Yen-Yu Lin, Ming-Hsuan Yang

Abstract

Training robust object detectors typically requires massive amounts of labeled data. However, models often suffer from a significant "domain gap" when deployed in environments with different weather, lighting, or camera perspectives. This paper introduces a center-aware alignment framework for unsupervised domain adaptation (UDA). By predicting pixel-wise objectness and centerness, the proposed method focuses adaptation on discriminative foreground regions while ignoring noisy background pixels. Experimental results demonstrate that this approach significantly outperforms existing global and instance-level alignment methods across several benchmarks.

Introduction

Unsupervised Domain Adaptation (UDA) seeks to bridge the gap between a labeled source domain and an unlabeled target domain. Traditional approaches generally fall into two categories: image-level (global) alignment and instance-level alignment.

Global alignment attempts to match the overall feature distributions of source and target images. However, this often leads to "tangling" foreground objects with background scenery like roads or sky, introducing noise into the adaptation process. Conversely, instance-level alignment relies on region proposals to align specific objects. In a new target domain, these proposals are often inaccurate, causing the model to align background noise instead of actual objects.

Comparison of Image-level, Instance-level, and Center-aware alignment strategies.

To address these limitations, Hsu et al. propose a middle ground: focusing on the most informative parts of an image—the centers of the objects—without relying on potentially faulty bounding box proposals.

Methodology

The framework is built upon an anchor-free detector (similar to FCOS) to avoid the source-domain bias inherent in pre-defined anchor boxes. The architecture consists of three primary components:

1. Center-aware Feature Alignment

Instead of treating all pixels equally, the model predicts two values for every pixel: Objectness (probability of being part of an object) and Centerness (proximity to an object's center). These are combined into a "Center-aware map" that weights features during alignment. Pixels near object centers receive high weights, while background pixels are effectively filtered out.

2. Adversarial Learning with GRL

The system employs a discriminator to distinguish between source and target domain features. A Gradient Reversal Layer (GRL) is used to train the feature extractor to produce domain-invariant features, making it impossible for the discriminator to identify the domain of origin.

The overall architecture of the center-aware domain adaptation framework, featuring global and center-aware discriminators.

3. Multi-scale Alignment

To handle objects of varying sizes, the center-aware alignment is integrated into a Feature Pyramid Network (FPN). This ensures that small objects are aligned at high-resolution layers while larger objects are handled at lower-resolution layers.

Experiments and Results

The method was evaluated on three major domain adaptation benchmarks:

  • Weather Adaptation (Cityscapes → Foggy Cityscapes): The model achieved 40.2% mAP with a ResNet-101 backbone, a substantial improvement over the 25.6% mAP baseline and previous state-of-the-art methods like DAF and SW-DA.
  • Synthetic-to-Real (Sim10k → Cityscapes): Using a VGG-16 backbone, the method reached 49.0% mAP, compared to 30.1% for the non-adapted baseline.
  • Cross-camera Adaptation (KITTI → Cityscapes): The model demonstrated robustness across different camera setups and viewpoints.

Qualitative analysis via heatmaps confirmed that the center-aware model successfully localizes object centers in the target domain even under challenging conditions like heavy fog, where baseline models fail.

Conclusion

By prioritizing the "substance" of objects over the "style" of the background, center-aware alignment provides a more precise mechanism for domain adaptation. While the model performs exceptionally well on common classes, future work is needed to address performance on underrepresented categories (e.g., trucks or motorbikes) by potentially incorporating category priors to assist the alignment of imbalanced datasets.

Summary updated

BibTeX
@inproceedings{hsu2020every,
  author = {Cheng-Chun Hsu and Yi-Hsuan Tsai and Yen-Yu Lin and Ming-Hsuan Yang},
  title = {{Every Pixel Matters: Center-Aware Feature Alignment for Domain Adaptive Object Detector}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58545-7\_42},
}
Figure